[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.