reassign xsltproc 1.1.15-1 retitle 336280 xsltproc: doesn't recognize variables in some particular situations thanks
Le vendredi 28 octobre 2005 à 08:06 -0700, Matt Kraai a écrit : > Package: logidee-tools > Version: 1.2.4-2 > Severity: serious > > pbuilder fails to build logidee-tools in an unstable chroot on i386: > > > xsltproc --xinclude --stringparam selection "none" --stringparam cycle > > "false" --stringparam charte "gfdl" --stringparam trainer "false" > > --stringparam lang "en" --stringparam dir > > "/tmp/buildd/logidee-tools-1.2.4/doc/tools.html" ../xsl/module-html.xsl > > tools.xml > tools.html/index.html > > XPath error : Undefined variable > > not(@restriction='all' or contains(concat(' ',$selection,' '),concat(' > > ',@restriction,' ')) or not(@restriction) or $selection='all') > > ^ > > compilation error: file ../xsl/ignore.xsl line 23 element template > > Failed to compile predicate > > XPath error : Undefined variable This is a bug in xsltproc ... because the variable exists and is even defined in the command line (and also with <xsl:param> inside the top XSL stylesheet). I could reproduce the bug with xsltproc 1.1.15-1... and this code has been working for 4 years already with xsltproc without any problem. Thus I'm reassigning the bug. I also attach "ignore.xsl" which can be used as a minimal test case to reproduce the bug : $ xsltproc --stringparam trainer false ignore.xsl XPath error : Undefined variable not(@trainer=$trainer or $trainer='true' or not(@trainer)) ^ compilation error: file ignore.xsl line 9 element template Failed to compile predicate Regards, -- Raphaël Hertzog -+- http://www.ouaza.com Freexian : des développeurs Debian au service des entreprises http://www.freexian.com
ignore.xsl
Description: application/xml