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

Re: XSLT for Extensibility

Subject: Re: XSLT for Extensibility
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sun, 30 Jan 2005 07:32:32 +1100
map aasia download
>    How do you allow the user to plug in new tasks?
> 
>    This is a general problem I'm having, how do you create hooks,
>    callbacks, er, how do you create an XSLT framework?
> 

Read about FXSL. It is a system to build and use higher-order
functions in pure XSLT.

FXSL functions can be passed as parameters (callbacks) or returned as
results. They also are curried functions in that they allow for
partial application -- applying a function on less arguments than the
function accepts results in the return of another function, which
accepts only the missing arguments and then behaves as the original
function.

The latest version of FXSL for XSLT 2.0 allows one to wite
xsl:function 's in this way. Also, it is possible to create a HOF
wrapper around any other function, including the standard XPath 2.0
Functions and Operators and the standard XSLT functions and also
useful constructs.

FXSL provides such HOF wrappers for nearly all XPath 2.0 F & O's. This
means that XSLT 2.0 + FXSL is a functional programming system with
full support for higher-order function programming.

FXSL also provides its own implementation of almost all Haskell
Prelude functions (such as foldr, foldl, map, scanl, zip-with, split,
span, drop, filter, ... etc.), which serve as the kernel for building
other useful HOF.


>    --
> 
>    I asked elsewhere, and pipelines were suggested

This is naturally done in FXSL by functional composition. As result
otherwise difficlut problems can be solved in a one-liner XPath
expression.

Read more about FXSL at:

               http://fxsl.sf.net


Cheers,
Dimitre Novatchev.

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.