Article View: fr.comp.text.xml
Article #9016Re: [XSLT] tris et ruptures
From: Thomas Broyer
Date: Fri, 22 Jun 2001 13:18
Date: Fri, 22 Jun 2001 13:18
33 lines
2109 bytes
2109 bytes
In <RnEY6.1071$wi7.625807@nnrp6.proxad.net>, Rapha�l THERY wrote: > <xsl:template match="xxx"> > <html> > <xsl:apply-templates select="yyy"> > <xsl:sort select="@type" order="ascending" /> > <xsl:sort select="@nom" order="ascending" /> > </xsl:apply-templates> > </html> > </xsl:template> > > <xsl:template match="yyy"> > <xsl:value-of select="@nom" /> - <xsl:value-of select="@type" /><br/> > </xsl:template> > > Le probl�me c'est qu'� chaque changement de type je souhaite faire une > rupture ... et c'est �a que je n'arrive > pas � faire fonctionner. le pr�c�dent est pour lui toujours le m�me. > > <xsl:template match="yyy"> > <xsl:if test="not(preceding-sibling::yyy[@type = current()/@type])"> > <h1><xsl:value-of select="@type" /></h1> > </xsl:if> > > <xsl:value-of select="@nom" /> - <xsl:value-of select="@type" /><br/> > </xsl:template> Preceding-sibling et autres axes s'adressent au document, pas � la liste de noeuds courante. Jette un oeil sur <http://www.dpawson.co.uk/xsl/sect2/N6280.html> tu devrais s�rement y trouver quelque chose d'int�ressant. Tom.
Technical Details
Message-ID:
<1067647.IhKElGaqSP@ltgt.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp4.proxad.net.POSTED!not-for-mailReferences:
<RnEY6.1071$wi7.625807@nnrp6.proxad.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,689cfa80abbd4d0f X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-06-22 06:18:48 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail Message-ID: <1067647.IhKElGaqSP@ltgt.net> From: Thomas Broyer <ptittom+news@free.fr> Subject: Re: [XSLT] tris et ruptures Newsgroups: fr.comp.text.xml References: <RnEY6.1071$wi7.625807@nnrp6.proxad.net> Lines: 33 Organization: </> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Date: Fri, 22 Jun 2001 13:18:47 GMT NNTP-Posting-Host: 217.128.160.52 X-Complaints-To: abuse@proxad.net X-Trace: nnrp4.proxad.net 993215927 217.128.160.52 (Fri, 22 Jun 2001 15:18:47 CEST) NNTP-Posting-Date: Fri, 22 Jun 2001 15:18:47 CEST