Multiple Message Context Variable Can't Be Referred Inside Apply XSL Transformation Assertion
book
Article ID: 131289
calendar_today
Updated On:
Products
CA API Gateway
Issue/Introduction
How do you pass multiple context variables with a Message content type through an Apply XSL Transform assertion?
Within the Apply XSL Transformation Assertion, there is some XPath logic that needs to be performed on multiple data sources. The requirements are:
(1) To pass multiple XML data sources the Apply XSL Transformation Assertion. (2) The XML data sources must have a Message content type or they can't be used in the XPath logic.
Environment
Release: All Component: Gateway
Resolution
By design, you cannot pass multiple context variables through an Apply XSL Transformation Assertion.
+ The recommended resolution is to concatenate the two XML context variables into one context variable and use the concatenated context variable as the Target Message.
+ Use the Evaluate Regular Expression Assertion to remove the extraneous <?xml version="1.0" encoding="UTF-8"?> tags.
Additional Information
Attached is an example of how to concatenate two XML context variables.