Subject: Re: [xsl] [XPath 3.0] How to do partial function application on the min() function? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 29 Oct 2012 22:20:04 +0000 |
let $min2 := function($x) { min(($x, 2)) } return $min2(3)
Michael Kay Saxonica
Hi Folks,
I would like to fix one argument of the min() function to 2 and leave the other argument undefined, thus producing a partially applied function. Then, I would like to give the partially applied function a value. Here's what I tried:
let $min2 := min((?,2)) return $min2(3)
I get this error: Unexpected token "?" in path expression
What's the correct way to accomplish this?
/Roger
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [XPath 3.0] How to do par, Dimitre Novatchev | Thread | [xsl] XSLT whitebox testing, Hans-Juergen Rennau |
Re: [xsl] [XPath 3.0] How to do par, Dimitre Novatchev | Date | RE: [xsl] Force the case of a set o, Kerry, Richard |
Month |