I would like to know how to store a value from XML to an array variable in XSL and use those arrays to create a new XML file.
Using XSL version 1.0, here's an example:
Convert sample1.xml TO sample2.xml using XSL
sample1.xml
<root>
<transfer>A</transfer>
<station>A</station>
<transfer>B</transfer>
<station>B</station>
<transfer>C</transfer>
<station>C</station>
</root>
sample2.xml
<root>
<fund>A</fund>
<place>A</place>
<fund>B</fund>
<place>B</place>
<fund>C</fund>
<place>C</place>
</root>
So I need to store all the values from the <transfer> tag to an array and put the values into the <fund> tag.
So far I extracted values from one XML file and put the values in another XML file.
How can I put these items into an array?