- Syvizo API Management Platform
- Overview
- Getting Started
- Manage Users and Accesses
- Design APIs
- Publish API
- Collaborate
- Validate APIs
- Manage API Flows
- Flow Management
- API Flow Manager
- Policies
- Traffic Management
- Security
- Transformation
- Extension
- Insights
Apply XSLT
When to use
Use this policy when you want to transform XML to XML in a different format or to HTML or text using XSLT
Details
XSLT is a specification language originally designed for transforming XML documents into other XML documents, or other formats such as HTML for web pages, plain text or XSL Formatting Objects, which may subsequently be converted to other formats, such as PDF, PostScript and PNG.
You can use “Apply XSLT” policy to perform transformations by providing the source XML and the XSLT string.
Configuration
The configuration fields for the policy are:
[* Indicates a mandatory field]
Name *: Display name of the policy
Description: Description of policy
Enabled: Flag to indicate if the policy is enabled. If this field is not checked, the policy will be ignored at runtime and any fields from its output will contain a default initial value
Continue on Error: Flag to indicate that the flow should continue even if this policy throws an error
XSL String: XSL to be applied to the source XML. This value is used only if the input for this policy does not specify an input value for corresponding input field
Input fields
sourceString: The XML string which needs to be transformed using XSLT
xsltString: The XSLT string that will be used to transform the xml
Output fields
transformedString: The resulting transformed string