Diffences in Usage oXygen vs saxon @ commandline
Oxygen general issues.
-
- Posts: 2
- Joined: Wed Jul 20, 2016 7:15 pm
Diffences in Usage oXygen vs saxon @ commandline
Post by gerhardegger »
Hi all,
The following works fine in oXygen (using Saxon 9), but does not work on the commandline!
I have a problem with writing into a zip-file - i.e. a Docx-File.
<xsl:param name="template"/>
....
<xsl:variable name="filename"><xsl:text>zip:file:</xsl:text><xsl:value-of select="$template"/><xsl:text>!word/document.xml</xsl:text></xsl:variable>
.....
<xsl:result-document href="{$filename}">
<xsl:copy-of select="$content"/>
</xsl:result-document>
On the commandline I use: java -jar saxon9ee.jar testfile.xml xml2docx.xsl template=/Users/gerhard/xml2docx/Template.docx
Here is the error I get:
Error at xsl:result-document on line 261 of xml2docx.xsl:
Resolved URL is malformed: unknown protocol: zip
Resolved URL is malformed
What's wrong?
Thank you all for your replies
Gerhard
The following works fine in oXygen (using Saxon 9), but does not work on the commandline!
I have a problem with writing into a zip-file - i.e. a Docx-File.
<xsl:param name="template"/>
....
<xsl:variable name="filename"><xsl:text>zip:file:</xsl:text><xsl:value-of select="$template"/><xsl:text>!word/document.xml</xsl:text></xsl:variable>
.....
<xsl:result-document href="{$filename}">
<xsl:copy-of select="$content"/>
</xsl:result-document>
On the commandline I use: java -jar saxon9ee.jar testfile.xml xml2docx.xsl template=/Users/gerhard/xml2docx/Template.docx
Here is the error I get:
Error at xsl:result-document on line 261 of xml2docx.xsl:
Resolved URL is malformed: unknown protocol: zip
Resolved URL is malformed
What's wrong?
Thank you all for your replies

Gerhard
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Diffences in Usage oXygen vs saxon @ commandline
Hello,
You are using "zip:file:" which is an Oxygen specific protocol. This means it cannot possibly work outside of Oxygen.
Furthermore you are using "zip:file:" for writing (xsl:result-document) for which there is no workaround outside of Oxygen. For read-only access to files within ZIP archives you could use "jar:file:", which is supported by Java.
Regards,
Adrian
You are using "zip:file:" which is an Oxygen specific protocol. This means it cannot possibly work outside of Oxygen.
Furthermore you are using "zip:file:" for writing (xsl:result-document) for which there is no workaround outside of Oxygen. For read-only access to files within ZIP archives you could use "jar:file:", which is supported by Java.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Wed Jul 20, 2016 7:15 pm
Re: Diffences in Usage oXygen vs saxon @ commandline
Post by gerhardegger »
Oh ... I see
Anyway: Thanks for your reply!!
Best Regards, Gerhard

Anyway: Thanks for your reply!!
Best Regards, Gerhard
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