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]

RE: Displaying grid of elements in table with the position() call for input names?


> I am looping through X # of rows. In doing so, I give each
> and every input box a name like so:

...

> Does position() give me the number of fields in the current
> xsl:for-each loop?

Yes.

> If so, how can I access the "outer" xsl:for-each loops count?

Do <xsl:variable name="outer-position" select="position()"/> just before
entering the inner loop.

Mike Kay
Software AG


 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]