Re: [xml-dev] Subtyping in XML

From
John Cowan <>
To
Date
2002-09-06T03:09:34Z
ID
<>
Thread
Re: [xml-dev] Subtyping in XML
Jeff Lowery scripsit:
> 
> I thought someone else would note that the DTD
> 
> <!ELEMENT MY-NON-BOOLEAN ((TRUE | FALSE)?, (TRUE | FALSE))>
> 
> is nondeterministic and therefore not allowed by XML Schema.  

But of course its RNG equivalent

start = element MY-NON-BOOLEAN {(true | false)?, (true | false)}
true = element TRUE {empty}
false = element FALSE {empty}

works like a champ.

-- 
John Cowan    www.ccil.org/~cowan  www.reutershealth.com
"If I have seen farther than others, it is because I am surrounded by dwarves."
        --Murray Gell-Mann