RE: testing node type

Subject: RE: testing node type
From: "Jarno Elovirta" <jarno@xxxxxxxxxxxxxx>
Date: Sat, 23 Sep 2000 19:32:11 +0300
> > >   <xsl:if test="following-sibling::node()[1][self::comment()]">
> ...
> >...yes, that *is* what I wanted
>
> I think following-sibling::node()[1]/self::comment() should work as well.
> Interesting to notice why.

I tried to compare the processing time of both with a 3MB source file and a
style sheet that just did that test to every node, but I didn't have time to
do a proper test and the results weren't valid. So, implementor out there,
can you tell me which is _theoretically_ faster? I mean in practice you
can't see the difference, so the question is purely academic.

Jarno


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


Current Thread