augmented the XInclude API to be able to pass XML parser flags down to the

* xinclude.c xmllint.c xmlreader.c include/libxml/xinclude.h
  include/libxml/xmlerror.h: augmented the XInclude API
  to be able to pass XML parser flags down to the Inclusion
  process. Also resynchronized with the Last Call W3C Working
  Draft 10 November 2003 for the xpointer attribute.
* Makefile.am test/XInclude/docs/nodes[23].xml
  result/XInclude/*: augmented the tests for the new namespace and
  testing the xpointer attribute, changed the way error messages
  are tested
* doc/*: regenerated the documentation
Daniel
diff --git a/xmlreader.c b/xmlreader.c
index bbba459..485859e 100644
--- a/xmlreader.c
+++ b/xmlreader.c
@@ -156,6 +156,7 @@
     xmlPatternPtr     *patternTab;      /* array of preserve patterns */
 #endif
     int                preserves;	/* level of preserves */
+    int                parserFlags;	/* the set of options set */
 };
 
 #define NODE_IS_EMPTY		0x1
@@ -1368,6 +1369,7 @@
 	 (xmlStrEqual(reader->node->ns->href, XINCLUDE_OLD_NS)))) {
 	if (reader->xincctxt == NULL) {
 	    reader->xincctxt = xmlXIncludeNewContext(reader->ctxt->myDoc);
+	    xmlXIncludeSetFlags(reader->xincctxt, reader->parserFlags);
 	}
 	/*
 	 * expand that node and process it
@@ -4032,6 +4034,7 @@
 
     reader->doc = NULL;
     reader->entNr = 0;
+    reader->parserFlags = options;
     reader->validate = XML_TEXTREADER_NOT_VALIDATE;
     if ((input != NULL) && (reader->input != NULL) &&
         (reader->allocs & XML_TEXTREADER_INPUT)) {