W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2003

Re: Must the content of SchemaLocation be a resorvable URL?

From: Noga Atsil <Noga.Atsil@smarteam.com>
Date: Tue, 15 Jul 2003 07:44:41 +0300
Message-ID: <78AF93592520674C8277657BFB0FE01F31B95F@ilexc01.SMART.INTRA>
To: <xmlschema-dev@w3.org>

Thanks a lot for your respone.

I understand by your answer that relative URLs are OK, but in your sample - should "my.xsd" really exist under "subdir"?

Should "subdir" exist under current URL? 

Some parsers require that there will be an "xsi:schemaLocation" attribute in the instance file for validation needs, but I can later use a URL resolver to set another location to the schema. This behavior allows me to put as value of "xsi:schemaLocation" any URL string I want, such as the schema name, without really giving any hint to its actual location.

But is it allowed according to XML Schema specification?

The specification mentions it is an optional attribute, and that its content should be a URL, but it doesn't say whether or not this URL should be resorvable (meaning that if I look for the schema under that location - I must find it).
Received on Tuesday, 15 July 2003 00:47:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:12 UTC