W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2005

extending an xs:attributeGroup?

From: Robert Koberg <rob@koberg.com>
Date: Tue, 19 Jul 2005 12:00:56 -0400
Message-ID: <42DD23B8.3050904@koberg.com>
To: xmlschema-dev@w3.org

Hi,

We have a base schema that is used by multiple projects. In one project 
we need to add an attribute and make it available on all elements. I 
currently have an attributeGroup in all complexTypes/elements, like:

<xs:attributeGroup name="core.attrs">
   <xs:attribute name="id" type="xs:ID"/>
   <xs:attribute name="title" type="xs:string"/>
</xs:attributeGroup>

is there some way to extend this attributeGroup so that I can make 
another attribute available? I don't want to change the base schema, but 
want the group to appear as:

<xs:attributeGroup name="core.attrs">
   <xs:attribute name="id" type="xs:ID"/>
   <xs:attribute name="title" type="xs:string"/>
   <xs:attribute name="role" type="xs:string"/>
</xs:attributeGroup>

possible?

thanks,
-Rob
Received on Tuesday, 19 July 2005 16:01:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:50 GMT