W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Re: clause 3.2 of Element Locally Valid (Element)

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 11 Dec 2001 00:30:20 +0000
Message-ID: <18536454538.20011211003020@jenitennison.com>
To: sandygao@ca.ibm.com
CC: www-xml-schema-comments@w3.org, xmlschema-dev@w3.org
Hi Sandy,

> Clause 3.2 of Element Locally Valid (Element) is mentioned many time
> in the spec, in the form of "... is (not) satisfied / did (not)
> apply". The content of such clause is:
>
> "3.2 If {nillable} is true and there is such an attribute information item
> and its ·actual value· is true , then all of the following must be true:
> 3.2.1 The element information item must have no character or element
> information item [children].
> 3.2.2 There must be no fixed {value constraint}."
>
> Then to determine whether 3.2 is satisfied or did apply, should we
> consider 3.2.1 and 3.2.2. That is, if "nillable == true" and
> "xsi:nil == true", but one of 3.2.1 and 3.2.2 is not satisfied,
> whether 3.2 is satisfied (or did apply)?

As I understand it, Clause 3.2 applies when nillable equals true and
there is an xsi:nil attribute whose value is true.

Clause 3.2 is satisfied if it applies (as above) and Clauses 3.2.1 and
3.2.2 are satisfied (true).

If Clause 3.2 applies but is not satisfied (i.e. either of Clause
3.2.1 or 3.2.2 are false), then the element is invalid.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Monday, 10 December 2001 19:30:28 GMT

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