This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Short circuit the id function
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Short circuit the id function
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 26 Sep 2001 21:33:09 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Is it possible to short circuit the id function such
> that it stops
> looking after it finds the first match?
If you write id($x)[1], then most XSLT processors will stop looking after
the first match.
But most XSLT processors will have built an index or hash table to support
the id() function anyway, so it shouldn't make much difference in this case.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list