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 16259 - [F+O 3.0] fn:data() applied to atomic value
Summary: [F+O 3.0] fn:data() applied to atomic value
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-07 16:22 UTC by Michael Kay
Modified: 2012-03-08 23:19 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2012-03-07 16:22:31 UTC
The specification for fn:data() with zero arguments (new in 3.0) states that error XPTY0004 is raised if the context item is not a node. This contradicts the statement that "the behavior of the function if the argument is omitted is exactly the same as if the context item had been passed as the argument", since data(.) works perfectly well when the context item is an atomic value.
Comment 1 Michael Kay 2012-03-08 23:19:35 UTC
I have marked this as editorial and have fixed it by removing the error condition.