Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Understanding Restrictions on Groups

From: "Eliot Kimber" <ekimber@---------------.--->
To: <xmlschema-dev@--.--->
Date: 6/25/2007 1:37:00 PM
I'm trying to understand what I can and can't do with restrictions on 
groups.

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):

Base.xsd:

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

Redefiner.xsd:

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

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

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

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

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

Thanks,

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

ekimber@i...
www.innodata-isogen.com


From ht@i... Tue Jun 26 10:48:56 2007
Received: from aji.w3.org ([133.27.228.225])
	by frink.w3.org with esmtp


transparent
Print
Mail
Like It
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