This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
This test needs to be marked as dependent on XQ10, XP20, since the zero-argument form is now defined in XQ30+/XP30+. <test-case name="K-DataFunc-1"> <description> A test whose essence is: `data()`. </description> <created by="Frans Englich" on="2007-11-26"/> <test>data()</test> <result> <error code="XPST0017"/> </result> </test-case>
A similar problem exists in the identical test <test-case name="K2-DataFunc-1"> <description> fn:data() must be passed at least one argument. </description> <created by="Frans Englich" on="2007-11-26"/> <test>data()</test> <result> <error code="XPST0017"/> </result> </test-case>
Fixed. I changed one of the tests to report the error for XPath 2.0, and the other to show that the zero-arity form works in 3.0.