CyberStore Documentation
SORRSL

See the example of SORRSL code below:

<?xml version="1.0" encoding="Windows-1252" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" />
  <xsl:param name="StockCode" />
  <xsl:param name="Customer" />
  <xsl:param name="PriceBasedOnQty" />
  <xsl:param name="PriceBasedOnQtyUM" />
  <xsl:param name="WarehouseToUse" />
  <xsl:param name="Area" />

  <xsl:template match="/">
    <Build xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="SORRSL.XSD">
      <Parameters>
        <StockCode>
          <xsl:value-of select="$StockCode" />
        </StockCode>
        <Customer>
          <xsl:value-of select="$Customer" />
        </Customer>
        <xsl:if test="$PriceBasedOnQty!=''">
          <OrderQuantity>
            <xsl:value-of select="$PriceBasedOnQty" />
          </OrderQuantity>
        </xsl:if>
        <xsl:if test="$PriceBasedOnQtyUM!=''">
          <OrderUm>
            <xsl:value-of select="$PriceBasedOnQtyUM" />
          </OrderUm>
        </xsl:if>
        <xsl:if test="$WarehouseToUse!=''">
          <Warehouse>
            <xsl:value-of select="$WarehouseToUse" />
          </Warehouse>
        </xsl:if>
        <xsl:if test="$Area!=''">
          <Area>
            <xsl:value-of select="$Area" />
          </Area>
        </xsl:if>
      </Parameters>
    </Build>
  </xsl:template>
</xsl:stylesheet>