The least confusing way to do this is to use variables:
<xsl:variable name="apos">'</xsl:variable>
then <xsl:value-of select="translate($in, $apos, '')"/>
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
-----Original Message-----
From: Mak, Lucas Wing Kau
[mailto:makw(_at_)mail(_dot_)lib(_dot_)msu(_dot_)edu]
Sent: 20 November 2009 21:46
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How to include ' in the argument of
<translate> function
I am trying to replace the apostrophe (') with a space by the
<translate> function but oXygen gave me an error message
("unmatched quote in expression") when I put ' in the
second argument. How can I resolve that?
Thanks,
Lucas
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--