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

RE: Windows Batchfile calling Saxon - Confusion of / a

Subject: RE: Windows Batchfile calling Saxon - Confusion of / and \
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Wed, 10 Oct 2007 09:35:29 -0400
RE:  Windows Batchfile calling Saxon - Confusion of / a
> From: Kerry, Richard [mailto:richard.kerry@xxxxxxxxxxx]
> Sent: 10 October, 2007 09:27
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Windows Batchfile calling Saxon - Confusion of / and \
>
> If I pass the secondary file as 'C:/Projects/Secondary.xml'
> it's happy.
> If I pass the secondary file as 'C:\Projects\Secondary.xml'
> it isn't, saying "FODC0005: Exception thrown by URIResolver.
> Invalid relative URI".
>
> I don't want to hard-code the current path in my batch file,
> I want to say "set DIR=%cd%", but if I do that DIR has '\' in
> it in the usual Windows manner, causing the read to fail, as above.
>
> So :
> 1.  Can I get Saxon to accept '\' instead of '/' ?  I presume
> not as its a URI not a directory name.
> 2.  Can I get Windows batch-files to convert '\' to '/' ?

set file1="C:\Projects\Secondary.xml"
set file2=%file1:\=/%

echo %file1%
echo %file2%

> 3.  Can I get Saxon's document() function to search relative
> to the current working directory rather than the top of the disk ?

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.