🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Balise BR dans un element

#8605
From: Eric de Jandin
Date: Tue, 04 Sep 2001 09:02
35 lines
1792 bytes
Bonjour,
je ne parviens pas a afficher une donn�e d'un fichier XML qui a un formatage
html.
Je m'explique :

----- fichier XML -----
...
<root>
    <texte>
        Bonjour,<br/>...<br/>merci d'avance.
    </texte>
</root>
...
------------------------

----- fichier XSL ------
...
<xsl:template match="root">
    <xsl:value-of select="texte"/>
</xsl:template>
...
------------------------

------ r�sultat html -----
Bonjour,...merci d'avance
------------------------

cela me parait tout � fait coh�rent, le parseur xml voit les balises <br>
comme des �l�ments vides et donc n'affiche rien.
Est il possible d'indiquer dans le XSL qu'un �l�ment est de type html (avec
des balises dedans) ?
Ou y a t il une autre astuce ?

Merci d'avance
Eric.
Technical Details
Message-ID: <xM0l7.2701$MB3.2489443@nnrp4.proxad.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!proxad.net!feeder2-1.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,1761b244612902eb,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-09-04 02:02:22 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!proxad.net!feeder2-1.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail
From: "Eric de Jandin" <edejandin@victoire.fr>
Newsgroups: fr.comp.text.xml
Subject: Balise BR dans un element
Lines: 37
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: <xM0l7.2701$MB3.2489443@nnrp4.proxad.net>
Date: Tue, 04 Sep 2001 09:02:21 GMT
NNTP-Posting-Host: 212.155.77.5
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp4.proxad.net 999594141 212.155.77.5 (Tue, 04 Sep 2001 11:02:21 CEST)
NNTP-Posting-Date: Tue, 04 Sep 2001 11:02:21 CEST
Organization: Guest of ProXad - France