W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2001

Re: How to extend an attribute group with another group

From: Eddie Robertsson <eddie@allette.com.au>
Date: Mon, 05 Nov 2001 17:58:09 +1100
Message-ID: <3BE63881.EF92F9D3@allette.com.au>
To: Peter Stark <pstark@telia.com>
CC: xmlschema-dev@w3.org
> What is the easiest way to extend an attribute group with another attribute
> group?

> Let's say I want to extend attribute group X with attribute group Y.

I don't think there is a way to extend an already declared attributeGroup with
more attributes. However, if you create a new attributeGroup you can reference
another attributeGroup within the new one:

<xs:attributeGroup name="Y">
   <xs:attribute ...>
   ...
</xs:attributeGroup>

<xs:attributeGroup name="X">
   <xs:attribute ...>
   ...
   <xs:attributeGroup ref="Y">
</xs:attributeGroup>

Cheers,
/Eddie
Received on Monday, 5 November 2001 01:51:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:35 GMT