NOTATION TYPE
May 3, 1999
The NOTATION type allows an attribute to have a value
specified by a notation declared in the DTD in cases
in which you want certain consequences to follow from the
attribute. These are usually used as triggers such as
when you want to specify a given player for a given file type.
Consider the following example:
<?xml version = "1.0"
encoding="UTF-8"
standalone = "yes"?>
<!DOCTYPE DOCUMENT [
<!ELEMENT DOCUMENT ANY>
<!ELEMENT MOVIE EMPTY>
<!ATTLIST MOVIE SOURCE ENTITY #REQUIRED>
<!ATTLIST MOVIE PLAYER NOTATION #REQUIRED>
<!ENTITY BladeRunner SYSTEM "dvds/BR/br.mov">
<!NOTATION mp SYSTEM "movPlayer.exe">
]>
<DOCUMENT>
<MOVIE SOURCE = "&BladeRunner;" PLAYER = "mp"/>
</DOCUMENT>
NMTOKEN and NMTOKENS
Introduction to XML For Web Developers | Table of Contents
Entity Declarations
|