[xsl] concat selected text nodes

Subject: [xsl] concat selected text nodes
From: "Steve Renshaw" <renshaw_steve@xxxxxxxxxxx>
Date: Fri, 20 Apr 2001 15:47:32 -0000
Tryng to form an XPath that retuns string from
following XML:

<item>This is a<ver id="0">n old
</ver> <ver id="1">new</ver> sentance.</item>

When $ver='0' return "This is an old sentance."
When $ver='1' return "This is a new sentance.

Play with select="concat(...)" and select="item[...]" and
text() -> no luck. Basically need to concatenat all text
nodes whose parent don't have ver attribute or the version
attribute eqls $ver. Any hlp?


_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread