Subject: RE: find the following sibling of my parent From: Kay Michael <Michael.Kay@xxxxxxx> Date: Thu, 27 Apr 2000 15:50:18 +0100 |
<xsl:value-of > select="generate-id($context::following-sibling::*[position()=1])"/> Others have pointed out the correct syntax here. > </xsl:attribute>NEXT</xsl:element> > </xsl:when> > <xsl:otherwise> > <xsl:variable name="newcontext"> > <xsl:value-of select="concat($context,'::parent')"/> > </xsl:variable> > <xsl:call-template name="parentnext"> > <xsl:with-param name="context" select="$newcontent"/> > </xsl:call-template> > </xsl:otherwise> > </xsl:choose> NO! The parameter passed to parentnext will be a string containing an XPath expression, it will not be the result of evaluating that expression. There is no way in standard XSLT of constructing an XPath expression at run-time and then evaluating it. (There is a Saxon extension to do this, but I'm fairly sure you don't need it here.) Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: find the following sibling of m, Peter Boot | Thread | RE: find the following sibling of m, Paulo Gaspar |
RE: Broken link problems anyone?, Medina, Edward | Date | Re: including the HTML <BR> in XSL , David Marston/CAM/Lo |
Month |