XSLtransformGeneric |
This method is used to transform data using the specified XSLT stylesheet. XSLtransformGeneric is part of the Methodset DataTransformation 4.2 in the Process Platform Data transformation application package.
SOAP Request
<XSLtransformGeneric xmlns="http://schemas.cordys.com/datatransform/4.2"> <SourceDoc> <Order> <OrderId>101</OrderId> <Customer/> <Amount/> </Order> </SourceDoc> <StyleSheet> <xsl:stylesheet exclude-result-prefixes="js java" version="1.0" xmlns:java="http://xml.apache.org/xslt/java" xmlns:js="javascriptcode" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:apply-templates select="Order"/> </xsl:template> <xsl:template match="Order"> <CustomerCreditInfo> <Customer> <xsl:value-of select="/Order/OrderId"/> </Customer> </CustomerCreditInfo> </xsl:template> <xsl:template name="metadata"> <scenedata> <links> <link group="default" id="1" linkfrom="/Order/OrderId" linkto="/CustomerCreditInfo/Customer" sourcetype="node" targettype="node"/> </links> <functions/> </scenedata> </xsl:template> </xsl:stylesheet> </StyleSheet> </XSLtransformGeneric>
Request Parameters
Parameter |
Description |
Data Type |
Accepted Input Values |
---|---|---|---|
SourceDoc |
Contains the instance of the source that you want to transform |
XML |
If you have more than one source, group them under the SourceEnvelope element. |
StyleSheet |
Contains the XSLT stylesheet |
XSD |
SOAP Response
The target is returned as the response with the mapped content.
<XSLtransformGenericResponse xmlns="http://schemas.cordys.com/datatransform/4.2"> <tuple> <CustomerCreditInfo> <Customer>101</Customer> </CustomerCreditInfo> </tuple> </XSLtransformGenericResponse>