Salut à tous,
 
j'ai le fichier XML suivant:
 
| Code : 
 <?xml version="1.0" encoding="utf-8"?><Support>  <Chapitres Text="Créer un nouveau séquençage" Lien="IntroTAssistant">    <Chapitre>      <Text>Premières informations</Text>      <Lien>TAssistant</Lien>    </Chapitre>    <Chapitre>      <Text>Equipe à domicile</Text>      <Lien>TAssistant2</Lien>    </Chapitre>  </Chapitres></Support>
 | 
 
Je passe un paramètre au document XSL correspondant à un Lien (ex: TAssistant2)
 
Je voudrais que mon fichier XSL ne m'affiche que le champ Text du chapitre ayant pour Lien TAssistant2.
 
J'ai réussi avec ça:  
 
| Code : 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:php="http://php.net/xsl" >	<xsl:output indent="yes" omit-xml-declaration="yes" encoding="utf-8" />	<xsl:output method="html"/>	<xsl:param name="Link" />       <xsl:template match="Chapitre">  <xsl:if test="Lien = $Link">         <h2><xsl:value-of select="Text" /></h2>        </xsl:if>    </xsl:template></xsl:stylesheet>
 | 
 
Mais j'aurais souhaité savoir s'il était possible de faire un 
| Code : 
 <xsl:template match="Chapitre[Lien = $Link]">
 | 
... J'ai essayé, mais ça marche pas...
 
Une idée?
 
Merci d'avance
 
Mike