0

(I'm looking for a workaround for Con 3 of Attempt 1 of this question.)

I have a DocBook 5 doc where some glossentry tags contain multiple glossterm tags.

The HTML output for xref tags having a linkend attribute equalling the xml:id of a glossentry looks good (the link text is the first glossterm and the link correctly points to the glossentry) except that its mouseover text (in the title attribute of the HTML) concatenates all of the glossterm texts together.

I would rather it just output the first glossterm (or maybe separate the glossterms with / or a.k.a or something to indicate they're synonyms.)

How would I go about that? I'm new to DocBook and XSLT.

Community
  • 1
  • 1
Kev
  • 15,899
  • 15
  • 79
  • 112
  • Can you show us the XSLT that concatenated them all together? Also, can you tag this with either xlst-1.0 or xslt-2.0? – bjimba Mar 04 '15 at 21:44
  • @bjimba, If I knew that, I would know where to start...but I'm a DocBook newb...also I don't know which XSLT is being used here. How can I find out? – Kev Mar 04 '15 at 23:25
  • Some people here know XSLT well, but not DocBook. So, can you show a minimal XML where your problem is present? And also show the output it currently generates, and show (with XML, rather than explaining in prose) what's wrong with it. That would help a lot. – Mathias Müller Mar 05 '15 at 14:16
  • @MathiasMüller the answer you just edited to my other question happens to solve this question as well, even though I intended them in different ways initially. – Kev Mar 05 '15 at 19:09
  • Then, either delete this question, or post your own answer to this one and accept it, or let the community close it as a duplicate. – Mathias Müller Mar 05 '15 at 19:33
  • Do you mean this one: http://stackoverflow.com/questions/28869578/docbook-5-rendering-without-abbrev-tag? – Mathias Müller Mar 05 '15 at 19:35

0 Answers0