🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

select "distinct"

#8350
From: Joseph Vallot
Date: Thu, 22 Nov 2001 16:55
27 lines
1475 bytes
Bonjour,

encore un probl�me d'apply-templates de noeuds tri�s.
en fait, je voudrais faire un truc du genre

<xsl:apply-templates select="sub/path">
  <xsl:sort select="@name"/>
</xsl:apply-templates>

le probl�me �tant que le "select" retourne plusieurs homonymes
potentiels, et que je n'en veux qu'un... bref, je voudrais un select
distinct(@name), en gros.

et je n'y arrive pas :(

j'ai aussi essay� de filtrer lors du "match":

<xsl:template match="path[la-condition-qui-tue]">qqchose</xsl:template>
<xsl:template match="path[not(la-condition-qui-tue)]"/> <!-- rien -->

pas mieux :((

bref, qui a l'id�e, voire l'�bauche d'id�e ?

merci
-- 
Joseph
Technical Details
Message-ID: <800a6323.0111220855.372a6904@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,f5a5cba655272ca0,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-11-22 08:55:35 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail
From: vallot@yahoo.com (Joseph Vallot)
Newsgroups: fr.comp.text.xml
Subject: select "distinct"
Date: 22 Nov 2001 08:55:34 -0800
Organization: http://groups.google.com/
Lines: 27
Message-ID: <800a6323.0111220855.372a6904@posting.google.com>
NNTP-Posting-Host: 159.50.96.225
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1006448134 23231 127.0.0.1 (22 Nov 2001 16:55:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 22 Nov 2001 16:55:34 GMT