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

Article: The Functional Programming Language XSLT

Subject: Article: The Functional Programming Language XSLT
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 1 Feb 2002 00:51:13 -0800 (PST)
xslt functional programming
I know that nothing can make the members of the XPath 2.0 agree that
there is any use-case for higher-order functions, but...

http://www.topxml.com/xsl/articles/fp

Contents:

  Introduction
  Starting point
  Major FP design patterns/functions in XSLT
  List processing
  Tree processing
  Lazy evaluation
  Advanced XSLT FP applications
  Square root
  Numerical differentiation
  Numerical integration
Summary

And two excerpts:

"Not only the purpose of this article to prove that XSLT can be
considered a functional programming language has been fulfilled by
providing XSLT implementation for the most major FP design patterns and
examples from John Hughes article "Why Functional Programming matters"
(this article contains the code of 35 functions), but as a side effect
we have now available what can be considered the first XSLT functional
programming library. The full library code, together with test examples
demonstrating the use of individual functions, is available at the
downloads page of TopXML.COM as specified in the links at the start of
this article." 


"On   the other side, the XSLT code of those functions seems
too-verbose compared to the corresponding Haskell code. The process of
writing functional XSLT code can be made much more straightforward and
easier by providing support for higher-order functions in XPath and
XSLT, thus definitely improving even further the compactness,
readability and reliability of XSLT functional code. It is the ideal
time right now for the W3C XPath 2.0 working group to make the decision
to provide the necessary support for higher-order functions as part of
the standard XPath 2.0 specification. In case this golden opportunity
is missed, then generic templates and libraries will be used in the
years to come."

Cheers,
Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.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.