|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |
The Transform XML activity allows you to transform an input XML document into the output specified by the given XSLT File shared configuration resource.
For more information about creating and editing XSLT files, see the XSLT specification at http://www.w3.org/TR/xslt. For more information about creating an XSLT File shared configuration resource see XSLT File.See Example of Transforming XML for an example of using the Transform XML activity.
− TIBCO XML - This is the default XSLT engine provided by TIBCO.
− Saxon-B XSLT 2.0 - This engine provides basic conformance to XSLT 2.0. The engine provides all features of the languages except schema-aware processes.
The Error Output tab lists the possible exceptions that can be thrown by this activity. See TIBCO ActiveMatrix BusinessWorks Error Codes for more information about error codes and corrective action to take.
The following is an example of using the Transform XML activity to change an input XML document into the desired output schema. In this example, books are cataloged and processed. The user enters a book’s information into a web interface, and the web input form supplies a new catalog number and the date it was entered into the catalog. The process definition accepts the incoming web request, transforms the XML and adds the catalog number and date, enters the data into a database, then returns the results to the user. Figure 30 illustrates the process definition for this example.The Transform XML activity uses an XSLT file that accepts two input parameters, catalogNumber and catalogDate. These input parameters are added as elements to the Book schema. The following is the source of the XSLT File shared configuration resource for the example Transform XML activity:When you configure the Transform XML activity, you specify the incoming XML to transform any input parameters to the schema. Figure 31 illustrates the input for the example Transform XML activity.
|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |