DITA to PDF with tack changes PI.
Here should go questions about transforming XML with XSLT and FOP.
-
- 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.
but, content printed twice, like exampleexample.
how can i print the content once, like example.
Any Advice Thank you.
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>
how can i print the content once, like example.
Any Advice Thank you.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: DITA to PDF with tack changes PI.
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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA to PDF with tack changes PI.
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service