xsl-list
[Top] [All Lists]

RE: how to escape backslash apostrophe text

2003-09-18 12:20:02

If I want to transform to html, how do I escape the text \', 
so that it will 
show in HTML as \' and not merely '?

Backslash is not a special character in XML, but the apostrophe is. A
useful approach is:

<xsl:variable name="x">\'</xsl:variable>
<xsl:value-of select="$x"/>

Michael Kay


_________________________________________________________________
Get a FREE computer virus scan online from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>