<?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>29664</bug_id>
          
          <creation_ts>2016-05-26 09:30:48 +0000</creation_ts>
          <short_desc>[SER31] 9.1.17 JSON Output Method: the json-node-output-method Parameter</short_desc>
          <delta_ts>2016-07-21 18:54:24 +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>Serialization 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://www.w3.org/XML/Group/qtspecs/specifications/xslt-xquery-serialization-31/html/Overview.html#JSON_JSON-NODE-OUTPUT-METHOD</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="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>andrew_coleman</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>126577</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-05-26 09:30:48 +0000</bug_when>
    <thetext>In this section we read

&quot;A node in the data model instance is serialized to a JSON string by outputting the result of serializing the node using the method specified by the json-node-output-method parameter. If the json-node-output-method parameter is set to xml or xhtml then the node is serialized with the additional serialization parameter omit-xml-declaration set to yes.&quot;

It&apos;s not clear whether the serialization settings for the chosen json-node-output-method are inherited from those of the (active) JSON output method, or take default values for the selected node output method.

Is there a reason for not always requiring that omit-xml-declaration is always set to &quot;yes&quot;, since it has no effect on the &quot;html&quot; or &quot;text&quot;?   It seems unlikely that implementation-defined serialization methods would wish to include an XML declaration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126909</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2016-07-07 15:42:45 +0000</bug_when>
    <thetext>The editors propose the following changes:

1 The third bullet item in the list at the beginning of section 9 should change from:

  A node in the data model instance is serialized to a JSON string 
  by outputting the result of serializing the node using the method 
  specified by the json-node-output-method parameter. If the 
  json-node-output-method parameter is set to xml or xhtml then the 
  node is serialized with the additional serialization parameter 
  omit-xml-declaration set to yes.

to:

  A node in the data model instance is serialized to a JSON string by
  outputting the result of serializing the node using the method
  specified by the json-node-output-method parameter.  The node is
  serialized with the serialization parameter omit-xml-declaration set
  to yes and with no other serialization parameters set.

2 The following sentence should be inserted into section 9.1, before the heading for section 9.1.1:

  9.1:  When nodes are serialized using the JSON output method, 
  serialization is delegated to the output method specified by the 
  json-node-output-method serialization parameter.  The 
  omit-xml-declaration parameter is set to &apos;yes&apos;, and no other 
  serialization parameters are passed down to the serialization 
  method responsible for serializing the node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127026</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-07-21 18:54:24 +0000</bug_when>
    <thetext>At the meeting on 2016-07-19, the WG agreed to adopt the proposal in comment #1.
The changes have now been applied</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>