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

Re: Relative URLs using the file scheme?


file relative url
Hi James,

>the xerces support question is a good one. where the url has a scheme, it is not a relative url.
>
>what's more, what is the sense of specifying the scheme on a relative url.
>wouldn't "myDir/mFile" make more sense. where one specifies the scheme, the effect would be distinctly not relative, since, for example, were a document to
>have, for example, an http: base url, a file: relative url would denote a change in scheme.
>
That's a good point and I did in fact test this with the latest version 
of Xerces and it seems to work!

So it seems that a relative URI can be specified by not defining a 
scheme which makes sense to me. However, does this then mean that Xalan 
and Saxon are wrong in accepting

file:myDir/myFile

as a relative URI?

Cheers,
/Eddie

>
>none of which, however, affects the prejudice, that it should work anyway.
>
>...
>
>you wrote:
>  
>
>>Hi all,
>>
>>I've run into a problem using Xerces (2.2.0) for W3C XML Schema
>>validation when it comes to specifying relative paths to the schema
>>document. Here is the scenario:
>>
>>...
>>
>>-------------------------8<--------------------------------------------------
>>Hi Eddie. Is a string of the form "file:myDir/myFile" really a relative
>>URI?
>>I'm not sure it is; the hostname isn't mentioned at the very least.
>>Shouldn't
>>it be "file:///./myDir/myFile"?
>>    
>>


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.