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 29703 - [SER31] Bring the yes/no etc of the serialization-parameters schema in line with the way booleans are treated in XSLT's xsl:output
Summary: [SER31] Bring the yes/no etc of the serialization-parameters schema in line w...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Serialization 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-23 10:14 UTC by Abel Braaksma
Modified: 2016-07-08 08:07 UTC (History)
2 users (show)

See Also:


Attachments

Description Abel Braaksma 2016-06-23 10:14:01 UTC
About two years ago, XSLT adopted a change for boolean-style attributes (yes/no, true/false etc) to all accept the logical values of "yes", "true" and 1 and "no", "false" and 0 respectively, which works better with shadow attributes and auto-generated stylesheets.

For instance, <xsl:output omit-xml-declaration="false" /> or <xsl:output standalone="0" /> are allowed.

The serialization spec, in particular the serialization-parameters schema, was never brought in line with this. I think we should, it is just odd that referencing an external document for your settings accepts different values than xsl:output and xsl:result-document.

The parameters this applies to are:
- indent
- omit-xml-declaration
- standalone
- undeclare-prefixes
- byte-order-mark
- include-content-type
- allow-duplicate-names
Comment 1 Michael Kay 2016-07-05 15:46:25 UTC
The WG accepted the change.

Note: for the standalone property, XSLT 3.0 allows the values yes | no | true | false | 0 | 1 | omit, although the value in the serialized XML document must be yes | no | omit.
Comment 2 Michael Kay 2016-07-05 17:41:55 UTC
Correction, the value of standalone in the serialized XML must either be "yes" or "no" or absent.
Comment 3 Andrew Coleman 2016-07-08 08:07:17 UTC
This change has been made and committed (Action A-649-01)