I am trying to create an stylesheet to transform an XML to other format of an XML and in the process it should create multiple XML files that are placed in separate folders. The XML file I am trying to work with is very large(~50000 lines) and I want to automate it. So I don't have to hardcode every section. For example, if I have a simple XML like the following:
<Site>
<element run="test1">
<property name="aaa"/>
<property name="bbb"/>
<property name="ccc"/>
<element run="test2">
<property name="aaa"/>
<property name="bbb"/>
<property name="ccc"/>
<element run="test3">
<property name="aaa"/>
<property name="bbb"/>
<property name="ccc"/>
</element>
</element>
</element>
XSLT should create folder named test1
and have test2
, test3
as subfolders (test1/test2/test3
) with an XML that consists of the child nodes property
in the same folder. So each folder should have small XML in it.