[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Ann: Generic Templates -- min(), max(), binSearch(), s
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
|
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
|