I am trying to create an XML output file from the main xml file (Input1) based on the data available in the xml solution 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>
Solution File:
<TopLevel> <DATA1> <Available>Y</Available> </DATA1> <DATA2> <Available>N</Available> </DATA2> </TopLevel>
XSLT during processing should output the resulting file (based on YES or NO in the decision file).
<Level1> <Level2> <Attribute1>1</Attribute1> <Attribute2>2</Attribute2> </Level2> </Level1>
I must admit that I have never done XML material before, but this is necessary to study the feasibility study. What should be in XSLT? I can use your answers and expand the concept.
Or, if there is an alternative (python, C #, C, C ++, etc.), this is also welcome. I can manage with C / C ++ or any procedure-oriented language.
source share