Subject: Re: [xsl] javascript for loop inside xsl template From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx> Date: Fri, 03 May 2002 17:26:27 -0600 |
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.
<xsl:template match="principle"> <![CDATA[ for (intIndex = 1; intIndex < dependentObjectArray.length; intIndex ++) { if (dependentObjectArray[intIndex].value == intValue) dependentObjectArray[intIndex].disabled = true; else dependentObjectArray[intIndex].disabled = false; } // ends for ]]> </xsl:template>
Greg Faron Integre Technical Publishing Co.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] javascript for loop insid, Thomas B. Passin | Thread | [xsl] xml to xml with a xmlns schem, Ian Hord |
Re: [xsl] passing intermediate resu, Jeni Tennison | Date | RE: [xsl] data translation => desce, Stuart Celarier |
Month |