Error with oXygen 23.1 and DITA-OT 2.4

Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Error with oXygen 23.1 and DITA-OT 2.4

Post by Patrik » Thu Jun 10, 2021 8:55 am

Hi,

I moved from oXygen 18.1 ro 23.1 but still need to use an old version of DITA-OT (2.4).

When running a dita transformation with "addOxygenJars" enabled I get several errors which I assume are the result of incompatible libraries:

Code: Select all

gen-list:
 [gen-list] Using Xerces grammar pool for DTD and schema caching.
 [gen-list] Processing file:/C:/Users/stellmap/AppData/Local/Temp/OxygenXMLTemp/ditaTemporaryOutputDir-hbl_myz_wpb/t1/t2/t3/t4/t5/Gruppe_001-Anfrage-Liste-der-Gruppen.dita
 [gen-list] Error at xsl:value-of on line 52 column 64 of xml2ser.xsl:
 [gen-list]   XPST0017: XPath syntax error at char 18 on line 52 in {serialize($dropNs)}:
 [gen-list]     Unknown system function serialize()
 [gen-list] 06:49:50.690 [main] ERROR ro.sync.ecss.persistance.external.b - javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
 [gen-list] javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
 [gen-list] 	at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176) ~[saxon-9.1.0.8.jar:?]
 [gen-list] 	at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139) ~[saxon-9.1.0.8.jar:?]
 [gen-list] 	at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:91) ~[saxon-9.1.0.8.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.o(Unknown Source) ~[oxygen.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.y(Unknown Source) ~[oxygen.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.p(Unknown Source) ~[oxygen.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.u(Unknown Source) ~[oxygen.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.g(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.bb(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.h(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.ecss.persistance.external.b.s(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.exml.editor.DocumentTypeRepository.reload(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.exml.editor.DocumentTypeRepository.<init>(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.exml.editor.DocumentTypeRepository.getInstance(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.c.h(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.c.getCatalogFiles(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at org.apache.xml.resolver.Catalog.loadSystemCatalogs(Catalog.java:566) [oxygen-patched-resolver.jar:1.2]
 [gen-list] 	at ro.sync.xml.catalogresolver.c.getPrivateCatalog(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.b.getCatalog(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at org.apache.xml.resolver.tools.CatalogResolverXerces.initializeCatalogs(CatalogResolverXerces.java:92) [oxygen-patched-resolver.jar:?]
 [gen-list] 	at org.apache.xml.resolver.tools.CatalogResolverXerces.<init>(CatalogResolverXerces.java:87) [oxygen-patched-resolver.jar:?]
 [gen-list] 	at org.apache.xml.resolver.tools.CatalogResolver.<init>(CatalogResolver.java:82) [oxygen-patched-resolver.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.e.<init>(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.CatalogResolverFactory$2.run(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_202]
 [gen-list] 	at ro.sync.xml.catalogresolver.CatalogResolverFactory.j(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.CatalogResolverFactory.getCatalogResolverInternalUse(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.CatalogURIResolver.resolveURI(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.catalogresolver.CatalogURIResolver.resolveURI(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.transformer.dita.remote.b.g(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.transformer.dita.remote.b.d(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.transformer.dita.remote.b.c(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at ro.sync.xml.transformer.dita.remote.b.emptyElement(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at org.ditang.relaxng.defaults.RelaxNGDefaultsComponent.emptyElement(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:435) [oxygen-patched-xerces.jar:?]
 [gen-list] 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:219) [oxygen-patched-xerces.jar:2.12.1-xml-schema-1.1]
 [gen-list] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1655) [oxygen-patched-xerces.jar:2.12.1-xml-schema-1.1]
 [gen-list] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:325) [oxygen-patched-xerces.jar:2.12.1-xml-schema-1.1]
 [gen-list] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [oxygen-patched-xerces.jar:?]
 [gen-list] 	at org.ditang.relaxng.defaults.RelaxDefaultsParserConfiguration.parse(Unknown Source) [oxygen.jar:?]
 [gen-list] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [oxygen-patched-xerces.jar:?]
 [gen-list] 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [oxygen-patched-xerces.jar:?]
 [gen-list] 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [oxygen-patched-xerces.jar:?]
 [gen-list] 	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) [?:1.8.0_202]
 [gen-list] 	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) [?:1.8.0_202]
 [gen-list] 	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) [?:1.8.0_202]
 [gen-list] 	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) [?:1.8.0_202]
 [gen-list] 	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) [?:1.8.0_202]
 [gen-list] 	at org.dita.dost.module.GenMapAndTopicListModule.processFile(GenMapAndTopicListModule.java:444) [dost.jar:?]
 [gen-list] 	at org.dita.dost.module.GenMapAndTopicListModule.processWaitList(GenMapAndTopicListModule.java:378) [dost.jar:?]
 [gen-list] 	at org.dita.dost.module.GenMapAndTopicListModule.execute(GenMapAndTopicListModule.java:224) [dost.jar:?]
 [gen-list] 	at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:70) [dost.jar:?]
 [gen-list] 	at org.dita.dost.invoker.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:222) [dost.jar:?]
 [gen-list] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) [ant.jar:1.9.7]
 [gen-list] 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) ~[?:?]
 [gen-list] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_202]
 [gen-list] 	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_202]
 [gen-list] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:?]
 [gen-list] 	at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Target.execute(Target.java:435) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Target.performTasks(Target.java:456) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) [ant.jar:?]
 [gen-list] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) [ant.jar:?]
 [gen-list] 	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) [ant.jar:?]
 [gen-list] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) [ant.jar:1.9.7]
 [gen-list] 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) ~[?:?]
 [gen-list] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_202]
 [gen-list] 	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_202]
 [gen-list] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:?]
 [gen-list] 	at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Target.execute(Target.java:435) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Target.performTasks(Target.java:456) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1376) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant.jar:?]
 [gen-list] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Main.runBuild(Main.java:854) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.Main.startAnt(Main.java:236) [ant.jar:1.9.7]
 [gen-list] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) [ant-launcher.jar:?]
 [gen-list] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) [ant-launcher.jar:?]
 [gen-list] Error at xsl:value-of on line 52 column 64 of xml2ser.xsl:
 [gen-list]   XPST0017: XPath syntax error at char 18 on line 52 in {serialize($dropNs)}:
 [gen-list]     Unknown system function serialize()
 [...]
