🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: distinct

#448
From: xmlizer
Date: Tue, 03 Apr 2007 08:39
25 lines
1972 bytes
On 2 avr, 23:31, Jean-Charles Gibier <j-
c.gib...@wanadoo.withoutthis.fr.invalid> wrote:
> Alain Ketterlin a écrit :
> [...]
>
> > En 2.0 je ne sais pas, mais for-each-group et compagnie sont sûrement
> > là pour ça (et probablement plus efficaces).
>
> Merci pour la piste.
> Je regarde ça.

Bonjour,

Voici la réponse en XSLT 2.0

<xsl:for-each-group select="xh:input[@type='radio']" group-by="@name">
 <!-- ici utiliser current-group() pour récupérer le node set des
élements dans le même groupe et current-grouping-key() pour récupérer
la valeur courant de l'attribut @name -->

</xsl:for-each-group>


Xmlizer
Technical Details
Message-ID: <1175589595.189324.160850@q75g2000hsh.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail
References: <46102a35$0$27371$ba4acef3@news.orange.fr> <87odm75hcl.fsf@dpt-info.u-strasbg.fr> <4611764c$0$25922$ba4acef3@news.orange.fr>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114f60,c042a3fd192464af
X-Google-Attributes: gid114f60,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail
From: "xmlizer" <xmlizer@gmail.com>
Newsgroups: fr.comp.text.xml
Subject: Re: distinct
Date: 3 Apr 2007 01:39:55 -0700
Organization: http://groups.google.com
Lines: 26
Message-ID: <1175589595.189324.160850@q75g2000hsh.googlegroups.com>
References: <46102a35$0$27371$ba4acef3@news.orange.fr>
   <87odm75hcl.fsf@dpt-info.u-strasbg.fr>
   <4611764c$0$25922$ba4acef3@news.orange.fr>
NNTP-Posting-Host: 196.205.223.6
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1175589596 9970 127.0.0.1 (3 Apr 2007 08:39:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 3 Apr 2007 08:39:56 +0000 (UTC)
In-Reply-To: <4611764c$0$25922$ba4acef3@news.orange.fr>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: q75g2000hsh.googlegroups.com; posting-host=196.205.223.6;
   posting-account=om8J_gwAAAC4cSUYw83a6dPB4mNnfdiA