2 * Summary: implementation of XInclude
3 * Description: API to handle XInclude processing,
5 * World Wide Web Consortium Last Call WorkingDraft 10 November 2003
6 * http://www.w3.org/TR/2003/WD-xinclude-20031110
8 * Copy: See Copyright for the status of this software.
10 * Author: Daniel Veillard
18 #ifndef XML_XINCLUDE_H
19 #define XML_XINCLUDE_H
21 #include <stdapis/libxml2/libxml2_xmlversion.h>
22 #include <stdapis/libxml2/libxml2_tree.h>
31 * Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude
33 #define XINCLUDE_NS (const xmlChar *) "http://www.w3.org/2003/XInclude"
37 * Macro defining the draftXinclude namespace: http://www.w3.org/2001/XInclude
39 #define XINCLUDE_OLD_NS (const xmlChar *) "http://www.w3.org/2001/XInclude"
43 * Macro defining "include"
45 #define XINCLUDE_NODE (const xmlChar *) "include"
49 * Macro defining "fallback"
51 #define XINCLUDE_FALLBACK (const xmlChar *) "fallback"
55 * Macro defining "href"
57 #define XINCLUDE_HREF (const xmlChar *) "href"
61 * Macro defining "parse"
63 #define XINCLUDE_PARSE (const xmlChar *) "parse"
67 * Macro defining "xml"
69 #define XINCLUDE_PARSE_XML (const xmlChar *) "xml"
71 * XINCLUDE_PARSE_TEXT:
73 * Macro defining "text"
75 #define XINCLUDE_PARSE_TEXT (const xmlChar *) "text"
77 * XINCLUDE_PARSE_ENCODING:
79 * Macro defining "encoding"
81 #define XINCLUDE_PARSE_ENCODING (const xmlChar *) "encoding"
83 * XINCLUDE_PARSE_XPOINTER:
85 * Macro defining "xpointer"
87 #define XINCLUDE_PARSE_XPOINTER (const xmlChar *) "xpointer"
89 typedef struct _xmlXIncludeCtxt xmlXIncludeCtxt;
90 typedef xmlXIncludeCtxt *xmlXIncludeCtxtPtr;
93 * standalone processing
96 xmlXIncludeProcess (xmlDocPtr doc);
98 xmlXIncludeProcessFlags (xmlDocPtr doc,
100 XMLPUBFUN int XMLCALL
101 xmlXIncludeProcessTree (xmlNodePtr tree);
102 XMLPUBFUN int XMLCALL
103 xmlXIncludeProcessTreeFlags(xmlNodePtr tree,
106 * contextual processing
108 XMLPUBFUN xmlXIncludeCtxtPtr XMLCALL
109 xmlXIncludeNewContext (xmlDocPtr doc);
110 XMLPUBFUN int XMLCALL
111 xmlXIncludeSetFlags (xmlXIncludeCtxtPtr ctxt,
113 XMLPUBFUN void XMLCALL
114 xmlXIncludeFreeContext (xmlXIncludeCtxtPtr ctxt);
115 XMLPUBFUN int XMLCALL
116 xmlXIncludeProcessNode (xmlXIncludeCtxtPtr ctxt,
121 #endif /* XML_XINCLUDE_H */