[xml/sgml] Re: Bug#336280: FTBFS: Unable to stat doc/dtd.html

Raphael Hertzog raphael at ouaza.com
Sat Nov 5 14:20:18 UTC 2005


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(' ', at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ignore.xsl
Type: application/xml
Size: 369 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-devel/attachments/20051105/2dbb9d31/ignore.xsl


More information about the Debian-xml-sgml-devel mailing list