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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@jessica.w3.org
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: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

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.
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26824

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Michael Kay <[hidden email]> ---
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't occur if the default serialization options are used.

--
You are receiving this mail because:
You are the QA Contact for the bug.