Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Abstract types in substitution groups

From: "Pete Cordell" <pete@--------------.--->
To: "C. M. Sperberg-McQueen" <cmsmcq@---.--->
Date: 2/8/2007 1:52:00 PM
Ah - Got it.  Many thanks.

Pete.

Original Message From: "C. M. Sperberg-McQueen"
> On 8 Feb 2007, at 05:38 , Pete Cordell wrote:

>> So does the abstractness of the type become a property of the  
>> element?  i.e.
>>
>> <xs:element name='myElement' type='abstractType'/>
>>
>> is equivalent to:
>>
>>
>> <xs:element name='myElement' type='abstractType' abstract='true'/>
>> ?
>
.... 
>  Neither
> allows an element instance like
> 
>   <myElement>...</myElement>
> 
> but  if the schema defines 'concreteType' as a concrete type derived
> from abstractType, then the first declaration allows
> 
>   <myElement xsi:type="concreteType">...</myElement>
> 
> to appear in the document -- it is the type which is abstract, not
> the element.  The second declaration, by contrast, does not allow
> such an element instance.
--
=============================================
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 ht@i... Thu Feb 08 14:36:46 2007
Received: from aji.w3.org ([133.27.228.225])
	


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