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

Substitution groups question

From: Stan Kitsis <skits@microsoft.com>
Date: Fri, 1 Apr 2005 15:48:38 -0800
Message-ID: <15A5AEEF6D717C4FB7D010F14B5C7529027CAECC@RED-MSG-43.redmond.corp.microsoft.com>
To: <xmlschema-dev@w3.org>
Substitution groups question
Can someone help me interpret the following
(http://www.w3.org/TR/xmlschema-1/#e-final)

 

******************************

"Element declarations are potential members of the substitution group,
if any, identified by {substitution group affiliation}. Potential
membership is transitive but not symmetric; an element declaration is a
potential member of any group of which its {substitution group
affiliation} is a potential member. Actual membership may be blocked by
the effects of {substitution group exclusions} or {disallowed
substitutions}, see below."

******************************

 

What should be the behavior of schema validators in the following
example?

 

<xs:element name="head" type="xs:integer" block="substitution"/>

<xs:element name="member" type="xs:string" substitutionGroup="head"/>

 

Is "member" element a "potential member" or non-member of head's
substitution group?

 

Should validators report an error/warning because "member" element's
type is neither the same nor derived from "head" element's type?  Should
they ignore the type checking since "head" element blocks all
substitutions and therefore "member" element is not a member of head's
substitution group?  Should both checks be suspended until the time when
"member" is used as a part of the substitution group?

 

Thanks,

Stan Kitsis
Received on Friday, 1 April 2005 23:51:58 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.