[Bug 9787] Improving function overloading in XQuery

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9787





--- Comment #1 from John Snelson <john.snelson@oracle.com>  2010-05-21 13:17:21 ---
I think this is an interesting future direction, since it will also allow users
to safely define functions that take the context item as an implicit argument:

define function local:findIDs($node as node() := .)
{
  $node//@id
};

This kind of default argument is evaluated in the calling context, rather than
the function's context.

That said, this is almost certainly a feature that should be considered for
XQuery 1.2 rather than XQuery 1.1.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 21 May 2010 13:17:24 UTC