HTML & XHTML: The Complete Reference (Osborne Complete Reference Series)

 <  Day Day Up  >  

In the previous example, also note the asterisk appended to the model group . This is an occurrence indicator -a special symbol that qualifies the element type or model group to which it is appended, indicating how many times it may occur. There are three occurrence indicators:

Content models can also define an element type as containing element content, illustrated by the SGML declaration for a definition list ( <DL> ) under HTML 4:

<!ELEMENT DL - - (DT DD)+>

The XML declaration for dl under XHTML is again only slightly different as it omits the minimization information and cases the elements differently.

<!ELEMENT dl (dt dd)+>


 <  Day Day Up  >  

Категории