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

File URI / EXPath / Saxon

Subject: File URI / EXPath / Saxon
From: Martynas Jusevicius <martynas.jusevicius@xxxxxxxxx>
Date: Sat, 21 Nov 2009 01:23:14 +0100
 File URI / EXPath / Saxon
Hey list,

in my XSLT, I'm passing an absolute URI of the file which I want
EXPath to create for me as a parameter.

Using getRealPath() in Java gives backslashes on Windows, so I replace
them with forward ones and this is the value I pass:
file:///C:/Users/Martynas/WebRoot/odf2epub/build/web/epub/test.epub

But then running the stylesheet gives errors:

net.sf.saxon.trans.XPathException: Invalid URI:
file:///C:\Users\Martynas\WebRoot\odf2epub\build\web\epub\test.epub
        at org.expath.saxon.Zip.fileFromURI(Zip.java:261)
        at org.expath.saxon.Zip.analyseHref(Zip.java:239)
        at org.expath.saxon.Zip.zipFile(Zip.java:305)

And the file path is shown with backslashes again. Backslashes are not
allowed in URIs as far as I know, but the parameter value is without
them.
Any ideas on what's going wrong? I'm running Saxon on Windows.

Martynas

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.