W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2004

Content models for xs:appinfo and xs:documentation

From: Michael Kay <mhk@mhk.me.uk>
Date: Mon, 27 Sep 2004 10:33:40 +0100
To: <xmlschema-dev@w3.org>
Message-ID: <E1CBrti-0002g9-7B@frink.w3.org>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:06 UTC