XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] XPath 2.0 data-model - dm:string-value of a node

Title: RE: [xml-dev] 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/


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?








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS