W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2007

Incorrect cross-reference for attribute validation

From: Michael Kay <mike@saxonica.com>
Date: Thu, 4 Jan 2007 15:48:25 -0000
To: <xmlschema-dev@w3.org>
Message-ID: <007901c73017$c6029eb0$6401a8c0@turtle>


Remarkably, there seems to be nothing in the rules for validity of an
element that says the attributes of the element must be valid against their
declared types!

Validation Rule: Element Locally Valid (Complex Type) says:

3.1 If there is among the {attribute uses} an attribute use with an
{attribute declaration} whose {name} matches the attribute information
item's [local name] and whose {target namespace} is identical to the
attribute information item's [namespace name] (where an ·absent· {target
namespace} is taken to be identical to a [namespace name] with no value),
then the attribute information must be ·valid· with respect to that
attribute use as per Attribute Locally Valid (Use) (§3.5.4). 

But Attribute Locally Valid (Use) (§3.5.4) says very little, in particular
it doesn't say that the attribute's value must be valid according to the
attribute's type.

I suspect there should be a reference to Attribute Locally Valid (§3.2.4)
either in place of, or in addition to, the existing reference. Or perhaps
Attribute Locally Valid (Use) (§3.5.4) should refer to Attribute Locally
Valid (§3.2.4).


Michael Kay
Received on Thursday, 4 January 2007 15:48:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:57 GMT