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 5667 - [XSLT 2.0] Character maps and validation
Summary: [XSLT 2.0] Character maps and validation
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: 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: 2008-04-29 01:31 UTC by Michael Kay
Modified: 2008-09-28 10:08 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2008-04-29 01:31:02 UTC
We should provide a warning that using character maps (or disable-output-escaping) on an output document that is being validated against a schema is fundamentally unsound; in such a case the fact that the result tree is valid (or invalid) does not prove that the serialized output will be valid (or invalid).
Comment 1 Michael Kay 2008-07-10 16:47:18 UTC
On 10 July 2008 the editor was asked to draft a (non-normative) note for this
Comment 2 Michael Kay 2008-07-10 20:44:32 UTC
Proposal: 

(1) add the following Note at the end of 20.1

Note: When character maps are used, there is no guarantee that the serialized output will be well-formed XML (or HTML). Furthermore, the fact that the result tree was validated against a schema gives no guarantee that the serialized output will still be valid against the same schema. Conversely, it is possible to use character maps to produce schema-valid output from a result tree that would fail validation.

(2) add the following Note at the end of 20.2

Note: When disable-output-escaping is used, there is no guarantee that the serialized output will be well-formed XML (or HTML). Furthermore, the fact that the result tree was validated against a schema gives no guarantee that the serialized output will still be valid against the same schema. Conversely, it is possible to use disable-output-escaping to produce schema-valid output from a result tree that would fail validation.
Comment 3 Michael Kay 2008-09-28 10:08:48 UTC
The proposed non-normative notes have been incorporated as erratum E27.