xsl-list
[Top] [All Lists]

[xsl] From filepaths to XML hierarchy

2011-12-27 07:25:30
Hi List

How can I transform a list of filepaths into a consolidated XML hierarchy?


Let us reduce the problem to the following input file:
<x>
   <a><b><c/></b></a>
   <a><b><d/></b></a>
   <a><b><e/></b></a>
   <h><i/></h>
   <h><j/></h>
</x>

How can I transform it into the following output:
<x>
   <a><b><c/><d/><e/></b></a>
   <h><i/><j/></h>
</x>

Cheers
Jesper Tverskov

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>