tri fichier par un xsl

"Jacob Bizzoire" <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Bonjour,
Etant un nouveau utilisateur de la techno xml et cocoon en particulier, je 
rencontre un probléme surement basique sur mon fichier xsl. Le fichier xsl 
ne me renvoie rien.
Je veux trier le fichier par ordre alphabétique suivant l'élément label. Si 
quelqu'un a une idée...

mon xsl:
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
	<xsl:template match="/">
	<xsl:apply-templates select="fd:selection-list" />
	</xsl:template>
	<xsl:template match="fd:selection-list">
		<xsl:for-each select="fd:item/fd:label">
			<xsl:sort select="." />
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>


structure de liste.xml

<fd:selection-list xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
  <fd:item value="1">
    <fd:label>Non1</fd:label>
  </fd:item>
  <fd:item value="2">
    <fd:label>Non2</fd:label>
  </fd:item>
  <fd:item value="3">
    <fd:label>Non3</fd:label>
  </fd:item>
</fd:selection-list>

_________________________________________________________________
Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! 
http://desktop.msn.fr/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.