<?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>26824</bug_id>
          
          <creation_ts>2014-09-16 21:43:34 +0000</creation_ts>
          <short_desc>The definition of assert-serialization-error</short_desc>
          <delta_ts>2014-11-19 17:19:13 +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>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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="Josh Spiegel">josh.spiegel</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</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>111642</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2014-09-16 21:43:34 +0000</bug_when>
    <thetext>In catalog-schema.xsd, for “assert-serialization-error” it says:

Asserts that the query can be executed without error, but serializing the result produces a serialization error. The expression result is serialized using the default serialization parameters method=&quot;xml&quot; indent=&quot;no&quot; omit-xml-declaration=&quot;yes”.

But there are a number of tests in OptionDecl.serialization.xml that seem to expect different serialization parameters.  For example, Serialization-032:

   &lt;test-case name=&quot;Serialization-032&quot;&gt;
      ...
      &lt;test&gt;&lt;![CDATA[
         declare namespace output = &quot;http://www.w3.org/2010/xslt-xquery-serialization&quot;;
         declare option output:method &quot;xml&quot;;
         declare option output:standalone &quot;no&quot;;
         declare option output:omit-xml-declaration &quot;yes&quot;;
		 &lt;a/&gt;
      ]]&gt;&lt;/test&gt;
      &lt;result&gt;
        &lt;assert-serialization-error code=&quot;SEPM0009&quot; /&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;

This test seems to expect that the serialization parameters from the prolog of the query will be used. (SEPM009 results if the omit-xml-declaration parameter has the value yes, and the standalone parameter has a value other than omit)

It appears that either the definition of assert-serialization-error is wrong or the tests are wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114508</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-11-04 21:18:58 +0000</bug_when>
    <thetext>I think the description in the catalog is wrong. The serialization should use the serialization parameters in the query prolog if present. That seems to be the only thing that makes sense; we want to test serialization errors that can&apos;t occur if the default serialization options are used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115135</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2014-11-19 17:19:13 +0000</bug_when>
    <thetext>Fixed as suggested in Comment 1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>