[xsl] Attribute Value Template

Subject: [xsl] Attribute Value Template
From: "David B. Bitton" <david@xxxxxxxxxxxxxx>
Date: Sat, 05 Apr 2003 00:11:48 -0500
	So now i have the following non-functioning template:

	<xsl:template match="sub">
		<xsl:variable name="name" select="./@name"/>
		<xsl:value-of select="{$name}"/>

What I am trying to accomplish is extracting a value from the underlying XML, and then pulling a value from an xsl:variable with the same name as the data that came from the XML.

Any ideas? :)

David B. Bitton

Code Made Fresh Daily™

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread