Hello world

J'ai un petit problème en integrant une fonction php dans un code XSLT, par exemple j'ai cette ligne de code XSLT
Code : Sélectionner tout - Visualiser dans une fenêtre à part
<p> <xsl:value-of select="php:function('decodage',string(description/english)')"/> </p>
et mon code php

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
<?php
 
function decodage($str) {
    return utf8_decode($str);
 
}
 
 
$dom = new DomDocument;
 
$dom->load("projetsEn.xsl");
 
$proc= new XSLTProcessor;
 
$proc->importStyleSheet($dom);
$proc->registerPHPFunctions();
 
 
 
 
 
$dom= new DomDocument;
 
$dom->preserveWhiteSpace = FALSE;
 
$dom->formatOutput = TRUE;
 
$dom->load("/home/magnu/Admin/XML/projets.xml");
 
 
 
echo $proc->transformToXML($dom); 
?>
resultat : Warning: XSLTProcessor::importStylesheet() [function.XSLTProcessor-importStylesheet]: Invalid expression in /home/magnu/Public/proj-pubEn.php on line 15


vous voyez un prob ?

merci

...