Not enough examples of combinations of all the features of an ATTLIST declaration.
On pages 121 - 127 the book discusses attribute declarations in DTDs. It lists many different features that can be included within these attribute declarations. Specifically, attribute types, attribute value declarations (p. 125) and default values. Unfortunately for each of these features the book doesn't always give us examples of how that feature should be used with the other features. For instance: Default values are only shown for enumerated lists and the #FIXED attribute value declaration. So, how do we use default values with other combinations of attribute types and value declarations. Does the default value always come at the very end of the attribute declaration, even after the attribute value declaration? The book says to put the default value after the attribute type. However, in the example of an attribute with the #FIXED attribute value declaration, the default value is placed after the #FIXED, not directly after the attribute type (p. 126).
The authors need to be much more clear on this point.
|