- 82 -
Notation attribute types essentially specify a list of predeclared notations, which are
defined earlier in the Document Type Declaration. In doing so, the
value of the attribute is
constrained to one of these notation values. It is a little like the enumerated attribute type
with two exceptions. First, you are declaring the values as notations instead of text.
Second, the default value is implicitly defined; therefore, it is not followed by our
mysterious
default
statement. Notations are discussed
later in this chapter, but let’s look
at an example of how they are used in the context of declarations of notation attribute
types.
For this notation declaration:
"http://mysite.com/my_format_processor.exe">
this NOTATION attribute declaration could be used:
and this element would be considered valid:
If you have several notations declared beforehand, you can specify a list of choices in
your attribute declaration. For example, in
my_code elements have the format attribute values of either my_format or
some_other_format. That is, both
and
are considered valid under this declaration.
Table 3.7 summarizes these attribute type declarations.