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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: parsing entity values

[ Lists Home | Date Index | Thread Index ]
  • From: "James Tauber" <jtauber@jtauber.com>
  • To: "Philip J Grabner" <grabner@interdim.com>, <xml-dev@ic.ac.uk>
  • Date: Sat, 23 Jan 1999 11:30:07 +0800

><!ENTITY % ap "&#38;#39;" > ( 38 = "&" , 39 = "'" )
><!ENTITY msg "he said %ap;hi!%ap;" >
>
>
>as i understand it, the replacement text for "ap" should be stored
>as "&#39;" because char ref's and pe's must be replaced by their values.

Right. The replacement text for ap is

    &#39;

With msg, the parameter entity is included as part of the replacement text
and so the replacement text of msg is

    he said &#39;hi!&#39;

When the entity msg is referenced within the document element, the character
reference is interpreted, resulting in

    he said 'hi!'

Replacement text is never reparsed at the point of declaration.

James








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