Re: [xml] node() xpath and entity ref nodes

* Vojtech Fried wrote:

Please do not use the "Reply to" function of your mail client to compose
new and independent mails to the mailing list.

I have an xml like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY greeting "ahoy">
      <value>Today, our greeting is &greeting;</value>

And xpath count(/root/value/node()) returns 1. It ignores the two entity 
reference nodes, I think it should return 3.

There are no entity reference nodes in the XPath data model, see e.g.
Björn Höhrmann · mailto:bjoern hoehrmann de ·
Am Badedeich 7 · Telefon: +49(0)160/4415681 ·
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]