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

[Bug 5515] CVS: K2-Steps-32

From: <bugzilla@wiggum.w3.org>
Date: Mon, 03 Mar 2008 09:51:19 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JW7KJ-0007Lo-NN@wiggum.w3.org>

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

           Summary: CVS: K2-Steps-32
           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


($count eq 2) fails static type checking, as there is eq is not defined for all
subtypes of item()*.  An 'as xs:integer' would solve the problem.

(:*******************************************************:)
(: Test: K2-Steps-32                                     :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:21+01:00                       :)
(: Purpose: Tricky combination of focus and a recursive function call. :)
(:*******************************************************:)
declare variable $root := <root/>;
declare function local:function($arg, $count)
{
    $arg,
    $root,
    if($count eq 2)
    then $root
    else local:function($arg, $count + 1)
};
$root/local:function(., 1)
Received on Monday, 3 March 2008 09:51:33 UTC

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