DITA OT builds fail with v20, works with v19
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 75
- Joined: Mon Sep 28, 2009 8:10 am
DITA OT builds fail with v20, works with v19
I am running two transformation scenarios that uses a customized DITA OT v1.8.5 to produce pdf2 and D4P output. Both PDF and D4P produce output when I run it in Oxygen 19.
But when I run the same scenarios in Oxygen 20.1, they both fail. Partial PDF and D4P log files below. What do you think?
Thanks,
Mark
-----------------------
The pdf2 failure is this:
transform.topic2fo.main:
[xslt] Processing /Users/mgiffin/git/kafka-docs/temp/pdf/stage1a.xml to /Users/mgiffin/git/kafka-docs/temp/pdf/stage2.fo
[xslt] Loading stylesheet /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita.pdf2/xsl/fo/topic2fo_shell_xep.xsl
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita.pdf2/Customization/fo/xsl/custom.xsl:6:19: Warning! Unrecognized version 1.1: treated as 1.0
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl:7:4: Warning! Stylesheet module file:/Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:8:4: Warning! Stylesheet module file:/Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:291:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:309:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:369:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:382:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:1: Fatal Error! Leading '/' selects nothing: the context item is absent
[xslt] Failed to process /Users/mgiffin/git/kafka-docs/temp/pdf/stage1a.xml
-----------------------
The D4P failure is this:
dc-adjust-copy-to:
[echo] *
[echo] * Starting dc-adjust-copy-to...
[echo] *
[copy] Copying 1 file to /Users/mgiffin/git/kafka-docs/temp/xhtml
[adjust-copy-to] Transforming into /Users/mgiffin/git/kafka-docs/temp/xhtml
[adjust-copy-to] Processing /Users/mgiffin/git/kafka-docs/temp/xhtml/kafka.ditamap to /Users/mgiffin/git/kafka-docs/temp/xhtml/kafka.ditamap.copy-to
[adjust-copy-to] Loading stylesheet /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.adjust-copy-to/xsl/adjustCopyTo.xsl
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:291:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:309:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:369:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:382:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:1: Fatal Error! Leading '/' selects nothing: the context item is absent
[adjust-copy-to] Failed to process null
BUILD FAILED
/Users/mgiffin/git/tools/DITA-OT/build.xml:44: The following error occurred while executing this line:
/Users/mgiffin/git/tools/DITA-OT/plugins/com.cloudera.html5/build_cloudera_html5.xml:9: The following error occurred while executing this line:
/Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.adjust-copy-to/adjust-copy-to-preprocess.xml:59: javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(Unknown Source)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:300)
But when I run the same scenarios in Oxygen 20.1, they both fail. Partial PDF and D4P log files below. What do you think?
Thanks,
Mark
-----------------------
The pdf2 failure is this:
transform.topic2fo.main:
[xslt] Processing /Users/mgiffin/git/kafka-docs/temp/pdf/stage1a.xml to /Users/mgiffin/git/kafka-docs/temp/pdf/stage2.fo
[xslt] Loading stylesheet /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita.pdf2/xsl/fo/topic2fo_shell_xep.xsl
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita.pdf2/Customization/fo/xsl/custom.xsl:6:19: Warning! Unrecognized version 1.1: treated as 1.0
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl:7:4: Warning! Stylesheet module file:/Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:8:4: Warning! Stylesheet module file:/Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:291:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:309:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:369:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:382:3: Warning! The parent axis starting at a document node will never select anything
[xslt] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:1: Fatal Error! Leading '/' selects nothing: the context item is absent
[xslt] Failed to process /Users/mgiffin/git/kafka-docs/temp/pdf/stage1a.xml
-----------------------
The D4P failure is this:
dc-adjust-copy-to:
[echo] *
[echo] * Starting dc-adjust-copy-to...
[echo] *
[copy] Copying 1 file to /Users/mgiffin/git/kafka-docs/temp/xhtml
[adjust-copy-to] Transforming into /Users/mgiffin/git/kafka-docs/temp/xhtml
[adjust-copy-to] Processing /Users/mgiffin/git/kafka-docs/temp/xhtml/kafka.ditamap to /Users/mgiffin/git/kafka-docs/temp/xhtml/kafka.ditamap.copy-to
[adjust-copy-to] Loading stylesheet /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.adjust-copy-to/xsl/adjustCopyTo.xsl
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:291:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:309:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:369:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:382:3: Warning! The parent axis starting at a document node will never select anything
[adjust-copy-to] /Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.common.xslt/xsl/dita-support-lib.xsl:255:1: Fatal Error! Leading '/' selects nothing: the context item is absent
[adjust-copy-to] Failed to process null
BUILD FAILED
/Users/mgiffin/git/tools/DITA-OT/build.xml:44: The following error occurred while executing this line:
/Users/mgiffin/git/tools/DITA-OT/plugins/com.cloudera.html5/build_cloudera_html5.xml:9: The following error occurred while executing this line:
/Users/mgiffin/git/tools/DITA-OT/plugins/org.dita-community.adjust-copy-to/adjust-copy-to-preprocess.xml:59: javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(Unknown Source)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:300)
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: DITA OT builds fail with v20, works with v19
Hello,
Please note that DITA-OT 1.8 was deprecated in v19 and is no longer supported starting with version 20 of oXygen XML.
This was already mentioned in the "What's new" section.
I'm afraid that, if you strictly need to use the old DITA OT v1.8, you should stick with oXygen XML 19.
Regards,
Costin
Please note that DITA-OT 1.8 was deprecated in v19 and is no longer supported starting with version 20 of oXygen XML.
This was already mentioned in the "What's new" section.
I'm afraid that, if you strictly need to use the old DITA OT v1.8, you should stick with oXygen XML 19.
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 24
- Joined: Tue Apr 15, 2014 6:43 pm
Re: DITA OT builds fail with v20, works with v19
Hello Mark,
Have you been able to solve the issue without reinstalling Oxygen 19?
We have to update legacy documents that were built with DITA OT 1.8.5 and corresponding stylesheet plugin.
I have no time to modify the stylesheet plugin to make it compatible with more recent version of the DITA OT.
And I'd like to avoid reinstalling Oxygen 19 on the PC of several members of my team
Thanks & regards,
Annette
Have you been able to solve the issue without reinstalling Oxygen 19?
We have to update legacy documents that were built with DITA OT 1.8.5 and corresponding stylesheet plugin.
I have no time to modify the stylesheet plugin to make it compatible with more recent version of the DITA OT.
And I'd like to avoid reinstalling Oxygen 19 on the PC of several members of my team

