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 »

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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: DITA to PDF with tack changes PI.

Post 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
George Cristian Bina
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA to PDF with tack changes PI.

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply