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

Re: New XSLT 3.0 Working Draft

Subject: Re: New XSLT 3.0 Working Draft
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Wed, 11 Jul 2012 10:12:53 +0100
Re:  New XSLT 3.0 Working Draft
On Wed, Jul 11, 2012 at 9:42 AM, Michael Kay <mike@xxxxxxxxxxxx> wrote:

>> Given the way unsupplied parameters are currently treated will we have
>>   partial evaluation ?
>

Reference to unsupplied parameters - I was thinking of the treatment
of unsupplied parameters in template definitions - which mitigate
against partial applications.

> Yes, partial evaluation is available. For example:
>
> <xsl:variable name="f" as="function(xs:string) as xs:boolean"
> select="contains(?, 'a')"/>
> <xsl:if test="$f('abracadabra')">...</xsl:if>
>
> returns true

Sorry I meant partial application and you must forgive my syntax
because I have no idea what it should be but in

<xsl:variable name="f" as="function(xs:integer, xs:integer) as
xs:integer" select="1"/>

if  the function in the above variable is a function that adds two
integers then $f(3) returns 4 (i.e $f becomes a function that
increments it's argument by 1).

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.