[xslt] Failed to process C:\Users\greg.wait\Documents\Testing\Temp\oxygen_dita_temp\stage1.xml

GregWait
Posts: 4

[xslt] Failed to process C:\Users\greg.wait\Documents\Testing\Temp\oxygen_dita_temp\stage1.xml

Tue Jul 25, 2017 6:41 pm

Hopefully this is a pretty straightforward issue where I've failed to account for some value somewhere...

I've attempted to "clone" a custom PDF plugin I created to create a new variant with slight changes. (I've done this successfully in the past.) I've been troubleshooting this for most of a week, and have found a number of places where values were missing from plugin or catalog files. Each fix has resulted in the plugin getting further along, but now I've hit a wall when it tries to process stage1.xml.

Here's the code from just before and after it fails:

********************************************************************
transform.topic2fo.main:
[makeurl] Setting artworkPrefixUrl to URL file:/C:/Users/greg.wait/Documents/SENSUS/YSI/Testing/Temp/oxygen_dita_temp/
[makeurl] Setting dita.map.output.dir.url to URL file:/C:/Users/greg.wait/Documents/SENSUS/YSI/Testing/Temp/oxygen_dita_temp/
[makeurl] Setting work.dir.url to URL file:/C:/Users/greg.wait/Documents/SENSUS/YSI/Testing/Temp/oxygen_dita_temp/
[makeurl] Setting customization.dir.url to URL file:/C:/DITA/dita-ot-2.3.2/plugins/com.ysi-techpubs.pdf/cfg/
[makeurl] Setting user.input.dir.url to URL file:/C:/Users/greg.wait/AppData/Local/Temp/OxygenXMLTemp/ditaTemporaryOutputDir-1500996576345/t1/t2/t3/t4/t5/
[makeurl] Setting variable.file.url to URL file:/C:/Users/greg.wait/Documents/SENSUS/YSI/Testing/Temp/oxygen_dita_temp/strings.1568076578.xml
Property "args.artlbl" has not been set
[xslt] Using class org.apache.tools.ant.taskdefs.optional.TraXLiaison
[xslt] Processing C:\Users\greg.wait\Documents\SENSUS\YSI\Testing\Temp\oxygen_dita_temp\stage1.xml to C:\Users\greg.wait\Documents\SENSUS\YSI\Testing\Temp\oxygen_dita_temp\stage2.fo
[xslt] Loading stylesheet C:\DITA\dita-ot-2.3.2\plugins\com.ysi-techpubs.pdf\xsl\fo\ysi-topic2fo_shell.xsl
Apache resolver library found, xml-commons resolver will be used
[xslt] Failed to process C:\Users\greg.wait\Documents\SENSUS\YSI\Testing\Temp\oxygen_dita_temp\stage1.xml
[antcall] Exiting C:\DITA\dita-ot-2.3.2\build.xml.
[antcall] Exiting C:\DITA\dita-ot-2.3.2\build.xml.

BUILD FAILED
C:\DITA\dita-ot-2.3.2\build.xml:44: The following error occurred while executing this line:
C:\DITA\dita-ot-2.3.2\plugins\org.dita.pdf2\build.xml:121: The following error occurred while executing this line:
C:\DITA\dita-ot-2.3.2\plugins\org.dita.pdf2\build.xml:276: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.types.XMLCatalog$ExternalResolver.resolve(Unknown Source)
at org.apache.tools.ant.types.XMLCatalog.resolve(Unknown Source)
at net.sf.saxon.style.XSLGeneralIncorporate.getIncludedStylesheet(XSLGeneralIncorporate.java:104)
at net.sf.saxon.style.XSLStylesheet.spliceIncludes(XSLStylesheet.java:754)
at net.sf.saxon.style.XSLGeneralIncorporate.getIncludedStylesheet(XSLGeneralIncorporate.java:168)
at net.sf.saxon.style.XSLStylesheet.spliceIncludes(XSLStylesheet.java:754)
at net.sf.saxon.style.XSLStylesheet.preprocess(XSLStylesheet.java:676)
at net.sf.saxon.PreparedStylesheet.setStylesheetDocument(PreparedStylesheet.java:331)
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:163)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:300)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(TraXLiaison.java:317)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:178)
at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:876)
at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:414)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: javax.xml.transform.TransformerException: Malformed URL plugin:org.dita.base:xsl/common/dita-utilities.xsl(base file:/C:/DITA/dita-ot-2.3.2/plugins/org.dita.pdf2/xsl/fo/topic2fo.xsl)
at org.apache.xml.resolver.tools.CatalogResolverXerces.resolve(Unknown Source)
... 60 more
Caused by: java.net.MalformedURLException: unknown protocol: plugin
at java.net.URL.<init>(URL.java:600)
at java.net.URL.<init>(URL.java:490)
... 61 more

Total time: 2 seconds
********************************************************************

Any help pointing me to the issue will be greatly appreciated.

Regards,
Greg
cosmin_andrei
Posts: 23

Re: [xslt] Failed to process C:\Users\greg.wait\Documents\Testing\Temp\oxygen_dita_temp\stage1.xml

Wed Jul 26, 2017 12:07 pm

Hi Greg,

Thank you for contacting us.

Just to make sure you performed all prerequisites, have you run the DITA OT Integrator before cloning your custom PDF plugin?

This is available as a predefined transformation scenario in the Configure Transformation Scenario(s) dialog. Note that you need to run oXygen with administrative rights when you run the Integrator.
Running the DITA OT Integrator is necessary for the customizations and transtypes coming from your plugin to be added to your transformation scenarios.

Detailed information about running the DITA OT Integrator are available in our User-Guide, at:
https://www.oxygenxml.com/doc/versions/ ... lugin.html

Let us know if you need further assistance.
Regards,
Cosmin
--
Cosmin Andrei
oXygen XML Editor and Author Support
GregWait
Posts: 4

Re: [xslt] Failed to process C:\Users\greg.wait\Documents\Testing\Temp\oxygen_dita_temp\stage1.xml

Wed Aug 09, 2017 8:57 pm

Cosmin,

Thanks for getting back to me. In answer to your question, no, I had not run the Integrator, but I never do, and I've successfully added custom plugins and run them before without using it.

Just to be sure, I ran the Integrator now, and it did not change anything. After running the Integrator, the transform seems to fail in roughly the same way:

Caused by: javax.xml.transform.TransformerException: Malformed URL plugin:org.dita.base:xsl/common/dita-utilities.xsl(base file:/C:/DITA/dita-ot-2.3.2/plugins/com.ysi-test.pdf/xsl/fo/topic2fo_shell_fop.xsl)
at org.apache.xml.resolver.tools.CatalogResolverXerces.resolve(Unknown Source)
... 58 more
Caused by: java.net.MalformedURLException: unknown protocol: plugin
at java.net.URL.<init>(URL.java:600)
at java.net.URL.<init>(URL.java:490)
... 59 more
Radu
Posts: 5380

Re: [xslt] Failed to process C:\Users\greg.wait\Documents\Testing\Temp\oxygen_dita_temp\stage1.xml

Thu Aug 10, 2017 8:18 am

Hi Greg,

Without looking at your plugin's contents it's hard to say what went wrong. If you want further help if possible you could share with us your plugin + the steps that you take to use the plugin from Oxygen using our feedback form and we can try to find some time to look into it:

https://www.oxygenxml.com/techSupport.html

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 2 guests