Modules |
## Function Syntax
The dyn:closure(., '*') returns all the descendant elements of the node (its element children, their children, their children's children and so on).
The expression is thus evaluated several times, each with a different node set acting as the context of the expression. The first time the expression is evaluated, the context node set is the first argument passed to the - the context node is the node whose value is being calculated
- the context position is the position of the node within the node set passed as the first argument to the
`dyn:closure` function, arranged in document order - the context size is the number of nodes passed as the first argument to the
`dyn:closure` function - the current node is the node whose value is being calculated
The result for a particular iteration is the union of the node sets resulting from evaluting the expression for each of the nodes in the source node set for that iteration. This result is then used as the source node set for the next iteration, and so on. The result of the function as a whole is the union of the node sets generated by each iteration. If the expression string passed as the second argument is an invalid XPath expression (including an empty string) or an expression that does not return a node set, this function returns an empty node set. ## ImplementationsThere are currently no XSLT processors that we know of that support There are currently no third-party implementations of |

http://www.exslt.org/dyn/functions/closure/index.html last modified 2001-11-25