• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1      * Summary: implementation of XInclude
2      * Description: API to handle XInclude processing,
3      * implements the
4      * World Wide Web Consortium Last Call Working Draft 10 November 2003
5      * http://www.w3.org/TR/2003/WD-xinclude-20031110
6      *
7      * Copy: See Copyright for the status of this software.
8      *
9      * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
10
11      /if not defined(XML_XINCLUDE_H__)
12      /define XML_XINCLUDE_H__
13
14      /include "libxmlrpg/xmlversion"
15      /include "libxmlrpg/xmlTypesC"
16      /include "libxmlrpg/tree"
17
18      /if defined(LIBXML_XINCLUDE_ENABLED)
19
20      * XINCLUDE_NS:
21      *
22      * Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude
23
24     d XINCLUDE_NS     c                   'http://www.w3.org/2003/XInclude'
25
26
27      * XINCLUDE_OLD_NS:
28      *
29      * Define the draft Xinclude namespace: http://www.w3.org/2001/XInclude
30
31     d XINCLUDE_OLD_NS...
32     d                 c                   'http://www.w3.org/2001/XInclude'
33
34      * XINCLUDE_NODE:
35      *
36      * Macro defining "include"
37
38     d XINCLUDE_NODE   c                   'include'
39
40      * XINCLUDE_FALLBACK:
41      *
42      * Macro defining "fallback"
43
44     d XINCLUDE_FALLBACK...
45     d                 c                   'fallback'
46
47      * XINCLUDE_HREF:
48      *
49      * Macro defining "href"
50
51     d XINCLUDE_HREF   c                   'href'
52
53      * XINCLUDE_PARSE:
54      *
55      * Macro defining "parse"
56
57     d XINCLUDE_PARSE  c                   'parse'
58
59      * XINCLUDE_PARSE_XML:
60      *
61      * Macro defining "xml"
62
63     d XINCLUDE_PARSE_XML...
64     d                 c                   'xml'
65
66      * XINCLUDE_PARSE_TEXT:
67      *
68      * Macro defining "text"
69
70     d XINCLUDE_PARSE_TEXT...
71     d                 c                   'text'
72
73      * XINCLUDE_PARSE_ENCODING:
74      *
75      * Macro defining "encoding"
76
77     d XINCLUDE_PARSE_ENCODING...
78     d                 c                   'encoding'
79
80      * XINCLUDE_PARSE_XPOINTER:
81      *
82      * Macro defining "xpointer"
83
84     d XINCLUDE_PARSE_XPOINTER...
85     d                 c                   'xpointer'
86
87     d xmlXIncludeCtxtPtr...
88     d                 s               *   based(######typedef######)
89
90      * standalone processing
91
92     d xmlXIncludeProcess...
93     d                 pr                  extproc('xmlXIncludeProcess')
94     d                                     like(xmlCint)
95     d  doc                                value like(xmlDocPtr)
96
97     d xmlXIncludeProcessFlags...
98     d                 pr                  extproc('xmlXIncludeProcessFlags')
99     d                                     like(xmlCint)
100     d  doc                                value like(xmlDocPtr)
101     d  flags                              value like(xmlCint)
102
103     d xmlXIncludeProcessFlagsData...
104     d                 pr                  extproc(
105     d                                     'xmlXIncludeProcessFlagsData')
106     d                                     like(xmlCint)
107     d  doc                                value like(xmlDocPtr)
108     d  flags                              value like(xmlCint)
109     d  data                           *   value                                void *
110
111     d xmlXIncludeProcessTreeFlagsData...
112     d                 pr                  extproc(
113     d                                     'xmlXIncludeProcessTreeFlagsData')
114     d                                     like(xmlCint)
115     d  tree                               value like(xmlNodePtr)
116     d  flags                              value like(xmlCint)
117     d  data                           *   value                                void *
118
119     d xmlXIncludeProcessTree...
120     d                 pr                  extproc('xmlXIncludeProcessTree')
121     d                                     like(xmlCint)
122     d  tree                               value like(xmlNodePtr)
123
124     d xmlXIncludeProcessTreeFlags...
125     d                 pr                  extproc(
126     d                                     'xmlXIncludeProcessTreeFlags')
127     d                                     like(xmlCint)
128     d  tree                               value like(xmlNodePtr)
129     d  flags                              value like(xmlCint)
130
131
132      * contextual processing
133
134     d xmlXIncludeNewContext...
135     d                 pr                  extproc('xmlXIncludeNewContext')
136     d                                     like(xmlXIncludeCtxtPtr)
137     d  doc                                value like(xmlDocPtr)
138
139     d xmlXIncludeSetFlags...
140     d                 pr                  extproc('xmlXIncludeSetFlags')
141     d                                     like(xmlCint)
142     d  ctxt                               value like(xmlXIncludeCtxtPtr)
143     d  flags                              value like(xmlCint)
144
145     d xmlXIncludeFreeContext...
146     d                 pr                  extproc('xmlXIncludeFreeContext')
147     d  ctxt                               value like(xmlXIncludeCtxtPtr)
148
149     d xmlXIncludeProcessNode...
150     d                 pr                  extproc('xmlXIncludeProcessNode')
151     d                                     like(xmlCint)
152     d  ctxt                               value like(xmlXIncludeCtxtPtr)
153     d  tree                               value like(xmlNodePtr)
154
155      /endif                                                                    XINCLUDE_ENABLED
156      /endif                                                                    XML_XINCLUDE_H__
157