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] Subtyping in XML

[ Lists Home | Date Index | Thread Index ]

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  jcowan@reutershealth.com  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




 

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

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