RE: Re : [xsl] XSLT with XML-Spy

Subject: RE: Re : [xsl] XSLT with XML-Spy
From: Mark Feblowitz <mfeblowitz@xxxxxxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 11:16:33 -0400
Have you tried using a proper file URI?

I use the following to run Xalan from within XML Spy:

java org.apache.xalan.xslt.Process -in "file:/%1" -xsl "file:/%3"  -out "%2"

Interestingly, the "file:" will not work in the -out position, but is also
not required (!?). 

Xalan is a java program and therefore requires the use of file URIs for
specifying the location (and driver letter) of the command line files. I
believe that sometime in the past java under windows would allow a
non-standard file path, but this was tightened up.

In general, you may have to mess around with the direction of the slashes
and the number of slashes after the file, depending on the xsl processor
that you're using: 

Mark Feblowitz                                   [t] 617.715.7231
Frictionless Commerce Incorporated     [f] 617.495.0188 
XML Architect                                     [e]
400 Technology Square, 9th Floor 
Cambridge, MA 02139  

 -----Original Message-----
From: 	ralf_schroeder@xxxxxxxxxxxxxx [mailto:ralf_schroeder@xxxxxxxxxxxxxx]

Sent:	Monday, July 30, 2001 10:13 AM
To:	XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:	Re : [xsl] XSLT with XML-Spy

Hi there,

I am seeing the same problem as Andre. I can't get xalan to process my
transformation in XMLspy. However, it does not successfully run on the
command line either, unless I have the xalan.jar and the xml/xsl files in
the same directory. I tried cleaning the classpath and placing my
directories in the PATH, but no success.

C:\User\java>c:\user\java\runxalan c:\user\xml\resume\xml\RSresume.xml c:
ml\resume\xsl\RSresume.xsl c:\temp\result.xml


C:\User\java>set CLASSPATH=.;c:\user\java\xerces.jar;c:

C:\User\java>java org.apache.xalan.xslt.Process -in c:
ume.xml -xsl c:\user\xml\resume\xsl\RSresume.xsl -out c:\temp\result.xml

XSLT Error (javax.xml.transform.TransformerConfigurationException): File
r\xml\resume\xsl\RSresume.xsl" not found.


C:\User\java>runxalan RSresume.xml RSresume.xsl c:\temp\result.xml

does work fine. Any idea how I can get xalan to pick up files outside its
own directory ?

Thanks !


 XSL-List info and archive:

 XSL-List info and archive:

Current Thread