- From: <bugzilla@jessica.w3.org>
- Date: Mon, 11 Nov 2013 00:28:54 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23785
Bug ID: 23785
Summary: [xslt 3.0] snapshot() implementation does not copy
document node
Product: XPath / XQuery / XSLT
Version: Working drafts
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XSLT 3.0
Assignee: mike@saxonica.com
Reporter: mike@saxonica.com
QA Contact: public-qt-comments@w3.org
Although the narrative description of the snapshot() function indicates that a
documetn node at the root of the source tree should be copied, the XSLT
specimen implementation of the function leaves the result with no document node
at its root. This is because the template rule
<xsl:template match="node()" mode="snapshot">
does not apply to document nodes (only to child nodes(), and the built-in
template for document nodes does a "shallow skip", that is, it does not create
a document node in the result tree.
Similar problems occur when the argument to snapshot() is a parentless
attribute or namespace node: the node is not matched and is therefore not
copied.
Possible fixes are either (a) to change match="node()" to match=".", or (b) to
add on-no-match="shallow-copy" to the mode declaration.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 11 November 2013 00:28:55 UTC