Re: combining schemas

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Organization Dyomedea (http://dyomedea.com)
Message-ID <1069780532.1104.233.camel@delleric>
On Tue, 2003-11-25 at 18:02, John Cowan wrote:

> 
> (Committee members, perhaps there needs to be a way to delete a rule at
> include time?)

I think that this is already possible.

Consider:

inc1.rnc
+++++++++++++++++++++++++++
start = element foo{empty}
+++++++++++++++++++++++++++

inc2.rnc
+++++++++++++++++++++++++++
start = element bar{empty}
+++++++++++++++++++++++++++

If you want to include inc1.rnc and keep only the definition of the
start element in inc2.rnc, you can write:


+++++++++++++++++++++++++++
include "inc1.rnc" {
	start |= notAllowed
}
include "inc2.rnc"
+++++++++++++++++++++++++++


Eric
-- 
Read me on Advogato.
                                         http://advogato.org/person/vdv/
Upcoming XML schema languages tutorials:
 - Philadelphia -full day- ( 7/12/2003)        http://masl.to/?V28612FC5
 - Santa Clara  -half day- (15/03/2004)        http://masl.to/?J24916E96
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.