[Home] [By Thread] [By Date] [Recent Entries]
Bhatt, Avi wrote: > In particular, how can we > specify that ELEMENT BIG can have either 0 or 1 of SMALL1, SMALL2... in any > random order? > > <!ELEMENT BIG (SMALL1?,SMALL2?,SMALL3?,SMALL4?,SMALL5?)> You can't using DTDs. SGML had this capability, but it was removed from XML. XML Schemas restore the capability. My advice: Learn to live with fixed order. The additional flexibility is rarely worthwhile. -- There is / one art || John Cowan <jcowan@r...> no more / no less || http://www.reutershealth.com to do / all things || http://www.ccil.org/~cowan with art- / lessness \\ -- Piet Hein
|

Cart



