SV: [xsl] translate function

Subject: SV: [xsl] translate function
From: "Askild Aaberg Olsen" <askild@xxxxxxxxxxx>
Date: Tue, 1 Jul 2003 14:02:42 +0200
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


Current Thread