linking attribute

Oxygen general issues.
julie
Posts: 61
Joined: Fri Jun 06, 2008 7:09 am

linking attribute

Post by julie »

Hi
Can anybody explain how linking attribute works in DITA? How do the sourceonly and targetonly links?

Thanks
Julie
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: linking attribute

Post by Radu »

Hi Julie,

Here is a good article about linking in <reltable>'s:
http://www.infomanagementcenter.com/ene ... second.htm
The sourceonly value creates only a link in the source topic to the target topic.
The targetonly value creates a link in the target topic to the source topic, which means that the source topic will not contain a link to the target topic.
For example:

Code: Select all


<reltable>
<relrow>
<relcell>
<topicref href="tasks/changingtheoil.xml" linking="sourceonly"/>
</relcell>
<relcell>
<topicref href="tasks/organizing.xml" linking="targetonly"/>
</relcell>
<relcell>
<topicref href="tasks/shovellingsnow.xml"/>
</relcell>
</relrow>
</reltable>
You can copy the sample reltable in the Oxygen samples/dita/sequence.ditamap map and see the transformation results.

The previous reltable means that the "changingtheoil.xml" task will only have links to other topics but will not be linked back.
The "organizing.xml" task will have no links to other topics but will be linked back.
The "shovellingsnow.xml" will have the default behaviour (link to all others and be linked back by all others).

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