This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4268 - Static typing of K2-FunctionProlog-22
Summary: Static typing of K2-FunctionProlog-22
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 minor
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-22 13:39 UTC by Nick Jones
Modified: 2007-05-23 11:44 UTC (History)
0 users

See Also:


Attachments

Description Nick Jones 2007-01-22 13:39:35 UTC
I don't think the following static type checks without a static typing extension:

declare function local:func() as xs:integer
{
text {"1"}
};

text {"1"} uses the following function

fs:item-sequence-to-untypedAtomic-text($items as item()*) as xs:untypedAtomic?

with the static typing rules for state:

"There are no special static typing rules for this function. Static type analysis for this function should be performed as for a built-in function declared with the given signature."

so when the body is type checked it gets an optional quantifier.

Changing the return type to "as xs:integer?" should fix this.
Comment 1 Frans Englich 2007-05-23 09:14:07 UTC
In CVS, the test has an added '?'.
Comment 2 Nick Jones 2007-05-23 09:19:38 UTC
Thanks. BTW is there any news when XQTS 1.0.3 will be out?
Comment 3 Frans Englich 2007-05-23 11:44:43 UTC
I posted a mail on public-xqts-comments@w3.org such that it could be more broadly consumed. Subject "Status update for XQTS 1.0.3".