OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Appendix D XML 1 spec

[ Lists Home | Date Index | Thread Index ]
  • From: Richard Tobin <richard@cogsci.ed.ac.uk>
  • To: Peter Jones <peterj@wrox.com>, "'xml-dev@ic.ac.uk'" <xml-dev@ic.ac.uk>
  • Date: Wed, 26 Aug 1998 13:22:14 +0100 (BST)

> <!ENTITY example "<p>An ampersand (&#38;#38;) may be escaped
> numerically (&#38;#38;#38;) or with a general entity
> (&amp;amp;).</p>" >

When the entity declaration is parsed, character entities are expanded
but general entities (including &amp;) 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;) ... (&#38;#38;) ... (&amp;amp;) ...

When this is expanded in the instance, both character and general
entities are expanded (again, as specified in the table), producing

 ... (&) ... (&38;) ... (&amp;) ...

in the text passed to the application.

-- Richard

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS