[Bug 2632] Default value and [schema normalized value]

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2632


sandygao@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Additional Comments From sandygao@ca.ibm.com  2006-01-03 15:24 -------
> Section 3.3.1 of Part 1 says: ...
> But the definition of [schema normalized value] says: ...
> There seems to be a contradiction here: can an element with mixed content
> have a [schema normalized value], or not?

Agree, there is a contradiction. I think 3.3.1 is too loosely specified. The
intention is that [schema normalized value] is only available for simple
type/contnet values. When a default value of a mixed content is applied, it
should not be reflected in [schema normalized value].

Propose to change in 3.3.1 from

"the canonical form of the supplied constraint value becomes the [schema
normalized value] of the ·validated· element in the ·post-schema-validation
infoset·"

to

"the element is treated as if the canonical form of the supplied constraint
value was used as the content of the element."

> Furthermore, the definition of [schema normalized value] ...
> They can't both be right...

Agree again. The intention is that [schema normalized value] does get the
default value in this case.

Propose to change the description of [schema normalized value] to

"The appropriate case among the following:
1 If clause 3.2 of Element Locally Valid (Element) (§3.3.4) above is satisfied,
then absent.
2 Otherwise if clause 5.1 of Element Locally Valid (Element) (§3.3.4) above is
satisfied, then the canonical lexical representation of the {value constraint}
value.
3 Otherwise if either the ·type definition· is a simple type definition or its
{content type} is a simple type definition, then the ·normalized value· of the
item as ·validated·.
4 Otherwise absent."

And change clause 1 of the description of [schema specified] to

"If the item is ·valid· with respect to an element declaration as per Element
Locally Valid (Element) (§3.3.4) and clause 5.1 of Element Locally Valid
(Element) (§3.3.4) above is satisfied, then schema."

Received on Tuesday, 3 January 2006 15:24:33 UTC