summaryrefslogtreecommitdiff
path: root/packages/libxml/src/xinclude.inc
blob: b1cd618b4bda614ae659a2ca6584969f2ae87781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
(*
 * Summary: implementation of XInclude
 * Description: API to handle XInclude processing,
 * implements the
 * World Wide Web Consortium Last Call Working Draft 10 November 2003
 * http://www.w3.org/TR/2003/WD-xinclude-20031110
 *
 * Copy: See Copyright for the status of this software.
 *
 * Author: Daniel Veillard
 *)

{$IFDEF LIBXML_XINCLUDE_ENABLED}

{$IFDEF CONST}
(**
 * XINCLUDE_NS:
 *
 * Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude
 *)
  XINCLUDE_NS: xmlCharPtr = 'http://www.w3.org/2003/XInclude';
(**
 * XINCLUDE_OLD_NS:
 *
 * Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude
 *)
  XINCLUDE_OLD_NS: xmlCharPtr = 'http://www.w3.org/2001/XInclude';
(**
 * XINCLUDE_NODE:
 *
 * Macro defining "include"
 *)
  XINCLUDE_NODE: xmlCharPtr = 'include';
(**
 * XINCLUDE_FALLBACK:
 *
 * Macro defining "fallback"
 *)
  XINCLUDE_FALLBACK: xmlCharPtr = 'fallback';
(**
 * XINCLUDE_HREF:
 *
 * Macro defining "href"
 *)
  XINCLUDE_HREF: xmlCharPtr = 'href';
(**
 * XINCLUDE_PARSE:
 *
 * Macro defining "parse"
 *)
  XINCLUDE_PARSE: xmlCharPtr = 'parse';
(**
 * XINCLUDE_PARSE_XML:
 *
 * Macro defining "xml"
 *)
  XINCLUDE_PARSE_XML: xmlCharPtr = 'xml';
(**
 * XINCLUDE_PARSE_TEXT:
 *
 * Macro defining "text"
 *)
  XINCLUDE_PARSE_TEXT: xmlCharPtr = 'text';
(**
 * XINCLUDE_PARSE_ENCODING:
 *
 * Macro defining "encoding"
 *)
  XINCLUDE_PARSE_ENCODING: xmlCharPtr = 'encoding';
(**
 * XINCLUDE_PARSE_XPOINTER:
 *
 * Macro defining "xpointer"
 *)
  XINCLUDE_PARSE_XPOINTER: xmlCharPtr = 'xpointer';
{$ENDIF}

{$IFDEF POINTER}
  xmlXIncludeCtxtPtr = ^xmlXIncludeCtxt;
{$ENDIF}

{$IFDEF TYPE}
  xmlXIncludeCtxt = record end;
{$ENDIF}

{$IFDEF FUNCTION}
(*
 * standalone processing
 *)
function xmlXIncludeProcess(doc: xmlDocPtr): cint; EXTDECL; external xml2lib;
function xmlXIncludeProcessFlags(doc: xmlDocPtr; flags: cint): cint; EXTDECL; external xml2lib;
function xmlXIncludeProcessFlagsData(doc: xmlDocPtr; flags: cint; data: pointer): cint; EXTDECL; external xml2lib;
function xmlXIncludeProcessTree(tree: xmlNodePtr): cint; EXTDECL; external xml2lib;
function xmlXIncludeProcessTreeFlags(tree: xmlNodePtr; flags: cint): cint; EXTDECL; external xml2lib;

(*
 * contextual processing
 *)
function xmlXIncludeNewContext(doc: xmlDocPtr): xmlXIncludeCtxtPtr; EXTDECL; external xml2lib;
function xmlXIncludeProcessFlags(ctxt: xmlXIncludeCtxtPtr; flags: cint): cint; EXTDECL; external xml2lib;
procedure xmlXIncludeProcess(ctxt: xmlXIncludeCtxtPtr); EXTDECL; external xml2lib;
function xmlXIncludeProcessNode(ctxt: xmlXIncludeCtxtPtr; tree: xmlNodePtr): cint; EXTDECL; external xml2lib;
{$ENDIF}

{$ENDIF} (* LIBXML_XINCLUDE_ENABLED *)