XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
raveendran kumaraveluSubject: 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.


Unknownfirst-before.xml
first-before.xml

Unknownfirst-after.xml
first-after.xml

Unknownsecond-before.xml
second-before.xml

Unknownsecond-after.xml
second-after.xml

Postnext
Ivan PedruzziSubject: how to pass value to xsl for transformation
Author: Ivan Pedruzzi
Date: 08 Aug 2012 06:34 PM
Which Stylus Studio version are you running?

<<"These boards are part of the Stylus Studio Developer Network. They are a service to users of Stylus Studio only.">>


Ivan Pedruzzi
Stylus Studio Team

Posttop
raveendran kumaraveluSubject: how to pass value to xsl for transformation
Author: raveendran kumaravelu
Date: 08 Aug 2012 06:41 PM
Sorry, I thought it is generic and NOT for stylus studio related tech support.

Currently using Trial version. Thinking of purchasing license.

thanks

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.