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 28959 - [XP3.1] Special rule in function conversion for xs:numeric
Summary: [XP3.1] Special rule in function conversion for xs:numeric
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XPath 3.1 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-16 14:09 UTC by Michael Kay
Modified: 2015-07-16 19:49 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2015-07-16 14:09:25 UTC
The function conversion rules say:

For built-in functions where the expected type is specified as numeric, arguments of type xs:untypedAtomic are cast to xs:double. 

I believe this rule is now unnecessary. There is no need to treat built-in function using xs:numeric differently from user-defined functions. xs:numeric is a standard union type and the conversion from xs:untypedAtomic falls out of the general rules for functions having a union type as the declared type of an argument.
Comment 1 Jonathan Robie 2015-07-16 14:31:37 UTC
I'm not certain, but I suspect that we could simply delete that sentence, and the behavior would be unchanged.  Or did I miss something?
Comment 2 John Snelson 2015-07-16 19:49:37 UTC
Will be fixed editorially.