|
Home >Online Product Documentation >Table of Contents >Simple Example of Aggregating Modifiers in DTDs Simple Example of Aggregating Modifiers in DTDsSuppose you want a book element to always contain exactly one title element and any number of author elements. The title and author elements contain only raw data. To accomplish this, you would perform steps that generate the following tree representation: In the book element definition, Sequence modifies book and One or More modifies Sequence. Because the title element immediately follows the Sequence modifier, the default occurrence rule is assumed. That is, the title element must appear exactly once. In the Text view of the DTD, the definition for the book element is as follows:
<!ELEMENT book (title, (author)+)>
|