I want to create a XSD structure from an Excel output using XSLT. But my XSLT does not generate the hierarchical structure, correctly. It has some additional nodes in an element
Let me suggest a different approach to creating the nested hierarchy. To demonstrate, I will use the following minimized input:
XML
1 2 3 3 2 1 1 1 2 2
Applying the following stylesheet:
XSLT
will return:
Result
This works recursively with any number of levels.