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

Anchors that Contain Nested Anchors

Anchors that Contain Nested Anchors

An interesting question is how a Parser searches for an anchor that has nested anchors, such as a
Group
anchor.
The Script does not search for a
Group
, and then search for the nested anchors. Rather, it searches for the nested anchors. The extent of the
Group
is defined by the nested anchors that the Script finds.
For example, suppose a Parser has the following sequence of anchors. We assume that the anchors have default
phase
,
marking
, and
optional
properties.
Marker A Group Marker B Content C Marker D Marker E
The Script searches first for
Marker A
and
Marker E
. The search scope of the
Group
is the region between
Marker A
and
Marker E
.
Then, within the search scope of the
Group
, the Script searches for
Marker B
and
Marker D
. The region between these
Marker
anchors is the search scope for
Content C
.
Within the latter search scope, the Script searches for
Content C
.