BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XSLT
max() function, by msxsl:script
Whitespace-stripping
Padding with XSLT
Preceding-subling XSL
Basic Shapes to Paths with TinyLine
XML to CSV using XSLT
Cross-Browser display of XML/XSL
Cross Reference Lookup in XSLT using XML file as Xref table
Recursion reminds me of Recursion (9 XSLT Recursion examples)
XSLT Sort - output entire xml file with new sort order
Variable Variables
Cross Reference Lookup in XSLT using embedded XML
XTrans 1.0
XML Explorer 2.5
Create an N-Column Table from XML node-set
XSLT Select Option Example
XSLT Date filtering, sorting, comparing, and evaluating
XSLT Template for HTML INPUT Tag
XSLT Template for HTML IMG Tag
XSLT Search and Replace Template


 
 

<< XQuery.NET and XML >>


By Dimitre Novatchev
First Posted 03/14/2003
Times viewed 938

Re: max() function in xslt


Summary Implementation of a simple O(N) algorithm for finding the maximum of a nodeset of nodes having numeric values. For a really generic solution look in the FXSL library.

This is an implementation of a simple O(N) algorithm for finding the maximum of a nodeset of nodes having numeric values. For a really generic solution look in the FXSL library. ANother solution is also provided, which uses xsl:sort and is O(N * log2(N)), but is faster in most practical cases. Do enjoy. Dimitre Novatchev, http://fxsl.sourceforge.net/ -- the home of FXSL

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XQuery.NET and XML >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML