Page 1 of 1

DITA OT builds fail with v20, works with v19

Posted: Tue Jul 24, 2018 8:49 pm
by maglid
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)

Re: DITA OT builds fail with v20, works with v19

Posted: Wed Jul 25, 2018 9:59 am
by Costin
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

Re: DITA OT builds fail with v20, works with v19

Posted: Tue Mar 10, 2020 11:49 am
by annetteb
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

Re: DITA OT builds fail with v20, works with v19

Posted: Tue Mar 10, 2020 12:26 pm
by Radu
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

Re: DITA OT builds fail with v20, works with v19

Posted: Tue Mar 10, 2020 3:50 pm
by annetteb
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

Re: DITA OT builds fail with v20, works with v19

Posted: Tue Mar 10, 2020 5:25 pm
by Radu
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:

Code: Select all

<xsl:sequence select="()"/>
Regards,
Radu