[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
con.? is an illegal filename in windows. Con represents the console, com1.? would be illegal too.
Joe
RE: [xsl] if result-document filename='con.xml' -> java error?!
Subject: RE: [xsl] if result-document filename='con.xml' -> java error?! From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx> Date: Mon, 20 Dec 2004 16:48:58 +0000 |
con.? is an illegal filename in windows. Con represents the console, com1.? would be illegal too.
Joe
Hello world!</xsl:text>From: "davidpbrown" <lists@xxxxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: [xsl] if result-document filename='con.xml' -> java error?! Date: Mon, 20 Dec 2004 16:35:06 -0000
Not sure what to make of this.. am I missing something obvious?
I'm getting a java error if a [xsl:result-document]'s filename is 'con.'+file extension (eg con.xml or con.txt)
.. but the ONLY word this appears to happen with - is 'con' ..
Error at xsl:text on line 6 of file:/C:/somedir/test.xsl
java.io.FileNotFoundException: C:\somedir\con.xml (The system cannot find the
file specified)
Transformation failed: Run-time errors were reported.
My java's very poor so can't suggest if this is java or saxon causing the error.
--- .xsl example ---
<?xml version="1.0"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/"> <xsl:result-document href="file:///C:/somedir/con.xml"> <xsl:text>
</xsl:result-document> </xsl:template>
<xsl:template match="text()|@*"/> </xsl:transform> --- blank .xml ------- <blank/> ---------- java -jar C:\Saxon\saxon8.jar -w0 blank.xml test.xsl >log_test.xml
(this with Saxon 8.1.1 + java 1.4.2) ?
davidpbrown
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] if result-document filena, António Mota | Thread | Re: [xsl] if result-document filena, António Mota |
Re: [xsl] if result-document filena, Julian Reschke | Date | RE: [xsl] Comparing nodes in axis, António Mota |
Month |