DITA to PDF with tack changes PI.

Here should go questions about transforming XML with XSLT and FOP.
Seong woong Kwon
Posts: 3
Joined: Sun Aug 31, 2014 5:08 am

DITA to PDF with tack changes PI.

Post by Seong woong Kwon » Sun Aug 31, 2014 5:23 am


I am a complete novice of DITA.

I want to render the dita file to pdf, with oxygen track channge options.

such like, oxy_delete contents are printed red color with change line, and oxy_insert contents are printed blue color in pdf file.

but I don't know how to process insert contents.

I customized xsl files like this.

Code: Select all

  <xsl:template match="processing-instruction('oxy_insert_start')" >
<fo:block color="blue">
<xsl:value-of select="following::text()[. << current()/following::processing-instruction('oxy_insert_end')[1]]"/>
but, content printed twice, like exampleexample.

how can i print the content once, like example.

Any Advice Thank you.

Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Re: DITA to PDF with tack changes PI.

Post by george » Mon Sep 29, 2014 2:04 pm


The processing of track changes is a little more difficult - for example in your XLST fragment you assume that after the start marker you have only text until the end marker - and this may not be the case, you may have other elements in that insert block.
Specifically in your case, the second occurrence of the text probably appears from the place that calls apply-templates just before your xsl:template with match="processing-instruction('oxy_insert_start')" matches. You may want to match also on text() for which the preceding node is the oxy_insert_start PI and do nothing in that template.

Best Regards,
George Cristian Bina

Posts: 7580
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA to PDF with tack changes PI.

Post by Radu » Fri Oct 28, 2016 9:31 am


Starting with Oxygen 18.1 which we released a couple of weeks ago, Oxygen change tracking information will also be visible in the WebHelp and classic PDF outputs by enabling the show.changes.and.comments parameter.

Radu Coravu
<oXygen/> XML Editor

Post Reply