The paths command

Syntax:

paths

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.

Example

For example, given the books.xml data file included with the Saxon resources download, the output would be:

Found 16 items /BOOKLIST /BOOKLIST/BOOKS /BOOKLIST/BOOKS/ITEM /BOOKLIST/BOOKS/ITEM/TITLE /BOOKLIST/BOOKS/ITEM/AUTHOR /BOOKLIST/BOOKS/ITEM/PUBLISHER /BOOKLIST/BOOKS/ITEM/PUB-DATE /BOOKLIST/BOOKS/ITEM/LANGUAGE /BOOKLIST/BOOKS/ITEM/PRICE /BOOKLIST/BOOKS/ITEM/QUANTITY /BOOKLIST/BOOKS/ITEM/ISBN /BOOKLIST/BOOKS/ITEM/PAGES /BOOKLIST/BOOKS/ITEM/DIMENSIONS /BOOKLIST/BOOKS/ITEM/WEIGHT /BOOKLIST/CATEGORIES /BOOKLIST/CATEGORIES/CATEGORY