illegal attribute error in xsl!!!!!!!

admin

Administrator
Staff member
i m creating a table in xsl...
there are 4 text boxes in a rows

the size of the text box is dynamic....
i have written the code like this....

<xsl:if test="$test=5">
<xsl:attribute name="size">
<xsl:value-of select="20"/>
</xsl:attribute>
</xsl:if>

and the content of the text box is dynamic in nature...
so i use
<xsl:if test="$test=0">
<xsl:attribute name="value">
<xsl:value-of select="$val"/>
</xsl:attribute>
</xsl:if>


and the problem is that....

the size of the text box changes dynamically but the content doesn't
it throws an error 'value has an illegal attribute: {1}'

why is this so? and how do i solve the problem?

Thanks in advance,
Tanuja
 
Back
Top