[Bug 14996] [FO30] function-lookup, function-arity, function-name

https://www.w3.org/Bugs/Public/show_bug.cgi?id=14996

--- Comment #4 from Tim Mills <tim@cbcl.co.uk> 2011-12-05 09:26:45 UTC ---
It might also be useful to be able to mark an argument as being the context
item in a user defined function, for example, to indicate that
$implicit-context-item is an implicit argument of '.' in the following.

declare function local:foo($implicit-context-item as item(), $arg2)
{
  number($implicit-context-item) + $arg2
}

//bar/local:foo(8)

or alternatively, permit use of the context item in user defined functions

e.g.

declare function local:foo($arg2)
{
  concat(string(), $arg2)
}

//bar/local:foo(" element")

causing local:foo to be annotated as being context-dependent.

-- 
Configure bugmail: https://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 Monday, 5 December 2011 09:26:51 UTC