[Bug 5660] CVS: preceding-22, preceding-23

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

           Summary: CVS: preceding-22, preceding-23
           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


I think there are calls to fn:doc in these which weren't intentional.

Here $input-context is a document node.


(: Name: preceding-23 :)
(: Description: Evaluation of the preceding axis from the last node in the
docum
ent, :)
(: containing only attributes and elements. :)

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

<result>
{
    (doc($input-context1)//node())[last()]/preceding::node(),
    empty((doc($input-context1)//node())[last()]/preceding::node())
}
</result>

Received on Thursday, 24 April 2008 15:21:48 UTC