This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I suspect that the argument to fn:data needs to be validated in tests fn-datacomplextype-1 and fn-datamixedcontent-1 to get the desired result. (:*******************************************************:) (:Test: fn-datacomplextype-1 :) (:Written By: Nicolae Brinza :) (:Purpose: Evaluates The "data" function :) (: with the argument set to a complex element :) (:*******************************************************:) import schema namespace mc ="http://www.w3.org/XQueryTest/mixedcontent" at "mixe dcontent.xsd"; fn:data( <mc:weather> <mc:temperature>30</mc:temperature> <mc:precipitation>10</mc:precipitation> </mc:weather> )
Yes, the argument needs to be validated. Changed the test accordingly.