|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem using translate to escape quotes
Kevin Collins wrote:
I have a string containing single quotes held in a variable. I want to escape each quote by inserting a backslash before it, but I can't get it to work. The translate function appears to be inserting the backslashes without the quotes. Kevin, The translate function does single character replacement. To get what you want, you need to use some of the other string functions. Lokk at starts-with(), concat(), contains, substring-before(), etc. Since you have multiple occurences of the quote character, you will probably need to build a recursive template to get them all. jeff
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








