Convert XSLT Structure

Operation Name

Convert XSLT Structure

Function overview

Converts input data with XSLT.

Data Model

Data model of this component is XML type.
Refer to "Schema" for input/output schema.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Input data Required Not available Select the 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 directly.
  • [FILE]:(default)
    Select in case of reading XSLT from a file.Create XSLT file in advance.
  • [TEXT]:
    Select in case of inputting XSLT directly.
  • Corresponding to the selected specifying method, the input field switches to [XSLT file]/[XSLT text].
XSLT file Required Available Enter the path of the XSLT file.

Click [Browse] button to activate the file Selectr and Select the file.
XSLT text Required Available Enters 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.
  • [Use script settings]: (default)
    Apply mass data processing settings of script property to adapter.
  • [Disable]:
    Mass data processing is not performed.
  • [Enable]:
    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 adapter.
The description will be reflected in the specifications.
 

Schema

The scheme differs from the processing contents of XSLT.

Mass data processing

Mass data processing is supported.

Conversion by XSLT holds input data in the memory as string for once. If the input data is too large, even if you Select [Enable], OutOfMemoryError might occur. In that case you need to ensure DataSpiderServer heap size.
Refer to "Property Reference" for the method of changing the heap size of DataSpiderServer.

PSP Usage

PSP is not supported.

Available Component variables

Component variable name Description Remarks
message_category Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Stores the type of the occured error.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on the DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version or the client application used.

Specification Limits

Main exceptions

Exception name Cause Solution
InputDataNotFoundException [Input data] is not specified. Specify the [Input data], or draw the data flow.
InvalidPropertyConfigurationException
<Property name> is not specified.
[<Property name>] is not specified. Specify the [<Property name>].
java.io.FileNotFoundException File specified in [XSLT file] does not exist. Check the specified file.
javax.xml.transform.TransformerConfigurationException Invalid style sheet may be specified as XSLT. Check and modify the content of XSLT.
javax.xml.transform.TransformerException Error occurred during the XSLT conversion. Check the exception message, and modify the specified XSLT.