[xsl] Ann: Generic Templates -- min(), max(), binSearch(), sort()

Subject: [xsl] Ann: Generic Templates -- min(), max(), binSearch(), sort()
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 24 May 2001 06:30:15 -0700 (PDT)
I have submitted to the EXSL list a number of generic templates implementing generic
functions as specified in the subject.

In contrast with other such efforts, these are not just function definitions waiting
for a developer's decision to implement them in an XSLT processor, but these are
ordinary XSLT 1.0 templates that are already running now (tested on both MSXML3/4
and SAXON) and can be used immediately.

I hope that they can also be helpful to other people in understanding the concept of
generic templates and building their own implementations of generic algorithms.

The templates, EXSL documentation, use-case templates, data and result files are
temporarily available (thanks to Jeni Tennison) at
http://www.exslt.org/submissions/generic/

The implementations are at:

http://www.exslt.org/submissions/generic/genericMath.minmax.template.xsl
http://www.exslt.org/submissions/generic/genericSearchSort.binSearch.template.xsl
http://www.exslt.org/submissions/generic/genericSearchSort.sort.template.xsl

EXSL documentation is at:

http://www.exslt.org/submissions/generic/genericMath.min.function.xml
http://www.exslt.org/submissions/generic/genericMath.max.function.xml
http://www.exslt.org/submissions/generic/genericSearchSort.binSearch.function.xml
http://www.exslt.org/submissions/generic/genericSearchSort.sort.function.xml


Use-cases, xml data and results are at:

http://www.exslt.org/submissions/generic/genericMath.minmax.1.xsl 

http://www.exslt.org/submissions/generic/genericMath.minmax.data.1.xml

http://www.exslt.org/submissions/generic/genericMath.minmax.result.1.xml


http://www.exslt.org/submissions/generic/genericSearchSort.binSearch.1.xsl

http://www.exslt.org/submissions/generic/genericSearchSort.binSearch.data.1.xml

http://www.exslt.org/submissions/generic/genericSearchSort.binSearch.result.1.xml


http://www.exslt.org/submissions/generic/genericSearchSort.sort.1.xsl

http://www.exslt.org/submissions/generic/genericSearchSort.sort.data.1.xml

http://www.exslt.org/submissions/generic/genericSearchSort.sort.result.1.xml


As is always the case with just-developed implementations, there's certainly a good
possibility for improvement and optimisation.

I will greatly appreciate any commments and suggestions and will do my best to
answer any questions on the implementations and the approach to "Generic Templates".


Cheers,
Dimitre Novatchev.


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread