|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: javascript for loop inside xsl template
At 12:54 PM 5/3/2002, you wrote:
I was wondering if anybody could tell how to write a javascript for loop inside an xsl template. As Thomas pointed out, you can reverse the test to read for (intIndex = 1; dependentObjectArray.length > intIndex; intIndex ++) [JavaScript note: Do you mean to start at 1 or at 0?] or you can write it the way you're comfortable and enclose the entire thing in a <![CDATA[ ]]> section. <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. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








