This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Re : XSLT with XML-Spy
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: Re : [xsl] XSLT with XML-Spy
- From: Mark Feblowitz <mfeblowitz at frictionless dot com>
- Date: Mon, 30 Jul 2001 11:16:33 -0400
- Cc: "'support at xmlspy dot org'" <support at xmlspy dot org>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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:
http://www.biglist.com/lists/xsl-list/archives/200104/msg00504.html
http://www.biglist.com/lists/xsl-list/archives/200003/msg00791.html
----------------------------------------------------------------------------
----
Mark Feblowitz [t] 617.715.7231
Frictionless Commerce Incorporated [f] 617.495.0188
XML Architect [e]
mfeblowitz@frictionless.com
400 Technology Square, 9th Floor
Cambridge, MA 02139
www.frictionless.com
-----Original Message-----
From: ralf_schroeder@peoplesoft.com [mailto:ralf_schroeder@peoplesoft.com]
Sent: Monday, July 30, 2001 10:13 AM
To: XSL-List@lists.mulberrytech.com
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:
\user\x
ml\resume\xsl\RSresume.xsl c:\temp\result.xml
produces.....
C:\User\java>set CLASSPATH=.;c:\user\java\xerces.jar;c:
\user\java\xalan.jar;.;c:
\user\java\xerces.jar;c:\user\java\xalan.jar;c:\user\java\fop.jar;c:
\user\java\w
3c.jar;c:\user\java\jimi-1.0.jar;c:
\pt814rc7.mss\appserv\classes\MyTest.class;c:
\pt814rc7.mss\appserv\classes\heXMLtoPDF.class;c:
\UserApps\wh2fo\WH2FO_0_1_7\bin
s\wh2fo_0_1_7_bin.jar
C:\User\java>java org.apache.xalan.xslt.Process -in c:
\user\xml\resume\xml\RSres
ume.xml -xsl c:\user\xml\resume\xsl\RSresume.xsl -out c:\temp\result.xml
XSLT Error (javax.xml.transform.TransformerConfigurationException): File
"c:\use
r\xml\resume\xsl\RSresume.xsl" not found.
However,
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 !
Ralf
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list