This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: converting speacial characters ?
- To: xsl-list at mulberrytech dot com
- Subject: Re: converting speacial characters ?
- From: Alexey Gokhberg <alexei at bluewin dot ch>
- Date: Wed, 13 Sep 2000 19:25:52 +0200
- References: <4.3.2.7.2.20000913112254.00d11340@nexus.polaris.net>
- Reply-To: xsl-list at mulberrytech dot com
John E. Simpson wrote:
>
> At 04:15 PM 09/13/2000 +0300, Jukka.T.Lehtinen@nokia.com wrote:
> >... I need to check elements value that if it has
> >characters such as '\' or ':' or '"' and I need to replace them to :
> >
> >\ -> \\
> >: -> \:
> >" -> \" (I'm using ")
>
> Look into the XPath translste() function. It's covered in:
> http://www.w3.org/TR/xpath#section-String-Functions
>
This probably will not help. We can use translate() to convert
characters one-to-one, we can also use it to remove characters from the
source string but how can we convert one character to two characters?
Regards
Alexey
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list