Page 1 of 1

DITA to PDF with tack changes PI.

Posted: Sun Aug 31, 2014 5:23 am
by Seong woong Kwon
Hi.

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]]"/>
</fo:block>
</xsl:template>
but, content printed twice, like exampleexample.

how can i print the content once, like example.

Any Advice Thank you.

Re: DITA to PDF with tack changes PI.

Posted: Mon Sep 29, 2014 2:04 pm
by george
Hi,

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

Re: DITA to PDF with tack changes PI.

Posted: Fri Oct 28, 2016 9:31 am
by Radu
Hi,

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.

Regards,
Radu