[Bug 4156] Static typing of fn-node-name-2

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

           Summary: Static typing of fn-node-name-2
           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


Under the rules given in the formal semantics specification, the filter
expression [positino() = last()] does not normalize in the same way as if it
had been written as [last()] (see 4.3.2 Filter Expressions).  The result of
this is that this argument to fn:node-name in this query is a zero-or-more
sequence, rather than a zero-or-one sequence.


(: Name: fn-node-name-2 :)
(: Description: Evaluation of node-name function with argument set to comment
no
de. :)
(: Use fn:count to avoid empty file :)

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

fn:count(fn:node-name($input-context1/works[1]/employee[2]/child::text()[position()=last()]))

Received on Monday, 8 January 2007 16:34:09 UTC