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

RE: Abstract types in substitution groups

From: Michael Kay <mike@saxonica.com>
Date: Thu, 8 Feb 2007 12:24:17 -0000
To: "'Pete Cordell'" <petexmldev@tech-know-ware.com>, <xmlschema-dev@w3.org>
Message-ID: <011801c74b7c$0d71d3e0$6401a8c0@turtle>
RE: Abstract types in substitution groups


Why would it be any more invalid than any other element being declared with
an abstract type? All it means is that the instance either has to have a
non-abstract xsi:type, or has to be an element in the substitution group of
myElement declared with a concrete subtype of abstractType.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Pete Cordell
> Sent: 08 February 2007 12:01
> To: xmlschema-dev@w3.org
> Subject: Abstract types in substitution groups
> 
> 
> I've been looking at a published schema that uses an abstract 
> type in a substitution group.  i.e. something like:
> 
> 
> <xs:complexType name='abstractType' abstract='true'>
>     <xs:sequence/>
> </xs:complexType>
> 
> <xs:element name='myElement' type='abstractType' 
> substitutionGroup='sgroup'/>
> 
> 
> To me this seems invalid.  Or do substitutionGroups have 
> special permission 
> to use abstract types?
> 
> Thanks for any help,
> 
> Pete.
> --
> =============================================
> Pete Cordell
> Tech-Know-Ware Ltd
> for XML to C++ data binding visit
> http://www.tech-know-ware.com/lmx
> (or http://www.xml2cpp.com)
> =============================================
> 
> 
> 
Received on Thursday, 8 February 2007 12:24:24 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.