This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: select="substring-before($str,"'")" !!!
- To: dnovatchev at yahoo dot com
- Subject: Re: [xsl] select="substring-before($str,"'")" !!!
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 16 Jan 2001 14:03:53 GMT
- CC: xsl-list at lists dot mulberrytech dot com
- References: <20010116135620.27474.qmail@web6303.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> but what to do in the case when the
> output will be something like this:
> document.writeln('"This is my name." - said Sandra O'Boyle');
Well I thought that the poster's original recursive template replacing
' by \' would handle that (as long as the string was coming from the
source). The problem I was addressing was how to handle string literals
that were actually in the stylesheet. Replacing ' by anything else legal
in javascript such as variable refs would also work, as you say.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list