fn:snapshot
Makes a deep copy of a sequence, such that any node in the sequence is copied together with a shallow copy of its ancestors and their attributes. (This will typically be a streamed node, to allow navigation within the subtree rooted at the node.) The zero-argument form applies the function to the context item.
snapshot() ➔ item()
There are no arguments | |||
Result | item() |
snapshot($input as item()*) ➔ item()*
Arguments | |||
| $input | item()* | The sequence to be copied |
Result | item()* |
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
Saxon availability
Available in XSLT 3.0. From Saxon 9.8, available in all editions. Implemented in Saxon-PE and Saxon-EE since Saxon 9.5.
Notes on the Saxon implementation
Available since Saxon 9.5 for use in XSLT 3.0. Since Saxon 9.6 the function is also made available in XQuery.
Since Saxon 9.7, the function can operate on any sequence of items (not just nodes).