Jump to content

translate and apostrophes


ncg

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...