Dear all,
I have trouble to figure out a bug in javascript. It sounds so simple though to debug, but I could not find out. It tells me a runtime error has occured ...Expected')'
here is the code:
<xsl:for-each select="./projects/project">
<script LANGUAGE='Javascript'>
x = 0;
if(x==0){
document.write("<td style="background-color:#76787A" ><xsl:value-of select="weight"/></td>")
}
else
{
document.write("<td><xsl:value-of select="weight"/></td>")
}
</script>
</xsl:for-each>
what do you think?