XREF to DITAMAP doesn't work for any output

Post here questions and problems related to editing and publishing DITA content.
MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

XREF to DITAMAP doesn't work for any output

Post by MyMoon »

Hi.
I'm trying to make a reference to DITAMAP.
This row:

Code: Select all

<xref href="orgm010.ditamap" format="ditamap"/>
is shown in Author mode properly, as a hyperlink, but is not a hyperlink for any output, HTML or PDF. Even the <title> content is not shown.
This row

Code: Select all

<xref href="orgm010.ditamap#orgm010" format="ditamap"/>
is shown in Author mode as "Referenced topic ID "orgm010" not found", but this row is builded with the wizard.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: XREF to DITAMAP doesn't work for any output

Post by Radu »

Hi,

As far as I know the standard does not discuss what the behavior in this case should be and the publishing also does not work with such links to DITA Maps, especially that DITA submaps are treated as transparent and when you refer from your DITA Map to another DITA map, it's as if the referenced topic are included in place in the larger DITA Map.
As a workaround you can create a topic for your "chapter" and in the DITA Map have a topicref to that topic and all other topicrefs inside the topicref to the topic. Then add links to the topic instead of the map.

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