Public bug reported:

Binary package hint: libxslt1.1

It seems that xslt processing engine could not see global variables inside xsl 
predicates' conditions.
(See attached file xsltprocbug1.xsl)

Running
$xsltproc xsltprocbug1.xsl xsltprocbug1.xsl
gives the following output:
-----cut-----
XPath error : Undefined variable
compilation error: file xsltprocbug1.xsl line 4 element template
Failed to compile predicate
-----cut-----

Line 4 just references a global variable, defined earlier inside a predicate
4: <xsl:template match="*[.=$hello]">

Similar behavior occurs when I am using libxslt from my own application.

NB: When using  global variable outside the predicate, like in <xsl
:value-of select="$hello" />, the processor gives no complaints.

Other XSLT processors,e.g. xalan do process this example template
without reporting any errors.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: libxslt1.1 1.1.24-2ubuntu2
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libxslt
Uname: Linux 2.6.28-11-generic i686

** Affects: libxslt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
XSLT processing error: global variables not seen in predicates
https://bugs.launchpad.net/bugs/372153
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to