My source XML contains both data and "metadata", describing the target XML.
Source data is a generic collection of entries (fields) and my goal is to create an XML with specific tag names.
Is it possible to convert the source below into target using XSLT?
Source:
<section>
<name>TaxpayerInfo</name>
<field>
<name>firstName</name>
<value>John</value>
</field>
<field>
<name>lastName</name>
<value>Smith</value>
</field>
</section>
Target
<taxpayerInfo>
<firstName>John</firstName>
<lastName>Smith</lastName>
</taxpayerInfo>