Fix an error in xmlCleanupParser

https://bugzilla.gnome.org/show_bug.cgi?id=698582

xmlCleanupParser calls xmlCleanupGlobals() and then
xmlResetLastError() but the later reallocate the global
data freed by previous call. Just swap the two calls.
Do not URI escape in server side includes
Fix missing break on last() function for attributes

pointed out by cppcheck
Fix for compilation with python 2.6.8

Remap PyCapsule to PyCObject based on the macro being available
instead of using the python version
Cast encoding name to char pointer to match arg type
Remove premature XInclude check on URI being relative

As it gives false negatives, see
  https://mail.gnome.org/archives/xml/2013-April/msg00023.html
xmllint --memory should fail on empty files

Exposed by https://bugzilla.gnome.org/show_bug.cgi?id=699896
when doing analysis but a priori unrelated.
properly quote the namespace uris written out during c14n
Fix a regression in xmlGetDocCompressMode()

The switch to xzlib had for consequence that the compression
level of the input was not gathered anymore in ctxt->input->buf,
then the parser compression flags was left to -1 and propagated
to the resulting document.
Fix the I/O layer to get compression detection in xzlib,
then carry it in the input buffer and the resulting document

  This should fix
    https://lsbbugs.linuxfoundation.org/show_bug.cgi?id=3456
Forgot to document 2.9.1 release, regenerate docs
Fix a parsing bug on non-ascii element and CR/LF usage

https://bugzilla.gnome.org/show_bug.cgi?id=698550

Somehow the behaviour of the internal parser routine changed
slightly when encountering CR/LF, which led to a bug when
parsing document with non-ascii Names
python: Fix compiler warnings when building python3 bindings
missing else in xlink.c

Obviously forgotten
python: fix drv_libxml2.py for python3 compatibility

https://bugzilla.gnome.org/show_bug.cgi?id=703979
Catch malloc error and exit accordingly

As pointed privately by Bill Parker <wp02855@gmail.com>
Another round of fixes for older versions of Python
Fix handling of mmap errors

https://bugzilla.gnome.org/show_bug.cgi?id=702320

as raised by Gaurav <ya1gaurav@gmail.com>
Two smal namespace tweaks

An improvement of the documentation, and an extra safety check
for xmlSetNs()
Remove occasional leading space in XPath number formatting

https://bugzilla.gnome.org/show_bug.cgi?id=704528

Somehow snprintf "%*.*e" can generate a leading space, remove it
Fix a wrong test

https://bugzilla.gnome.org/show_bug.cgi?id=704530

Arg is an array on the stack and can't be NULL