XSLT extensions
If you use an XSLT 2.0-based mapping, these extensions are provided:
- Base64 Decoding
Use this extension, to decode a previously base64-encoded string inside the mapping. This extension is particularly useful when you receive files encoded using base64 standard as an input to the mapping step using XSLT. Such a file can be decoded back as a text using the XSLT extension. You can use advanced string manipulation functions to construct a complex XML output of your choice, including hierarchies. The mapper does not validate if the input is an already base64-encoded string and decodes it using base64 decryption. If you use this extension, ensure that the input string is already base64-encoded.
- Encode Input String
Use this extension to encrypt any string to a base64 standard inside a mapping. You can encrypt any field in your BOD as a base64 string.
- Raise Exceptions
Use this extension, to perform business or metadata validations in your XSLT code and raise exceptions. When this extension is called, the mapping step throws a confirm BOD with the specified reason, and the execution of the data flow is terminated.
This section provides example use cases and sample XSLT code on how to use these extensions.