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

RE: nested for-each to create a html table

Subject: RE: nested for-each to create a html table
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Thu, 19 May 2005 02:15:46 +0000
nested html tables
Santosh, typically you'd set up a local variable to refer to the current node from the outer loop, as follows:

<xsl:for-each select="Results/Rows/Row">

<xsl:variable name="row" select="."/>

	<xsl:for-each select="Results\Columns\Column">
		<xsl:value-of select="colName"/>

// use $row here

	</xsl:for-each>
</xsl:for-each>



From: Santosh N <ss1722@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  nested for-each to create a html table
Date: Wed, 18 May 2005 18:36:38 -0700 (PDT)

Hi,


In the below XML file, have a nested for-each some thing like below xsl. Can some one help me with what should be the xsl code i should use to get the value of outer Row value from inside the inner loop..

Thanks
Santosh

<xsl:for-each select="Results/Rows/Row">
	<xsl:for-each select="Results\Columns\Column">
		<xsl:value-of select="colName"/> //Need help here
	</xsl:for-each>
</xsl:for-each>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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.