This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Re: topological sort
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>, Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- Subject: RE: [xsl] Re: topological sort
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 5 Jan 2001 12:00:36 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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