Article View: fr.comp.text.xml
Article #9336tris multiples
From: Rapha�l THERY
Date: Wed, 18 Apr 2001 15:51
Date: Wed, 18 Apr 2001 15:51
32 lines
1942 bytes
1942 bytes
bonjour,
je cherche � trier des noeuds selon deux cl�s !
j'ai commenc� par une cl� ...
<xsl:template match="JboPackage">
...
<xsl:apply-templates select="Containee">
<xsl:sort select="@ObjectType" order="ascending" />
</xsl:apply-templates>
...
</xsl:template>
<xsl:template match="Containee">
<xsl:if test="not(preceding-sibling::Containee[@ObjectType =
current()/@ObjectType])">
.... // Je marque la rupture !!!
</xsl:if>
</xsl:template>
jusqu'ici tout marche mais quand je tranforme en (pour avoir un tri par
type puis par nom cela ne fonctionne pas correctement au niveau des
ruptures) :
<xsl:apply-templates select="Containee">
<xsl:sort select="@ObjectType" order="ascending" />
<xsl:sort select="@Name" order="ascending" />
</xsl:apply-templates>
Je soup�onne le test if mais bon ...
d'avance merci pour votre aide
Rapha�l
Technical Details
Message-ID:
<9KiD6.1446$3c4.2985055@nnrp6.proxad.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,f309f6aa1b59494c,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-04-18 08:51:34 PST Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mail From: "Rapha�l THERY" <raphael.thery@free.fr> Newsgroups: fr.comp.text.xml Subject: tris multiples Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: <9KiD6.1446$3c4.2985055@nnrp6.proxad.net> Date: Wed, 18 Apr 2001 15:51:33 GMT NNTP-Posting-Host: 195.115.154.77 X-Complaints-To: abuse@proxad.net X-Trace: nnrp6.proxad.net 987609093 195.115.154.77 (Wed, 18 Apr 2001 17:51:33 CEST) NNTP-Posting-Date: Wed, 18 Apr 2001 17:51:33 CEST Organization: Guest of ProXad - France