Salut à tous.

J'ai deux problèmes:
Je n'arrive pas à tester la valeur d'un attribut dans un xsl:if ou xsl:choose
Voici mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="ISO-8859-1"?>
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns="http://www.w3.org/TR/REC-html40" result-ns="">
 
	<xsl:template match="/">
		<html>
			<head>
				<title>
					Livres
				</title>
			</head>
			<body>
				<code>
				<xsl:apply-templates/>
				</code>
			</body>
		</html>
	</xsl:template>
 
	<xsl:template match="livres">
		<xsl:for-each select="livre">
			<p>
				<xsl:choose>
					<xsl:when test="@categorie='1'">
 
					</xsl:when>
				</xsl:choose>
				<xsl:value-of select="titre"/> par 
				<b><xsl:value-of select="auteur"/></b>
			</p>
		</xsl:for-each>
	</xsl:template>
 
</xsl:stylesheet>
Le navigateur me répond:
Jeton attendu 'eof' trouvé '='. @categorie-->=<--'1'

Deuxième problème:
Je n'arrive pas à utiliser les fonctions substring etc... Le navigateur me répond que la fonction substring est inconu

Merci beaucoup si vous m'aider.