[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: UnknownHostException
[<bernwardhanssen@xxxxxx>] > > > file:///usr/docs/x.xml > > David > > That works for UNIX. > But file://D:\test.xml do not work for windows. > There works > file:///D:\test.xml and file:/D:\test.xsm > It depends on the processor (and sometimes on how it is invoked). Theoretically there are supposed to be three slashes for a file on the local machine, or "file://localhost/" - they are equivalent according to the RFC. A single slash is not legal but many processors allow it because it is a common error. Whether the path separators should be changed from backslaches to forward slashes is not made clear in the RFC. If the path part of the URL is considered to be "opaque", then they should remain backslashes. If the path is considered to be parsable, they should be changed. How does your processor consider them? You have to try and see. Furthermore, some processors erroneously insist on just a single slash after the "file:". Some act differently depending on whether you are invoking a file on the command line or from within a stylesheet. Cheers, Tom P XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|