Convert XSLT Structure

Operation name

Convert XSLT Structure

Function overview

Converts input data with XSLT.

Data model

The data model of this component is XML type.

= Remarks =

For more details on input/output schema, refer to Schemas.

Properties

= Remarks =

For details on use of variables, refer to Variables.

Basic settings

Item name

Required/Optional

Use of variables

Description

Remarks

Name

Required

Not available

Enter a name that is used on the script canvas.

 

Input data

Required

Not available

Select a component on the script canvas.

 

Required settings

Item name

Required/Optional

Use of variables

Description

Remarks

XSLT read type

Required

Not available

Select whether to read XSLT from a file or input it directly.

FILE

(Default)

Select this to read XSLT from a file. Create an XSLT file in advance.

TEXT

Select this to enter XSLT directly.

  • Depending on the selected specifying method, the corresponding input field (XSLT file or XSLT text) is displayed.

XSLT file

Required

Available

Enter the path of the XSLT file.

The Browse button launches a file chooser that allows you to select a file.

Enabled when FILE is selected in XSLT read type.

Note

XSLT text

Required

Available

Enter XSLT directly.

  • Enabled when TEXT is selected in XSLT read type.

Data processing method

Item name

Required/Optional

Use of variables

Description

Remarks

Data processing method

Required

Not available

Select a data processing method.

Apply script settings

(Default)

The setting for mass data processing in the script properties is applied to the connector.

Do not perform mass data processing

Mass data processing isn't performed.

Perform mass data processing

Mass data processing is performed.

 

Comment

Item name

Required/Optional

Use of variables

Description

Remarks

Comment

Optional

Not available

You can write a short description of this connector.

 

Schemas

The schema varies depending on the processing contents of XSLT.

Mass data processing

Mass data processing is supported.

Note

Conversion by XSLT holds input data in the memory as string for once.

If the input data is too large, even if you select Perform mass data processing, OutOfMemoryError might occur.

Parallel Stream Processing

PSP isn't supported.

Available component variables

Component variable name

Description

Remarks

message_category

When an error occurs, the category of the message code corresponding to the error is stored.

  • The default value is null.

message_code

When an error occurs, the code of the message code corresponding to the error is stored.

  • The default value is null.

message_level

When an error occurs, the severity of the message code corresponding to the error is stored.

  • The default value is null.

error_type

When an error occurs, the error type is stored.

  • The default value is null.

  • The format of the error type is as follows.

    Example: java.io.FileNotFoundException

error_message

When an error occurs, the error message is stored.

  • The default value is null.

error_trace

When an error occurs, the trace information for the error is stored.

  • The default value is null.

Specification limits

  • XSLT Version 1.0 is supported.

  • id function isn't available.

  • You can't get an attribute name by XPath "@attribute_name/text()".

  • When input data is table model type, all the data is handled as strings.
    All of the input data is converted into strings, conversion is performed, and the results are output as strings.

  • The operation isn't executed if TEXT is specified in XSLT read type and the first line of the XSLT specified in the XSLT text field contains nothing but a new line character.

  • Even if FILE is specified in XSLT read type, the operation isn't executed if the XSLT specified in XSLT text is invalid.

Exception messages

Exception name

Cause

Solution

InputDataNotFoundException

Input data isn't specified.

Specify Input data or draw a data flow.

InvalidPropertyConfigurationException


<Property name> is not specified.

<Property name> isn't specified.

Specify <property name>.

java.io.FileNotFoundException

The file specified in XSLT file doesn't exist.

Check the specified file.

javax.xml.transform.TransformerConfigurationException

An invalid style sheet may be specified as XSLT.

Check and modify the content of XSLT.

javax.xml.transform.TransformerException

An error occurred during the XSLT conversion.

Check the exception message, and modify the specified XSLT.