Re: Modules, start patterns, driver files, trang - sanity check

Sean McGrath <[email protected]> Mon, 23 Feb 2004 14:09:58 +0000
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
Thanks to both David Rosenborg and David Tolpin.

The notAllowed trick works a treat.

thanks,
Sean

At 18:00 23/02/2004 +0400, David Tolpin wrote:
> > File A.rnc - a standalone schema and a module
> >          A = element a { text }
> >          start = A
> >
> > File B.rnc - a standalone schema and a module
> >          B = element b { text }
> >          start = B
> >
> > File AB.rnc - a standalone schema and a module. It includes two
> > sub-modules, A and B
> >          include "a.rnc" { start = AB }
> >          include "b.rnc" { start = AB }
> >
> >          AB = element ab { A , B }
> >          start = AB
>
>File AB.rnc
>
>include "a.rnc" {start|=notAllowed}
>include "b.rnc" {start|=notAllowed}
>
>AB = element ab {A, B}

Sean McGrath
http://seanmcgrath.blogspot.com