[Bug 29940] [FO31] fn:transform serialization parameters

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29940

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #4 from Michael Kay <mike@saxonica.com> ---
A slight refinement.

In the serialization parameters, map { "standalone": () } means that no
standalone attribute should be written to the XML declaration. We need this
setting to be able to override a stylesheet declaration like <xsl:output
standalone="yes"/>.

Therefore, I think we should treat a parameter that is present with a value of
() as an override of a value specified in xsl:output, rather than ignoring it
as proposed in comment #3.

I'm leaving the bug open so that the resolution can be reviewed by the WG. The
text now reads:

Serialization parameters for the principal result document. The supplied map
follows the same rules that apply to a map supplied as the second argument of
<code>fn:serialize</code>. When a parameter is supplied, the corresponding
value overrides or augments the value specified in the unnamed
<code>xsl:output</code> declaration (or its default), following the same rules
as when one <code>xsl:output</code> declaration overrides another with lower
import precedence.
When a parameter is supplied and the corresponding value is an empty sequence
(for example, <code>map{"standalone":()}</code>, any value specified in the
unnamed <code>xsl:output</code> declaration is overridden by the default value.
 When a parameter is not supplied in <code>serialization-params</code> (that
is, when the key is absent) the value that applies is the value appearing in
the unnamed <code>xsl:output</code> declaration, or its default.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 19 October 2016 09:26:38 UTC