[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Higher-Order Functions in XPath 2.0
Dimitre, > Bellow is a draft proposal for implementing higher-order functions > in XPath 2.0. Looks good to me. Another example that you might want to add under the regular expression section is multiple replacements of characters by strings within the same string, which was an issue recently raised on XML-Dev: http://lists.xml.org/archives/xml-dev/200201/msg00817.html refers to: http://www.kuro5hin.org/story/2002/1/15/1562/95011 which points out how easy the problem is to solve with higher-order functions in Haskell :) The replace() function in XPath isn't going to be able to handle this problem particularly elegantly either, I think - well, you could do lots and lots of nested calls to replace() but that isn't particularly easy to manage! Cheers, Jeni --- Jeni Tennison http://www.jenitennison.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
|