<?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>6531</bug_id>
          
          <creation_ts>2009-02-04 17:13:47 +0000</creation_ts>
          <short_desc>[FOerrata] fn:concat and &apos;...&apos; not defined</short_desc>
          <delta_ts>2009-10-16 21:45:59 +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>Functions and Operators 1.0</component>
          <version>Recommendation</version>
          <rep_platform>All</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>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Wagner">bungeman</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>23458</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Wagner">bungeman</who>
    <bug_when>2009-02-04 17:13:47 +0000</bug_when>
    <thetext>This is somewhat nit-picky but fn:concat is specified as

fn:concat($arg1 as xs:anyAtomicType?,
$arg2 as xs:anyAtomicType?,
... ) as xs:string

but the meaning and usage of &apos;...&apos; is never defined. This should be defined in section 1.4. Also, the base type of these optional arguments should be stated explicitly, like

fn:concat($arg1 as xs:anyAtomicType?,
$arg2 as xs:anyAtomicType?,
... as xs:anyAtomicType?) as xs:string

instead of implicitly by stating this only in the text following. I realize that fn:concat is the only vararg function and is rather special cased, but I believe that making such changes would make the meaning far more explicit.

So the proposal is to add to section 1.4 wording to the effect of &quot;The last parameter declaration of a function signature may specify &apos;...&apos; instead of a $parameter-name. This indicates that there may be a variable number of arguments passed to the function. The type of these arguments must match the type specified by the parameter-type of the parameter declaration.&quot; and change the fn:concat signature as described above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25310</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-05-26 14:34:53 +0000</bug_when>
    <thetext>This is classed as editorial, so I am proposing to fix it using editorial discretion.

I&apos;ve added text for the next version of Functions and Operators that mentions the use of this special-case notation for concat:

&quot;One function, &lt;code&gt;fn:concat&lt;/code&gt;, has a variable number of arguments (two or more). More strictly, there is an infinite set of functions having the name &lt;code&gt;fn:concat&lt;/code&gt;, with arity ranging from 2 to infinity. For this special case, a single function signature is given, with an ellipsis indicating an indefinite number of arguments.&quot;

I don&apos;t think there&apos;s a need to formalize it any further than this. The meaning is clear.

If you can accept this resolution, I would be grateful if you would mark it as closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28421</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-10-16 21:45:59 +0000</bug_when>
    <thetext>As there has been no response to my request to close this or comment on the resolution, I am marking it closed with no further action.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>