XSLT (xslt)
Use the XSLT policy to apply an XSLT transform to the payload of the API definition.
Restriction: The XSLT policy can be used only with the DataPower® Gateway.
About
You can attach this policy to the following API flows:
- REST
- SOAP
Properties
The following table lists the policy properties, indicates whether a property is required, specifies the valid and default values for input, and specifies the data type of the values.
| Property label | Required | Description | Data type |
|---|---|---|---|
| Title | Yes | The title of the policy. The default value is |
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 |
For examples of the OpenAPI (Swagger 2.0) definitions of XSLT policies, see XSLT policy examples.
Errors
The following error can be thrown while the policy is being executed:TransformError- a generic error that captures all errors that occur during the execution of the policy.