I have several sql statements that produce a list of elements that 'should' be columns in a database but are not. I wish to use these lists to drive transforming an xml file into the same minus various specific children elements that reference those columns. so for example for TABLE WO I have the list: 'NORMDATE','ORIGRATE','ORIGUNITCOST','PREVRATE','PREVUNITCOST'
I wish to transform this:
<BASE>
<OBJECT>WO</OBJECT>
<CHILD1>
<NAME>ONE</NAME>
</CHILD1>
<CHILD1>
<NAME>PREVUNITCOST</NAME>
</CHILD1>
<CHILD2>
<REFNAME>ONE</REFNAME>
</CHILD2>
<CHILD2>
<REFNAME>PREVUNITCOST</REFNAME>
</CHILD2>
</BASE>
into this:
<BASE>
<OBJECT>WO</OBJECT>
<CHILD1>
<NAME>ONE</NAME>
</CHILD1>
<CHILD2>
<REFNAME>ONE</REFNAME>
</CHILD2>
</BASE>
I'm not sure how to iterate this list which I have to manually prepare to do this - can someone give me a pointer or reference? I assume I use the identity pattern referenced here: [Text]How to remove elements from xml using xslt with stylesheet and xsltproc?
my IntelliJ reports this: Apache Software Foundation (Xalan XSLTC)1.0 I plan on using IntelliJ to transform the data into a usable output file which will be applied later in the target system.
I will not use this in production, but simply to prepare some data that itself will hopefully be usable in my target systems. So this is for a data preparation task.