[Bug 3687] Static typing of fn:lang

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

           Summary: Static typing of fn:lang
           Product: XML Query Test Suite
           Version: 1.0
          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


Queries fn-lang-18 to fn-lang-21 fail static type checking because:

e.g. fn:lang("en",$input-context1/langs/para[1])

fn:lang($testlang as xs:string?, $node as node()) as xs:boolean

but 

$input-context1/langs/para[1]

typechecks as element()* (i.e. a sequence)

There are similar problems for query fn-root-14.

Received on Friday, 8 September 2006 16:23:13 UTC