Erreur simple incomprehensible (xsl)
Posté : 09 févr. 2011, 10:45
Bonjour je viens de terminer mon fichier xsl il fonctionne tres bien. Mais je n'arrive cas aafficher qu'un seul element de mon fichier xml avec . Voici mon fichier xsl :
j'ai respecter la structure de mon fichier xml pourtant. Voyez vous l'erreur ? MERCI
Code : Tout sélectionner
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version="1.0">
<xsl:output encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:param name="id" />
<xsl:template match="article">
<xsl:variable name="idart">
<xsl:value-of select="./@idArticle"/>
</xsl:variable>
<xsl:if test="$id = $idart">
<table border="1">
<tr>
<td><xsl:value-of select="titrearticle"/></td> CELA S'AFFICHE
<td><xsl:value-of select="refchapitre"/></td> CELA NE S'AFFICHE PAS
</tr>
</table>
</xsl:if>
</xsl:template>
</xsl:stylesheet>j'ai respecter la structure de mon fichier xml pourtant. Voyez vous l'erreur ? MERCI