- From: Henry S. Thompson <ht@inf.ed.ac.uk>
- Date: Wed, 24 Mar 2004 09:25:04 +0000
- To: gayathri veerarajan <gaytri_v@yahoo.co.in>
- Cc: xmlschema-dev@w3.org
Your analysis is essentially correct, but this is not a change from the first edition. The best you can do is make the implicit choice explicit, and use local declarations: <xsd:complexType name="Purchase-Derivant"> <xsd:complexContent> <xsd:restriction base="r:PurchaseOrderType" > <xsd:sequence> <xsd:element name="shipTo" type="xsd:string"/> <xsd:choice> <xsd:element name="amount" type="xsd:positiveInteger"/> <xsd:element name="price" type="xsd:positiveInteger"/> </xsd:choice> </xsd:sequence> </xsd:restriction> </xsd:complexContent> </xsd:complexType> ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Wednesday, 24 March 2004 04:29:08 UTC