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

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
.


Updated February 12, 2020