W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2014

[Bug 26824] New: The definition of assert-serialization-error

From: <bugzilla@jessica.w3.org>
Date: Tue, 16 Sep 2014 21:43:34 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-26824-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26824

            Bug ID: 26824
           Summary: The definition of assert-serialization-error
           Product: XML Query Test Suite
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
          Assignee: benjie.nguyen@gmail.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org

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="xml" indent="no"
omit-xml-declaration="yes”.

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

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

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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 16 September 2014 21:43:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:48 UTC