RE: [xsl] nested for-each to create a html table

Subject: RE: [xsl] nested for-each to create a html table
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Thu, 19 May 2005 02:15:46 +0000
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: [xsl] 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