Defining an attribute list


An attribute list declaration takes the form

<!ATTLIST name attributelist >

name
is the name of the element bearing these attributes
attributeList
is a list of attribute specifications, each containing
  • an attribute name
  • a declared value
  • a default value

For example:

<!ATTLIST recipe serves CDATA #REQUIRED
                 id     ID    #IMPLIED
                 tested (yes|no|maybe) "maybe">


15 Next | First| Previous XML: the refresher