🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: appliquer translate � tout un document

#8191
From: Pascal CESCON
Date: Mon, 05 Nov 2001 16:04
43 lines
2270 bytes
merci



"Alain Ketterlin" <alain@dpt-info.u-strasbg.fr> a �crit dans le message de
news: wyk7x5ikjp.fsf@polya.u-strasbg.fr...
> "Pascal CESCON" <pascal.cescon@cityneo.com> writes:
>
> > <?xml version="1.0" encoding="ISO8859-1"?>
> > <?xml-stylesheet type="text/xsl" href="replace01.xsl"?>
> > <Info>
> >  <Data>
> >   <ID1>Soci�t� fran�aise d'�lectricit�</ID1>
> >   <ID2>l'�lectricit� � domicile</ID2>
> >  </Data>
> >  <Data>
> >   <ID1>Soci�t� d'�lectricit� g�n�rale</ID1>
> >   <ID2>l'�lectricit� g�n�rale � volont�</ID2>
> >  </Data>
> > </Info>
> >
> >
> > Comment faire pour appliquer translate(quelquechose, "���", "eac") �
tous le
> > document afin de g�n�rer la pr�sentation suivante :
> >
> > Societe francaise d'electricite
> > l'electricite a domicile
> > Societe d'eletricite generale
> > l'electricite generale a volonte
>
> <xsl:template match="/">
>   <xsl:apply-templates select=".//text()"/>
> </xsl:template>
>
> <xsl:template match="text()">
>   <xsl:value-of select="translate(.,'���','eac')"/>
>   <xsl:text>&#10;</xsl:text>
> </xsl:template>
>
> par exemple.
>
> -- Alain.
Technical Details
Message-ID: <9s6da5$81u$1@wanadoo.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!teaser.fr!wanadoo.fr!not-for-mail
References: <9s5nvf$kok$1@wanadoo.fr> <wyk7x5ikjp.fsf@polya.u-strasbg.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,174577beb0216d2f
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-11-05 08:04:22 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!teaser.fr!wanadoo.fr!not-for-mail
From: "Pascal CESCON" <pascal.cescon@cityneo.com>
Newsgroups: fr.comp.text.xml
Subject: Re: appliquer translate � tout un document
Date: Mon, 5 Nov 2001 17:04:17 +0100
Organization: Wanadoo, l'internet avec France Telecom
Lines: 45
Message-ID: <9s6da5$81u$1@wanadoo.fr>
References: <9s5nvf$kok$1@wanadoo.fr> <wyk7x5ikjp.fsf@polya.u-strasbg.fr>
NNTP-Posting-Host: amarseille-101-1-1-5.abo.wanadoo.fr
X-Trace: wanadoo.fr 1004976261 8254 193.252.177.5 (5 Nov 2001 16:04:21 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 5 Nov 2001 16:04:21 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