W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2009

substitutionGroups

From: Lolke B. Dijkstra <lolke.dijkstra@dijkstra-ict.com>
Date: Tue, 08 Dec 2009 14:29:24 +0000
Message-ID: <4B1E439C.9020302@dijkstra-ict.com>
To: www-xml-schema-comments@w3.org
example just above section 3.3.3:

<xs:complexType name="facet">

 <xs:complexContent>

  <xs:extension base="xs:annotated">

   <xs:attribute name="value" use="required"/>

  </xs:extension>

 </xs:complexContent>

</xs:complexType>

<xs:element name="facet" type="xs:facet" abstract="true"/>

<xs:element name="encoding" substitutionGroup="xs:facet">

 <xs:complexType>

  <xs:complexContent>

   <xs:restriction base="xs:facet">

    <xs:sequence>

     <xs:element ref="annotation" minOccurs="0"/>

    </xs:sequence>

    <xs:attribute name="value" type="xs:encodings"/>

   </xs:restriction>

  </xs:complexContent>

 </xs:complexType>

</xs:element>

The substitutionGroup attribute references a type, should this be a
QName instead (e.g. the name facet instead of the type xs:facet)

Et cetera.
Kind regards,
Lolke Dijkstra
Received on Tuesday, 8 December 2009 14:36:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 December 2009 14:36:26 GMT