SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
The XPath API
Standards Conformance
Extensibility
Saxon Extensions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
XSLT Patterns

# fn:root

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

XPath 2.0 Specification

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

XPath 2.0 Specification

Next