fn:root() → node
Function signature
Result |
node() |
Returns the root node (typically but not necessarily a document node) of the tree containing the context node
fn:root(node $srcval) → node
Function signature
$srcval |
node() |
Result |
node() |
Returns the root node (typically but not necessarily a document node) of the tree containing the given node