Table of contentsAppendices |
4.1 Character and Entity ReferencesCharacter and Entity ReferencesA character reference refers to a specific character in the ISO/IEC 10646 character set, for example one not directly accessible from available input devices. Character Reference
Well Formedness Constraint: Legal Character Legal CharacterCharacters referred to using character references MUST match the production for Char. If the character reference begins with "
An entity reference
refers to the content of a named entity. References to parsed general entities use
ampersand (
Well Formedness Constraint: Entity Declared Entity DeclaredIn a document
without any DTD, a document with only an internal DTD subset which contains
no parameter entity references, or a document with " Note that non-validating processors are not obligated to to read and process entity declarations occurring in parameter entities or in the external subset; for such documents, the rule that an entity must be declared is a well-formedness constraint only if standalone='yes'. Validity Constraint: Entity Declared Entity DeclaredIn a document with
an external subset or external parameter entities with " Well Formedness Constraint: Parsed Entity Parsed EntityAn entity reference MUST NOT contain the name of an Unparsed Entity. Unparsed entities may be referred to only in Attribute Value declared to be of type ENTITY or ENTITIES. Well Formedness Constraint: No Recursion No RecursionA parsed entity MUST NOT contain a recursive reference to itself, either directly or indirectly. Well Formedness Constraint: In DTD In DTDParameter-entity references MUST NOT appear outside the Document Type Declaration. Examples of character and entity references: Type <key>less-than</key> (<) to save options. This document was prepared on &docdate; and is classified &security-level;. Example of a parameter-entity reference: <!-- declare the parameter entity "ISOLat2"... --> <!ENTITY % ISOLat2 SYSTEM "http://www.xml.com/iso/isolat2-xml.entities" > <!-- ... now reference it. --> %ISOLat2; |