functx:sort-document-order
Sorts a sequence of nodes in document order
Description
The functx:sort-document-order function sorts a sequence of nodes in document order. This can be done with a simple path expression, but the function is useful for making the purpose of the expression clear.
Parameters |
Description |
---|---|
seq:node() |
the sequence to sort |
Examples
XPath |
Results |
---|---|
functx:sort-document-order(($in-xml/c,$in-xml/a)) |
<a>123</a> <c>789</c> |