Re: [schema error code] not set

Richard,

Sorry for the late response.

> [schema error code] is only set when an element or attribute's local
> validity has been assessed (Validation Failure (Element) or (Attribute)).
>
> So no error code is set when no declaration or type can be found for
> an element or attribute, because in this case local validity is not
> assessed.  But it seems to me that this should produce some error code
> if the context-determined declaration is mustFind.

In the case where the context-determined declaration is mustFind and the
validity of an element or attribute is not assessed, it's an error on the
containing element, not the element or attribute itself. This is discussed
in section 3.3.5 of the structure spec [1], under the [validity] property,
bullet 1.1.3.

So we believe the spec is correct, and an error is reported in the case you
described. Feel free to let us know if you have further concerns.

[1]
http://www.w3.org/TR/xmlschema-1/#section-Element-Declaration-Information-Set-Contributions

Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com

Received on Thursday, 11 September 2003 16:10:15 UTC