From: Shlomo Yona [mailto:S.Yona@F5.com]
Sent: 28 February 2008 14:36
To: Michael Kay; Eran Balter; xml-dev@lists.xml.org
Subject: RE: [xml-dev] XPath 2.0 data-model - dm:string-value of a node
Hello,
What is expected to be returned for /a/text() ?
Is it "xz" or "xyz"?
Thanks.
Shlomo
-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com]
Sent: Wed 2/27/2008 9:51 PM
To: Eran Balter; xml-dev@lists.xml.org
Subject: RE: [xml-dev] XPath 2.0 data-model - dm:string-value of a node
The string value of an element node is the concatenation of all its
descendant text nodes.
Michael Kay
http://www.saxonica.com/
_____
From: Eran Balter [mailto:E.Balter@F5.com]
Sent: 27 February 2008 17:05
To: xml-dev@lists.xml.org
Subject: [xml-dev] XPath 2.0 data-model - dm:string-value of a node
Hi,
Given the following:
<a>x<b>y</b>z</a>
Is the string-value of Element-node "a" is "xz" or "xyz", or generally:
should the value of the children element-nodes be concatenated to the
string-value?
Should Processing instructions/comments's text be concatenated to the parent
node?