DataPower Gateway only

xslt

Use the xslt policy to apply an XSLT transform to the payload of the API definition.

The xslt policy has the following structure:
- xslt:
   title: Title
   description: Description
   input: Input_True_False
   source: Transform
The following table describes the policy properties:
Table 1. xslt policy properties
Property label Required Description Data type
Title Yes The title of the policy.

The default value is xslt.

string
Description No A description of the policy. string
Use context current payload No Indicates whether this XSLT input document uses the context current payload, or if there is no input.

The check box is cleared by default, which indicates that there is no input.

boolean
Source Yes The XSLT transform source to execute. string

You can also apply an xslt policy by using the API Designer assembly editor to add a built-in policy to the API. For more information, see XSLT (xslt) in the built-in policies section.

For examples of the OpenAPI (Swagger 2.0) definitions of xslt policies, see XSLT policy examples in the built-in policies section.

For more examples of how to use XSLT to access and modify properties and context, see Implementation code examples in the user-defined policies section.