snapshot

Makes a deep copy of a node, 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 (which must be a node).

snapshot() ➔ node()

There are no arguments

Result

node()

snapshot($source as node()?) ➔ node()?

Arguments

 

$source

node()?

The node to be copied

Result

node()?

Links to W3C specifications

Namespace: http://www.w3.org/2005/xpath-functions

Applies to:

Notes on the Saxon implementation

Implemented since Saxon 9.5; available only in XSLT, and only when XSLT 3.0 is enabled.