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

Disabling the Data-Type Search

Disabling the Data-Type Search

You can disable the data-type search by selecting the
disable_XSD_type_search
property of the
Content
anchor. If you do that, the anchor searches according to the other criteria, without regard to the type of the data holder.
If the result does not have the proper type, it cannot be stored in the data holder and the anchor fails. You can use transformers to convert the result to the proper type and prevent the failure. For more information, see Transformers Overview.
For example, suppose that the source document contains a date in the
dd-mm-yyyy
format, and you want to store the date in an
xs:date
data holder. You can handle this situation in the following way:
  1. Define a
    Content
    anchor that retrieves the
    dd-mm-yyyy
    data, ignoring the mismatch with the
    xs:date
    type.
  2. Configure the anchor with a
    DateFormatICU
    transformer that converts the result to
    xs:date
    .