Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Abstract types in substitution groups

From: "Michael Kay" <mike@--------.--->
To: "'Pete Cordell'" <petexmldev@--------------.--->, <xmlschema-dev@--.--->
Date: 2/8/2007 12:24:00 PM

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@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Pete Cordell
> Sent: 08 February 2007 12:01
> To: xmlschema-dev@w...
> 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)
> =============================================
> 
> 
> 


From petexmldev@t... Thu Feb 08 12:38:36 2007
Received: from lisa.w3.or


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent