W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2007

Understanding Restrictions on Groups

From: Eliot Kimber <ekimber@innodata-isogen.com>
Date: Mon, 25 Jun 2007 18:36:58 -0500
Message-ID: <4680519A.70406@innodata-isogen.com>
To: <xmlschema-dev@w3.org>

I'm trying to understand what I can and can't do with restrictions on 

What I want to do is redefine a group in order to completely replace its 
members, rather than extending its members. What I have that works 
(using OxygenXML 8.2, which I believe uses XercesJ 2.9):


<xs:group name="a">
     <xs:element ref="A"/>


<xs:group name="b">
    <xs:element ref="B"/>

<xs:redefine schemaLocation="Base.xsd">

   <xs:group name="a">
       <xs:group ref="a"/>
       <xs:group ref="b"/>

But what I want is to disallow the element type "A" from the redefined 

However, I can't see a way to do it and simply omitting the internal 
reference to the group "a" produces an invalid derivation error.

I must be missing something but so far I haven't figured out what it is. 
Surely it must be possible to do what I want or the redefinition 
mechanism is of somewhat limited utility (or at best, is not a complete 
solution to enabling reference-time configuration of schema components).


W. Eliot Kimber
Professional Services
Innodata Isogen
8500 N. Mopac, Suite 402
Austin, TX 78759
(214) 954-5198

Received on Monday, 25 June 2007 23:36:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:43 UTC