W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: DOM Level 3 XPath Specification and entity references

From: Chris Mennie <cam@decisionsoft.com>
Date: Wed, 10 Oct 2001 16:33:25 +0100 (BST)
To: www-dom@w3.org
Message-ID: <Pine.LNX.4.21.0110101619130.1351-100000@thames.dsl.local>
> If the XPath returns text, it returns only first Text/CData node in any
> block of logically-contiguous text. (Which may involve multiple nodes, and
> may cross EntityReference boundaries.)

	I'm still a little unclear, say I declare:

<!ENTITY % bit "bit">
<!ENTITY middle "middle %bit;">

	And then I have the following XML fragment:

This is the &middle; part

	So if I did "/top/text()" what would be returned? Would it be:

	1) "This is the"
	2) "This is the" and "part"
	3) "This is the" and "middle bit" and "part"
	4) Something else?

	Thanks for the help.
Received on Wednesday, 10 October 2001 11:33:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC