๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

[XSL] question bete

#9454
From: fdfd
Date: Mon, 09 Apr 2001 21:29
26 lines
1718 bytes
Bonjour

J'ai du mal avec XSL. Si y'a des gens qui aiment repondre aux questions
betes, j'ai ca:

<a><b>bla bla</b>
gna gna <c>gna++</c>
</a>

Je veux afficher tout ce qui est dans a mais pas dans b (donc "gna gna
gna++"). Comment faire?

J'ai bien commenc๏ฟฝ un truc en XPath:
<xsl:apply-templates select="a/*[text()]" />
Mais je n'ai que les deux premiers gna.

Et si je veux conserver les balises <c>, voire les retransofrmer,
comment faire? (Je devine qu'il faut utiliser un template).

Quelqu'un a une bonne reference sur xsl?

-- 
Emmanuel Dreyfus.  Cette signature vous est fournie telle quelle, sans 
aucune garantie de fonctionnement. En la lisant, vous acceptez 
implicitement tous les degats qu'elle pourrait causer, materiellement 
ou logiciellement.                   p99dreyf@criens.u-psud.fr 
Technical Details
Message-ID: <1erme0b.1ytwg9y1mw5imbN@[10.0.12.137]>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!noos!isdnethub!toto

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,99f017832095c005,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-04-09 14:32:02 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!noos!isdnethub!toto
From: toto@toto.com (fdfd)
Newsgroups: fr.comp.text.xml
Subject: [XSL] question bete
Date: Mon, 9 Apr 2001 23:29:26 +0200
Lines: 26
Message-ID: <1erme0b.1ytwg9y1mw5imbN@[10.0.12.137]>
NNTP-Posting-Host: d201.dhcp212-198-35.noos.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news2.isdnet.net 986851776 5803 212.198.35.201 (9 Apr 2001 21:29:36 GMT)
X-Complaints-To: abuse@isdnet.net
NNTP-Posting-Date: 9 Apr 2001 21:29:36 GMT
X-Newsreader: MacSOUP 2.3