<?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>28856</bug_id>
          
          <creation_ts>2015-06-26 15:17:18 +0000</creation_ts>
          <short_desc>[FO31] serialize function error code</short_desc>
          <delta_ts>2016-12-16 19:55:25 +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="Debbie Lockett">debbie</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>121487</commentid>
    <comment_count>0</comment_count>
    <who name="Debbie Lockett">debbie</who>
    <bug_when>2015-06-26 15:17:18 +0000</bug_when>
    <thetext>I think a new error code is needed for the case that the 2nd arg $params of fn:serialize() is supplied as a map, but the map contains parameter values which are not of the required type.

The error conditions section currently says:
&apos;If any serialization error occurs, including the detection of an invalid value for a serialization parameter, this results in the fn:serialize call failing with a dynamic error.&apos;
But I don&apos;t think this should cover the case above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122099</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-15 17:53:42 +0000</bug_when>
    <thetext>The decision just made on 28836 means that this should result in XPTY0004.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122101</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-15 18:01:48 +0000</bug_when>
    <thetext>Note of further explanation: being of the wrong type here means, for example supplying a value for standalone that is not of type xs:boolean?. We&apos;re not validating against the schema definitions of the serialization parameters here. Specifying method=&quot;yaml&quot; is not a type error in this sense, it is an invalid value for the parameter, and gives the SEPM error code for invalid serialization parameter values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122122</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-16 00:46:55 +0000</bug_when>
    <thetext>Applied the changes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>