[Bug 11561] Static base URI: development location or deployment location?

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

--- Comment #5 from Jonathan Robie <jonathan.robie@redhat.com> 2011-04-29 19:46:05 UTC ---
The description of fn:static-base-uri() is "Returns the value of the Base URI
property from the static context."

XQuery currently distinguishes static analysis from dynamic evaluation, and the
"static context" is defined as "the information that is available during static
analysis of the expression, prior to its evaluation."

I agree with you that the static base URI should not be revealed at runtime, so
we don't want fn:static-base-uri() to return it. For compatibility reasons, we
may want to keep this function, deprecate it, and change its semantics so it
returns the dynamic base URI, with a big note warning users that this is what
it does.

We should then add another method, with a more appropriate name, that does the
same thing, and encourage its use.

If we add new terminology like "development" and "deployment", we have to be
clear about its relationship to static analysis and dynamic evaluation. How is
"development" different from "static analysis"? How is the deployment URI
different from a dynamic evaluation URI? I worry that having four terms here,
rather than two, will confuse rather than clarify.

In fact, I might prefer to use terms like "Static Analysis Base URI" and
"Dynamic Evaluation Base URI", to be even more clear about the relationship to
these phases.

-- 
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, 29 April 2011 19:46:09 UTC