Ayant préalablement géré les problèmes de PHP (5.3) avec XSL ... ouf,
http://www.developpez.net/forums/d13...-xsl-via-php5/
et ayant testé positivement le cours "Initiation à XSL" je plante sur le premier exemple du cours "Programmation avec XSLT"
L'erreur est évidemment criante (bouf)
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 <?xml version="1.0" encoding="utf8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="ISO-8859-1" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" indent="yes" /> <xsl:template match="liste"> <html> <body> <p>Introduction à XSLT (suite 2)</p> <ul> <xsl:for-each> <li> <xsl:apply-templates select="." /> </li> </xsl:for-each> </ul> </body> </html> </xsl:template> </xsl:stylesheet>
Sans doute un copié/coller trop rapide, manquait la fin de la balise for-each.Warning: XSLTProcessor::importStylesheet(): compilation error: file /media/rapide/scripts/xsl/xslt/liste_2.xsl line 14 element for-each in /media/rapide/scripts/xsl/xslt/index.php on line 39 Warning: XSLTProcessor::importStylesheet(): xsl:for-each : select is missing in /media/rapide/scripts/xsl/xslt/index.php on line 39 Message:XSLTProcessor avec 'liste_2.xsl' planté
mais sûrement autre chose ..
Olivier
Partager