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.

-- 
Groetjes,

Berend. (-:

Reply via email to