ncg Posted February 7, 2008 Share Posted February 7, 2008 I'm trying to remove all apostrophe from an element using the xpath function translate. Here is an example of what I'm trying to do. <xsl:value-of select="translate('whatever text with an '',''','')" /> It doesn't work in IE nor Firefox. What can I do about that? Link to comment Share on other sites More sharing options...
boen_robot Posted February 7, 2008 Share Posted February 7, 2008 Try to write the inner apostrophe as an entity, i.e. <xsl:value-of select="translate('whatever text with an '',''','')" /> Link to comment Share on other sites More sharing options...
ncg Posted February 7, 2008 Author Share Posted February 7, 2008 It works with variables. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.