<?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>15688</bug_id>
          
          <creation_ts>2012-01-24 10:42:52 +0000</creation_ts>
          <short_desc>[XQ30] Effect of prohibiting the serialization option</short_desc>
          <delta_ts>2012-02-15 11:00:32 +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.0</component>
          <version>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Tim Mills">tim</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</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>63046</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-01-24 10:42:52 +0000</bug_when>
    <thetext>It&apos;s pretty clear what effect prohibiting the following optional features will have:

schema-import: Raise XQST0009 on schema import.
schema-validation: Raise XQST0075 on validate expressions.
static-typing: Don&apos;t raise XPTY0004, XPST0005 for some expressions.
module: Raise XQST0016 on module declaration or module import.

But it&apos;s not quite so clear what disabling the serialization feature will do.

Does it cause an implementation-defined error to be raised if the user attempts to serialize the results of a query (via the implementation&apos;s API)?

Does it cause errors to be raised when output declarations are encountered?

Does it cause fn:serialize to raise an error?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64092</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-02-14 15:15:25 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; It&apos;s pretty clear what effect prohibiting the following optional features will
&gt; have:
&gt; 
&gt; schema-import: Raise XQST0009 on schema import.
&gt; schema-validation: Raise XQST0075 on validate expressions.
&gt; static-typing: Don&apos;t raise XPTY0004, XPST0005 for some expressions.
&gt; module: Raise XQST0016 on module declaration or module import.
&gt; 
&gt; But it&apos;s not quite so clear what disabling the serialization feature will do.

If you disable the serialization feature, then:

* You must not serialize the results of a query according to the serialization spec.
* You still must support fn:serialize(), unless we make it an optional feature during CR - it is not an error to call fn:serialize() in a query if the serialization feature is disabled.
* You can still do a vendor-defined serialization
* You can still return results of a query in a non-serialized format, e.g. a DOM tree
 
&gt; Does it cause an implementation-defined error to be raised if the user attempts
&gt; to serialize the results of a query (via the implementation&apos;s API)?

Our specification does not know anything about the implementation&apos;s API, this question is out of scope.

&gt; Does it cause errors to be raised when output declarations are encountered?

No, this is not an error.

&gt; Does it cause fn:serialize to raise an error?

No, this is not an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64093</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-02-14 15:21:21 +0000</bug_when>
    <thetext>Jonathan will add a NOTE to clarify this in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64137</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-02-15 11:00:32 +0000</bug_when>
    <thetext>We have decided that fn:serialize() must be provided by all implementations, but an implementation can simply raise an error when it is called if it chooses not to provide this functionality.

I will mention this in the note in the previous comment. The actual specification will be in F&amp;O.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>