Files

31 lines
1011 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"
exclude-result-prefixes="xs">
<xsl:output method="xml"
indent="yes" />
<xsl:strip-space elements="*" />
<xsl:template match="/ns0:Messages/ns0:Message1">
<xsl:variable name="writeOff">
<xsl:call-template name="WriteOffGLNs">
<xsl:with-param name="sendToGLN">
<xsl:value-of
select="./XMLDESADV/XMLDESADVHEADER/SendToGLN" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$writeOff = true()">
<xsl:call-template name="WRITE_OFF" />
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="STOCK_TRANSFER_ORDER" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:include href="./GLNValueMap.xsl" />
<xsl:include href="./writeOff.xsl" />
<xsl:include href="./stockTransferOrder.xsl" />
</xsl:stylesheet>