Page 1 of 1

DITA LINK INSIDE TOPIC

Posted: Thu Sep 11, 2014 4:54 pm
by Le Basque
Hi,

I want to make a link within a topic

Code: Select all


<li>“Classements” <xref href="aaa">[AAA]</xref> <xref href="bbb">[BBB]</xref> [CCC] [DDD].</li>
...
<entry id="bbb">[BBB]. ccccccc </entry>
...
<p id="aaa">[AAA]. dfdfdf fdffdfd fdffdfdf </p>
In PDF link is OK but message error in processor :

Code: Select all

ID Système: D:\topics\to_xx.dita
Scénario: DITA Map PDF
fichier Input: D:\topics\to_xx.dita
Nom du moteur: DITA-OT
Gravité: error
Description: [DOTX031E]: The file file:/D:/topics/temp/pdf/aaaa is not available to resolve link information. The location of this problem was at (File = D:\topics\to_xx.dita, Element = xref:1)
URL: http://dita-ot.sourceforge.net/readme/DITA-messages.html#msgs__DOTX031E
Exist a solution ?
thank you

Re: DITA LINK INSIDE TOPIC

Posted: Fri Sep 12, 2014 8:33 am
by Radu
Hi,

Even if the link is in the same file, it should still refer to the element by adding the topic ID to the path like:

Code: Select all


<xref href="#topicID/aaa">
Please see the specs:

http://docs.oasis-open.org/dita/v1.2/os ... /xref.html

at the part which states:
If you are linking within the same file, you can leave off the "filename.dita" part. So, for a section with the ID "mysection", you should use:

#topicid/mysection
Regards,
Radu

Re: DITA LINK INSIDE TOPIC

Posted: Fri Sep 12, 2014 10:30 am
by Le Basque
Thank you


I used <xref href="to_xx.dita#aaa">

Re: DITA LINK INSIDE TOPIC

Posted: Fri Sep 12, 2014 10:32 am
by Radu
Hi,

You should have used:

Code: Select all

<xref href="path/to/target.dita#topicID/elementID">
If you work in Oxygen's Author visual editing mode you can use Oxygen's "Cross Reference" action to insert a reference with the proper syntax.

Regards,
Radu