Page 1 of 1

linking attribute

Posted: Thu Nov 13, 2008 9:50 am
by julie
Hi
Can anybody explain how linking attribute works in DITA? How do the sourceonly and targetonly links?

Thanks
Julie

Re: linking attribute

Posted: Thu Nov 13, 2008 11:06 am
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