[Bug 4248] K2-DocumentURIFunc-10

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

           Summary: K2-DocumentURIFunc-10
           Product: XML Query Test Suite
           Version: unspecified
          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 argument to fn:root is being typed as a zero-or-more sequence, hence there
is a static type check error.

(:*******************************************************:)
(: Test: K2-DocumentURIFunc-10                           :)
(: Written by: Frans Englich                             :)
(: Date: 2007-01-15T15:15:45+01:00                       :)
(: Purpose: Invoke on a tree document node with fn:root(). :)
(:*******************************************************:)
let $i := document
{
<e>
        <a/>
        <a/>
        <a/>
            <b/>
            <b/>
        <a/>
        <a/>
</e>
}
return empty(document-uri(root($i/a/b[1])))

Received on Wednesday, 17 January 2007 12:23:23 UTC