[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: for-each loop question

Subject: RE: for-each loop question
From: "Khorasani, Houman" <Houman.Khorasani@xxxxxxxxxxxx>
Date: Mon, 3 Apr 2006 16:49:43 +0100
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>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.