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 24136 - [xslt 3.0] (and [2.0]) xsl:copy-of with validation=strict, copy-namespaces=no
Summary: [xslt 3.0] (and [2.0]) xsl:copy-of with validation=strict, copy-namespaces=no
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: 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: 2013-12-19 10:51 UTC by Michael Kay
Modified: 2014-02-24 15:58 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2013-12-19 10:51:46 UTC
This applies to both XSLT 3.0 and 2.0.

If xsl:copy-of requests validation and also requests namespace stripping (e.g. using copy-namespaces="no" with validation="strict") then it is not clear in the spec whether namespaces are removed before or after validation.

I think it's safest to remove namespaces first. If the element/document being copied contains namespace-sensitive content (e.g. QName-valued attributes), this will cause validation to fail because of the absent namespaces, and it's better to have validation fail than to generate output which claims to be valid and is not.
Comment 1 Michael Kay 2014-01-23 17:32:49 UTC
The proposed resolution was accepted.