I have a dtd with the declaration:
<!ELEMENT BDD (BSR, (AccountX | Agreement | Delivery | DET | Invoice | Part
| Party | PartPres | PriceList)*)>
Do I understand this correctly? Given that asterix at the end of the 'OR'
list, this means that a properly formed XML must have:
1) A BDD element
2) Within the BDD, a BSR element
3) And finally, (also within the BDD) any number of instances of one or more
elements from the 'OR' list, or none at all?
(And if there were no asterix at the end of that 'OR' list, there would have
to be one and only one copy of only one of those elements?)
Martin Honnen - 08 Jul 2008 17:14 GMT
> I have a dtd with the declaration:
> <!ELEMENT BDD (BSR, (AccountX | Agreement | Delivery | DET | Invoice | Part
[quoted text clipped - 9 lines]
> (And if there were no asterix at the end of that 'OR' list, there would have
> to be one and only one copy of only one of those elements?)
I think you have that correctly, see
http://www.w3.org/TR/xml/#sec-element-content for the formal definition.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/