I am trying to generate an output XML file from a master xml file (Input1) based on data available in a decision xml file (Input2).
Master file
<Level1>
<Level2>
<LinkedTo>DATA1</LinkedTo> <!DATA1 in the decision file>
<Attribute1>1</Attribute1>
<Attribute2>2</Attribute2>
</Level2>
<Level2>
<LinkedTo>DATA2</LinkedTo>
<Attribute1>3</Attribute1>
<Attribute2>4</Attribute2>
</Level2>
</Level1>
Decision File:
<TopLevel>
<DATA1>
<Available>Y</Available>
</DATA1>
<DATA2>
<Available>N</Available>
</DATA2>
</TopLevel>
The XSLT when processed must output resultant file (Based on a YES or a NO in the decision file).
<Level1>
<Level2>
<Attribute1>1</Attribute1>
<Attribute2>2</Attribute2>
</Level2>
</Level1>
I must confess I have never done XML stuff before, but this is needed for a feasibility study. What should be in the XSLT? I can use your answers and extend the concept.
Or if there is an alternative (python,C#,C,C++ etc), those are welcome as well. I can manage with C/C++ or any procedure oriented language.