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

Subject: Re: [xsl] Extracting value from node with formatter elements
From: Amit Hanchinamani <a.hanchinamani@xxxxxxxxxxx>
Date: Mon, 14 Apr 2008 16:17:30 +0200
David Carlisle schrieb:

Thanks David, Andrew & Vyacheslav for the quick reply...it helped :-)


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