xsl-list
[Top] [All Lists]

Quoting quote

2005-09-02 01:57:58
Hi,

i want to escape a single quote '

Text with such quotes is used in JavaScript Calls. How Can i do this?

Alternatively i could throw them away (because it's not much loss of
information).

But the following doesn't work:

        <xsl:value-of select="translate($tHtml, '&#x27;', 'x')"/>

It produces 

javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: misquoted literal... expected
single quote!

What's the problem here?

Best regards,
Thomas.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>