f



XSLT: concatenating selected text nodes

in XSLT, if I want to concatenate _all_ the child text nodes, I can just do

    <xsl:value-of select=".">

however, if I want to select and concatente only _some_ of the text nodes. 
for instance

    <xsl:value-of select=".//foo/text()">

this doesn't work as it just takes the first element in the node set. Is 
there any way of achieving this without using <xsl:for-each> to explicitly 
loop round them all?

TIA

Andy



0
ajfish (411)
1/10/2005 9:46:29 AM
comp.text.xml 8781 articles. 0 followers. Post Follow

2 Replies
854 Views

Similar Articles

[PageSpeed] 35

use copy-of not value-of


David
0
davidc5020 (601)
1/10/2005 10:39:07 AM
"David Carlisle" <davidc@nag.co.uk> wrote in message 
news:yg4r7ktpnzq.fsf@penguin.nag.co.uk...
>
> use copy-of not value-of
>

worked a treat - thanks david.

>
> David


0
ajfish (411)
1/10/2005 11:57:22 AM
Reply: