W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2005

Clarification needed on element assessment

From: Sandy Gao <sandygao@ca.ibm.com>
Date: Fri, 4 Mar 2005 09:58:19 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <OFEAF61339.DFB4E672-ON85256FBA.00512708-85256FBA.005236BE@ca.ibm.com>
Consider a schema

<schema>
  <element name="e" type="t"/>
  <complexType name="t" abstract="true"> ... </complexType>
</schema>

and the instance

<e/>

Valid? Invalid? Don't' know?

An intuitive view is that it's invalid, because we are trying to validate 
something against an abstract type.

But the spec actually says it's not assessed (validation attempted = none 
& validity = unKnown), because 1.1.3 of "Schema-Validity Assessment 
(Element)" in 3.3.4 doesn't hold! Intended?

Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com
Received on Friday, 4 March 2005 15:02:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT