W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2010

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 26 Nov 2010 17:50:26 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-11415-523@http.www.w3.org/Bugs/Public/>

           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

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:44 UTC