This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

POSITION()



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]