[Home] [By Thread] [By Date] [Recent Entries]

  • From: John Cowan <jcowan@r...>
  • To: "Bhatt, Avi" <ABhatt@E...>
  • Date: Thu, 26 Jul 2001 13:23:14 -0400

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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member