From:
[email protected]
Package: xalan
Version: 1.8-3
Severity: normal
The XSLT 1.0 specifications say:
12.2 Keys
[...]
It is an error for the value of either the use attribute or the
match attribute to contain a VariableReference.
But Xalan doesn't detect this error. For instance, consider:
<?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>
$ xalan -XSL var-in-xslkey.xsl -IN var-in-xslkey.xsl
========= Parsing 'var-in-xslkey.xsl' ========
Parse of 'var-in-xslkey.xsl' took 10 milliseconds.
========= Parsing 'var-in-xslkey.xsl' ========
Parse of 'var-in-xslkey.xsl' took 0 milliseconds.
=============================
Transforming...
<?xml version="1.0" encoding="UTF-8"?>
transform took 0 milliseconds.
Total time took 0 milliseconds.
$
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (900, 'testing'), (200, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.7-powerpc
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1
Versions of packages xalan depends on:
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libgcc1 1:3.4.1-5 GCC support library
ii libstdc++5 1:3.3.4-3 The GNU Standard C++ Library v3
ii libxalan18 1.8-3 Provides XSLT support for applicat ii libxerces25 2.5.0-2 Validating XML parser library for
-- no debconf information
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)