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]
Other format: [Raw text]

XPath question



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


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