[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: Wed, 29 Aug 2007 08:10:54 -0400
To: Dennis Sosnoski <dms@sosnoski.com>
Cc: xmlschema-dev@w3.org
Message-ID: <OF5C02DF3C.9275DD0E-ON85257346.0041B5D4-85257346.0042EAB6@us.ibm.com>
Re: Abstract element and xsi:nil


xsi:nil doesn't cancel out which attributes are allowed, so the typing is
still relevant.

Additionally, I think it's relevant to consider the philosophy of the
working group.  I've never been on this working group, so I certainly don't
speak for them.  It seems to me that they see xsi:type and schema typing in
general as providing typing information that might be useful in various
tools such as editors for displaying types differently, or extracting parts
of the document based on type, or even conversion to object models such as
JAX-RPC, or combined with specs such as XSLT 2.0.  Since the typing system
isn't just for validation, it makes sense to me that abstract types can't
be instantiated.  In a purely validation-oriented way, I agree that this
seems silly, except for my first comment about attributes.


Dennis Sosnoski <dms@sosnoski.com>@w3.org on 08/29/2007 12:55:38 AM

Sent by:    xmlschema-dev-request@w....


To:    xmlschema-dev@w3.org
cc:
Subject:    Abstract element and xsi:nil



Is it possible to define an abstract element with nillable='true', then
using the element name in an instance document with xsi:nil='true'? This
would appear to be prohibited, but leads to the slightly absurd case
where you have to pick one of the non-abstract members of the
substitution group to say that the value is really not present in the
instance document.

  - Dennis
Received on Wednesday, 29 August 2007 12:11:42 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.