[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Positional tests
Tempore 19:17:58, die 03/02/2005 AD, hinc in
xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Paul Clarke
<pclarke@xxxxxxxxxxxxxxxx>:
I need to find out if a block element that I process is the first one with Hi, It could be (I'm not sure) that the 'xsl:number' element is faster than XPath. If that's the case, then you might use this: <xsl:variable name="cnt"> <xsl:number count="block" from="*[starts-with(local-name(),'S')]" level="any"/> </xsl:variable> <xsl:if test="self::block and $cnt='1'"> <xsl:attribute name="hit">true</xsl:attribute> </xsl:if> regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Spread the wiki (http://www.wikipedia.org)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|