This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13009 - [F+O 3.0] Should fn:put() allow serialization parameters?
Summary: [F+O 3.0] Should fn:put() allow serialization parameters?
Status: RESOLVED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 14:48 UTC by Jonathan Robie
Modified: 2011-06-28 16:10 UTC (History)
1 user (show)

See Also:


Attachments

Description Jonathan Robie 2011-06-21 14:48:36 UTC
Should fn:put() allow serialization parameters?

Serialization parameters make sense when writing to text-based systems, but fn:put() can also write to binary stores. If we allow serialization parameters, what should a binary store do with them? Ignore the serialization parameters? Raise an error?
Comment 1 Michael Kay 2011-06-21 14:58:50 UTC
XSLT has always had this problem: the output of the stylesheet may or may not be serialized. The rules are clear: if the processor is not serializing, it ignores the serialization parameters, except that it is permitted (but not required) to report errors if they are incorrect.

I think that fn:put() should allow serialization parameters to be specified.
Comment 2 Jonathan Robie 2011-06-28 16:10:50 UTC
Ideally, we would add multiple functions to address different use cases. fn:put() would be used for updates, we would have other methods for file systems, and perhaps others for Internet resources.

This is worth taking up in future versions of XQuery, but for now we defer this to expath.org. See, for instance, http://expath.org/spec/file.