<?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>15979</bug_id>
          
          <creation_ts>2012-02-14 09:57:05 +0000</creation_ts>
          <short_desc>[Upd 3.0] fn:put() serialization parameters</short_desc>
          <delta_ts>2014-01-21 17:25: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>Update 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=9064</see_also>
          <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="Jonathan Robie">jonathan.robie</reporter>
          <assigned_to name="John Snelson">john.snelson</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>josh.spiegel</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>64073</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-02-14 09:57:05 +0000</bug_when>
    <thetext>When using fn:put() to create files on a file system, serialization parameters are extremely helpful for those who must edit the files later with a text editor. So it would be good to support serialization parameters for fn:put().

But if fn:put() is used to add results to a persistent store, serialization options may nor may not be relevant, depending on the store. What should a store do if it can not comply with serialization options that have been specified? Raise an error? Ignore them silently?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82331</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2013-01-30 15:39:50 +0000</bug_when>
    <thetext>ACTION A-529-04 Josh to comment in the bug 15979 with a proposal for adding serialization parameters to put

-------

* 2.8.1 fn:put 

fn:put($node as node(), $uri as xs:string) as empty-sequence()
fn:put($node as node(), $uri as xs:string, $params as element(output:serialization-parameters)?) as empty-sequence()

The two-argument version of this function has the same effect as the three-argument version called with $params set to an empty sequence. This in turn is the same as the effect of passing an output:serialization-parameters element with no child elements.

The $params argument is used to identify a set of serialization parameters. These are supplied in the form of an output:serialization-parameters element, having the format described in Section 3.1 Setting Serialization Parameters by Means of a Data Model Instance SER30.  The intent is that an implementation that serializes the $node argument during storage may use the serialization parameters.  In this case, the implementation should raise a dynamic error if setting the serialization parameters produces a serialization error or if an invalid parameter value is detected.  An implementation may ignore the $params argument but must not raise an error because parameters are specified.  

Semantics, bullet 4:  
   upd:put($node, $uri) -&gt; upd:put($node, $uri, $params)


* 3.1.12 upd:put

upd:put(
   $node as node(),
   $uri as xs:string,
   $params as element(output:serialization-parameters)?
)

Semantics:
  An implementation that uses serialization when storing the node may use the serialization parameters identified by $params.

------- 

Notes:
 - There was a question about default parameters at the WG meeting.  fn:serialize doesn&apos;t prescribe defaults so we shouldn&apos;t here either.
 - Some of the above text is copied from FNO30</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>