- From: "Michael Kay" <mike@s...>
- To: "'Shlomo Yona'" <S.Yona@F...>,"'Eran Balter'" <E.Balter@F...>,<xml-dev@l...>
- Date: Thu, 28 Feb 2008 15:00:57 -0000
Title: RE: XPath 2.0 data-model - dm:string-value of a node
/a/text() returns a sequence of two text nodes, containing
"x" and "z" respectively.
(What happens next depends on where you use this
expression).
Michael Kay
http://www.saxonica.com/
Hello,
What is expected to be returned for /a/text()
? Is it "xz" or "xyz"?
Thanks.
Shlomo
-----Original
Message----- From: Michael Kay [mailto:mike@s...] Sent: Wed
2/27/2008 9:51 PM To: Eran Balter; xml-dev@l... Subject: RE:
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@F...] Sent: 27 February
2008 17:05 To: xml-dev@l... Subject: 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?
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|