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

'entity' attribute, some questions

From: Frank Boumphrey <Bckman@ix.netcom.com>
Date: Tue, 28 Jul 1998 12:21:26 -0400
Message-Id: <199807261915.OAA11656@dfw-ix6.ix.netcom.com>
To: <www-dom@w3.org>
I have some further rather simplistic questions, which I think I know the
answers to but as I am writing about it I want to be sure I have the
correct answer!!

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"

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.

TIA, 
	Frank
Received on Sunday, 26 July 1998 15:15:40 GMT

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