W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2007

[Bug 4401] [FS] validate strict expressions and err:XQDY0084

From: <bugzilla@wiggum.w3.org>
Date: Mon, 26 Mar 2007 12:00:40 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1HVnsO-0001uV-H2@wiggum.w3.org>

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





------- Comment #1 from jmdyck@ibiblio.org  2007-03-26 12:00 -------
(In reply to comment #0)
> 
> However, XQDY0084 is a dynamic error and should only be raised when the
> validate expression is executed.

No, it can also be raised during static analysis: "if an implementation can
determine during the static analysis phase that an expression, if evaluated,
would necessarily raise a type error or a dynamic error, the implementation may
(but is not required to) report that error during the static analysis phase."
[XQuery 2.3.1].

> Should a static typing implementation raise a static type checking exception in
> this case or raise XQDY0084 during typechecking?

I believe it's not obliged to raise any error (for this condition) during
static analysis, but if it does, the error must be XQDY0084.

However, since the Formal Semantics document does not specify errors by name, I
believe this issue would be more appropriately filed/resolved under the
"XQuery" component.
Received on Monday, 26 March 2007 12:00:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:32 UTC