Re: Is this a valid <restriction > of a complex type

Hi Simon,

> Given 
> 1. a global declaration of the head of a substitutionGroup
> 2. a complex type that contains these in its content model
> 3. a global declaration of a member of the _Geometry substitutionGroup
>
> can we derive PointContainer in one step
>
> <xs:complexType name="PointContainer">
>   <xs:complexContent>
>     <xs:restriction base="AbstractGeometryContainer">
>       <xs:sequence>
>         <xs:element ref="Point" minOccurs="0"/>
>       </xs:sequence>
>       <xs:attribute name="attA" use="optional"/>
>     </xs:restriction>
>   </xs:complexContent>
> </xs:complexType>

Yes, I don't see any problems with that. And I tried it out with
Xerces C++ and it didn't complain.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Friday, 25 January 2002 04:18:49 UTC