David, it works!!!!
Many thanks for this tip. That was going to drive me crazy.
I have co convince my company to update to XSLT 2.0 to avoid stuff like
that.
Regards
Houman
<xsl:for-each select="*/Product"
<xsl:call-template name="genericMapping">
<xsl:with-param name="quantity" select="$Quantity"/>
This means that you pass the same $quantity value (the set of all
quantity attributes) for each product. I think you just want to pass in
the current Quantity attribute ie select="@Quantity, which moeans that
you do notneed the Quantity variable defined above.
</xsl:call-template>
</xsl:for-each>
</xsl:if>
</xsl:template>
|