W3C home > Mailing lists > Public > xml-editor@w3.org > July to September 2005

Re: external entities

From: Eve L. Maler <Eve.Maler@Sun.COM>
Date: Thu, 07 Jul 2005 12:49:09 -0700
To: Junfeng Dong <junfengd@microsoft.com>
Cc: xml-editor@w3.org
Message-id: <42CD8735.7030307@sun.com>

Yes, that's correct; ext is still a plain old internal entity. 
There are a number of places where declarations can occur and a 
number of indirections possible; regardless of the location, an 
internal entity declaration retains its essential nature.

	Eve

Junfeng Dong wrote:
> Hi Eve,
> 
> Thanks for your reply. Here is another question about external entities.
> An xml document is given below:
> 
> <!DOCTYPE Root [
> 	<!ENTITY % PE SYSTEM "pent.ent">
> 	%PE;
> ]>
> <Root att="&ext;" />
> 
> The content of file pent.ent is:
> 
> <!ELEMENT Root ANY>
> <!ATTLIST Root att NMTOKEN #IMPLIED>
> <!ENTITY ext "blah">
> 
> By definition, PE is an external parameter entity. How about entity ext?
> From your last message, it should be an internal ext, right?
> 
> Thanks,
> Junfeng
-- 
Eve Maler                                         +1 425 947 4522
Technology Director                           eve.maler @ sun.com
CTO Business Alliances group                Sun Microsystems, Inc.
Received on Thursday, 7 July 2005 19:49:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:56 UTC