I'm a complete beginner at xslt, so it comes as no suprise that I'm struggling to understand how to achieve a task.
Take the following XML:
<DataHeader>
<DataDetails>
<F1>12345</F1>
<F2>More Data</F2>
</DataDetails>
</DataHeader>
I need to write an xsl doc that converts it to this structure:
<?xml version="1.0" encoding="UTF-8"?>
<new>
<cols>
<col name="F1">12345</col>
<col name="F2">More Data</col>
</cols>
</new>
Really appreciate some help in doing this!
------------------------
Hit any User to continue
Take the following XML:
<DataHeader>
<DataDetails>
<F1>12345</F1>
<F2>More Data</F2>
</DataDetails>
</DataHeader>
I need to write an xsl doc that converts it to this structure:
<?xml version="1.0" encoding="UTF-8"?>
<new>
<cols>
<col name="F1">12345</col>
<col name="F2">More Data</col>
</cols>
</new>
Really appreciate some help in doing this!
------------------------
Hit any User to continue