Re: [xsl] How to get the preceding-sibling of parameter context node[URGENT]

Subject: Re: [xsl] How to get the preceding-sibling of parameter context node[URGENT]
From: "Gennady Loskutov" <g_loskutov@xxxxxxxxxxxxx>
Date: Thu, 14 Feb 2002 09:22:57 +0100
> //How to get the preceding-sibling of context node
> here following does not work
>
> <xsl:variable name="cnt"
> select="count(preceding-sibling::$contextnode[@name='data'])"/>

Should it be
<xsl:variable name="cnt"
select="count($contextnode[@name='data']/preceding-sibling::*)"/> ?

Regards,
Gennady




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread