DataPower Gateway (Classic)
only

Configuring the XSLT policy for DataPower Gateway (v5 compatible)

Follow these steps to configure the XSLT policy for DataPower® Gateway (v5 compatible) in the assembly user interface.

About this task

Note: This topic describes the XSLT policy implementation in the DataPower Gateway (v5 compatible). If you are using the DataPower API Gateway, see Configuring the XSLT policy for DataPower API Gateway. For more information about the different types of gateway, see API Connect gateway types.

For details on how to configure the policy in your OpenAPI source, see xslt.

Procedure

  1. In the navigation pane, click Develop icon in the navigation pane Develop, then select the APIs tab.
    The Develop page opens.
  2. Click the title of the API that you want to work with, or create a new API.
  3. Select the Gateway tab, then click Policies in the navigation pane.
    For more information about working with the assembly editor for an API, see The assembly editor.
  4. Find the XSLT policy in the palette, and drag the policy onto your canvas.
  5. Specify the following 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
    Input 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
  6. Specify a version for the policy by clicking the Source icon OpenAPI Source icon, and completing the version section of the policy YAML. For example:
    execute:
      - xslt:
          version: 1.0.0
          title: xslt
      ...
    You must specify a version for the policy that is compatible with the gateway that you are using. When the API is published, if the version is incompatible with the gateway, a validation error is thrown that specifies the available versions.
  7. Click Save.