<?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>29631</bug_id>
          
          <creation_ts>2016-05-17 10:27:34 +0000</creation_ts>
          <short_desc>[FO31] fn:serialize options map</short_desc>
          <delta_ts>2016-05-24 15:44:27 +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>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="Tim Mills">tim</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>josh.spiegel</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>126444</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-05-17 10:27:34 +0000</bug_when>
    <thetext>The specification says in 14.7.3 fn:serialize

&quot;The key of the entry is an xs:string value in the cases of parameter names defined in these specifications, or an xs:QName (with non-absent namespace) in the case of implementation-defined serialization parameters.&quot;

and test case serialize-xml-120

let $params := map { QName(&quot;&quot;,&quot;indent&quot;) : true() }
return serialize(., $params)

expects SEPM0017.

However, in 1.5 Options we read

&quot;It is not an error if the options map contains options with names other than those described in this specification. Implementations may attach an ·implementation-defined· meaning to such entries, and may define errors that arise if such entries are present with invalid values. Implementations must ignore such entries unless they have a specific ·implementation-defined· meaning. Implementations that define additional options in this way should use values of type xs:QName as the option names, using an appropriate namespace.&quot;

which seems to say this option can be ignored, or handled in an implementation-defined way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126555</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-05-24 15:32:03 +0000</bug_when>
    <thetext>I think this is a duplicate of 29373 and I have updated serialize-xml-120 since you filed this bug.  


&quot;Update serialize-xml-120 for bug 29373&quot;
https://github.com/LeoWoerteler/QT3TS/commit/0176732792bb10878252d7e79a5d99c883cc4ed0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126558</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-05-24 15:44:09 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>