RE: Overloading functions in XSLT and XQuery

> 
> Currently XSLT allows user function with same name but 
> different number of parameters (arity), but XQuery doesn't. 
> Why such difference? This feature might be as useful in 
> XQuery as in XSLT.
> 

I think it is intended that XQuery should also allow this. Section 2.1.1
which describes the static context states "Each function is uniquely
identified by its expanded QName and its arity (number of parameters)". 

I think the statement in 4.12 that "A user-declared function is uniquely
identified by its expanded QName." is probably an error; but I might be
mistaken. I'll follow it up.

Michael Kay

Received on Wednesday, 17 September 2003 09:49:10 UTC