🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8421

Re: changer de jeu de caractere par XSL

#8421
From: Pascal CESCON
Date: Fri, 12 Oct 2001 12:53
41 lines
2456 bytes
Je pense que vais adopter ta solution qui me parait tr�s bien...

Merci

------------------------------------------------------------
Pascal CESCON - Cityneo
pascal.cescon@cityneo.com
www.cityneo.com
------------------------------------------------------------



"Alain Ketterlin" <alain@dpt-info.u-strasbg.fr> a �crit dans le message de
news: wyu1x59q0r.fsf@polya.u-strasbg.fr...
> "Pascal CESCON" <pascal.cescon@cityneo.com> writes:
>
> > Donc selon toi, il n'est pas possible de transformer un texte accentu�
vers
> > un texte d�nu� de tous caract�res folkloriques, simplement par un
changement
> > d'encoding...
>
> Tout a fait.
>
> D'ailleurs, es tu sur qu'il n'existe pas un codage canonique pour la
> sortie que tu vises (et apres c'est au client de se debrouiller avec
> les caracteres qu'il ne peut pas afficher). Par exemple, si j'ai bien
> compris, un client WAP est cense supporter XML.
>
> Sinon :
>
>   <xsl:template match="text()">
>     <xsl:value-of select="translate(.,'�� (etc.)','ee (etc.)')"/>
>   </xsl:template>
>
> (avec tous les car.accentues dans les parametres de translate).
>
> Ca marchera quelque soit le codage du document, a condition que le
> codage utilise pour la feuille XSL soit ISO-8859-1.
>
> -- Alain.
Technical Details
Message-ID: <9q6p11$82f$1@wanadoo.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!opentransit.net!wanadoo.fr!not-for-mail
References: <9q4e38$m9l$1@wanadoo.fr> <3bc5cae6$0$15456$626a54ce@news.free.fr> <wyzo6x9v81.fsf@polya.u-strasbg.fr> <9q69at$guc$1@wanadoo.fr> <wyu1x59q0r.fsf@polya.u-strasbg.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,8c974d6af8330e0d
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-10-12 05:51:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!opentransit.net!wanadoo.fr!not-for-mail
From: "Pascal CESCON" <pascal.cescon@cityneo.com>
Newsgroups: fr.comp.text.xml
Subject: Re: changer de jeu de caractere par XSL
Date: Fri, 12 Oct 2001 14:53:23 +0200
Organization: Wanadoo, l'internet avec France Telecom
Lines: 43
Message-ID: <9q6p11$82f$1@wanadoo.fr>
References: <9q4e38$m9l$1@wanadoo.fr> <3bc5cae6$0$15456$626a54ce@news.free.fr> <wyzo6x9v81.fsf@polya.u-strasbg.fr> <9q69at$guc$1@wanadoo.fr> <wyu1x59q0r.fsf@polya.u-strasbg.fr>
NNTP-Posting-Host: amarseille-101-1-1-5.abo.wanadoo.fr
X-Trace: wanadoo.fr 1002891105 8271 193.252.177.5 (12 Oct 2001 12:51:45 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 12 Oct 2001 12:51:45 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000