transform
This command specifies the stylesheet or control file for the action.
Syntax
transform URL
Parameters
- URL
- Identifies the name and location of the file.
Guidelines
The transform command specifies a stylesheet or control file with a file name and path or as a file that resolves from a context variable. When the location is configured as a context or a variable, the context content is treated as a stylesheet.
Use one of the following formats to specify the location:
- URL. The prefix of the URL can be the local:, store:, or temporary: directory. When you specify the URL, use the absolute path to the file, such as temporary:///my_xsl/myTest.xsl, or use a relative path, such as ../my_xsl/myTest.xsl.
- A context variable that expands to a URL that specifies the file location. Use the var://context/contextName/varName format, such as var://context/myContext/myLocation.
- A context. The context content runs as a stylesheet. An action that precedes the processing
action, such as a
fetch, must populate the context with the stylesheet. Use one of the following formats:- var://context/name/
- var://context/name
The transform command is required when type is one of the
following values.
crypto-binaryfilterroute-actionsqlxformxformbinxformngxformpi
The transform command is required in the following cases.
- The transform command is required when the action type is
sqland the sql-source-type isstylesheet. In this case, the transform identifies the stylesheet to run against the contents of the input context to create the SQL statement. - The transform command is required when the action type is
xformngand the transform-language is notnone. In this case, the transform identifies the script to run against the contents of the input context.
Example
Identify the
local:///processHeader.xsl stylesheet for the transform
action.# type xform
# transform local:///processHeaders.xsl