XSLT Connector

Version 21.0.7884


XSLT Connector

Version 21.0.7884


The XSLT Connector supports using an XSLT file to automatically convert XML structures.

Overview

After an XSLT file has been uploaded to the connector, XML files arriving at the connector will automatically be converted based on the XLST definition.

Connector Configuration

This section contains all of the configurable connector properties.

Settings Tab

Connector Settings

Settings related to the core operation of the connector.

  • Connector Id The static name of the connector. All connector-specific files are held in a folder by the same name within the Data Directory.
  • Connector Description An optional field to provide free-form description of the connector and its role in the flow.
  • XSL Template File The XSLT file that defines the XML transformation to be performed by the connector.

Local Folders

Settings that determine where files will be processed from and sent to.

  • Input Folder (Send) Files placed here will be processed by the connector. If Send Automation is enabled, the connector will automatically poll this location for files to process.
  • Output Folder (Receive) Files that are processed by the connector will be placed here. If the connector is connected to another connector in the flow, files will not remain here and will instead be passed along to the Input/Send folder for the connected connector.
  • Processed Folder (Sent) The connector will place a copy of processed files here if Save to Sent Folder is enabled. This copy of the file will not be passed along to the next connector in the flow.

Performance

Settings related to the allocation of resources to the connector.

  • Max Workers The maximum number of worker threads that will be consumed from the threadpool to process files on this connector. If set, overrides the default setting from the Profile tab.
  • Max Files The maximum number of files that will be processed by the connector each time worker threads are assigned to the connector. If set, overrides the default setting from the Profile tab.

Other Settings

Settings not included in the previous categories.

  • Log Messages Whether logs from processed files will include a copy of the file itself.
  • Save to Sent Folder Whether files processed by the connector should be copied to the Sent folder for the connector.

Automation

Settings related to the automatic processing of files by the connector.

  • Send Whether messages arriving at the connector will automatically be processed.

XSLT Operations

In addition to the Operations provided with Arc, connectors may provide operations that extend functionality into ArcScript. Operations specific to the functionality of the X12 Connector are listed below.

xsltTranslate

Translates an input XML file according to a configured XSLT Connector or a specified XSLT file.

Required Parameters

  • ConnectorId The name of the configured XSLT Connector to use for translation
    OR
  • TemplateFile The path to the XSL template to use for translation
    OR
  • Data The contents of the XSL template to use for translation

  • File The input file to translate

Optional Parameters

  • OutputEncoding By default, the operation will output ASCII data. To instead output base64-encoded binary data, this parameter should be set to ‘base64’.
  • OutputFile - When this is set, output data will not be written to the Data output attribute and will instead be written to the specified file.

Output Attributes

  • Data The output from the translation is passed through this parameter.