[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Short circuit the id function


Subject: RE: [xsl] Short circuit the id function
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 26 Sep 2001 21:33:09 +0100

>      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



Current Thread
Keywords