[Home] [By Thread] [By Date] [Recent Entries]
>Might it not be a tad confusing to call them Maps given the support
for higher order functions.
Possibly. Especially for folks who know them as dictionaries, or as hashes, or as associative arrays, or (heaven forbid) as "objects". If terminology is the only problem, then we've done well. Yes, partial evaluation is available. For example:- Higher-order functions - <xsl:variable name="f" as="function(xs:string) as xs:boolean" select="contains(?, 'a')"/> <xsl:if test="$f('abracadabra')">...</xsl:if> returns true yes, closures are available. Will tunneled variables form part of the environment?Tunnel parameters are available to templates but not directly to functions. But if a function is declared within a template, the template parameters form part of the function's closure just like any other variable (whether they are tunnel parameters or not). Memo to self: test this! Michael Kay Saxonica
|

Cart



