Hi.
I'm use javascript in my xslt transforming

and now i need use
js loop like this:
Code:
var rowCount = <xsl:value-of select="count(Data/Row)" />
for(var i = 0; i < rowCount; i++)
{
<xsl:variable name="nValue">i</xsl:variable>
var s1 = <xsl:value-of select="$nValue" />
var passcount = <xsl:value-of select="Data/Row[$nValue]/Count"/>;
alert(passcount);
}
How I can set current counter value as index in <xsl:value-of select="Data/Row[
CounterValueLikeIndex]/Count"/>
Thanks!
My xml:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="temp.xslt" ?>
<Data>
<Row>
<DateAndTime>2015-07-03</DateAndTime>
<Count>406</Count>
<Count2>638</Count2>
</Row>
<Row>
<DateAndTime>2015-07-04/DateAndTime>
<Count>697</Count>
<Count2>697</Count2>
</Row>
</Data>