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 19606 - [QT3TS] prohibit-static-typing-1
Summary: [QT3TS] prohibit-static-typing-1
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-18 16:16 UTC by Tim Mills
Modified: 2012-11-06 11:00 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2012-10-18 16:16:48 UTC
This test doesn't really test prohibition of the static typing feature.

      declare option prohibit-feature "static-typing";
      try { let $i as xs:integer := "foo" return $i } catch * { 0 }

Since "foo" is never an xs:integer, any implementation might reasonably raise this at compile time.

I suggest changing the test to

try 
{ 
   let $i as xs:integer := if (current-date() eq xs:date('1900-01-01'))
                           then ()
                           else 1
   return $i 
} 
catch * { 0 }
Comment 1 Tim Mills 2012-11-05 14:04:26 UTC
This affects:

 require-static-typing-1-n
 require-static-typing-1-ns	
 prohibit-static-typing-1-ss	
 prohibit-static-typing-1-s
Comment 2 Tim Mills 2012-11-06 11:00:38 UTC
I have taken the liberty of fixing this.