[relaxng-user] combining schemas

Eric van der Vlist vdv at dyomedea.com
Tue Nov 25 18:15:32 ICT 2003


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



More information about the relaxng-user mailing list