In WebLogic Workshop business processes, XML data can be transformed using either XQuery expressions or eXtensible Stylesheet Language Transformations (XSLTs). An XQuery expression or query, is written in the XQuery language—a language defined by the World Wide Web Consortium (W3C) that provides a vendor independent language for the query and retrieval of XML data. An XSLT is written in the eXtensible Stylesheet Language (XSL)—an older language defined by the W3C that supports the use of stylesheets for the conversion of XML data.
To learn about XSLT, see the XSL Transformations (XLST) Version 1.0-W3C Recommendation 16 November 1999 at the web site of the W3C at the following URL:
The XSLT processor which is invoked by the transformation conforms to the November 16, 2002 Recommendation of the XSLT Specification.
WebLogic Workshop provides functionality for executing existing XSLTs in business processes. However, in WebLogic Workshop, the preferred method for data transformations is to use queries in the XQuery language. To learn more about adding queries to your business process, see Transforming Data Using XQuery. Data transformation using XSLT is supported primarily for customers who have upgraded from prior versions of WebLogic Integration and wish to continue using their XSLT-based maps without modification.
This section contains the following tasks:
To Import an Existing XSLT file
This task describes how to import an XSLT file into your project.
Warning: Do not import the XSLT file into a Schemas project folder. (To learn more, see a Creating Schemas Projects.)
The Import Files dialog box is displayed.
To Add a Data Transformation to a Business Process Using an XSLT
In the Application tab, expand the folders that contain the Transformation file. (If the Application tab is not visible in WebLogic Workshop, choose View —> Application from the menu bar.)
In the Design View, right-click the arrow representing the method.
The Configure XSLT Transformation Method dialog box is displayed.
Repeat the following steps for each parameter of the XSLT:
Note: The parameter name entered in the Parameter Name field, must match the parameter name specified in the XSLT file. For example, if taxrate is specified as a parameter in the XSLT source file, the same name (taxrate) must be specified in the Parameter Name field. The following segment of an example XSLT file shows the declaration of the variable taxrate:
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.acme.com/trans" version="1.0"> <xsl:output method="update" indent="yes" /> <xsl:param name="taxrate"/> ...
Note: In the Configure XSLT Transformation Method dialog box, the order of the parameters specified is not significant. The parameters of the XSLT are matched to the parameters of the Transformation method by name.
This links the XSLT file with the selected method in the Transformation file. During run time, if the business process invokes this method, this XSLT is invoked.
![]() |
![]() |