Article View: fr.comp.text.xml
Article #8699XSLT : Comparaison de node
From: Xavier Blanc
Date: Tue, 14 Aug 2001 09:53
Date: Tue, 14 Aug 2001 09:53
31 lines
1825 bytes
1825 bytes
Bonjour,
Je souhaite effectuer des comparaisons de noeuds en utilisant XSLT et je ne
sais pas comment faire.
Voici une des choses que j'aimerais r�aliser en prenant ceci comme exemple.
(Dans la DTD mid est de type ID et midref est de type IDREF).
<TOP>
<Conteneur mid="c1">
<ElementContenu midref="c2"/>
</Conteneur>
<Contenu mid="c2">
blablablabla
</Contenu>
</TOP>
J'aimerais savoir (lorsque je suis dans Conteneur), si l'element contenu est
un "frere".
En gros :
<xsl:template match="Conteneur">
<xsl:if test="id(@mid) est un frere"> ...</xsl:if>
</xsl:template>
Puis de mani�re bcp plus g�n�rale effectuer d'autres comparaisons : est-ce
que deux noeuds ont un ancetre commun, ...
Merci bcp
Technical Details
Message-ID:
<1y6e7.152$L44.588955@nnrp3.proxad.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2-1.proxad.net!nnrp3.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,e1a94be951dcf89f,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-08-14 02:53:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2-1.proxad.net!nnrp3.proxad.net.POSTED!not-for-mail From: "Xavier Blanc" <Xavier.Blanc@lip6.fr> Newsgroups: fr.comp.text.xml Subject: XSLT : Comparaison de node Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <1y6e7.152$L44.588955@nnrp3.proxad.net> Date: Tue, 14 Aug 2001 09:53:01 GMT NNTP-Posting-Host: 132.227.64.108 X-Complaints-To: abuse@proxad.net X-Trace: nnrp3.proxad.net 997782781 132.227.64.108 (Tue, 14 Aug 2001 11:53:01 CEST) NNTP-Posting-Date: Tue, 14 Aug 2001 11:53:01 CEST Organization: Guest of ProXad - France