Re: Exslt implementation, was "When does sort occur?"
> I use MSXML 3.0 and I think it does not support EXSLT. If I am incorrect in > this, I will be glad to hear. > Note that the maximum function is also available _in_ EXSLT as a template rather than as a vendor-specific extension function so that is another possibility (although FXSL is a more complete solution for template based functionality, if you are just looking for the max function it doesn't make much difference). Several of the EXSLT functions are available as templates if that is possible. You could also of course just write a template directly that iterates along a parameter containing the node set, and passing on a parameter with the largest value so far. Any of these solutions is likely to just have to make one pass over the data to fond the largest so will have time proportional to the n if there are n nodes to be accessed. using xsl:sort and taking the first requires less keystrokes to code in xslt but will always take longer given a large enough data set (unless you have a very smart query optimiser) as you first sort all the nodes into a complete order and then ignore most of that information and just take the first. You can not sort a list of values in order n time, most likely it takes n log n. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format