<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28081</bug_id>
          
          <creation_ts>2015-02-23 10:46:22 +0000</creation_ts>
          <short_desc>[XP3] Named function references and the xs:numeric type</short_desc>
          <delta_ts>2015-07-06 08:55:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XPath 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>SGI</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>andrew_coleman</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118088</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-02-23 10:46:22 +0000</bug_when>
    <thetext>Section 3.1.6 (Named Function References) contains the following text:

&lt;quote&gt;
Certain functions in the [XQuery and XPath Functions and Operators 3.1] specification are defined to be polymorphic. These are denoted as accepting parameters of &quot;numeric&quot; type, or returning &quot;numeric&quot; type. Here &quot;numeric&quot; is a pseudonym for the four primitive numeric types xs:decimal, xs:integer, xs:float, and xs:double. For the purposes of named function references, these functions are regarded as taking arguments and producing results of type xs:anyAtomicType, with a type error raised at runtime if the argument value provided is not of the correct numeric type.

Note:

The above way of modeling polymorphic functions is semantically backwards compatible with XPath 2.0. An implementation that supports static typing can choose to model the types of these functions more accurately if desired.
&lt;/quote&gt;

This is obsolete and can be deleted. Since xs:numeric has been defined as a standard union type, there is nothing special about these functions that needs to be said here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119874</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2015-04-24 10:27:35 +0000</bug_when>
    <thetext>At the teleconference on 2015-04-21, the WG agreed to adopt this change</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121777</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-06 08:55:33 +0000</bug_when>
    <thetext>Confirmed that this change has been applied in the current draft spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>