At 11:51 AM 3/21/2002 +0100, Berend de Boer wrote:
>Hans Hagen <[EMAIL PROTECTED]> writes:
>
> > How does the DTD part looks that permits the following?
> >
> > <one> <a>...</a> <b>...</b> <c>...</c> </one>
> > <one> <b>...</b> <c>...</c> <a>...</a> </one>
> > <one> <a>...</a> </one>
> >
> > or: arbitrary order of two optional elements b,c and one mandatory
> element a
>
>Really annoying:
>
><!ELEMENT one ( (a, b?, c?) | (a, c?, b?) |
> (b?, a, c?) | (c?, a, b?) |
> (b?, c?, a) | (c?, b?, a) )
>
>Doesn't scale as you notice. SGML DTD makes this a lot easier, but XML
>DTD is simpler. At least Relax NG supports this better AFAIK, so I
>expect in XML Schema this is also easier.
Does this mean that the dtd is the limiting factor? Or is Relax NG not xml
complient?
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
fall-back web server:
www.pragma-ade.nl
-------------------------------------------------------------------------