xsl-list
[Top] [All Lists]

Replace function and apostrophes

2005-02-17 07:34:52

I'm trying to replace all occurances of apostrophes with \' as part of a
variable's select statement:

<xsl:variable name="foo" select="replace(., '&apos;', '\\&apos;'"/>

This fails with "invalid character in expression '\'" - any ideas on how
to do this?

Thanks
andrew 

--~------------------------------------------------------------------
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>