[Bug 11415] New: Wrong type appears in ST-Data001

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

           Summary: Wrong type appears in ST-Data001
           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: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


The test ST-Data001 contains the following:


(: insert-start :)
import schema namespace mc ="http://www.w3.org/XQueryTest/mixedcontent";
declare variable $input-context external;
(: insert-end :)

let $node as element(*, mc:mixedType) := $input-context
return data($node)


and expects an FOTY0012 error

However, $input-context is a document node and so this query should raise
XPTY0004 error.

The best fix is to replace $input-context with $input-context/* to get the root
element.

-- 
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 Friday, 26 November 2010 17:50:28 UTC