[Bug 10797] New: Expected result for K2-NodeLangFunc-2 is wrong

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

           Summary: Expected result for K2-NodeLangFunc-2 is wrong
           Product: XML Query Test Suite
           Version: 1.0.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: spungi@gmail.com
         QAContact: public-qt-comments@w3.org


The expected result for test  

http://dev.w3.org/2006/xquery-test-suite/TestSuiteStagingArea/Queries/XQuery/Functions/NodeFunc/NodeLangFunc/K2-NodeLangFunc-2.xq

is 'true'

http://dev.w3.org/cvsweb/~checkout~/2006/xquery-test-suite/TestSuiteStagingArea/ExpectedTestResults/Functions/NodeFunc/NodeLangFunc/K2-NodeLangFunc-2.txt?rev=1.1.1.1&content-type=text/plain

even though a single attribute node is passed as second argument of fn:lang.

Either:

1) the test can be corrected, with something like:
let $i := <e xml:lang="en">
    <b xml:lang="de"/>
</e>
return lang("de", $i/b)

or
2) the expected result should be corrected, and 'false' should be expected

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 28 September 2010 21:03:29 UTC