[relaxng-user] Modules, start patterns, driver files, trang - sanity check

Sean McGrath sean.mcgrath at propylon.com
Mon Feb 23 14:09:58 ICT 2004


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



More information about the relaxng-user mailing list