Transform from enumeration
Transformer with multiple options for converting enumeration values.
Option Value mapping allows you to set for each value of the source enumeration a corresponding destination value. This option is only available when the source and destination attributes have the data type enumeration. Note that source and destination values are defined in your source and destination XML message definitions.
Selecting custom XPath allows you to fully control the transformation of any value by entering your own custom XPath expression to handle the conversion. Technically, the XPath you enter will be used for the <xsl:value-of>
statement in the generated stylesheet. Use the view XSLT button to see a preview of how your XPath will be embedded in the resulting XSLT
This value will be used if the source value does not match any of the existing value mappings. If no value is defined, it will be set automatically to empty string.
Transformer with multiple options for converting enumeration values.
Transformer with multiple options for converting enumeration values.
Option Value mapping allows you to set for each value of the source enumeration a corresponding destination value. This option is only available when the source and destination attributes have the data type enumeration. Note that source and destination values are defined in your source and destination XML message definitions.
Selecting custom XPath allows you to fully control the transformation of any value by entering your own custom XPath expression to handle the conversion. Technically, the XPath you enter will be used for the <xsl:value-of>
statement in the generated stylesheet. Use the view XSLT button to see a preview of how your XPath will be embedded in the resulting XSLT
Allows you to fully control the transformation of an attribute value by specifying custom XPath.
You can use the token [%previousOutput%] to refer to the previous generated XPath and use it in the current transformer, e.g. if ([%previousOutput%]!='') then [%previousOutput%] else 'test'
See also: W3C XPath specification