XSLT
In this article
Snap type: | Transform | |||||||
---|---|---|---|---|---|---|---|---|
Description: | This Snap reads the binary data and applies the XSLT transformation rules and writes out the resulting documents. This Snap supports 1.0, 2.0 standards. | |||||||
Prerequisites: | The input binary data must use UTF-8 encoding. If non-UTF-8 encoded data or a special character is passed, it results in an error: "Error view with behavior continue received a new type of error." Refer to the Troubleshooting section below for steps to resolve this error. | |||||||
Support and limitations: | Works in Ultra Tasks. | |||||||
Account: | Accounts are not used with this Snap. | |||||||
Views: |
| |||||||
Troubleshooting: |
| |||||||
Settings | ||||||||
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||
Schema | Schema of the incoming data provided as XSD. Example: sldb:///my_schema/foo.xsd | |||||||
Validate input | Required. Specifies the incoming data to be validated against the provided XSD schema definition in Inbound Schema property. If you enter an Inbound schema, then you must select Validate XML and Match data types properties to derive the output as per the defined schema. Example: False Default value: False Java 8 throws an error if the
| |||||||
XSLT | Required. Transforms the incoming XML document based on the XSLT Transformation rules. Example: sldb:///my_xslt/converter.xslt Pass values dynamically You can also dynamically pass parameter values to the Snap instead of passing an XML input, by configuring the intended parameter values in an upstream Mapper Snap. Ensure that the intended parameters are defined in the template's header. For example, consider the following XML: To pass a dynamic value for the parameter title, you would include this parameter in the XML stylesheet template (XSLT) as follows: Fixes an issue in a previous patch wherein null binary header values are now converted to blank strings when injecting them as parameters in the stylesheet. | |||||||
Format as canonical XML | Select to produce a canonical XML output. The canonical form of an XML output is an XML representation that excludes the XML prolog and includes the start and end tag for all the XML elements. Default value: Not selected | |||||||
Snap Execution | Select one of the following three modes in which the Snap executes:
Default Value: Execute only |
See it in Action