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

Data Transformation User Guide

Data Transformation User Guide

Search Scope and Search Criteria

Search Scope and Search Criteria

The above example of search phases illustrates the concepts of search scope and search criteria. The search scope is the portion of a document where the Script searches for an anchor. The search criteria are the rules by which the Script finds the anchor within the search scope.
In the initial phase, the Script starts searching for the
Marker
anchor containing
First name:
at the beginning of the document. The search scope for this anchor is the entire document. The search criterion is that the anchor must contain the text
First name:
.
The search scope for the
Last name:
anchor starts at the end of
First name:
, and extends to the end of the document. The search criterion is that the anchor must contain the text
Last name:
.
In the main phase, the Parser interpolates the
Content
anchors between the
Marker
anchors. The search scope for the
Ron
anchor extends from the end of the
First name:
anchor to the beginning of the
Last name:
anchor. Assuming that the Parser uses a space-delimited format, the search criteria are to retrieve all the text in the search scope, after the leading space character and before the second space character.
The search scope for the
Lehrer
anchor is from the end of
Last Name:
to the end of the document. The search criteria are similar to those for the
Ron
anchor.
We can add this analysis to the anchor table that we presented above. The table now describes the complete method by which the Parser finds the anchors.
Anchor
Text in the Source Document
Phase
Search Scope
Search Criteria
Marker
First name:
Initial
Entire document
Text =
First name:
Content
Ron
Main
End of
First name:
to start of
Last name:
After the leading space
Before the next space
Marker
Last name:
Initial
End of
First name:
to end of document
Text =
Last name:
Content
Lehrer
Main
End of
Last name:
to end of document
After the leading space
Before the next space