This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XPath question
- From: "Haque, Suraiya" <Suraiya dot Haque at fmr dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 10 May 2002 12:16:54 -0400
- Subject: [xsl] XPath question
- Reply-to: xsl-list at lists dot mulberrytech dot com
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