This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
javascript for loop inside xsl template
- From: Ken Schulte <kschulte at ureach dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 3 May 2002 14:54:45 -0400
- Subject: [xsl] javascript for loop inside xsl template
- Reply-to: xsl-list at lists dot mulberrytech dot com
I was wondering if anybody could tell how to write a
javascript for loop inside an xsl template.
<xsl:template match="principle">
for (intIndex = 1; intIndex < dependentObjectArray.length;
intIndex++)
{
if ( dependentObjectArray[intIndex].value == intValue )
{
dependentObjectArray[intIndex].disabled = true;
}
else
{
dependentObjectArray[intIndex].disabled = false;
}
}
</xsl:template>
It's blowing up on < in the for loop condition.
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list