Subject: RE: [xsl] XPath question From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Fri, 10 May 2002 17:55:36 +0100 |
> > <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. > Perhaps the context node at the time of doing the xsl:variable was different from the context node at the time of xsl:apply-templates? This isn't the cause of the trouble, but <xsl:variable name="keyName"><xsl:value-of > select="substring-after(../../ViewKey, ';')"/></xsl:variable> is a grotesquely convoluted (and probably expensive) way of doing <xsl:variable name="keyName" select="substring-after(../../ViewKey, ';')"/> Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath question, David Carlisle | Thread | [xsl] XPath question, Varley, Roger |
RE: [xsl] Calculating a sum of roun, Michael Kay | Date | RE: [xsl] Tokenizing nodes instead , Michael Kay |
Month |