[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member