OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] using schemaLocation to point multiple same namespaceschem

[ Lists Home | Date Index | Thread Index ]

Dare Obasanjo wrote:

> 
>I can't find any where in the W3C XML Schema recommendation where this
>is disallowed
>
It's allowed but...

> but I can understand why a schema validator would want to
>disallow that to reduce implementation complexity. Given that
>xsi:schemaLocation is considered to be a hint, implementations are given
>a lot of leeway in how they treat its contents if at all. 
>
>The Microsoft W3C XML Schema implementations pick the first schema they
>see and associate that with the namespace then ignores the other
>specified locations. 
>

The |xsi:schemaLocation also accepts pairs of URIs for authors that wish 
to provide references to Schema documents|. In each pair of URIs, the 
first is used as a namespace URI and the second as a location for the 
schema document. This is one of the three requierments at [1].

The sister attribute, |xsi:noNamespaceSchemaLocation, accepts only one 
URI as a hint to where the schema document may be located.|

So, this implementation is incorrect [2]?


XML Schema Part 1: Structures

4.3.2 How schema definitions are located on the Web
[12] http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#schema-loc

4.1 Layer 1: Summary of the Schema-validity Assessment Core
[2] http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#layer1

Manos





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS