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

[Bug 4273] [FS] data on element()

From: <bugzilla@wiggum.w3.org>
Date: Tue, 23 Oct 2007 08:13:36 +0000
To: public-qt-comments@w3.org
Message-Id: <E1IkEtM-0001Eo-69@wiggum.w3.org>


------- Comment #16 from jmdyck@ibiblio.org  2007-10-23 08:13 -------
I agree that Static Type Analysis (as defined in the FS) is unsound, due to the
static typing rules for fn:data().

I'm not convinced that there's a problem in the dynamic semantics, as suggested
in Comment #8.

Re Comment #14: The statements in the XDM and XQuery specs about typed value
specify the run-time behaviour of fn:data (operating on XDM values), whereas
the "data on" judgment is (roughly speaking) the compile-time analog (operating
on types). We can change the latter without changing the former.

Specifically, if we change the "complex type of mixed content" case of 'data
on' so that the inferred static type is xs:anyAtomicType*, then I think the
static typing rules for fn:data() would be sound, and wouldn't conflict with
the existing specifications of the dynamic behaviour of fn:data(). However,
static type analysis would reject more queries than currently.
Received on Tuesday, 23 October 2007 08:14:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:20 UTC