🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

XSL: Comment savoir si un element fils est present dans un noeud?

#8894
From: Guillaume BERTHOMMIER
Date: Wed, 11 Jul 2001 15:03
16 lines
1599 bytes
Bonjour a tous,
Je suis debutant en XML et je suis en train de faire une XSL pour mon
document XML.
Le probleme est le suivant:
j'ai quelque chose du style
        <element-pere>
            <element-fils1>...</element-fils1>
            <element-fils2>...</element-fils2>
    </element-pere>

le fait est que le fils1 et le fils2 peuvent etre present ou non,
comment puis-je tester si l'element fils en question est present? avec
xsl:if et xsl:choose ca ne marche pas.

Je vous remercie par avance de l'aide que vous pourrez m'apporter.
Guillaume
Technical Details
Message-ID: <3B4C6ABE.3AB50E16@igbmc.u-strasbg.fr>
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!ciril.fr!news.u-strasbg.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit
X-Google-Thread: 114f60,990990f769035177,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-07-11 07:48:55 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!ciril.fr!news.u-strasbg.fr!not-for-mail
From: Guillaume BERTHOMMIER <berthomg@igbmc.u-strasbg.fr>
Newsgroups: fr.comp.text.xml
Subject: XSL: Comment savoir si un element fils est present dans un noeud?
Date: Wed, 11 Jul 2001 17:03:26 +0200
Organization: IGBMC
Lines: 17
Message-ID: <3B4C6ABE.3AB50E16@igbmc.u-strasbg.fr>
NNTP-Posting-Host: saiph.u-strasbg.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.u-strasbg.fr 994867548 16341 130.79.78.131 (11 Jul 2001 16:05:48 GMT)
X-Complaints-To: usenet@u-strasbg.fr
NNTP-Posting-Date: 11 Jul 2001 16:05:48 GMT
X-Mailer: Mozilla 4.77 [en] (X11; U; OSF1 V4.0 alpha)
X-Accept-Language: en