OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] The use of XML syntax in XML Query

[ Lists Home | Date Index | Thread Index ]

Jonathan Robie wrote:

> (((a,a)*, (b,b)*, (c,c)*) | ((a,a)*,a, (b,b)*,b, (c,c)*,c))
> In this content model, either a,b, and c all occur an even number of 
> times, or they all occur an odd number of times.

Just for the fun of it, I transformed this content model into the
following RELAX NG schema (note that the main part is just

a = element a {empty}
b = element b {empty}
c = element c {empty}
start = element result {

Jing was able to process this schema fine, despite its nondeterminism,
and correctly reported errors in several test documents I created.

Not to perambulate             || John Cowan <jcowan@reutershealth.com>
    the corridors               || http://www.reutershealth.com
during the hours of repose     || http://www.ccil.org/~cowan
    in the boots of ascension.  \\ Sign in Austrian ski-resort hotel


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS