Stephane Mottelet wrote:


 > xsltproc --stringparam lang french simulation.xsl interp.xml
XPath error : Undefined variable
(@lang=$lang) or not(@lang)
            ^
compilation error: file simulation.xsl line 16 element template
Failed to compile predicate


Seems there is really a problem ?

You can't use variables or params in the match clause of a template ! See the pattern grammar for details (http://www.w3.org/TR/xslt#patterns)

        Fabrice
--
Fabrice Desré
France Télécom R&D/MAPS/AMS
Tél: +(33) (0)2 96 05 31 43
Fax: +(33) (0)2 96 05 39 45
http://www.francetelecom.com/rd
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to