duplicate element declaration

According the schema spec, we are allowed to have duplicate element
declaration within the same scope as long as they are of the same type,
i.e.

<element name="root">
 <complexType>
  <sequence>
   <element name="A" type="string"/>
   <element name="A" type="string"/>
  </sequence>
 </complexType>
</element>

But if the second has substitutionGroup specified, i.e.

<element name="root">
 <complexType>
  <sequence>
   <element name="A" type="string"/>
   <element name="A" type="string" substitutionGroup="ipo:comment"/>
  </sequence>
 </complexType>
</element>

then

1.  If this valid?
2.  If so, do we ignore the substitution group for the second element?
3.  or does the first element have the same substitution group
automatically?
4.  or ..?

Thanks!

Tinny

Received on Wednesday, 16 May 2001 09:52:56 UTC