DITA 2.0 - topic2fo.xsl
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 19
- Joined: Sat Oct 26, 2013 6:31 am
DITA 2.0 - topic2fo.xsl
Hi, am making to move to DITA 2.0, and am working through a couple of issues.
1. In DITA-OT 1.8.5 - ../org.dita.pdf2/cfg/xsl/fo/topic2fo.xsl file. At the end of the document, there was the following code to set the TOC levels:
<!-- Remaining parameters are not passed in with the default Ant code. -->
<xsl:param name="tocMaximumLevel" select="3"/>
<xsl:param name="ditaVersion" select="number(/*[contains(@class,' map/map ')]/@ditaarch:DITAArchVersion)"/>
This worked fine for me - but is not present in the corresponding file in DITA 2.0. I copied it across, and all works as before. Is this processing now done elsewhere in DIT 2.0
2. The other issue is with my footer customization. They work in DITA 2.0, except for the footer / header is not applied on the last page of each topic. It is as though I have to add a "insertBodyLastFooter" and Header?
Would appreciate any thoughts
1. In DITA-OT 1.8.5 - ../org.dita.pdf2/cfg/xsl/fo/topic2fo.xsl file. At the end of the document, there was the following code to set the TOC levels:
<!-- Remaining parameters are not passed in with the default Ant code. -->
<xsl:param name="tocMaximumLevel" select="3"/>
<xsl:param name="ditaVersion" select="number(/*[contains(@class,' map/map ')]/@ditaarch:DITAArchVersion)"/>
This worked fine for me - but is not present in the corresponding file in DITA 2.0. I copied it across, and all works as before. Is this processing now done elsewhere in DIT 2.0
2. The other issue is with my footer customization. They work in DITA 2.0, except for the footer / header is not applied on the last page of each topic. It is as though I have to add a "insertBodyLastFooter" and Header?
Would appreciate any thoughts
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA 2.0 - topic2fo.xsl
Hi Phil,
Sorry for the delay, the DITA OT 2.0 release notes are here:
http://www.dita-ot.org/2.0/readme/changes/rel2.0.html
So:
DITA-OT2.0.1\plugins\org.dita.pdf2\cfg\fo\attrs\basic-settings.xsl
You seem to have made changes directly to the topic2fo.xsl XSLT, ideally you would have created a PDF customization folder and overwrite only the templates that you wanted to modify:
http://www.oxygenxml.com/doc/ug-oxygen/ ... ation.html
About this remark:
You could probably try to compare the stylesheet:
DITA-OT2.0.1\plugins\org.dita.pdf2\xsl\fo\static-content.xsl
with the one in the DITA OT 1.8 and see the differences. Again, if you would have used the PDF customization approach, it could have made the upgrade easier.
Regards,
Radu
Sorry for the delay, the DITA OT 2.0 release notes are here:
http://www.dita-ot.org/2.0/readme/changes/rel2.0.html
So:
This parameter seems to have been completely removed, along with its usage from the DITA OT 2.0. It is assumed that the version is 1.1 and above. If you have customizations which have copied older templates which used this parameter you can also eliminate its usage.ditaVersion
The parameter declaration seems to have been moved in the XSL:tocMaximumLevel
DITA-OT2.0.1\plugins\org.dita.pdf2\cfg\fo\attrs\basic-settings.xsl
You seem to have made changes directly to the topic2fo.xsl XSLT, ideally you would have created a PDF customization folder and overwrite only the templates that you wanted to modify:
http://www.oxygenxml.com/doc/ug-oxygen/ ... ation.html
About this remark:
I'm not sure what's going on there because I do not know what your exact customizations are.The other issue is with my footer customization. They work in DITA 2.0, except for the footer / header is not applied on the last page of each topic. It is as though I have to add a "insertBodyLastFooter" and Header?
You could probably try to compare the stylesheet:
DITA-OT2.0.1\plugins\org.dita.pdf2\xsl\fo\static-content.xsl
with the one in the DITA OT 1.8 and see the differences. Again, if you would have used the PDF customization approach, it could have made the upgrade easier.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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