Sample of TransformXML Activity
This sample highlights the use of the TransformXML activity to transform an input XML document into the required output format. In this sample, the XML file is transformed to an HTML format using XSLT. The file names used in this sample are specified in module property.
Prerequisites
- Import the XSLT file to the schemas folder. Right-click on schemas > import > file system > browse to the data folder and select $TIBCO_HOME/bw/palettes/lx/<version>/samples/LargeXML/data/input/listemployee.xslt.
- Set the XSLT in the Stylesheet field of the General tab.
- Before executing the project, set the module property LargeXML_Root to the location of the plug-in samples folder. For example, if the plug-in samples are available in $TIBCO_HOME/bw/palettes/lx/<version>/samples, set LargeXML_Root to $TIBCO_HOME/bw/palettes/lx/<version>/samples. The rest of the input and output paths are configured using this module property.
Procedure
- In the samples directory, select <TIBCO HOME> bw > palettes > lx > <version> > samples and double-click tibco.bw.sample.palette.bwlx.LargeXMLPluginSample.
- In Project Explorer, expand the tibco.bw.sample.palette.bwlx.LargeXMLPluginSample project.
- Set the default ApplicationProfile to match your operating system.
- Fully expand the Processes directory and double-click TransformXML.bwp. In Module Descriptors > Components, you can see TransformXML.bwp.
- Click Run > Debug Configurations.
- In the left tree of the Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- Click the Applications tab and then click Deselect All if you have multiple applications. Select the check box next to tibco.bw.sample.palette.bwlx.LargeXMLPluginSample.application.
- Click Debug. This runs the sample in the Debug mode.
-
Click the
Terminate
icon to stop the process.
Copyright © Cloud Software Group, Inc. All rights reserved.
