[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: using schemaLocation to point multiple same namespaceschem
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
|
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
|