TransformExCache

Mon 01 January 2018

Syntax

TransformExCache(&XmlDoc, FilePath, XsltKey)

Description

Use the TransformExCache function to do an Extensible Stylesheet Language Transformation (XSLT) transformation of the specified XmlDoc object.

The file specified by FilePath must be in well-formed XML.

Note: This function does not work on the OS/390 and z/OS batch servers.

Parameters

Field or Control

Definition

&XmlDoc

Specify an already instantiated and populated XmlDoc object that you want transformed.

FilePath

Specify an XSLT file. You must specify an absolute path to the file, including the file extension.

XsltKey

Specify a key to uniquely name the compiled and cached XSLT in the data buffers. This key is used both to create the item in memory as well as retrieve it. This parameter takes a string value, up to 30 characters.

Returns

An XmlDoc object containing the resulting XML from the transformation. Null is never returned. If you do not want to display an error to the user, place this function inside a try-catch statement.