WebSphere WebSphere Enterprise Service Bus, Version 6.0 Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

XSLT mediation primitive

Use the XSLT mediation primitive to transform messages.

Introduction

The XSLT mediation primitive transforms messages. The starting point of a transformation is indicated by an XPath expression.

The XSLT mediation primitive has one input terminal and two output terminals. One output terminal is for successful output and one for failure output. The input terminal is wired to accept a message and the output terminals are wired to propagate a message. The input message triggers a transformation and if the transformation is successful then the successful output terminal propagates the modified message. If an exception occurs during the transformation then the fail terminal propagates the original message, together with any exception information.

Usage

You can use the XSLT mediation primitive to change the headers or the body of your messages. The XSLT mediation primitive gives you a simple mechanism for manipulating messages. You transform your messages using an XSLT (Extensible Stylesheet Transformations) 1.0 transformation.

The XSLT mediation primitive can be useful if you need to manipulate data, before or after the Database Lookup mediation primitive is invoked.

Properties

Mapping File
Specifies the name of the XSL style sheet that the mediation primitive uses.
Root
An XPath 1.0 expression that specifies the root of the transformation. You can specify: /, /body, /headers, or your own XPath expression. / refers to the complete SMO, /body refers to the body section of the SMO, /headers refers to the headers of the SMO. This property is used for both the source message and the transformed message.
Validate input
If true, causes the input message to be validated before the mediation is performed.
Table 1. XSLT mediation primitive properties
Property Valid Values Default
Mapping File String  
Root String: An XPath expression representing the root of the transformation /body
Validate input Boolean: true or false false

Considerations

Consider the following when using the XSLT mediation primitive:


Reference topic

Terms of Use |

Last updated: 20 Nov 2005
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.wbit.help.medprim.doc\ref\rwesb_XSLTmediationprimitive.html

© Copyright IBM Corporation 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)