Next / Previous / Contents / TCC Help System / NM Tech homepage

7. Notation declarations

The purpose of a notation declaration is to define the format of some external non-XML file, such as a sound or image file, so you can refer to such files in your document.

The general form of a notation declaration can be either of these:

    <!NOTATION nname PUBLIC std>
    <!NOTATION nname SYSTEM url>

where nname is the name you are giving to the notation; std is the published name of a public notation, and url is a reference to a program that can render a file in the given notation.

There are four steps to connecting an attribute to a notation:

  1. Declare the notation. Example:

        <!NOTATION jpeg PUBLIC "JPG 1.0">
  2. Declare the entity. For example:

        <!ENTITY bogie-pic SYSTEM
            "" NDATA jpeg>
  3. Declare the attribute as type ENTITY. For example:

        <!ATTLIST star-bio pin-shot ENTITY #REQUIRED>
  4. Use the attribute:

        <star-bio pin-shot="bogie-pic">...</star-bio>