DTD Attribute Types - NOTATION

The attribute type of NOTATION allows you to use a value that has been declared as a notation in the DTD.

A notation is used to specify the format of non-XML data. A common use of notations is to describe MIME types such as image/gif, image/jpeg etc.


To declare a notation:

To declare the attribute:


In the DTD, we have specified that the value of the photo_type attribute can be one of the three values supplied. The following XML document would be valid, as it conforms to the above DTD: