Re: schemaLocation declaration after namespace usage

On Friday 06 February 2009 12:20:07 Michael Kay wrote:
Hej Michael,

> > http://www.w3.org/TR/xmlschema-1/#schema-loc 4) says that no 
> > schemaLocation declaration is allowed to appear, after the 
> > namespace has been used for a validation of an element or attribute.
> 
> Yes, the spec says that, but I think experience shows that applying this
> rule to redundant xsi:schemaLocation attributes (or namespace/location
> pairs) is unhelpful; and the spec generally gives implementations a lot of
> flexibility in this area. Redundant xsi:schemaLocation attributes can easily
> arise for example when a document is assembled using XInclude.
Ah ok, applying the rule to a redundant attribute makes no sense indeed,
I haven't looked at this issue from that side. Thank you very much for this hint!

Ciao,
Tobias

Received on Monday, 9 February 2009 08:17:33 UTC