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

Re: Abstract element and xsi:nil

From: Morris Matsa <mmatsa@us.ibm.com>
Date: Mon, 3 Sep 2007 23:30:58 -0400
To: Boris Kolpackov <boris@codesynthesis.com>
Cc: Dennis Sosnoski <dms@sosnoski.com>, xmlschema-dev@w3.org
Message-ID: <OF8DEB6E92.C51BCA7E-ON8525734C.001193A5-8525734C.001350AF@us.ibm.com>


> 1. Are such attributes validated?
>
> 2. What if the corresponding complex type does not merely permit
>    but requires an attribute? Should this attribute be present when
>    xsi:nil is true?

With xsi:nil as true, I think that all attributes are validated as normal,
including required ones, and the content must be empty.  The non-normative
description [1] says:

"Note that the nil mechanism applies only to element values, and not to
attribute values."

[1] http://www.w3.org/TR/xmlschema-0/#Nils
Received on Tuesday, 4 September 2007 03:37:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:01:58 UTC