This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Formatted node to variable
- To: xsl-list at mulberrytech dot com
- Subject: Re: Formatted node to variable
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 9 Oct 2000 19:15:43 GMT
- References: <F21NZ4aUnWAN97DxOZu000144d5@hotmail.com>
- Reply-To: xsl-list at mulberrytech dot com
<xsl:template match = "List">
<xsl:variable name="var">
<xsl:apply-templates select="ListItem"/>
</xsl:variable>
<xsl:value-of select="$var"/>
</xsl:template>
value-of gives the string value, ie strips out all the element markup.
use xsl:copy-of instead.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list