2
* Summary: implementation of XInclude
3
* Description: API to handle XInclude processing,
5
* World Wide Web Consortium Last Call Working Draft 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
13
#ifndef __XML_XINCLUDE_H__
14
#define __XML_XINCLUDE_H__
16
#include <libxml/xmlversion.h>
17
#include <libxml/tree.h>
19
#ifdef LIBXML_XINCLUDE_ENABLED
28
* Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude
30
#define XINCLUDE_NS (const xmlChar *) "http://www.w3.org/2003/XInclude"
34
* Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude
36
#define XINCLUDE_OLD_NS (const xmlChar *) "http://www.w3.org/2001/XInclude"
40
* Macro defining "include"
42
#define XINCLUDE_NODE (const xmlChar *) "include"
46
* Macro defining "fallback"
48
#define XINCLUDE_FALLBACK (const xmlChar *) "fallback"
52
* Macro defining "href"
54
#define XINCLUDE_HREF (const xmlChar *) "href"
58
* Macro defining "parse"
60
#define XINCLUDE_PARSE (const xmlChar *) "parse"
64
* Macro defining "xml"
66
#define XINCLUDE_PARSE_XML (const xmlChar *) "xml"
68
* XINCLUDE_PARSE_TEXT:
70
* Macro defining "text"
72
#define XINCLUDE_PARSE_TEXT (const xmlChar *) "text"
74
* XINCLUDE_PARSE_ENCODING:
76
* Macro defining "encoding"
78
#define XINCLUDE_PARSE_ENCODING (const xmlChar *) "encoding"
80
* XINCLUDE_PARSE_XPOINTER:
82
* Macro defining "xpointer"
84
#define XINCLUDE_PARSE_XPOINTER (const xmlChar *) "xpointer"
86
typedef struct _xmlXIncludeCtxt xmlXIncludeCtxt;
87
typedef xmlXIncludeCtxt *xmlXIncludeCtxtPtr;
90
* standalone processing
93
xmlXIncludeProcess (xmlDocPtr doc);
95
xmlXIncludeProcessFlags (xmlDocPtr doc,
98
xmlXIncludeProcessFlagsData(xmlDocPtr doc,
101
XMLPUBFUN int XMLCALL
102
xmlXIncludeProcessTree (xmlNodePtr tree);
103
XMLPUBFUN int XMLCALL
104
xmlXIncludeProcessTreeFlags(xmlNodePtr tree,
107
* contextual processing
109
XMLPUBFUN xmlXIncludeCtxtPtr XMLCALL
110
xmlXIncludeNewContext (xmlDocPtr doc);
111
XMLPUBFUN int XMLCALL
112
xmlXIncludeSetFlags (xmlXIncludeCtxtPtr ctxt,
114
XMLPUBFUN void XMLCALL
115
xmlXIncludeFreeContext (xmlXIncludeCtxtPtr ctxt);
116
XMLPUBFUN int XMLCALL
117
xmlXIncludeProcessNode (xmlXIncludeCtxtPtr ctxt,
123
#endif /* LIBXML_XINCLUDE_ENABLED */
125
#endif /* __XML_XINCLUDE_H__ */