Subject: RE: [xsl] for-each loop question From: "Khorasani, Houman" <Houman.Khorasani@xxxxxxxxxxxx> Date: Mon, 3 Apr 2006 16:49:43 +0100 |
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>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] for-each loop question, David Carlisle | Thread | [xsl] How to Remove Empty or Unpopu, floatingisland |
Re: [xsl] for-each loop question, David Carlisle | Date | [xsl] More Efficient way of mathchi, Spencer Tickner |
Month |