[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: if result-document filename='con.xml' -> java erro

Subject: Re: if result-document filename='con.xml' -> java error?!
From: António Mota <xptm@xxxxxxx>
Date: Mon, 20 Dec 2004 17:35:23 +0000
if result
If you're in Windows, con stands for console, so the problem is probably
there...

Quoting davidpbrown <lists@xxxxxxxxxxxxxxxxx>:

> 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>
 Hello world!</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
>
>





O SAPO ja esta livre de vmrus com a Panda Software, fique vocj tambim!
Clique em: http://antivirus.sapo.pt

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.