Subject: Re: translate function
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Mon, 30 Jun 2003 15:50:00 +0100
|
From: abbouh <abbouh@xxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "XSL-List@xxxxxxxxxxxxxxxxxxxxxx" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Subject: 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
| Current Thread |
|
Joe Fawcett - Mon, 30 Jun 2003 10:50:55 -0400 (EDT) <=
Greg Alvord - Mon, 30 Jun 2003 11:30:44 -0400 (EDT)
|
|