Package: xmlstarlet
Version: 1.6.1-1
Severity: normal
I cannot select with “//elementname” but only with “//*”:
tglaser@iupiter:~ $ <test1.xml xmlstarlet sel -T -t -c '//h3' -n
bar
tglaser@iupiter:~ $ <test2.xml xmlstarlet sel -T -t -c '//h3' -n
tglaser@iupiter:~ $ <test1.xml xmlstarlet sel -T -t -c '//h3[@id="baz"]' -n
bar
tglaser@iupiter:~ $ <test2.xml xmlstarlet sel -T -t -c '//h3[@id="baz"]' -n
tglaser@iupiter:~ $ <test1.xml xmlstarlet sel -T -t -c '//*[@id="baz"]' -n
bar
tglaser@iupiter:~ $ <test2.xml xmlstarlet sel -T -t -c '//*[@id="baz"]' -n
bar
tglaser@iupiter:~ $ diff -u test{1,2}.xml
--- test1.xml 2015-11-24 13:31:00.914482378 +0100
+++ test2.xml 2015-11-24 13:31:00.602482363 +0100
@@ -1,4 +1,4 @@
-<html ymlns="http://www.w3.org/1999/xhtml">
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>foo</title>
</head><body>
AFAICT, wheezy and sid are also affected.
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash, unfortunately
Init: systemd (via /run/systemd/system), dito, though it’s probably not at
fault here
Versions of packages xmlstarlet depends on:
ii libc6 2.19-18+deb8u1
ii libxml2 2.9.1+dfsg1-5
ii libxslt1.1 1.1.28-2+b2
xmlstarlet recommends no packages.
xmlstarlet suggests no packages.
-- no debconf information
Title: foo
bar
Title: foo
bar