[Bug 5453] CVS: K2-NodeTest-32 static typing

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

           Summary: CVS: K2-NodeTest-32 static typing
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


As hinted at in the comment, K2-NodeTest-32 should expect an error (XPTY0004)
if static typing is in effect.  

(:*******************************************************:)
(: Test: K2-NodeTest-32                                  :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:21+01:00                       :)
(: Purpose: We evaluate to only atomic values, although the static type does
not
 reflect that. :)
(:*******************************************************:)
<e>
      <a/>
      <b/>
</e>/(if(position() = 10) then (<e/>, .) else 4)

Received on Wednesday, 6 February 2008 15:54:16 UTC