RE: for-each loop question
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>
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format