Page 1 of 1

XREF to DITAMAP doesn't work for any output

Posted: Thu Jul 18, 2019 12:39 pm
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.

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

Posted: Fri Jul 19, 2019 8:51 am
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