When you use the Adapter for File System (XSLT) activity, extension functions can be called from the XSLT processor to perform actions that cannot be done by standard XSLT functionality.
The following extension functions are available. Any variables in the below examples must be defined in the XSLT script.
Defines the output file name. The file path can be absolute or relative. In case of a relative path, the configured base directory is used as the root. Parameters:
Example: <xsl:variable name="dummy"
| |
Creates a trigger file at the end of processing to tell the target system that the root document is completely exported. The file path can be absolute or relative. In case of a relative path, the configured base directory is used as the root. Parameters:
Example: <xsl:variable name="dummy"
| |
Creates a trigger file for each document, telling the target system that the document is exported. This file path can be absolute or relative. In case of a relative path, the configured base directory is used as the root. Parameters:
Example: <xsl:variable name="dummy"
| |
Creates all directories and subdirectories for the given path. If a directory already exists, no error is reported. Parameters:
Example: <xsl:variable name="dummy"
| |
Deletes the given directory and all of its subdirectories. If the directory does not exist, no error is reported. This is performed at the end. Several directories can be deleted if this is called more than one time. Parameters:
Example: <xsl:variable name="dummy"
| |
Creates and returns a number for each document that has been specified by , which is unique per process and per .If this is called multiple times, the number from the first call is returned. Counting starts with 1. The maximum value is 9,223,372,036,854,775,807. For processes, a counter named is created, if it does not yet exist, and is used.For documents, a field named and the value of the counter are created.Parameters:
Returns:
Example: <xsl:variable name="batchID"
| |
| Exports a medium as a file. Parameters:
Example: <xsl:variable name="dummy"
|
| Creates a tar archive after the XSLT processing. The paths in the tar archive are relative to the path contained in the parameter.If this is called multiple times, only the last call is valid. Parameters:
Example: <xsl:variable name="dummy3"
|
Returns the current DateTime value according to the specified .Parameters:
Returns:
Example: <xsl:variable name="DateTimeNow"
| |
| Converts a DateTime value formatted in to a DateTime value formatted in .Parameters:
Returns:
Example: <xsl:variable name="DateTimeNow"
|
| Creates an XBOUND field in the specified document or field group with the specified name and value. Parameters:
Example: <xsl:variable name="dummy2"
|
| Updates an XBOUND field in the specified document or field group with the specified name and value. (This is done by deleting and recreating fields with the specified name. If the specified field value exceeds 255 characters, it is split across two fields.) Parameters:
Example: <xsl:variable name="dummy2"
|
Deletes all XBOUND fields in the specified document or field group with the specified name. Parameters:
Example: <xsl:variable name="dummy2"
| |
Creates an XBOUND document with the specified name and null document type in the specified parent document. Parameters:
Example: <xsl:variable name="dummy3"
| |
Opens a connection to the SQL Server database with the specified connection string and begins a transaction. Parameters:
Example: <xsl:variable name="DB-Transaction-Open"
| |
Inserts a new entry into the table with the specified name. Parameters:
Example: <xsl:variable name="table"
select="EC:node-set($TABLE)"/> | |
| Reads data from a comma-separated values (CSV) file. Parameters:
Example: <xsl:for-each select="XBOUNDCustomFunctions:ReadCSVFromFile
|
| Sends a log message. Parameters:
Example: <xsl:variable name="dummy"
|
Throws an exception. Parameters:
Example: <xsl:variable name="dummy"
|