This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11415 - Wrong type appears in ST-Data001
Summary: Wrong type appears in ST-Data001
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-26 17:50 UTC by Oliver Hallam
Modified: 2011-01-25 13:28 UTC (History)
1 user (show)

See Also:


Attachments

Description Oliver Hallam 2010-11-26 17:50:26 UTC
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.
Comment 1 Oliver Hallam 2010-11-26 17:52:24 UTC
Since I wrote the initial test, and this fix should not be too contentious, I have made the fix.  It would probably be prudent to let someone else mark the bug closed.
Comment 2 Benjamin Nguyen 2011-01-25 13:28:16 UTC
I have closed the bug, since the bug was raised by Oliver, and fixed by him. If anyone in fact has a problem with this fix, please reopen the bug.