[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
xs attributegroup

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.