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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: External DTD Grammar

[ Lists Home | Date Index | Thread Index ]
  • From: Richard Tobin <richard@cogsci.ed.ac.uk>
  • To: John Cowan <cowan@locke.ccil.org>, XML Dev <xml-dev@ic.ac.uk>
  • Date: Wed, 5 Aug 1998 11:31:55 +0100 (BST)

> Replacement texts can't contain PE references (PE declarations can,
> but the references are resolved at entity declaration time), so it isn't
> even necessary to push back the replacement text onto the input stream.

This is not true - references are expanded when the entity is declared,
but that may produce text containing new entity references.  Consider:

 <!ENTITY % p1 "&#37;p2;">
 <!ENTITY % p2 "not">
 <!ENTITY e1 "this is %p1; obvious">

Entity e1 must expand to "this is not obvious".

-- 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