DITA to PDF with tack changes PI.

Here should go questions about transforming XML with XSLT and FOP.
Seong woong Kwon
Posts: 3

DITA to PDF with tack changes PI.

Sun Aug 31, 2014 5:23 am

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()[. &lt;&lt; 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: 2100

Re: DITA to PDF with tack changes PI.

Mon Sep 29, 2014 2:04 pm

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: 5224

Re: DITA to PDF with tack changes PI.

Fri Oct 28, 2016 9:31 am

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest