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: Finding the maximun number of nodes


> Unless your XSL system is particularly smart, the count() version
> will force it to find every such node, so they can be counted,
> but the not() version will allow it to stop after it finds the
> first one.

Saxon does this optimisation (it's not particularly difficult) provided that
the argument to count() is known to be a node-set at compile-time. 

Mike Kay

 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]