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

Data Processor Functions

Data Processor Functions

The Expression Editor has Data Processor functions that you can use for the Data Processor transformation.
The Data Processor transformation uses the following XPath functions:
dp:as_xml
Receives a node as an input and returns the node value and the value of all the children as an XML string recursively. The as_xml function uses the following syntax:
dp:as_XML(<node>)
dp:get_id
Generates a unique ID associated with a node and returns it. You can use the ID to create primary key-foreign key relationships in the data. Map the ID to a node in the schema and map it to keys in relational data. The get_id function uses the following syntax:
dp:get_id(<node>)
dp:input
Returns the node that provides the current input context. Use the function in the Output field to refer to a node from the Input schema. The input function uses the following syntax:
dp:input()
dp:transform
Call a Data Processor transformation transformer that you define in a Script. You can perform an inline or external transformation. The function uses the following syntax:
dp:transform(<transform-name>,<transform-value>)
The transform function uses the following parameters:
  • Transform-name. The name of the transformer in the Script.
  • Transform-value. The transform value upon which to perform the transformation.
The lookup function is available through the use of the
dp:transform
function.
dp:output
Returns the node that provides the current output context. Use the function in the Input field to refer to a node in the output schema. The output function uses the following syntax:
dp:output()