W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2005

Prohibited attributes in an attributeGroup

From: Zafar Abbas <zafara@microsoft.com>
Date: Mon, 23 May 2005 10:29:17 -0700
Message-ID: <563BD3496D37BB4B9F4E8F896A58F2B3050F97EF@RED-MSG-50.redmond.corp.microsoft.com>
To: <www-xml-schema-comments@w3.org>
This comment is regarding having prohibited attributes in an
attributeGroup.

 

Base Type:

 

<xsd:complexType name="base">

      <xsd:attribute name="a" />

</xsd:complexType>

 

Derived Type:

 

<xsd:complexType name="derived">

  <xsd:complexContent>

    <xsd:restriction base="base">

      <xsd:attributeGroup ref="attG"/>

    </xsd:restriction>

  </xsd:complexContent>

</xsd:complexType>

 

<xsd:attributeGroup name="attG">

 <xsd:attribute name="a" use="prohibited"/> </xsd:attributeGroup>

 

Should the complex type "derived" still have attribute "a"? From the
spec, it seems that it would allow attribute "a", since the
attribute-uses of the attributeGroup "attG" does not contain "a".

 

It seems that having a prohibited attribute in an attributeGroup is
useless and does nothing, and it could be argued that such attributes
should be disallowed from attribute groups.

 

 
Received on Monday, 23 May 2005 17:29:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT