Substitution groups & local elements

Dear All,

I have the following question related to Substitution 
groups & locally defined elements.

Are the elements "memberOfTheSG" & "otherMemberOfTheSG" 
well defined ?

<element name="SGHead" type="integer"/>

<simpleType name="smallInt">
 <minExclusive value="0"/>
 <maxExclusive value="10"/>
</simpleType>


<element name="anElt">
 <complexType>
  <complexContent>
   <element name="memberOfTheSG" type="smallint" 
	substitutionGroup="SGHead"/>
  </complexContent>
 </complexType>
</element>			

<element name="anOtherElt">
 <complexType>
  <complexContent>
   <element name="otherMemberOfTheSG" type="verysmallint" 
	substitutionGroup="SGHead"/>
  </complexContent>
 </complexType>
</element>	

If it's the case, are "otherMemberOfTheSG" and "memberOfTheSG"
substitutable ?

<anElt>
  <otherMemberOfTheSG>8</otherMemberOfTheSG>
</anElt>

Where can I find the rules in the spec ?

Thank you for your help.

Best regards,
Claude.		



-- 
______________________________________________

Claude Seyrat

Expway c/o Acland
18 avenue Georges V
75008 Paris
tel: 33 1 56 62 11 06 **new**
fax: 33 1 56 62 11 11
mail: claude.seyrat@expway.tv

Received on Wednesday, 14 November 2001 10:48:40 UTC