🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: templates et priorites

#10435
From: (TOM)
Date: Thu, 28 Sep 2000 00:00
15 lines
1331 bytes
Joseph Vallot a �crit dans <39D34B06.B65D353@axime-is.fr>
> y a-t-il une r�gle de "priorit�" lorsque deux templates applicables sont
> disponibles ?

Oui, cf. http://www.w3.org/TR/xslt#conflict &&
http://www.w3.org/TR/xslt#section-Defining-Template-Rules

> <xsl:template match="/foo/bar">...</xsl:template>
> <xsl:template match="/foo/bar[pif='zzz']">...</xsl:template>
[...]
> bref, comment faire mieux que �a ?

<xsl:template match="/foo/bar">...</xsl:template>
<xsl:template match="/foo/bar[pif='zzz']" priority="1.0">...</xsl:template>
Technical Details
Message-ID: <qJJA5.2462$i74.8571935@nnrp3.proxad.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39D34B06.B65D353@axime-is.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,985c4cd63b3af46
X-Google-Attributes: gid114f60,public
From: "(TOM)" <ptittom@free.fr>
Subject: Re: templates et priorites
Date: 2000/09/28
Message-ID: <qJJA5.2462$i74.8571935@nnrp3.proxad.net>
X-Deja-AN: 675161464
Content-Transfer-Encoding: 8bit
References: <39D34B06.B65D353@axime-is.fr>
X-Priority: 3
Content-Type: text/plain; charset="iso-8859-1"
X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp3.proxad.net 970155990 164.138.189.147 (Thu, 28 Sep 2000 17:46:30 CEST)
Organization: Guest of ProXad - France
X-MSMail-Priority: Normal
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 28 Sep 2000 17:46:30 CEST
Newsgroups: fr.comp.text.xml