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 15877 - wrong serializer options
Summary: wrong serializer options
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 minor
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: 2012-02-04 05:55 UTC by Matthias Brantner
Modified: 2012-02-06 16:34 UTC (History)
1 user (show)

See Also:


Attachments

Description Matthias Brantner 2012-02-04 05:55:19 UTC
In Sec. 14.9.3 fn:serialize, the example demonstrating the serializer options is wrong.

It is

<output:serialization-parameters>
  <output:omit-xml-declaration>yes</output:omit-xml-declaration>
</output:serialization-parameters>

but should be

<output:serialization-parameters
       xmlns:output="http://www.w3.org/2010/xslt-xquery-serialization">
  <output:omit-xml-declaration value="yes"/>
</output:serialization-parameters>
Comment 1 Michael Kay 2012-02-06 15:43:33 UTC
I have added a reference to this namespace both in this example and in the list of "standard namespaces" appearing near the start of the specification. Closing as editorial.
Comment 2 Matthias Brantner 2012-02-06 16:00:12 UTC
(In reply to comment #1)
> I have added a reference to this namespace both in this example and in the list
> of "standard namespaces" appearing near the start of the specification. Closing
> as editorial.
Just to make sure, the bug was not only about the namespace prefix. The serialization spec
requires a value to be given as attribute (with name value). The example contains the
value of the option in the content of the omit-xml-declaration.
Comment 3 Michael Kay 2012-02-06 16:34:27 UTC
Ah! - I missed that. Thanks. Now refixed.