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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…