Lists Home |
Date Index |
- From: Richard Tobin <firstname.lastname@example.org>
- To: Peter Jones <email@example.com>, "'firstname.lastname@example.org'" <email@example.com>
- Date: Wed, 26 Aug 1998 13:22:14 +0100 (BST)
> <!ENTITY example "<p>An ampersand (&#38;) may be escaped
> numerically (&#38;#38;) or with a general entity
> (&amp;).</p>" >
When the entity declaration is parsed, character entities are expanded
but general entities (including &) are not. (The table in section
4.4 is first place you should look in questions of this kind.)
So (as described in appendix D) the entity's value is
... (&) ... (&#38;) ... (&amp;) ...
When this is expanded in the instance, both character and general
entities are expanded (again, as specified in the table), producing
... (&) ... (&38;) ... (&) ...
in the text passed to the application.
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)