Is this a known problem with an easy fix (e.g. by onl yusing specific libraries)?

Thanks and regards,
Patrik

Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: Error with oXygen 23.1 and DITA-OT 2.4

Post by Patrik » Thu Jun 10, 2021 2:26 pm

I just realized that with oXygen 18.1 I got the same errors - simply never saw them in the long log... :shock: Sorry for the confusion!

However, I have a real problem with my svg graphics: The dy-attribute of the text-elements has no effect for the PDF output when created with DITA-OT 2.4 out of oXygen 23.1. Here I'm really sure this works well with oXygen 18.1.

Again I'd expect any library added by oXygen to cause this behavior. However, the SVG preview in oXygen works fine. Any ideas where I could look for a solution?

Thanks and regards,
Patrik

alex_jitianu
Posts: 835
Joined: Wed Nov 16, 2005 11:11 am

Re: Error with oXygen 23.1 and DITA-OT 2.4

Post by alex_jitianu » Fri Jun 11, 2021 1:13 pm

Hi Patrik,

Regarding the exceptions, you probably use the fix.external.refs.com.oxygenxml parameter. The old version of DITA-OT (2.4) probably has an older version of Saxon that is missing that serialize() function. There are no repercussions though, the exception is simply logged, but the transformation continues normally. I will add an issue to not log the exception since it doesn't provide any useful information in this context.

One of my colleagues will answer the PDF related question soon.

Best regards,
Alex

Radu
Posts: 7531
Joined: Fri Jul 09, 2004 5:18 pm

Re: Error with oXygen 23.1 and DITA-OT 2.4

Post by Radu » Mon Jun 14, 2021 9:59 am

Hi Patrik,

I'm not sure about the SVG not being displayed properly when an old DITA OT version is run from Oxygen. How about if you run that old DITA OT from the command line?
Also how about if you produce the PDF using the DITA OT 3.6 bundled with Oxygen 23.1?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: Error with oXygen 23.1 and DITA-OT 2.4

Post by Patrik » Wed Jun 16, 2021 12:47 pm

Hi,

@Alex: Thanks for confirming that I can ignore that error! :)
@Radu: We have to stick to oXygen 18.1 for now anyway. And later the framework might be moved to the latest DITA-OT as well - or will be abandoned completely (I'm leaving the company and, thus, this topic...). So this is no more an issue. Thanks anyway.

Regards,
Patrik

Post Reply