Remove xref-link in pdf

Post here questions and problems related to editing and publishing DITA content.
Glimmerino
Posts: 24
Joined: Mon Aug 24, 2015 11:37 pm

Remove xref-link in pdf

Post 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
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Remove xref-link in pdf

Post 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
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Glimmerino
Posts: 24
Joined: Mon Aug 24, 2015 11:37 pm

Re: Remove xref-link in pdf

Post by Glimmerino »

Thank you!

This was very helpful, as always.
Post Reply