W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

RE: 'entity' attribute, some questions

From: Gavin Thomas Nicol <gtn@eps.inso.com>
Date: Mon, 27 Jul 1998 01:00:36 -0700
To: "Frank Boumphrey" <Bckman@ix.netcom.com>, <www-dom@w3.org>
Message-ID: <001201bdb934$a38ff340$ebd45dc7@endymion.eps.inso.com>
> For the entity attribute it is not clear absolutley clear to me what
> notationName  or systemID is meant to return.
> 
> if the XML document contains the entity reference &dom;
> 
> If the DTD contained the entity declaration:
> 
> <!ENTITY  dom  "Document Object Model">
> 
> would the method:
> 
> 	var x=dom.notationName
> 
> assign to the varible x  the string
> 
> 	"Document Object Model"
> 
> or the string 
> 
> 	"dom"

Neither. Notations are only used for unparsed entities.

> Similarly if the DTD contained the entity declaration:
> 
> <!ENTITY  dom  SYSTEM "XMLtutorial.txt">
> would the method:
> 
> var x=dom.systemID
> 
> 	 assign to the varible x  the string
> 
> 	"XMLtutorial.txt"
> 
> or would it assign the contents of the file XMLtutorial.

The string "XMLtutorial.txt".

Admittedly, the spec could always be better worded...
Received on Monday, 27 July 1998 01:01:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:45 GMT