Re: Abstract element and xsi:nil

> 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