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. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

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.