going crazy part 2

Subject: going crazy part 2
From: Natalie Rooney <nrooney@xxxxxxxxxxxxx>
Date: Thu, 11 Nov 1999 14:27:39 -0600
I was using the following count statements in <xsl:value-of
select="[statment]"/>
Another strange thing is that when I use

<xsl:apply-templates select="(//BADUSERS/BADUSER)[2]/*"/>

Things work out as expected.  That is, the child nodes of the second
baduser node are returned.




Weird Behavior:

count( (//BADUSERS/BADUSER)[2] ) returns 1

count( (//BADUSERS/BADUSER)[2]/* ) returns nothing

count( //BADUSERS/BADUSER[2] ) returns 0

count( //BADUSERS/BADUSER[1] ) returns 3


There are 3 BADUSER elements.  Can anyone shed some light on this?  I am
using XSL:P.

Thanks,
Natalie


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


Current Thread