Name

Enumeration Attribute Type

Synopsis

                        ... (
                        name_token 
                        [
                        | 
                        name_token]
                        *) ...

This syntax limits the possible values of the given attribute to one of the name tokens from the provided list:

<!ELEMENT door EMPTY>
<!ATTLIST door
          state (open | closed | missing) "open">
. . .
<door state="closed"/>

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.