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 16150 - [QT3] K-DataFunc-1
Summary: [QT3] K-DataFunc-1
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Member-only Editors Drafts
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: 2012-02-28 16:03 UTC by Tim Mills
Modified: 2012-02-28 16:31 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2012-02-28 16:03:50 UTC
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>
Comment 1 Tim Mills 2012-02-28 16:06:22 UTC
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>
Comment 2 Michael Kay 2012-02-28 16:31:49 UTC
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.