Jump to content

translate and apostrophes


ncg
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...