The first argument of min is a sequence, and the second argument is a
collation. So you don't want to fix one argument, you want to fix part
of one argument.
Try
let $min2 := function($x) { min(($x, 2)) }
return $min2(3)
There is more than one way to skin a cat....
Michael Kay
Saxonica
On 29/10/2012 21:50, Costello, Roger L. wrote:
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--