substitutionGroup for attributes

I would like to propose a requirement for XML Schema 1.1, which is to 
allow substitutionGroup for attributes.  As an example, I want to be able 
to do the following

<!-- schema1 extract -->

<complexType name="operation">
  <sequence>
    <any namespace="##other" />
  </sequence>
  <attribute ref="schema1:opcode" use="required" />
</complexType>

<attribute name="opcode" type="schema1:opcodeType" />

<simpleType name="opcodeType>
  <restriction base="token">
    <enumeration value="request">
    <enumeration value="approve">
    <enumeration value="reject">
    <enumeration value="withdraw">
  </restriction>
</simpleType>


<!-- schema2 extract -->

<simpleType name="extendedOpcodeType">
  <union memberTypes="schema1:opcodeType">
    <simpleType>
      <restriction base="token">
        <enumeration value="dispute">
      </restriction>
    </simpleType>
  </union>
</simpleType>

<attribute name="extendedOpcode" type="schema2:extendedOpcodeType" 
substitutionGroup="schema1:opcode" />


<!-- example document -->

<operation extendedOpcode="dispute">
  <blah />
</operation>


Or is there a current way that I should be doing the same thing which I 
can't work out?

thanks

Jay Daley
Nominet UK

Received on Wednesday, 8 March 2006 00:25:17 UTC