is default-entity Full Description |
|
Syntaxentity (is | isnt) default-entity Purpose An entity test to determine whether the current entity has been assigned the value of the general default entity. The current entity will take the value of the general default entity if it was not defined. An SGML DTD can contain a declaration for the default general entity. Any general entity reference that contains a name that was not defined as a general entity in the DTD is "re-routed" to the default general entity. The entity names in If there is no default general entity, a general entity reference containing an undefined name is an error. An undefined parameter entity is always an error. There is no such thing as a "default parameter entity". The default general entity can be any type of general entity: internal, external, text, or non-SGML. It is the job of the DTD designer and the creators of SGML documents to ensure that whenever an undefined general entity is referenced, or its name is used in an This example will always output the text "[DEFAULT]" for references to an undefined general entity. It will do so independently of any public or system identifiers the default general entity may have, as long as the default general entity is an external text entity. In addition, it displays a message on the error output indicating which undefined entities are referenced in the document:
external-text-entity #implied when entity is default-entity output "[default]" put #error "General entity %q is undefined.%n" |