Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to display 123&a-m-p; to be 123& in xsl

Status
Not open for further replies.

yuli1104

Programmer
Feb 20, 2002
60
CA
Hello,
I tried to display a variable's value in a text box by using:
<xsl:variable name=&quot;var1&quot; select=&quot;slisc/clientRefNo&quot; />
<input type=&quot;text&quot; size=&quot;12&quot; name=&quot;txtCliRefNo&quot; maxlength=&quot;12&quot;> <xsl:attribute name=&quot;value&quot;>
<xsl:value-of select=&quot;$var1&quot;/>
</xsl:attribute> </input>

The problem is when the value of var1 is &quot;123&a-m-p;&quot;(without -, they are there just for displaying this post)
I would like it becomes to be &quot;123&&quot;

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top