[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] translate function
Subject: Re: [xsl] translate function From: abbouh <abbouh@xxxxxxxxxxxxxxxxx> Date: Tue, 01 Jul 2003 11:17:50 +0000 |
you can test it on this xml file: ..... <caption>Répartition des alimentations dans la baie SK (vue avant)</caption> ...... try to get the caption and translate each to '-' with the instruction: <xsl:value-of select="translate($caption_title,' ','-')"/> or <xsl:value-of select="translate($caption_title,' @#160;','--'"/> as you say. the result is: Répartition des alimentations dans la baie SK (vue avant) but you should get : Répartition-des-alimentations-dans-la-baie-SK-(vue-avant) David Carlisle a écrit : > > no the problem isn't resolved yet. > what was wrong with the solution I posted? > If you want to translate character 160 to a - just add that pair to > your translate function. > > Note that 160 is not a space it is not even one of the "white space" > characters recognised by XML, which are just tab space newline and cr. > > David > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Choose variable, David Carlisle | Thread | Re: [xsl] translate function, David Carlisle |
RE: [xsl] same layout on many XSL f, Michael Kay | Date | [xsl] Clubbing data with dynamicall, sundar k rajan |
Month |
Keywords