Missing initialization for the catalog module
Fix an fd leak in an error case
fixing a ptotential uninitialized access
Fix typos in {tree,xpath}.c (errror)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Fix an typo 'onrest' in htmlScriptAttributes

As pointed out by "Laurent <guitarneck@free.fr>"
Fix a portability issue on Windows

Apparently an verflow when comparing macro and unsigned long
Fix xmlTextWriterWriteElement when a null content is given
Don't use xmlValidateName() when not available.

Fix compilation with minimum and debug.
Legacy needs xmlSAX2StartElement() and xmlSAX2EndElement().

Fix compilation with minimum and legacy.
Fix compilation with minimum and schematron.

Add a hard dependancy on tree.
Disable write and close callbacks when output is disabled.
Compile out use of xmlValidateNCName() when not available.

Fix compilation with minimum and valid.
Fix compilation with minimum and xinclude.

xinclude needs xmlAddNextSibling().
Compile out use of xmlLocationSetPtr when xptr is disabled.
Include xpath header.
Avoid a possible NULL pointer dereference

For https://bugzilla.gnome.org/show_bug.cgi?id=708355
Fix xmlParseInNodeContext() if node is not element

We really need to have ctxt->instate == XML_PARSER_CONTENT when
jumping in content parsing
Bug reported by Frank Gross
Restore context size and position after XPATH_OP_ARG

Fixes a bug with predicates:
https://mail.gnome.org/archives/xml/2014-March/msg00014.html