<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="SalesOrder" />
<xsl:param name="CustomerPo" />
<xsl:template match="/" >
<Query xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="SORQRY.XSD">
<xsl:if test="$SalesOrder!=''">
<Key>
<SalesOrder>
<xsl:value-of select="$SalesOrder" />
</SalesOrder>
</Key>
</xsl:if>
<xsl:if test="$CustomerPo!=''">
<Key>
<CustomerPo>
<xsl:value-of select="$CustomerPo" />
</CustomerPo>
</Key>
</xsl:if>
<Option>
<IncludeStockedLines>Y</IncludeStockedLines>
<IncludeNonStockedLines>Y</IncludeNonStockedLines>
<IncludeFreightLines>Y</IncludeFreightLines>
<IncludeMiscLines>Y</IncludeMiscLines>
<IncludeCommentLines>Y</IncludeCommentLines>
<IncludeCompletedLines>Y</IncludeCompletedLines>
<IncludeSerials>Y</IncludeSerials>
<IncludeLots>Y</IncludeLots>
<IncludeBins>Y</IncludeBins>
</Option>
</Query>
</xsl:template>
</xsl:stylesheet>