This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
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.
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.