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(_at_)yahoo(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--