[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to escape backslash apostrophe text

Subject: RE: how to escape backslash apostrophe text
From: "Koes, Derrick" <Derrick.Koes@xxxxxxxxxxxxxxxx>
Date: Thu, 18 Sep 2003 16:43:45 -0400
escape backslash
Yes, but I think the problem is introduced later when the variable is used
in an assignment to an html value attribute.



-----Original Message-----
From: Michael Kay [mailto:mhk@xxxxxxxxx] 
Sent: Thursday, September 18, 2003 3:20 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  how to escape backslash apostrophe text

> 
> 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
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.