xsl-list
[Top] [All Lists]

Re: translate function

2003-06-30 07:50:00
From: abbouh <abbouh(_at_)ra(_dot_)cit(_dot_)alcatel(_dot_)fr>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: "XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com" 
<XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] translate function
Date: Mon, 30 Jun 2003 14:16:19 +0000

is there any restriction i the translate function,
because i try to translate each escape in a sentence to '-'
so i use this instruction:
<xsl:value-of select="translate($caption_title,' ','-')"/>
but it wasn't translated well.
for example:
for <xsl:value-of select="translate('Figure 1.
Répartition des alimentations dans la baie SK (vue avant)',' ','-')"/>
i get:
Figure-1.--Répartition des alimentations dans la baie SK (vue avant)
but i should get :
Figure-1.--Répartition-des-alimentations-dans-la-baie-SK-(vue-avant)


Are you sure that they are genuine spaces not some other sort, e.g. a non-breaking space?

Joe

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>