I have below xsl code but it is not working, could anybody please guide me.
<xsl:variable name="indent">
<xsl:if test="@type='Text'">
<xsl:if test="@required='yes'">
<xsl:variable name="indent" select="'return ValidateText(this)'" />
</xsl:if>
<asp:TextBox id="{@id}" onkeypress="{$indent}" runat="server" />
</xsl:if>
</xsl:variable>
I need to assign return ValidateText(this)
onkeypress even if inside xml the required is yes.