[xsl] XSL Variable problem

Subject: [xsl] XSL Variable problem
From: Gang Li <g_li@xxxxxxxxx>
Date: Wed, 9 Mar 2005 12:23:00 -0800 (PST)
Hi all,

I have been struggling with a very weird problem.

<xsl:variable name="soldplan">
  <xsl:value-of select="$InputNodes[@AttrName='Selected H Plan']"/>
</xsl:variable>

<xsl:variable name="soldrate"
select="//MatrixResult/MatrixRow[@ID=$soldplan]"/>

Here I couldn't find the corresponding MatrixRow ($soldplan='TA')

But following will find the correct row

<xsl:variable name="soldrate"
select="//MatrixResult/MatrixRow[@ID='TA']"/>

Can you tell me what did I do wrong?

Thanks a lot!

Current Thread