[xsl] variable problem

Subject: [xsl] variable problem
From: Jo Bourne <venus@xxxxxxxxx>
Date: Sat, 3 Feb 2001 00:53:07 +1100
Hi,

I have created a variable like this:

<xsl:variable name="table_name" select="/page/@table_name" />

and to test that I am getting the right value (and I am) I have inserted it in my page like this:

table_name=<xsl:value-of select="$table_name" />

but when I try to use my variable like this :

<xsl:apply-templates select="Links"/>
or this
<xsl:template match="$table_name">

it doesn't work (the document won't parse anymore). Is there something I have misunderstood about where you can and cannot call a variable?

thanks in advance
Jo

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


Current Thread