Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. XMap
  7. Libraries
  8. Schema Object
  9. Command Line Interface
  10. Scripts
  11. Parsers
  12. Script Ports
  13. Document Processors
  14. Formats
  15. Data Holders
  16. Anchors
  17. Transformers
  18. Actions
  19. Serializers
  20. Mappers
  21. Locators, Keys, and Indexing
  22. Streamers
  23. Validators, Notifications, and Failure Handling
  24. Validation Rules
  25. Custom Script Components

Data Transformation User Guide

Data Transformation User Guide

Variable

Variable

A
Variable
component is a user-defined variable that you use in a Script.
Use variables for temporary storage in the same way that you use an XML element or attribute. For example, you can map a
Content
anchor to a variable, and you can use a variable as the input of an action.
Variables appear at the global level of the Script. A variable can have any data type that is defined in the schemas associated with the project, including standard types and custom types. A custom type can be either simple or complex. A complex variable is a structure containing nested fields. Initialization of complex variables is not supported. For more information, see Initializing Variables at Runtime.
The following table describes the properties of the
Variable
component:
Property
Description
initialization
Defines an initial value for the variable. You can initialize variables that have simple data types. Default is empty.
InitialValue
Defines an initial value for the variable.
InitialValue
has one property,
value
.
list
Determines whether the variable is single-occurrence or multiple-occurrence variable. You can choose one of the following options:
  • Selected. Determines a multiple-occurrence variable.
  • Cleared. Determines a single-occurrence variable.
Default is cleared. For more information, see Multiple-Occurrence Data Holders.
val_type
Defines the data type that the variable can store. Legal values are defined in the schema. Default is
xs:string
.
value
Defines the initial value.