My requirement is to do a XML A to XML B transformation. The Tag in which I read from XML A should be configurable, it is a kind of iteartion of lists. If there is any new tag present in XML A, it should be dealt by adding entries in configuration file for Java and programatically which in turn should be reflected in XSLT and transformed to XML B.
I'm using Java. Is it possible by passing parameters? as my requirement need the parameters are passed in a loop or a List.
I'm new to XSLT and any info link on this would be very much appreciated.
Source XML - There can be more like yearly, weekly etc here
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Report>
<Daily>
<input>1234</input>
</Daily>
<Monthly>
<input>8678</input>
</Monthly>
</Report>
Target XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Report>
<Value>
<Attribute>
<name>Daily</name>
<values>1234</values>
</Attribute>
<Attribute>
<name>Monthly</name>
<values>8678</values>
</Attribute>
</Value>
</Report>