W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

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

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 25 Jan 2002 09:18:41 +0000
Message-ID: <16464888574.20020125091841@jenitennison.com>
To: Simon.Cox@csiro.au
CC: xmlschema-dev@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT