This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: using xsl:key to generate list of back references
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: using xsl:key to generate list of back references
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 22 May 2000 17:39:46 +0100
- Reply-To: xsl-list at mulberrytech dot com
> will it be much faster, do you think, having a dedicated "same-nodes"
> comparison operator? or just make for more readable XSL?
I'd expect that in Saxon, for this predicate, the difference is noticeable,
but whether it affects the overall stylesheet execution time is anyone's
guess.
Another technique is
select="//ptr[count(.|key('targets',@target)[1])=1]">
And incidentally:
select="/descendant::ptr[count(.|key('targets',@target)[1])=1]">
might save you a sort. (Saxon will do this optimisation for you in some
cases but probably not here)
Mike K
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list