RE: [xsl] how to escape backslash apostrophe text

Subject: RE: [xsl] how to escape backslash apostrophe text
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 18 Sep 2003 20:20:02 +0100
> 
> 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


Current Thread