<?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>29684</bug_id>
          
          <creation_ts>2016-06-03 14:22:34 +0000</creation_ts>
          <short_desc>[FO31] options arguments</short_desc>
          <delta_ts>2016-06-14 15:22:53 +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 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Tim Mills">tim</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>126670</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-06-03 14:22:34 +0000</bug_when>
    <thetext>I suggest the options arguments in the following be changed to accept map(*)?, such that the unary version of each function is the same as a call to the binary version with empty sequence as the options argument.  This would follow the behaviour of fn:serialize.

fn:parse-json($json-text as xs:string?, $options as map(*)) as item()?

fn:json-doc($href as xs:string?, $options as map(*)) as item()?

fn:json-to-xml(	$json-text	 as xs:string?,
$options	 as map(*)) as document-node()?

fn:xml-to-json($input as node()?, $options as map(*)) as xs:string?

fn:load-xquery-module($module-uri as xs:string, $options as map(*)) as map(*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126706</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-06-08 10:09:04 +0000</bug_when>
    <thetext>As requested, I made a list of functions in which an &quot;optional&quot; argument could be made to accept the empty sequence.  This list was huge.

Additionally, there is also an often-followed convention that foo() is equivalent to foo(.), e.g. fn;node.  Furthermore, there are some cases such as adjust-*-to-timezone which already accept empty-sequence in the &quot;optional&quot; argument, but ascribe a particular meaning to it which is different from the single argument version.

However, the original request is still sensible and in keeping with fn:serialize.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126763</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-06-14 15:22:27 +0000</bug_when>
    <thetext>The WG decided not to make the change in the interests of stability of the specification.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>