simonchristieis
Programmer
Not exactly on subject but I wasn't sure where it would fit.
But here goes:
I am trying to tranform an xml file using xslt using the saxon parser, the saxon parser is called through a java line run through dos on windows server.
The problem lies when the xslt has a document('Output.xml') xpath statement within an apply-templates.
Command Line Call:
This is an extract of the xsl file that is failing:
The error that I'm given is here:
Anyone have any ideas ?
The xml and xsl are fine and the parameters are passed in correctly and all worked fine using the xerces parser.
Regards
Simon
But here goes:
I am trying to tranform an xml file using xslt using the saxon parser, the saxon parser is called through a java line run through dos on windows server.
The problem lies when the xslt has a document('Output.xml') xpath statement within an apply-templates.
Command Line Call:
Code:
(All on one line)
java -Xrs -Xmx512m
-Xbootclasspath/p:
\\server\shareddrive\Library\v1.0.5\saxon\saxon9.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-dom4j.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-dom.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-jdom.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-s9api.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-sql.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-xom.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-xpath.jar;
\\server\shareddrive\Library\v1.0.5\saxon\saxon9-xqj.jar
net.sf.saxon.Transform
-s:\\server\shareddrive\Data.xml
-xsl:\\server\shareddrive\Transform.xsl
-o:\\server\shareddrive\Output.xml
descriptionLocation=\\server\shareddrive\ExtraData.xml
This is an extract of the xsl file that is failing:
Code:
<xsl:apply-templates select="$descriptionFile/root"/>
The error that I'm given is here:
Code:
Recoverable error on line 30 of Transform.xsl:
FODC0002: Exception thrown by URIResolver: Invalid relative URI
{D:\shareddrive...}: Illegal character in opaque part at index 2:
D:\shareddrive\Output.xml
Anyone have any ideas ?
The xml and xsl are fine and the parameters are passed in correctly and all worked fine using the xerces parser.
Regards
Simon