W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2003

Re: [schema error code] not set

From: Sandy Gao <sandygao@ca.ibm.com>
Date: Thu, 11 Sep 2003 16:10:11 -0400
To: richard@cogsci.ed.ac.uk
Cc: www-xml-schema-comments@w3.org
Message-ID: <OF69C3AACA.CD85F071-ON85256D9E.005DD779@ca.ibm.com>


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.


Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
Received on Thursday, 11 September 2003 16:10:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:00 UTC