Thank you Michael,
You were right. The -t option did help to find the location of the file.
For saxon 6.5.3 the -t option doesn't seem to give the location of the file
created,
is this correct?
Thanks again
Erwin
-----Ursprüngliche Nachricht-----
Von: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk]
Gesendet: Donnerstag, 18. September 2003 16:53
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: RE: [xsl] saxon 7.6.5 in SMLSpy 5 rel. 4 and
xsl:result-document
It almost certainly has created the result file, but not where you
expect it. It's likely to depend on how XMLSpy sets the current
directory. It's safer in xsl:result-document to use an absolute URI,
especially if you don't have control over how the processor is called.
If you set the -t option on the Saxon command line it tells you the full
path names of the files created.
Michael Kay
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Kloeck, Erwin
Sent: 18 September 2003 13:07
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] saxon 7.6.5 in SMLSpy 5 rel. 4 and xsl:result-document
Hi,
I am using XMLSpy 5 rel. 4 and saxon 7.6.5 as XSLT Processor.
I do this with the following instruction in Tools > Options... > XSL
java -cp
D:\Programme\net\sourceforge\saxon\7.6.5\saxon7.jar
net.sf.saxon.Transform -o %2 %1 %3
I am using j2sdk1.4.2.
When I process the following xsl file from within XMLSpy, I
get no error message but I also don't get the file
"concat.result.xml". Everything works as expected when I call
saxon from the comand line.
Anybody know what I'd doing wrong?
Thanks a lot.
Erwin
------------ concat.xsl ------------
<?xml version="1.0" encoding="UTF-8"?>
<?xmlspysamplexml D:\projects\ehecatl\web\xml\concat.xml?>
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output name="xml-format" method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:result-document href="concat.result.xml"
format="xml-format" >
<xsl:text disable-output-escaping="yes">
<top>
</xsl:text>
<xsl:for-each select="/concat/file">
<xsl:copy-of
select="document(@source)"/>
</xsl:for-each>
<xsl:text disable-output-escaping="yes">
</top>
</xsl:text>
</xsl:result-document>
</xsl:template>
</xsl:stylesheet>
------------ concat.xml ------------
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl"
href="D:\projects\ehecatl\web\xml\concat.xsl"?>
<concat
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="concat.xsd">
<file source="file1.xml"/>
<file source="file2.xml"/>
<file source="file3.xml"/>
</concat>
..............................
Erwin Kloeck
Produktentwicklung
Oestreicher + Wagner
Medientechnik GmbH
Frankenthaler Strasse 20
D-81539 Muenchen
Fon +49 (0)89-68961 216
Fax +49 (0)89-68961 271
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list