Altova Mailing List Archives

RE: [xsl] Windows Batchfile calling Saxon - Confusion of / and \

From: "Kerry, Richard" <richard.kerry@----------->
Date: 10/10/2007 1:45:00 PM
Thank you very much.
That works fine.

I've never seen that construct before.  Windows Help and Support Centre
entry on 'set' doesn't seem to mention it.


> -----Original Message-----
> From: Houghton,Andrew [mailto:houghtoa@xxxxxxxx]
> Sent: 10 October 2007 14:35
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] Windows Batchfile calling Saxon -
> Confusion of / and >
> > From: Kerry, Richard [mailto:richard.kerry@xxxxxxxxxxx]
> > Sent: 10 October, 2007 09:27
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] 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 ?


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.