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

User Guide

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
.

0 COMMENTS

We’d like to hear from you!