Article View: fr.comp.text.xml
Article #8292Parser et r��crire � l'identique II (le retour)
From: Pascal Cescon
Date: Mon, 12 Nov 2001 10:18
Date: Mon, 12 Nov 2001 10:18
30 lines
1885 bytes
1885 bytes
Bonjour,
Dans une question pr�c�dente j'obetnais une excellente r�ponce de Alain qui
me conduisi � �crire le code suivant :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method = "xml" encoding="ISO-8859-1"/>
<xsl:variable name="aremplacer" select="'����������������&'"/>
<xsl:variable name="remplacant" select="'eeeeaaaciinoouuu '"/>
<xsl:template match="node()">
<xsl:copy>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of select="translate(., $aremplacer, $remplacant)"/>
</xsl:template>
</xsl:stylesheet>
Or je m'apercoie aujourd'hui que les "attributs" (exemple "href" pour la
balise "a") disparaissent or j'en ai besoin comment faire ?
Merci
Pascal
Technical Details
Message-ID:
<9so7l0$ml8$1@wanadoo.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.25.12.36!oleane.net!oleane!wanadoo.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,ae7792717d1891f9,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-11-12 02:18:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.25.12.36!oleane.net!oleane!wanadoo.fr!not-for-mail From: "Pascal Cescon" <pascal.cescon@cityneo.com> Newsgroups: fr.comp.text.xml Subject: Parser et r��crire � l'identique II (le retour) Date: Mon, 12 Nov 2001 11:18:09 +0100 Organization: Wanadoo, l'internet avec France Telecom Lines: 32 Message-ID: <9so7l0$ml8$1@wanadoo.fr> NNTP-Posting-Host: amarseille-101-1-1-5.abo.wanadoo.fr X-Trace: wanadoo.fr 1005560288 23208 193.252.177.5 (12 Nov 2001 10:18:08 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 12 Nov 2001 10:18:08 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