Content models for xs:appinfo and xs:documentation

The schema-for-schemas describes the xs:documentation element thus:

    <xs:complexType mixed="true">
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:any processContents="lax"/>
      </xs:sequence>
      <xs:attribute name="source" type="xs:anyURI"/>
      <xs:attribute ref="xml:lang"/>
      <xs:anyAttribute namespace="##other" processContents="lax"/>
    </xs:complexType>

While the definition for xs:appinfo is:

    <xs:complexType mixed="true">
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:any processContents="lax"/>
      </xs:sequence>
      <xs:attribute name="source" type="xs:anyURI"/>
      <xs:anyAttribute namespace="##other" processContents="lax"/>
    </xs:complexType>

Is there any real difference between these two types? As far as I can see,
the inclusion of xml:lang in the former is redundant, since it is covered by
the anyAttribute wildcard.

Michael Kay
http://www.saxonica.com/

Received on Monday, 27 September 2004 09:34:18 UTC