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: