[xml/sgml-pkgs] Bug#683353: libxslt1.1:amd64: does not signal an error on xsl:key

Vincent Lefevre vincent at vinc17.net
Tue Jul 31 00:44:05 UTC 2012


Package: libxslt1.1
Version: 1.1.26-13
Severity: normal

Consider the following stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="var"/>
<xsl:key name="key" match="*[@id != $var]" use="''"/>
</xsl:stylesheet>

The XSLT 1.0 specifications say in 12.2:

  It is an error for the value of either the use attribute or the
  match attribute to contain a VariableReference.

and in 17:

  A conforming XSLT processor must signal any errors except for
  those that this document specifically allows an XSLT processor
  not to signal.

So, since the match attribute contains $var, one would expect an
error to be signaled. But:

xvii:~> xsltproc tst.xsl tst.xsl
<?xml version="1.0"?>




xvii:~>

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libxslt1.1:amd64 depends on:
ii  libc6              2.13-35
ii  libgcrypt11        1.5.0-3
ii  libxml2            2.8.0+dfsg1-5
ii  multiarch-support  2.13-35

libxslt1.1:amd64 recommends no packages.

libxslt1.1:amd64 suggests no packages.

-- no debconf information



More information about the debian-xml-sgml-pkgs mailing list