Pointless use of simpleType

Why does XML Schema Part 2 require me to write for example

<xsd:simpleType>
   <xsd:list>
      <xsd:simpleType>
	 <xsd:union memberTypes="xsd:NCName">
            <xsd:simpleType>
               <xsd:restriction base="xsd:token">
                  <xsd:enumeration value="#default"/>
               </xsd:restriction>
            </xsd:simpleType>
	 </xsd:union>
      </xsd:simpleType>    
   </xsd:list>
</xsd:simpleType>

instead of simply:

<xsd:list>
   <xsd:union memberTypes="xsd:NCName">
      <xsd:restriction base="xsd:token">
         <xsd:enumeration value="#default"/>
      </xsd:restriction>
   </xsd:union>    
</xsd:list>

?

The extra simpleType elements are completely unnecessary, as far as I
can see, and serve only to obfuscate the meaning of the Schema.

James

Received on Sunday, 11 February 2001 08:19:41 UTC