XSL: SET214_ORDER_RESPONSE_INBOUND

LANSA

XSL: SET214_ORDER_RESPONSE_INBOUND

<?xml version="1.0" encoding="UTF-8"?>

<!-- Inbound transformation created by JSF Visual XML Wizard (v2.0.3) -->

<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdml="http://www.lansa.com/2000/XML/Function">

<xsl:output method="xml" indent="yes"/>

<xsl:template match="/">

<rdml:function>

<rdml:fields>
<xsl:call-template name="function-level"/>
</rdml:fields>

<rdml:list>
<xsl:for-each select="/OUTOrders/Errors">
<xsl:call-template name="list-level-0"/>
</xsl:for-each>
</rdml:list>

</rdml:function>

</xsl:template>

<xsl:template name="function-level"> <!-- /OUTOrders -->
<rdml:field name="S_214ORDN" longName="OrderNumber" value="{/OUTOrders/OUTOrder/OrderNumber}" />
<rdml:field name="S_214COST" longName="TotalCost" value="{/OUTOrders/OUTOrder/TotalCost}" />
<rdml:field name="S_214SDAT" longName="ShipmentDate" value="{/OUTOrders/OUTOrder/ShipmentDate}" />
<rdml:field name="S_214STAT" longName="Status" value="{/OUTOrders/OUTOrder/Status}" />
</xsl:template>

<xsl:template name="list-level-0"> <!-- /OUTOrders/Errors -->

<rdml:entry>
<rdml:field name="S_214ERRO" longName="ErrorMsg" value="{ErrorMsg}" />
</rdml:entry>

</xsl:template>

</xsl:transform>