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

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Element Order significance in XML



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@reutershealth.com>
no more / no less              || http://www.reutershealth.com
to do / all things             || http://www.ccil.org/~cowan
with art- / lessness           \\ -- Piet Hein