Package: libxml2
Version: 2.7.3.dfsg-1
Severity: normal

$ ./test-xpointer "xpointer(id('scheme')/p[2])" | grep . | tail -n1 | sed -e 
's/<[^>]*>//g' | fmt
When multiple pointer parts are provided, an XPointer processor must
evaluate them in left-to-right order.  If the XPointer processor does not
support the scheme used in a pointer part, it skips that pointer part.
If a pointer part does not identify any subresources, evaluation continues
and the next pointer part, if any, is evaluated. The result of the
first pointer part whose evaluation identifies one or more subresources
is reported by the XPointer processor as the result of the pointer as a
whole, and evaluation stops.  If no pointer part identifies subresources,
it is an error.

$ ./test-xpointer "shouldbeskipped() xpointer(id('scheme')/p[2])" > /dev/null
parser error : unsupported scheme 'shouldbeskipped'
-:3: element include: XInclude error : XPointer evaluation failed: 
#shouldbeskipped() xpointer(id('scheme')/p[2])
-:3: element include: XInclude error : could not load 
http://www.w3.org/TR/2003/REC-xptr-framework-20030325/xptr-framework.xml, and 
no fallback was found


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libxml2 depends on:
ii  libc6                  2.9-12            GNU C Library: Shared libraries
ii  zlib1g                 1:1.2.3.3.dfsg-13 compression library - runtime

Versions of packages libxml2 recommends:
ii  xml-core                      0.12       XML infrastructure and XML catalog

libxml2 suggests no packages.

-- no debconf information

--
Jakub Wilk
cat <<EOF | xmllint --xinclude -
<include xmlns="http://www.w3.org/2003/XInclude";
href="http://www.w3.org/TR/2003/REC-xptr-framework-20030325/xptr-framework.xml";
xpointer="$@"/>
EOF

Reply via email to