DITA LINK INSIDE TOPIC

Post here questions and problems related to editing and publishing DITA content.
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

DITA LINK INSIDE TOPIC

Post 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
Radu
Posts: 9423
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA LINK INSIDE TOPIC

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Re: DITA LINK INSIDE TOPIC

Post by Le Basque »

Thank you


I used <xref href="to_xx.dita#aaa">
Radu
Posts: 9423
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA LINK INSIDE TOPIC

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply