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

[Bug 4186] Static typing of fn-collection-10, 10d

From: <bugzilla@wiggum.w3.org>
Date: Wed, 10 Jan 2007 16:52:03 +0000
To: public-qt-comments@w3.org
Message-Id: <E1H4ggF-0001Np-EO@wiggum.w3.org>


           Summary: Static typing of fn-collection-10, 10d
           Product: XML Query Test Suite
           Version: 1.0.2
          Platform: PC
        OS/Version: Windows XP
            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

The second argument ($c2[$p]) to operator "is" is statically typed as a
zero-or-more sequence.  The formal semantics rules only permit the
normalization of this sort of expression to a subsequence when the predicate is
a numeric literal or fn:last() (i.e. not for any numeric argument).  Can anyone
comment on why this restriction is necessary?

(: Name: fn-collection-10 :)
(: Description: Test that two uses of fn:collection are stable.:)

(: insert-start :)
declare variable $input-context external;
(: insert-end :)

let $c1 := fn:collection($input-context)
let $c2 := fn:collection($input-context)
for $c at $p in $c1
return $c is $c2[$p]
Received on Wednesday, 10 January 2007 17:08:35 UTC

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