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: Re: topological sort


> So your construct count be replaced by:
> 
>   not(field/type/ref[not(. = $processed/name)])
> 
> I'm not sure whether this will be more efficient - it probably depends
> on the processor.  

In Saxon it almost certainly will be. The count()=count() construct will
fully enumerate both node-sets, whereas the not(x[not(y)]) construct will
stop as soon as the first relevant element is found.

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]