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: Short circuit the id function


>      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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]