This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: select="substring-before($str,"'")" !!!



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]