Hello,
I tried to display a variable's value in a text box by using:
<xsl:variable name="var1" select="slisc/clientRefNo" />
<input type="text" size="12" name="txtCliRefNo" maxlength="12"> <xsl:attribute name="value">
<xsl:value-of select="$var1"/>
</xsl:attribute> </input>
The problem is when the value of var1 is "123&a-m-p;"(without -, they are there just for displaying this post)
I would like it becomes to be "123&"
The value of var1 may contain any html encoded special characters like that, and I need to decode those special chars.
I have tried to make it work for the whole afternoon, please help me. thanks a million.
For some reason, the asp code shouldn't be changed, only the change on xsl is acceptable.
Yuli1104
I tried to display a variable's value in a text box by using:
<xsl:variable name="var1" select="slisc/clientRefNo" />
<input type="text" size="12" name="txtCliRefNo" maxlength="12"> <xsl:attribute name="value">
<xsl:value-of select="$var1"/>
</xsl:attribute> </input>
The problem is when the value of var1 is "123&a-m-p;"(without -, they are there just for displaying this post)
I would like it becomes to be "123&"
The value of var1 may contain any html encoded special characters like that, and I need to decode those special chars.
I have tried to make it work for the whole afternoon, please help me. thanks a million.
For some reason, the asp code shouldn't be changed, only the change on xsl is acceptable.
Yuli1104