I am wondering if is possible to create an XSLT stylesheet that would extract XPATHs for all leaf elements in a given XML file.
E.g. for
<?xml version="1.0" encoding="UTF-8"?>
<root>
<item1>value1</item1>
<subitem>
<item2>value2</item2>
</subitem>
</root>
The output would be
/root/item1
/root/subitem/item2
outputs: