This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Formatted node to variable



<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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]