functx:distinct-element-paths

The distinct paths of all descendant elements in an XML fragment

Description

The functx:distinct-element-paths function returns a sequence of strings representing the paths of elements that are in $nodes or among their descendants.

Parameters

Description

nodes:node()

the root(s) to start from

Examples

XPath

Results

functx:distinct-element-paths($in-xml)

(‘authors’, ‘authors/author’, ‘authors/author/fName’, ‘authors/author/lName’)

functx:distinct-element-paths($in-xml/author[1])

(‘authors/author’, ‘authors/author/fName’, ‘authors/author/lName’)

Depends On

See Also