What i'm looking for might seem pretty easy to understand, but i'm having a hard time making it possible.
I want to be able to put the content of an XML file on an HTML page using XSLT. The thing is, i want to list all the nodes name (not the content), recursively. Also, i have to consider the fact that i can't predict what are going to be the names of the nodes.
So if you know a way to recursively list all the nodes in an XML file using XSLT, thanks for the answer.
Since you asked for the node names and not the content, you don't need to do it recursively, this is the simplest way.
This transformation:
when applied on any XML document (such as this):
produces the wanted output (a list of the names of all elements in the XML document):
In case only the distinct element names are wanted, then this transformation:
produces the wanted result: