- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 03 Mar 2010 21:36:17 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9139
--- Comment #11 from Michael Dyck <jmdyck@ibiblio.org> 2010-03-03 21:36:17 ---
(In reply to comment #9)
> The suggestion is that if I do
>
> module "a.xq";
> declare variable $f as (function() as xs:string) := fn:static-base-uri#0;
>
> module "b.xq";
> $f()
>
> then the result should be "a.xq".
>
> I can't say I'm especially comfortable with this
[Presumably module b imports module a.]
If the example were
a.xq: declare function f() as xs:string { fn:static-base-uri() }
b.xq: f()
we'd expect "a.xq", wouldn't we? I'm not sure why the first example is
different. In both cases, the built-in function is referenced from module a, so
that determines the static context that it's evaluated against when it's
invoked.
--
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 Wednesday, 3 March 2010 21:36:19 UTC