- From: Bruno Chatel <bcha@chadocs.net>
- Date: Thu, 5 Feb 2004 10:04:41 +0100
- To: <xmlschema-dev@w3.org>
- Cc: "Bruno Chatel" <bcha@chadocs.net>
Hi, All examples I found on extension on a complexType are done by appending one (or more) elements to a sequence content model (by a sequence in xs:extension). Nevertheless, the schema (example of the previous message) is validate by XSV. What coud be the result content model : Does <xs:complexType name="tseq-ext-choi"> <xs:complexContent> <xs:extension base="tseq"> <xs:choice> <xs:element name="t3"/> </xs:choice> </xs:extension> </xs:complexContent> </xs:complexType> equivalent to : <xs:complexType name="tseq-ext-choi"> <xs:choice> <xs:sequence> <xs:element name="t1"/> <xs:element name="t2"/> </xs:sequence> <xs:element name="t3"/> </xs:choice> </xs:complexType> ? Or what could be the equivalent content model ? I do not found the answer in the specification. Thanks in advance -- bruno -- Bruno Chatel Tel : (+33) (0)4 96 11 14 57 bcha@chadocs.com -------------------------------------- > > Hi, > > I have some questions about extension of complexTypes (and do not found the answer > in the specifications) : > > Is extension of a complexType composed of sequence, by using choise is allowed ? > Is extension of a complexType composed of choice, by using sequence is allowed ? > > Are these derivations allowed ? > > <xs:complexType name="tseq"> > <xs:sequence> > <xs:element name="t1"/> > <xs:element name="t2"/> > </xs:sequence> > </xs:complexType> > > <xs:complexType name="tchoi"> > <xs:sequence> > <xs:element name="t3"/> > <xs:element name="t4"/> > </xs:sequence> > </xs:complexType> > > <xs:complexType name="tseq-ext-choi"> > <xs:complexContent> > <xs:extension base="tseq"> > <xs:choice> > <xs:element name="t3"/> > </xs:choice> > </xs:extension> > </xs:complexContent> > </xs:complexType> > > <xs:complexType name="tchoi-ext-seq"> > <xs:complexContent> > <xs:extension base="tchoi"> > <xs:sequence> > <xs:element name="t1"/> > </xs:sequence> > </xs:extension> > </xs:complexContent> > </xs:complexType> > > > If yes, what is the effective content model for these ? > > thanks in adance > > -- bruno -- > Bruno Chatel > Tel : (+33) (0)4 96 11 14 57 > bcha@chadocs.com > -------------------------------------- > >
Received on Thursday, 5 February 2004 04:02:15 UTC