Re: [xsl] From filepaths to XML hierarchy

Subject: Re: [xsl] From filepaths to XML hierarchy
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 27 Dec 2011 06:02:40 -0800
Seems similar to this question which I answered recently on SO:



http://stackoverflow.com/questions/8620090/auto-creating-xml-template-based-o
n-string-pattern-using-xslt/8623217#8623217



On Tue, Dec 27, 2011 at 5:25 AM, Jesper Tverskov <jesper@xxxxxxxxxxx> wrote:
>
> 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>
> B  <a><b><c/></b></a>
> B  <a><b><d/></b></a>
> B  <a><b><e/></b></a>
> B  <h><i/></h>
> B  <h><j/></h>
> </x>
>
> How can I transform it into the following output:
> <x>
> B  <a><b><c/><d/><e/></b></a>
> B  <h><i/><j/></h>
> </x>
>
> Cheers
> Jesper Tverskov
>



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.

Current Thread