Subject: Re: [xsl] XSL to XSLT conversion issue From: S Woodside <sbwoodside@xxxxxxxxx> Date: Tue, 15 Apr 2003 16:49:40 -0400 |
Jim Hart wrote:I want to convert:
[ index() $gt$ context()!index() ]
to something equivalent in XSLT. In MSXML docs, it says that context() is equivalent to context(-1). At topxml it says that current() in XSLT is equivalent to context(-1) in XSL. I know I can use > in place of $gt$ and position() in place of index(). However, there's no equivalent for the "bang operator" (!) and position() won't take an argument. So, I can't figure out how to get the position() of current().
Bind it to a variable, for example <xsl:variable name="current-position" select="position()"/> ... <xsl:value-of select="$foo[position() > $current-position]"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL to XSLT conversion is, J.Pietschmann | Thread | Re: [xsl] XSL to XSLT conversion is, J.Pietschmann |
Re: [xsl] XSL to XSLT conversion is, S Woodside | Date | RE: [xsl] more on Using apply-templ, Kathy Burke |
Month |