[xsl] XPath question

Subject: [xsl] XPath question
From: "Haque, Suraiya" <Suraiya.Haque@xxxxxxx>
Date: Fri, 10 May 2002 12:16:54 -0400
I'm having trouble coming up with a parameterized XPath expression I need.
First I set a variable (keyName) and then use the variable within the XPath.
This doesn't work. Any suggestion?? Thanks!

<xsl:variable name="keyName"><xsl:value-of
select="substring-after(../../ViewKey, ';')"/></xsl:variable>

<xsl:apply-templates select="//appInfo[ViewName='viewName' and
ViewKey=$keyName]/Structure[@StructId='VFM']/Row[@DEPEND='001']" >

If I use an explicit string in place of $keyName, it works. 

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

Current Thread