The paths command
Outputs a list of the distinct element paths that exist in the current source document. They are output in order of first appearance, when scanning the tree in document order.
This command is useful to get an overview of the structure of the source document, especially if it is too large to display comfortably.
For example, given the
books.xml data file included with the Saxon resources
download, the output would be: