[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Higher-Order Functions in XPath 2.0

Subject: Re: Higher-Order Functions in XPath 2.0
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 16 Jan 2002 16:42:27 +0000
nested functions in xpath
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.