Re: [xsl] How to replace " with '

Subject: Re: [xsl] How to replace " with '
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 7 Jun 2005 10:42:54 +0100
  <xsl:value-of select="translate(/element/title, '&quot;', '&apos;')"/>
  does not work ?

No, after the XML parse, that is

translate(/element/title, '"', ''')

which is an XPath error: you can't have a ' in an XPath string delimited
by '

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread