W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2001

Re: Relative path in Include Element

From: <Noah_Mendelsohn@lotus.com>
Date: Thu, 20 Sep 2001 10:45:28 -0400
To: ht@cogsci.ed.ac.uk (Henry S. Thompson)
Cc: NJayaraman@tomax.com, www-xml-schema-comments@w3.org, www-xml-schema-comments-request@w3.org, xmlschema-dev@w3.org
Message-ID: <OF9496B6ED.6B2747C4-ON85256ACD.0051A4F5@lotus.com>
Henry Thompson writes:

>> The URL of the schema document should be used 
>> as the base for relative URLs in the 
>> schemaLocation attributes of xs:include and xs:import, 
>> in my opinion, although I don't _think_ the REC says 
>> anything about this.

I agree, but would put it slightly differently:  as we've all said 
repeatedly, schemaLocation is a hint.  It's a hint.  It's a hint. 
Processors can ignore any or all schemaLocations if they so desire.  They 
can therefore choose to ignore relative ones, among others. 

 A reasonable interpretation of RFC 2396, section 5.2 [1], is that a 
schema processor designed in conformance with general web URI architecture 
will indeed interpret the relative URI as Henry suggests, if it chooses to 
honor the hint at all.  The schema specification does not restate or 
reinterpret the usual rules for handling URIs on the Web, except when 
schema-specific issues arise.

[1] http://www.ietf.org/rfc/rfc2396.txt

------------------------------------------------------------------------
Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------------
Received on Thursday, 20 September 2001 10:53:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:51 GMT