Re: [xsl] Count items in a key ?

Subject: Re: [xsl] Count items in a key ?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 15 Oct 2010 12:30:26 +0100
On 15/10/2010 11:10, Hermann Stamm-Wilbrandt wrote:
I followed the whole thread on this and a key can match nodes only.
What do you mean with reverse key?

Yes I wondered about that after I wrote it. As you may have noticed sometimes my xsl-list answering fingers are not totally connected to my brain.

I think basically I was thinking of this, given

xsl:key name="k" match="*[@id]" use="@id"

then the set of keys is got by doing something like


so can you speed up that // using a key?

to do it with a key you'd probably have to do something like

xsl:key name="r" match="@id" use="''"

but using a key with a constant key is probably just an inefficient alternative to using a variable, especially if you are only going to use it once, as in


or something....


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

Current Thread