next up previous contents
Next: Model Group Operators Up: The Document Type Definition Previous: The Document Type Definition

Element declarations

    <!ELEMENT anthology      - -  (poem+)>

Is composed of:

<! Markup declaration open delimiter
ELEMENT declaration type keyword
anthology generic identifier
- - omitted tag minimization
(poem+) content model
> Markup declaration close delimiter

Some more examples:

<!ELEMENT anthology      - -  (poem+)>
<!ELEMENT poem           - -  (title?, stanza+)>
<!ELEMENT title          - O  (#PCDATA) >
<!ELEMENT stanza         - O  (line+)   >
<!ELEMENT line           - -  (#PCDATA) >

The document according to the declarations:

    <anthology>
       <poem>
         <stanza>
              <line>The first stanza.</line>
         <stanza>
              <line>Of a sad song</line>
              <line>this was.</line>
      </poem>
    </anthology>


Tomaz Erjavec
1/9/2000