Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


prohibited attributes in an attributeGroup

From: "Zafar Abbas" <zafara@---------.--->
To: <xmlschema-dev@--.--->
Date: 5/17/2005 5:27:00 AM
My question is regarding having prohibited attributes in an
attributeGroup which is referenced from a complex type derived from
restriction from a base type which has the same attribute as optional.

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".

If the above understanding is correct. 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.


Thanks,
Zafar

From zafara@m... Tue May 17 20:50:42 2005
Received: from lisa.w


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent