From: Dmitriy S. <sha...@gm...> - 2010-07-21 12:16:32
|
On Wed, 2010-07-21 at 14:05 +0200, James Fuller wrote: > On 21 July 2010 13:37, Dmitriy Shabanov <sha...@gm...> wrote: > > Note: There are functions like fn:string or fn:base-uri that "... In the > > zero-argument version of the function, $arg defaults to the context > > item. That is, calling fn:string() is equivalent to calling > > fn:string(.). ..." > > > > The question "why" didn't get answer ... > > yes, we could suggest to xquery WG that user defined functions might > have a similar shorthand > but there are probs with this route as well. This questing at xsl group F2F meeting at Prague got no answer. Guess, same result for xquery group. My two cent to have context item as parameter if no provided, but groups think that it can confuse end-user (same time there are some functions, strange :-) -- Cheers, Dmitriy Shabanov |