[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: using substitutionGroup members in complexType derviation by restriction ?

From: Xan Gregg <Xan.Gregg@jmp.com>
Date: Tue, 16 Nov 2004 09:53:55 -0500
Message-ID: <1F145982392D6143BCF3CC670E4C7FA0AE0DCB@MERC27.na.sas.com>
To: "Edmund Vorauer" <edmund.vorauer@utanet.at>, <xmlschema-dev@w3.org>
edmund vorauer

You first need to apply:

   2.1 Any top-level element declaration particle (in R or B)
   which is the {substitution group affiliation} of one or more
   other element declarations and whose *substitution group*
   contains at least one element declaration other than itself
   is treated as if it were a choice group whose {min occurs}
   and {max occurs} are those of the particle, and whose
   {particles} consists of one particle with {min occurs} and
   {max occurs} of 1 for each of the declarations in its
   *substitution group*. 

So for checking restriction, the complexType X is treated as:

   <xs:sequence>
      <xs:choice>
         <xs:element ref="A"/>
         <xs:element ref="B"/>
      </xs:choice>
   </xs:sequence>

xan

-----Original Message-----
From: Edmund Vorauer


is there an non-ambiguous rule in the spec which allows the use of
substitutionGroup members instead of the original element in the derived
type ?
...
any hint most wellcome!
Received on Tuesday, 16 November 2004 14:53:57 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.