🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Nouveau probl�me de boucle

#8274
From: iceman
Date: Thu, 08 Nov 2001 14:54
24 lines
1829 bytes
Est-ce que tu ne gagnerais pas � �crire ton fichier sous la forme:
<auteurs>
     <auteur id="00001" nom="Camus" note="xxxxxx"/>
     <auteur id="00002" nom="Zola" note="yyyyyyy"/>
<auteurs>

a partir de la, la xslT est toute simple:

<xsl:template match="auteurs">
   <xsl:apply-template select="auteur"/>
</xsl:template>

<xsl:template match="auteur">
   <xsl:value-of select="@id"/>
   <xsl:value-of select="@nom"/>
</xsl:template>

Meme sans s'attarder sur la xslt, cette mani�re d'�crire ton fichier XML me
permet nettement plus structur�e que de faire un �l�ment auteurs o� tu mets
"en vrac" tes noms, id, notes, etc.
Bien s�r, si la structure du fichier t'est impos�e, il va falloir trouver
autre chose :-)

Fred
Technical Details
Message-ID: <9se6ag$582$1@s1.read.news.oleane.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!opentransit.net!fr.clara.net!heighliner.fr.clara.net!oleane.net!oleane!nnrp.oleane.net!not-for-mail
References: <9se4o5$1os$1@s1.read.news.oleane.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,a27d37f7d327f922
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-11-08 06:55:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!opentransit.net!fr.clara.net!heighliner.fr.clara.net!oleane.net!oleane!nnrp.oleane.net!not-for-mail
From: "iceman" <f.heitzmann@acamaya.com>
Newsgroups: fr.comp.text.xml
Subject: Re: Nouveau probl�me de boucle
Date: Thu, 8 Nov 2001 15:54:33 +0100
Organization: Guest of France Telecom Oleane's newsreading service
Lines: 26
Message-ID: <9se6ag$582$1@s1.read.news.oleane.net>
References: <9se4o5$1os$1@s1.read.news.oleane.net>
NNTP-Posting-Host: acaena.rain.fr
X-Trace: s1.read.news.oleane.net 1005231248 5378 194.51.81.98 (8 Nov 2001 14:54:08 GMT)
X-Complaints-To: abuse@oleane.net
NNTP-Posting-Date: Thu, 8 Nov 2001 14:54:08 +0000 (UTC)
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