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

Search Phases

Search Phases

The Script searches for a sequence of anchors in three phases:
  • Initial
  • Main
  • Final
By default, all
Marker
anchors are in the initial phase and all
Content
anchors are in the main phase. This means that the Script first finds the
Marker
anchors, and then it finds the
Content
anchors between them.
To understand this, consider a Parser that processes the following source document:
First name: Ron Last name: Lehrer
Suppose you have defined the anchors in the following way, with default anchor properties:
Anchor
Text in the Source Document
Phase
Marker
First name:
Initial
Content
Ron
Main
Marker
Last name:
Initial
Content
Lehrer
Main
In the initial phase, the Script searches for the
Marker
anchors:
  • It searches for
    First name:
    .
  • It searches for
    Last name:
    at a location that follows
    First name:
    .
In the main phase, the Script searches for the
Content
anchors:
  • It searches for the
    Ron
    anchor at a location between
    First name:
    and
    Last name:
    .
  • It searches for the
    Lehrer
    anchor at a location after
    Last name:
    .