Article View: fr.comp.text.xml
Article #8972Traiter les n premiers fils d'un noeud en xsl
From: Vincent Leconte
Date: Thu, 05 Jul 2001 14:52
Date: Thu, 05 Jul 2001 14:52
23 lines
1578 bytes
1578 bytes
j'ai des fichiers xml du genre:
<champ..
<occurchamp
<occurchamp
<occurchamp
...
</champ
Et je veux juste traiter les n premiers �l�ments occurchamp
pour l'instant j'utilise un attribut numoccur
et je fais
<xsl:choose>
<xsl:when test="@numoccur='1'">...
<xsl:when test="@numoccur='2'">
...
<xsl:when test="@numoccur='n'">
</xsl:choose>
Il y a surement moyen de faire plus propre mais je ne voie pas.
merci d'avance.
Technical Details
Message-ID:
<9i1uv2$gap$1@s1.read.news.oleane.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!oleane.net!oleane!nnrp.oleane.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,d4792c2b6a9aadd4,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-07-05 07:55:03 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!oleane.net!oleane!nnrp.oleane.net!not-for-mail From: "Vincent Leconte" <v.leconte@#antispam#mobydoc.fr> Newsgroups: fr.comp.text.xml Subject: Traiter les n premiers fils d'un noeud en xsl Date: Thu, 5 Jul 2001 16:52:13 +0200 Organization: Guest of France Telecom Oleane's newsreading service Lines: 26 Message-ID: <9i1uv2$gap$1@s1.read.news.oleane.net> NNTP-Posting-Host: 194.206.158.56 X-Trace: s1.read.news.oleane.net 994344739 16729 194.206.158.56 (5 Jul 2001 14:52:19 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 5 Jul 2001 14:52:19 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400