Hi I am trying to do something that I at least think is really simple with xsl.
I have these files
Template.xml
Input.xml
I am trying to write a stylesheet which takes input.xml as an input and then creates an output xml that looks exactly like template.xml except with the two data fields replaced with those from input.xml
any idea of how to go about this. It is easy to save a copy of the good data from Input xml and make a copy of the Template.xml but I cannot work out how then to change the data in the output.
Expected output
Thanks,
I have these files
Template.xml
Code:
<root>
<data1>Hello</data1>
<data2>World</data2>
<spare1>Some Data</spare1>
</root>
Input.xml
Code:
<root>
<level2>
<input1>ajlsa</input1>
<data1>Goodbye</data1>
<data2>Space</data2>
</level2>
</root>
I am trying to write a stylesheet which takes input.xml as an input and then creates an output xml that looks exactly like template.xml except with the two data fields replaced with those from input.xml
any idea of how to go about this. It is easy to save a copy of the good data from Input xml and make a copy of the Template.xml but I cannot work out how then to change the data in the output.
Expected output
Code:
<root>
<data1>GoodBye</data1>
<data2>Space</data2>
<spare1>Some Data</spare1>
</root>
Thanks,