Page 1 of 1

Remove xref-link in pdf

Posted: Thu Feb 23, 2017 5:16 pm
by Glimmerino
Hi.

I have several dita-topics that I use to publish both pdf and html. The problem is that I only want the html-output to generate links (using the <xref> element) at some occasions. Is there any way to individually set the <xref> element to only generate links for html and not pdf? There does not seem to be any "print" attribute for the <xref> element.

Regards
Kristian

Re: Remove xref-link in pdf

Posted: Fri Feb 24, 2017 5:39 pm
by radu_pisoi
Hi,

A possibility to achieve your requirements is to use the DITA Conditional Processing mechanism. For your case, a sample DITA snapshot that uses the deliveryTarget conditional processing attribute is:

Code: Select all

<p>Chrysanthemums, called 'mums', are a 
<xref keyref="genus" format="dita" deliveryTarget="html">genus</xref><ph deliveryTarget="pdf">genus</ph> of ...</p>
Move about DITA conditional profiling could be found in the next links:
* oXygen video demonstration
http://oxygenxml.com/demo/DITA_Profiling.html
* DITA Specification
https://www.oxygenxml.com/dita/1.3/spec ... dproc.html

Re: Remove xref-link in pdf

Posted: Tue Feb 28, 2017 11:24 pm
by Glimmerino
Thank you!

This was very helpful, as always.