contains the declared parameter DiscountPct. PROC XSL passes in a numeric value to
the parameter, and a discount amount is calculated.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" />
<xsl:param name="DiscountPct" />
<xsl:template match="table">
<xsl:copy>
<xsl:apply-templates select="product" />
</xsl:copy>
</xsl:template>
<xsl:template match="product">
<xsl:copy>
<xsl:copy-of select="category|type|size|gender|price" />
<discount>
<xsl:value-of select="$DiscountPct" />
</discount>
<discountAmount>
<xsl:value-of select="(price * $DiscountPct)" />
</discountAmount>
<xsl:copy-of select="in_stock|ship_type" />
</xsl:copy>
</xsl:template> ...