This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: testing node type


> > >   <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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]