comportement bizarre xsltproc sous etch
Bonjour,
récemment passé sous debian ETCH je n'arrive plus à compiler mes
fichier .xml avec xsltproc
zigomaths$ xsltproc -stringparam lang fr machin.xsl truc.xml
me renvoie
,----
| XPath error : Undefined variable
| lang($lang)
| ^
| compilation error: file main.xsl line 240 element template
| Failed to compile predicate
`----
Voici les passage importants de machin.xsl
,----
| <?xml version="1.0" encoding="utf-8"?>
| [...]
| <xsl:param name="lang">fr</xsl:param>
| [...]
| <xsl:template match="span[lang($lang)]"> # la ligne 240
| <xsl:copy-of select="attribute[name()!='lang']|node()"/>
| </xsl:template>
| </xsl:stylesheet>
`----
et ceux de truc.xml
<?xml version="1.0" encoding="utf-8" ?>
<span xml:lang='en'>Ready ?</span>
<span xml:lang='fr'>Prêt ?</span>
[...]
ce que je ne comprend pas c'est que sous debian sarge cela marchait
parfaitement
quelqu'un a déjà eu ce pb ?
merci
--
Philippe Monroux
E 55.3 S 21.5
Reply to: