[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Possible new key() function (Was: Re: Finding the maxi

Subject: Possible new key() function (Was: Re: Finding the maximun number of nodes)
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 8 Jan 2001 04:15:04 -0800 (PST)
stylus maxi
>   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@xxxxxxxxxxxxxxxx> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.