Re: [xslt] scope of global param,version 1.1.15 of libxslt (libxml 2.6.21)



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]