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 29272 - [SER31] Adaptive Serialization of items other than nodes
Summary: [SER31] Adaptive Serialization of items other than nodes
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: 2015-11-09 15:18 UTC by Christian Gruen
Modified: 2015-11-18 13:38 UTC (History)
2 users (show)

See Also:


Attachments

Description Christian Gruen 2015-11-09 15:18:45 UTC
10.1 states that "All serialization parameters, if set, will be passed down to the serialization method that is applied to each item in the supplied sequence.".

However, only nodes (excluding attributes and namespaces) are passed down to another method. If we assume serialization parameters to be ignored for all other items, this would e.g. mean that a specified "encoding" parameter would not be applied to strings, but to text nodes. Three other parameters that might need to be checked are "byte-order-mark", "normalization-form" and "use-character-maps".

Maybe the easiest solution would be to use the existing "Text Output Method" for outputting the strings resulting from the adaptive serialization rules?
Comment 1 Andrew Coleman 2015-11-18 13:38:16 UTC
The WG voted to adopt the solution suggest by Christian (i.e. to use the existing Text output method to serialize strings) as detailed in the proposal in the mailing list:
https://lists.w3.org/Archives/Public/public-xsl-query/2015Nov/0035.html

This proposal also addresses bug 29273.