Multiple Message Context Variable Can't Be Referred Inside Apply XSL Transformation Assertion

book

Article ID: 131289

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security 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  need to be performed on multiple data sources. The business need requires:

(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: L7SGA299000-9.2-API Gateway SOA Gateway-HARDWARE APPLIANCE DUAL CPU
Component:

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.

Attachments

1558537211399passMultipleCVs.xml get_app