This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
POSITION()
- From: "Kim Durand" <vsd18 at rediffmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: 5 Mar 2002 10:23:31 -0000
- Subject: [xsl] POSITION()
- Reply-to: xsl-list at lists dot mulberrytech dot com
hi i have a problem
i have two for-each loops.. as following
<xsl:for-each select = "//root/parent">
<xsl:variable name = "parentvar1" select = "/parent1"/>
<xsl:variable name = "parentvar2" select = "/parent2"/>
<xsl:variable name = "parentvar3" select = "/parent3"/>
<xsl:variable name = "parentvar4" select = "/parent4"/>
<xsl:for-each select = "./children">
<xsl:variable name = "childvar1" select = "/parent1"/>
<xsl:variable name = "childvar2" select = "/parent2"/>
<xsl:variable name = "childvar3" select = "/parent3"/>
<xsl:variable name = "childvar4" select = "/parent4"/>
</xsl:for-each>
</xsl:for-each>
the problem is that when i use position() in the second for-each
loop, it allways gives the position of the first for-each..
is there a way that i get to the position of the second for-each
loop??
Many Thanks
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list