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

Using Data Types to Narrow the Search Criteria

Using Data Types to Narrow the Search Criteria

By default, in addition to the other search criteria, the Script searches for a
Content
anchor according to the data type of its data holder.
For example, suppose that the search scope of a
Content
anchor is the following string:
The students' grades were 81, 56, and 95, respectively.
Further suppose that you define no other search criteria for the anchor. If you map the anchor to a data holder that has a type of
xs:string
, the anchor retrieves the entire string.
If the data holder has a type of
xs:integer
, the Script searches for the first substring that matches the data type. Assuming that you configure the anchor with
direction = forward
, the anchor retrieves the integer
81
. If
direction = backward
, the anchor retrieves
95
.
Now suppose the data holder has a type of
xs:integer
, and the schema restricts the data holder to values less than
60
. The Script searches for an integer that conforms to the restriction and retrieves
56
.


Updated September 26, 2018