DITA bookmap conversion problem

Here should go questions about transforming XML with XSLT and FOP.
susannecm
Posts: 114
Joined: Wed Mar 17, 2010 1:04 pm

DITA bookmap conversion problem

Post by susannecm »

Hi,

I have problems to convert DITA bookmaps that contain a glossary list. I currently use oXygen 11.2 with DITA OT 1.5, but I had the same problem with the previous version. My markup looks like this:

Code: Select all

<booklists toc="yes">
<glossarylist format="dita" locktitle="yes" navtitle="Glossar" scope="local">
<topicref format="dita" [b]href="glossary/RetrieveAsync.dita" [/b]navtitle="Anfordern" scope="local" type="glossentry"> </topicref>
<topicref format="dita" href="glossary/Retrieve.dita" navtitle="Wiederherstellen" scope="local" type="glossentry"> </topicref>
</glossarylist>
</booklists>
During the transformation, I get an error message like the following one:

Code: Select all

[java] [ERROR] Topic reference (href : #unique_23) not found !
[java] [ERROR] Reference may be incorrect. Please correct your ditamap or bookmap file.
[java] Processing terminated by xsl:message at line 110 in root-processing.xsl
I checked the merged XML file and found the following on #unique_23:

Code: Select all

<topicref class="- map/topicref " format="dita" [b]ohref="glossary/RetrieveAsync.xml"[/b] href="#unique_23" id="unique_23" ...
The directory that contains my map has a glossary subdirectory with the referenced files and these files have also been copied to the temp directory (with the xml extension). So it should be possible to resolve the references. What's happening here? If this is an Open Toolkit problem, what is the best place to report it?

Susanne
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA bookmap conversion problem

Post by Radu »

Hi Susanne,

The merged map xml file should contain an additional topic with the id "unique_23" containing the entire glossentry file contents.
This seems to be a bug in the DITA OT which manifests when the glossarylist contains a locktitle="yes" navtitle="Glossar" set on it. If you remove the navtitle/locktitle attributes the transformation should work.
You can add a new bug for the DITA Open Toolkit here:
http://sourceforge.net/tracker/?group_i ... tid=725074

You can also try as a workaround to edit the OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\demo\fo\xsl\common\topicmerge.xsl file, search for the line:
<xsl:if test="contains($isNotTopicRef,'false')">
and remove the xsl:if tag but leave its contents in place.
But I do not know if this fix would produce side effects.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
susannecm
Posts: 114
Joined: Wed Mar 17, 2010 1:04 pm

Re: DITA bookmap conversion problem

Post by susannecm »

Hi Radu,

sorry for getting back to this so late - I had to work on something different. The problem is indeed caused by the navtitle attribute (with or without locktitle).

Will report a bug ...

Thanks for your help

Susanne
Post Reply