Specifying Saxon version for DITA-OT?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 3
- Joined: Thu Sep 08, 2016 6:30 pm
Specifying Saxon version for DITA-OT?
Hi All,
In my DITA-OT plugin (3.6.1) I'm using the <saxon:doctype> extension to set the DOCTYPE of result documents. When I test the plugin in Oxygen, the Saxon extensions have no effect, and I get log messages of the form:
[ACME Process] /usr/local/bin/DITA-OT/dita-ot-3.6.1/plugins/com.acme.process/cfg/xsl/ProcessACME.xsl:553:63: Warning! saxon:doctype is not recognized as a Saxon instruction. Saxon extensions require Saxon-PE or higher
My Oxygen preferences specify Saxon-PE as my XSLT engine. Am I missing an option to set the default XSLT processor for DITA-OT transformation scenarios? (The base XSLT stylesheet does operate as expected when tested in an Oxygen XSLT transformation scenario).
TIA!
-Alan Houser
In my DITA-OT plugin (3.6.1) I'm using the <saxon:doctype> extension to set the DOCTYPE of result documents. When I test the plugin in Oxygen, the Saxon extensions have no effect, and I get log messages of the form:
[ACME Process] /usr/local/bin/DITA-OT/dita-ot-3.6.1/plugins/com.acme.process/cfg/xsl/ProcessACME.xsl:553:63: Warning! saxon:doctype is not recognized as a Saxon instruction. Saxon extensions require Saxon-PE or higher
My Oxygen preferences specify Saxon-PE as my XSLT engine. Am I missing an option to set the default XSLT processor for DITA-OT transformation scenarios? (The base XSLT stylesheet does operate as expected when tested in an Oxygen XSLT transformation scenario).
TIA!
-Alan Houser
-
- Posts: 9414
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Specifying Saxon version for DITA-OT?
Hi Alan,
Why are you not setting the doctype using the xsl:result-document's functionality?
Indeed Oxygen has in its libraries folder a licensed version of Saxon Enterprise Edition.
The DITA Open Toolkit comes bundled with a Saxon Home Edition and some time ago we decided that by default we should use the standard DITA OT libraries for publishing in order for people to obtain the same results as when running from a command line.
If you edit the transformation scenario you are using, in the "Advanced" tab click the "Libraries" list and uncheck the "Allow Oxygen to..." checkbox.
Remove the first two references (references which are to the DITA OT's Saxin) in the list or move then down so that they are the last in the list. Then try again to publish.
Regards,
Radu
Why are you not setting the doctype using the xsl:result-document's functionality?
Code: Select all
<xsl:result-document doctype-public="abc" doctype-system="def">
</xsl:result-document>
The DITA Open Toolkit comes bundled with a Saxon Home Edition and some time ago we decided that by default we should use the standard DITA OT libraries for publishing in order for people to obtain the same results as when running from a command line.
If you edit the transformation scenario you are using, in the "Advanced" tab click the "Libraries" list and uncheck the "Allow Oxygen to..." checkbox.
Remove the first two references (references which are to the DITA OT's Saxin) in the list or move then down so that they are the last in the list. Then try again to publish.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Thu Sep 08, 2016 6:30 pm
Re: Specifying Saxon version for DITA-OT?
Hi Radu,
Wait, what? <xsl:result-document> supports doctype-public and doctype-system? I did not realize this.
Also good to know how to change the XSLT engine used by a DITA-OT transformation scenario.
Thank you for your usual helpful reply!
-Alan Houser
Wait, what? <xsl:result-document> supports doctype-public and doctype-system? I did not realize this.
Also good to know how to change the XSLT engine used by a DITA-OT transformation scenario.
Thank you for your usual helpful reply!
-Alan Houser
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)
- ↳ 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