Subject:how to pass value to xsl for transformation Author:raveendran kumaravelu Date:07 Aug 2012 12:26 AM Originally Posted: 07 Aug 2012 12:27 AM
Hi friends,
I have a few XML files to process, on which I need to remove some child elements.But I would like to pass in the child element value (to be removed) on runtime,
Reason...
1. child element to remove could differ from xml to xml.
example from attached xml:
a. "Account Id" should be removed from first.xml,
b from second.xml under "Martial Status" would like to remove "WID" grand child
2. Removing element could be child or grand child elements from the xml
please help how to achieve this.
Have attached both before and after (expected output)
Have attached sample
FYI: I'm using vbscript to parse folders which will have 100's of xml. thru vbscript I can a property file where I specify which element to be removed. So basically, vbscrip will read this property file, pass this value to a xslt transformation. I used microsoft xslt command line tool by passing source xml, xslt file, and output xml path.