glossref in PDF DITA-OT 2.54 and DITA-OT 3.2

Post here questions and problems related to editing and publishing DITA content.
Apollo102
Posts: 8
Joined: Mon Nov 26, 2018 12:56 am

glossref in PDF DITA-OT 2.54 and DITA-OT 3.2

Post by Apollo102 »

Hi,

I try to use glossref in a PDF output. I am using the pdf2 plugin.
I have the following result:

So I don't get a link in the PDF (although print="yes").

Code: Select all


<topicref href="../data/glossary_overview.xml" chunk="to-content" >   
<glossref keys="opentoolkit" href="../data/glossary/ot.xml" print="yes" />
</topicref>

If I use this I get a link, but the glossary also appears twice in the PDF. The whole thing only works in DITA-OT 2.54.

Code: Select all


<topicref href="../data/glossary_overview.xml" chunk="to-content" >   
<topicref href="../data/glossary/ot.xml" />
</topicref>

<glossref keys="opentoolkit" href="../data/glossary/ot.xml" print="yes" />

If I use DITA-OT 3.2, I don't get a PDF.
Input-Datei: C:\dita3_2_test_glossary\main_map_0002.ditamap
Programmname: DITA-OT
Fehlerlevel: fatal
Beschreibung: Transformation failed. ...Dita-Open-Toolkit_3_2_test\plugins\org.dita.pdf2\build.xml:367: org.xml.sax.SAXParseException; systemId: file:/C:/dita3_2_test_glossary/temp/pdf/stage2.fo; lineNumber: 10; columnNumber: 23893; XML document structures must start and end within the same entity.


[pipeline] Failed to transform document: A sequence of more than one item is not allowed as the value of variable $target (<topicref/>, <glossentry/>)



What am I doing wrong?

Thank you for your help.

Regards

Apollo
Apollo102
Posts: 8
Joined: Mon Nov 26, 2018 12:56 am

Re: glossref in PDF DITA-OT 2.54 and DITA-OT 3.2

Post by Apollo102 »

The crash in DITA-OT 3.2 is due to the double entry of the glossary (abbrev-domain finds several targets for one href). DITA-OT 2.5.4 obviously reacts differently here due to the other preprocess (OT 3.2 uses preprocess2) for the PDF output.

I think the approach with chunk="to-content" and the use of topicref there is certainly wrong (merging several glossary files into one topic). I will test the use of a glossary group insted.

Apollo102
Apollo102
Posts: 8
Joined: Mon Nov 26, 2018 12:56 am

Re: glossref in PDF DITA-OT 2.54 and DITA-OT 3.2

Post by Apollo102 »

Test with glossgroup topic.

Finally this works ! :-) in OT 3.2 and OT 2.5.4 in PDF and HTML

Code: Select all


    <topicref href="../data/glossary/glossary_test_0002.xml">
<topicmeta>
<navtitle>Demo Glossary Overview</navtitle>
</topicmeta>
</topicref>

<glossref keys="opentoolkit" href="../data/glossary/glossary_test_0002.xml#opentoolkit" print="yes" processing-role="resource-only"/>
<glossref keys="conref" href="../data/glossary/glossary_test_0002.xml#conref" print="yes" processing-role="resource-only" />
print="yes" is important for the PDF that the link for the term appear.
processing-role="resource-only" that there a no double entries for the glossentry.

Apollo102
Post Reply