xsl-list
[Top] [All Lists]

SV: translate function

2003-07-01 05:02:42
Abbouh wrote:

you can test it on this xml file:
..... 
<caption>R&eacute;partition&nbsp;des&nbsp;alimentations&nbsp;d
ans&nbsp;la&nbsp;baie&nbsp;SK&nbsp;(vue&nbsp;avant)</caption>

......

try to get the caption and translate each &nbsp; to '-'
with the instruction:
<xsl:value-of select="translate($caption_title,' ','-')"/>
or
<xsl:value-of select="translate($caption_title,' 
@#160;','--'"/> as you say.

This should be <xsl:value-of select="translate($caption_title,'
&#160;','--'"/>

(note the "&" instead of the "@"...)

Askild Aaberg Olsen
-


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



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