- From: Jeni Tennison <jeni@jenitennison.com>
- Date: Thu, 13 Dec 2001 09:43:54 +0000
- To: Stanley Guan <Stanley.Guan@oracle.com>
- CC: Schema XML <xmlschema-dev@w3.org>
Hi Stanley, > In 3.2.5 Attribute Declaration Information Set Contributions, it states: > > [schema normalized value] > The normalized value of the item as validated. > > while, in 3.4.5 Complex Type Definition information Set Contributions, > it states: > [schema normalized value] > The canonical lexical representation of the {value constraint} value. Section 3.2.5 is talking about what the information set contains when there's actually an attribute in the instance document, whereas Section 3.4.5 is talking about what the information set contains when there's *not* an attribute in the instance document, but there is a {value constraint} (i.e. a default or fixed value). Look a little bit above the tables, at the beginning of the sections, and in Section 3.2.5 you'll see: If the schema-validity of an attribute information item has been assessed as per Schema-Validity Assessment (Attribute) (§3.2.4), then in the post-schema-validation infoset it has properties as follows: Whereas in Section 3.4.5 you'll see: For each attribute use in the {attribute uses} whose {required} is false and whose {value constraint} is not ·absent· but whose {attribute declaration} does not match one of the attribute information items in the element information item's [attributes] as per clause 3.1 of Element Locally Valid (Complex Type) (§3.4.4) above, the post-schema-validation infoset has an attribute information item whose properties are as below added to the [attributes] of the element information item. What it's basically saying is that the [schema normalized value] is the normalized value of the attribute if it's present in the instance, and the canonical lexical representation of the fixed or default value if the attribute isn't present in the instance. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/
Received on Thursday, 13 December 2001 04:44:01 UTC