<?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>26823</bug_id>
          
          <creation_ts>2014-09-16 21:14:18 +0000</creation_ts>
          <short_desc>use-character-maps can not be set from the prolog</short_desc>
          <delta_ts>2014-11-19 00:13:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</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>
          
          
          <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>111637</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2014-09-16 21:14:18 +0000</bug_when>
    <thetext>From XQuery 3.0, Section 2.2.4:

&quot;There is no output declaration for use-character-maps, it can be set only by means of a parameter document.&quot;

And:

&quot;[err:XQST0109] &quot;if the local name of an output declaration in the http://www.w3.org/2010/xslt-xquery-serialization namespace is not one of the serialization parameter names listed in C.1 Static Context Components or parameter-document, or if the name of an output declaration is use-character-maps&quot;


Tests Serialization-001 and Serialization-023 include output:use-character-maps in the prolog but do not expect XQST0109. 

I propose that:

(1) The use-character-maps declaration in Serialization-001 should be removed.

(2) The expected result of Serialization-023 should not allow &lt;result&gt;ok&lt;/result&gt; or SEPM0016.  Instead it should only allow XQST0109.

Link to the test file that contains these tests:

http://dev.w3.org/cvsweb/~checkout~/2011/QT3-test-suite/prod/OptionDecl.serialization.xml?rev=1.18;content-type=application%2Fxml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115083</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2014-11-19 00:13:18 +0000</bug_when>
    <thetext>Fixed as suggested.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>