This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Possible new key() function (Was: Re: Finding the maximun number of nodes)
- To: Jeni Tennison <mail at jenitennison dot com>
- Subject: Possible new key() function (Was: Re: [xsl] Finding the maximun number of nodes)
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Mon, 8 Jan 2001 04:15:04 -0800 (PST)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
> key('mykey', saxon:expression('. > $minValue'))
Most convenient would be:
key-greater(keyName, value)
Whether the following will be useful:
key-greater(keyName, nodeset-expression)
doesn't seem immediately obvious.
Cheers,
Dimitre.
--- Jeni Tennison <mail@jenitennison.com> wrote:
> > As for wishes for new features in the next versions of XSLT, it is
> > obvious that the speed of many such algorithms will be considerably
> > increased by using a modification of the key() function that
> returns
> > a nodeset of all nodes with value ***greater than given value***
> for
> > a named key.
>
> If there was a variety of key() that allowed you to retrieve all
> keyed
> nodes (for example key() without the second argument), then you could
> do things like:
>
> key('mykey')[. > $minValue]
>
> to the same effect, but yes it would probably be more efficient if
> the
> key value test could be done behind the scenes. Something like:
>
> key('mykey', saxon:expression('. > $minValue'))
>
> Adding this kind of functionality to key() would be useful for all
> those people who want to retrieve nodes with key values that *start
> with* something and so on, as well.
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list