Re: [xsl] Extracting value from node with formatter elements

Subject: Re: [xsl] Extracting value from node with formatter elements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 14 Apr 2008 14:32:44 +0100
value-of returns the string value of an element, you want to return an
element node, so use xsl:copy-of instead.

or better just do

   <xsl:variable name="elementText" select="." />

Then the variable holds the original element (rather tahn a copy of it)

David

Current Thread