Subject:javascript 'for' loop in xslt Author:Bob Foster Date:26 Dec 2006 11:41 AM
Sorry about the previous post :/
Does anyone have any experience with something like
<script language = 'javascript'>
for (i = 0; i <tabRow.childNodes.length;i++) {
var tab = tabRow.childNodes[i];
//do something with chidNodes here
}//end for loop
</script>
...in xslt??
I keep getting an 'invalid element name in file' error message, and I'm pretty sure it's because of the 'i' variable. I've tried declaring it using the <xsl:varialble>, but I'm still stuck. I just need help getting xslt to do the loop in javascript. Thanks!