Mapping mediation primitive properties
You can specify values for mediation primitive properties either by using the property fields in the IBM® Integration Designer user interface or by using an XML format. The property field names displayed in IBM Integration Designer are generally different from the property names used when building a mediation flow using XML code. In the following information, icons are used to identify each property name used in IBM Integration Designer and the corresponding XML name. (Where applicable, XML names that are required, but not shown in IBM Integration Designer, are also described.)
Root root
An XPath 1.0 expression that specifies the root of the mapping. This property is used for both the input message and the transformed message. When you create a new XML map, you can specify the following message roots: /, /headers, /context or /body.
Field detail | Value and notes |
---|---|
Required | Yes |
Valid values | XPath Note:
/ refers to the complete SMO, /headers refers to the headers of the SMO, /context refers to the context of the SMO and /body refers to the body section of the SMO. |
Default | / |
XSLTransform
Specifies the XSLT stylesheet used during the transformation. This is required when the Target engine property in the XML Map is set to XSLT 1.0 or XSLT 2.0.
Field detail | Value and notes |
---|---|
Required | No |
Valid values | String Note:
|
Mapping file XMXMap
Specifies the name of the XML mapping file, or the XSL stylesheet, that the mediation primitive uses. You can choose either an XML mapping file, with an associated XSL stylesheet or Business Object Map, or an XSL stylesheet on its own.
You can browse existing XML mapping files or create a new mapping file. An XML mapping file has a generated XSL stylesheet or Business Object Map that performs the transformation at run time.
You can browse existing XSL stylesheets, if they exist in the same project as the mediation module.
Field detail | Value and notes |
---|---|
Required | No |
Valid values | String Note:
|
Validate input validateInput
If true, the input message is validated at run time, before the mediation is performed.
Field detail | Value and notes |
---|---|
Required | Yes |
Valid values | Boolean Note:
|
Default | false |
SMOVersion
This value is always defined as SMO61.
Field detail | Value and notes |
---|---|
Required | Yes |
Valid values |
Note:
|
Default | SMO60 |
Considerations
- If the Mapping file property is not valid, it causes an exception at run time.
- If Validate input property is true, the input message is validated against its schema, at run time. If the input message does not match its schema, an exception occurs.
Sample XML code
<node name="Mapping1" type="XSLTransformation">
<property name="root" value="/"/>
<property name="XSLTransform" value="xslt/Mapping1_req_1.xsl"/>
<property name="XMXMap" value="xslt/Mapping1_req_1.map"/>
<property name="SMOVersion" value="SMO61"/>
<inputTerminal type="XMLSchema:anyType"/>
<outputTerminal type="XMLSchema:anyType">
<wire targetNode="TypeFilter1"/>
</outputTerminal>
<failTerminal/>
</node>