content attribute ?

Hello 

I found in the document: XML Schema Part 1: Structures (W3C Working Draft 22 September 2000) http://www.w3.org/TR/xmlschema-1

these examples:

In section 4.3.2 
		      <xs:element name="et2">
                       <xs:complexType content="empty">
                        <xs:attribute ...>. . .</xs:attribute>
                       </xs:complexType>
                      </xs:element>

In section 4.3.4

		      <xs:complexType name="myelement" content="empty">
                          <xs:attributeGroup ref="myAttrGroup"/>
                      </xs:complexType>


content is not an attribute of ComplexType.

I think this is the correction of these examples:

<xs:element name="et2">
  <xs:complexType>
   <xs:complexContent>
     <xs:restriction base="anyType">
        <xs:attribute ...>. . . </xs:attribute>
     </xs:restriction>
   </xs:complexContent>
  </xs:complexType>
</xs:element>


<xs:complexType name="myelement">
   <xs:complexContent>
     <xs:restriction base="anyType">
        <xs:attributeGroup ref="myAttrGroup"/>
     </xs:restriction>
   </xs:complexContent>
</xs:complexType>

Could someone let me know if this right?

Thanks

John Punin

Received on Thursday, 5 October 2000 14:07:25 UTC