Resource-only topics publishing in TOCJS output

HeatherW
Posts: 8

Resource-only topics publishing in TOCJS output

Tue Jun 26, 2012 4:36 am

Hi, I have a resource-only topic that I use to store xrefs. This topic does not appear in PDF or HTML output, but when I run the TOCJS transformation, the resource-only topic appears in the contents pane.

Do you have any suggestions for how I can control this behaviour? The map is pasted below.

<map>
...
<mapref href="Glossary/glossary_html.ditamap" format="ditamap"/>
<keydef href="externalLinks.dita" format="dita" keys="links" processing-role="resource-only"/>
</map>
Radu
Posts: 5459

Re: Resource-only topics publishing in TOCJS output

Tue Jun 26, 2012 9:47 am

Hi Heather,

This looks like a bug in the TOCJS plugin which is not that well maintained by the DITA Open Toolkit.

Looking in this stylesheet:

[url]OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/tocjs/xsl/topicref.xsl[/url]

at this xsl:template:

Code: Select all

<xsl:template match="*[contains(@class, ' map/topicref ')]">...


it seems to be looking at the toc='no' attribute so you may want to try to also set this attribute on the resource-only topicref.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 5459

Re: Resource-only topics publishing in TOCJS output

Tue Jun 26, 2012 9:52 am

Hi Heather,

I also added an issue for this on the DITA OT bugs list:

https://github.com/dita-ot/dita-ot/issues/1311

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
HeatherW
Posts: 8

Re: Resource-only topics publishing in TOCJS output

Thu Jun 28, 2012 2:51 am

Thanks Radu, it works now. Much appreciated, as always :)

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest