Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: SimpleType as valid derivation of abstract type in 1.1 ?

From: Guillaume Lebleu <gl@---------.--->
To: Pete Cordell <petexmldev@--------------.--->
Date: 3/9/2007 3:19:00 AM
Pete Cordell wrote:
> Does the following schema snippet not work for you?:
>
> <xsd:complexType name="Obj">
>    <xsd:sequence>
>       <xsd:element ref="ObjId"/>
>    </xsd:sequence>
> </xsd:complexType>
>
> <xsd:complexType name="Car">
>    <xsd:complexContent>
>       <xsd:extension base="Obj">
>          <xsd:sequence>
>             ...
>          </xsd:sequence>
>       </xsd:extension>
>    </xsd:complexContent>
> </xsd:complexType>
>
Pete, this does not work for me unfortunately. What I'm trying to do is 
have an XSD that enforces abstract patterns such as "All objects have an 
Id, Info and Status elements", by defining an abstract Obj composed of 
ObjId, ObjInfo and ObjStatus, and have Car be a restriction on Obj, 
CarId be a restriction of CarId, etc. Part of this problem is that some 
concrete Id can be complex, while others can be simple. Last, I cannot 
change these requirements as I am trying to represent and enforce these 
abstract patterns in an industry XSD (IFX) that currently does not.

Guillaume

From petexmldev@t... Fri Mar 09 17:57:15 2007
Rec


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