W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2004

Re: xml schema Second Edition-regarding substitution group

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
Message-ID: <f5bfzbyzjf3.fsf@erasmus.inf.ed.ac.uk>

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:restriction base="r:PurchaseOrderType" >
  	 <xsd:element name="shipTo" type="xsd:string"/>
                 <xsd:element name="amount" type="xsd:positiveInteger"/>
                 <xsd:element name="price" type="xsd:positiveInteger"/>

 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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:04 UTC