Thanks & regards,
Annette
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA OT builds fail with v20, works with v19
Hi Annette,
Do you have exactly the same publishing failure, related to a problem reported in "DITA-OT/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl"?
If so, if you install Oxygen 20 or newer on your hard drive, please look in the Oxygen installation directory for the equivalent XSLT "OXYGEN_INSTALL_DIR\frameworks/dita/DITA-OT3.x/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl" and copy that XSLT over the equivalent one in the older DITA OT distribution you are attempting to use with Oxygen.
Regards,
Radu
Do you have exactly the same publishing failure, related to a problem reported in "DITA-OT/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl"?
If so, if you install Oxygen 20 or newer on your hard drive, please look in the Oxygen installation directory for the equivalent XSLT "OXYGEN_INSTALL_DIR\frameworks/dita/DITA-OT3.x/plugins/org.dita-community.common.xslt/xsl/relpath_util.xsl" and copy that XSLT over the equivalent one in the older DITA OT distribution you are attempting to use with Oxygen.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 24
- Joined: Tue Apr 15, 2014 6:43 pm
Re: DITA OT builds fail with v20, works with v19
Hi Radu,
Thanks for your help, I tried but it didn't work.
The error message is slightly different:
DITA-OT_185\plugins\net.sourceforge.dita4publishers.common.xslt\xsl\lib\dita-support-lib.xsl:207:1: Fatal Error! Leading '/' selects nothing: the context item is absent
and also:
D:\SVN\ifu_mt\Sources\Stylesheets\DITA-OT_185\plugins\org.dita.pdf2\build.xml:324: javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
My setup is the following: I'm running Oxygen 20.1 with a DITA OT 1.8.5 and a stylesheet plugin in a separate folder (this is a shared folder using SVN). I thought the saxon libraries were missing so I copied them to DITA-OT_185\lib\saxon (saxon.jar, saxon9ee.jar and saxon9-sql.jar). I'm not user where the issue comes from....
Annette
Thanks for your help, I tried but it didn't work.
The error message is slightly different:
DITA-OT_185\plugins\net.sourceforge.dita4publishers.common.xslt\xsl\lib\dita-support-lib.xsl:207:1: Fatal Error! Leading '/' selects nothing: the context item is absent
and also:
D:\SVN\ifu_mt\Sources\Stylesheets\DITA-OT_185\plugins\org.dita.pdf2\build.xml:324: javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
My setup is the following: I'm running Oxygen 20.1 with a DITA OT 1.8.5 and a stylesheet plugin in a separate folder (this is a shared folder using SVN). I thought the saxon libraries were missing so I copied them to DITA-OT_185\lib\saxon (saxon.jar, saxon9ee.jar and saxon9-sql.jar). I'm not user where the issue comes from....
Annette
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA OT builds fail with v20, works with v19
Hi Annette,
Let's try this, open the XSLT DITA-OT_185\plugins\net.sourceforge.dita4publishers.common.xslt\xsl\lib\dita-support-lib.xsl in Oxygen and manually perfom the changes described here:
https://github.com/dita-community/org.d ... acfbffe121
so find all places where the "/.." xpath expression is used and replace with something like:
Regards,
Radu
Let's try this, open the XSLT DITA-OT_185\plugins\net.sourceforge.dita4publishers.common.xslt\xsl\lib\dita-support-lib.xsl in Oxygen and manually perfom the changes described here:
https://github.com/dita-community/org.d ... acfbffe121
so find all places where the "/.." xpath expression is used and replace with something like:
Code: Select all
<xsl:sequence select="()"/>
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)
- ↳ 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