@img/sharp-libvips-dev 1.2.2 → 1.2.4-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/archive.h +2 -2
- package/include/archive_entry.h +1 -1
- package/include/expat.h +39 -25
- package/include/expat_config.h +9 -9
- package/include/expat_external.h +62 -61
- package/include/harfbuzz/hb-ot-layout.h +6 -0
- package/include/harfbuzz/hb-script-list.h +1 -1
- package/include/harfbuzz/hb-subset.h +5 -0
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/jconfig.h +37 -14
- package/include/jerror.h +47 -42
- package/include/jmorecfg.h +21 -18
- package/include/jpeglib.h +216 -132
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/libxml2/libxml/HTMLparser.h +159 -101
- package/include/libxml2/libxml/HTMLtree.h +49 -74
- package/include/libxml2/libxml/SAX.h +8 -5
- package/include/libxml2/libxml/SAX2.h +18 -15
- package/include/libxml2/libxml/c14n.h +30 -29
- package/include/libxml2/libxml/catalog.h +47 -22
- package/include/libxml2/libxml/chvalid.h +52 -64
- package/include/libxml2/libxml/debugXML.h +18 -15
- package/include/libxml2/libxml/dict.h +22 -19
- package/include/libxml2/libxml/encoding.h +144 -111
- package/include/libxml2/libxml/entities.h +95 -75
- package/include/libxml2/libxml/globals.h +7 -4
- package/include/libxml2/libxml/hash.h +61 -64
- package/include/libxml2/libxml/list.h +59 -51
- package/include/libxml2/libxml/nanoftp.h +7 -4
- package/include/libxml2/libxml/nanohttp.h +10 -7
- package/include/libxml2/libxml/parser.h +1091 -563
- package/include/libxml2/libxml/parserInternals.h +167 -214
- package/include/libxml2/libxml/pattern.h +29 -31
- package/include/libxml2/libxml/relaxng.h +59 -58
- package/include/libxml2/libxml/schemasInternals.h +114 -268
- package/include/libxml2/libxml/schematron.h +59 -51
- package/include/libxml2/libxml/threads.h +19 -20
- package/include/libxml2/libxml/tree.h +873 -623
- package/include/libxml2/libxml/uri.h +21 -22
- package/include/libxml2/libxml/valid.h +169 -199
- package/include/libxml2/libxml/xinclude.h +24 -43
- package/include/libxml2/libxml/xlink.h +55 -51
- package/include/libxml2/libxml/xmlIO.h +127 -145
- package/include/libxml2/libxml/xmlautomata.h +66 -65
- package/include/libxml2/libxml/xmlerror.h +197 -94
- package/include/libxml2/libxml/xmlexports.h +20 -18
- package/include/libxml2/libxml/xmlmemory.h +44 -29
- package/include/libxml2/libxml/xmlmodule.h +14 -15
- package/include/libxml2/libxml/xmlreader.h +137 -131
- package/include/libxml2/libxml/xmlregexp.h +28 -31
- package/include/libxml2/libxml/xmlsave.h +81 -36
- package/include/libxml2/libxml/xmlschemas.h +61 -67
- package/include/libxml2/libxml/xmlschemastypes.h +60 -54
- package/include/libxml2/libxml/xmlstring.h +8 -9
- package/include/libxml2/libxml/xmlunicode.h +6 -3
- package/include/libxml2/libxml/xmlversion.h +44 -121
- package/include/libxml2/libxml/xmlwriter.h +97 -97
- package/include/libxml2/libxml/xpath.h +235 -232
- package/include/libxml2/libxml/xpathInternals.h +247 -277
- package/include/libxml2/libxml/xpointer.h +21 -17
- package/include/tiff.h +1 -0
- package/include/tiffconf.h +1 -1
- package/include/tiffio.h +23 -5
- package/include/tiffvers.h +4 -4
- package/include/vips/version.h +4 -4
- package/package.json +1 -1
- package/versions.json +9 -9
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief DTD validator
|
|
5
|
+
*
|
|
6
|
+
* API to handle XML Document Type Definitions and validate
|
|
7
|
+
* documents.
|
|
4
8
|
*
|
|
5
|
-
*
|
|
9
|
+
* @copyright See Copyright for the status of this software.
|
|
6
10
|
*
|
|
7
|
-
*
|
|
11
|
+
* @author Daniel Veillard
|
|
8
12
|
*/
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
#ifndef __XML_VALID_H__
|
|
12
16
|
#define __XML_VALID_H__
|
|
13
17
|
|
|
14
|
-
/** DOC_DISABLE */
|
|
15
18
|
#include <libxml/xmlversion.h>
|
|
16
19
|
#include <libxml/xmlerror.h>
|
|
17
20
|
#define XML_TREE_INTERNALS
|
|
@@ -20,67 +23,57 @@
|
|
|
20
23
|
#include <libxml/list.h>
|
|
21
24
|
#include <libxml/xmlautomata.h>
|
|
22
25
|
#include <libxml/xmlregexp.h>
|
|
23
|
-
/** DOC_ENABLE */
|
|
24
26
|
|
|
25
27
|
#ifdef __cplusplus
|
|
26
28
|
extern "C" {
|
|
27
29
|
#endif
|
|
28
30
|
|
|
29
31
|
/*
|
|
30
|
-
* Validation state added for non-
|
|
32
|
+
* Validation state added for non-deterministic content model.
|
|
31
33
|
*/
|
|
32
34
|
typedef struct _xmlValidState xmlValidState;
|
|
33
35
|
typedef xmlValidState *xmlValidStatePtr;
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @ctx: usually an xmlValidCtxtPtr to a validity error context,
|
|
38
|
-
* but comes from ctxt->userData (which normally contains such
|
|
39
|
-
* a pointer); ctxt->userData can be changed by the user.
|
|
40
|
-
* @msg: the string to format *printf like vararg
|
|
41
|
-
* @...: remaining arguments to the format
|
|
38
|
+
* Report a validity error.
|
|
42
39
|
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
40
|
+
* @param ctx user data (usually an xmlValidCtxt)
|
|
41
|
+
* @param msg printf-like format string
|
|
42
|
+
* @param ... arguments to format
|
|
45
43
|
*/
|
|
46
44
|
typedef void (*xmlValidityErrorFunc) (void *ctx,
|
|
47
45
|
const char *msg,
|
|
48
46
|
...) LIBXML_ATTR_FORMAT(2,3);
|
|
49
47
|
|
|
50
48
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @ctx: usually an xmlValidCtxtPtr to a validity error context,
|
|
53
|
-
* but comes from ctxt->userData (which normally contains such
|
|
54
|
-
* a pointer); ctxt->userData can be changed by the user.
|
|
55
|
-
* @msg: the string to format *printf like vararg
|
|
56
|
-
* @...: remaining arguments to the format
|
|
49
|
+
* Report a validity warning.
|
|
57
50
|
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
51
|
+
* @param ctx user data (usually an xmlValidCtxt)
|
|
52
|
+
* @param msg printf-like format string
|
|
53
|
+
* @param ... arguments to format
|
|
60
54
|
*/
|
|
61
55
|
typedef void (*xmlValidityWarningFunc) (void *ctx,
|
|
62
56
|
const char *msg,
|
|
63
57
|
...) LIBXML_ATTR_FORMAT(2,3);
|
|
64
58
|
|
|
65
|
-
/*
|
|
66
|
-
* xmlValidCtxt:
|
|
67
|
-
* An xmlValidCtxt is used for error reporting when validating.
|
|
68
|
-
*/
|
|
69
59
|
typedef struct _xmlValidCtxt xmlValidCtxt;
|
|
70
60
|
typedef xmlValidCtxt *xmlValidCtxtPtr;
|
|
61
|
+
/**
|
|
62
|
+
* An xmlValidCtxt is used for error reporting when validating.
|
|
63
|
+
*/
|
|
71
64
|
struct _xmlValidCtxt {
|
|
72
65
|
void *userData; /* user specific data block */
|
|
73
66
|
xmlValidityErrorFunc error; /* the callback in case of errors */
|
|
74
67
|
xmlValidityWarningFunc warning; /* the callback in case of warning */
|
|
75
68
|
|
|
76
69
|
/* Node analysis stack used when validating within entities */
|
|
77
|
-
|
|
70
|
+
xmlNode *node; /* Current parsed Node */
|
|
78
71
|
int nodeNr; /* Depth of the parsing stack */
|
|
79
72
|
int nodeMax; /* Max depth of the parsing stack */
|
|
80
|
-
|
|
73
|
+
xmlNode **nodeTab; /* array of nodes */
|
|
81
74
|
|
|
82
75
|
unsigned int flags; /* internal flags */
|
|
83
|
-
|
|
76
|
+
xmlDoc *doc; /* the document */
|
|
84
77
|
int valid; /* temporary validity check result */
|
|
85
78
|
|
|
86
79
|
/* state state used for non-determinist content validation */
|
|
@@ -90,225 +83,198 @@ struct _xmlValidCtxt {
|
|
|
90
83
|
xmlValidState *vstateTab; /* array of validation states */
|
|
91
84
|
|
|
92
85
|
#ifdef LIBXML_REGEXP_ENABLED
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
xmlAutomata *am; /* the automata */
|
|
87
|
+
xmlAutomataState *state; /* used to build the automata */
|
|
95
88
|
#else
|
|
96
89
|
void *am;
|
|
97
90
|
void *state;
|
|
98
91
|
#endif
|
|
99
92
|
};
|
|
100
93
|
|
|
101
|
-
/*
|
|
102
|
-
* ALL notation declarations are stored in a table.
|
|
103
|
-
* There is one table per DTD.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
94
|
typedef struct _xmlHashTable xmlNotationTable;
|
|
107
95
|
typedef xmlNotationTable *xmlNotationTablePtr;
|
|
108
96
|
|
|
109
|
-
/*
|
|
110
|
-
* ALL element declarations are stored in a table.
|
|
111
|
-
* There is one table per DTD.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
97
|
typedef struct _xmlHashTable xmlElementTable;
|
|
115
98
|
typedef xmlElementTable *xmlElementTablePtr;
|
|
116
99
|
|
|
117
|
-
/*
|
|
118
|
-
* ALL attribute declarations are stored in a table.
|
|
119
|
-
* There is one table per DTD.
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
100
|
typedef struct _xmlHashTable xmlAttributeTable;
|
|
123
101
|
typedef xmlAttributeTable *xmlAttributeTablePtr;
|
|
124
102
|
|
|
125
|
-
/*
|
|
126
|
-
* ALL IDs attributes are stored in a table.
|
|
127
|
-
* There is one table per document.
|
|
128
|
-
*/
|
|
129
|
-
|
|
130
103
|
typedef struct _xmlHashTable xmlIDTable;
|
|
131
104
|
typedef xmlIDTable *xmlIDTablePtr;
|
|
132
105
|
|
|
133
|
-
/*
|
|
134
|
-
* ALL Refs attributes are stored in a table.
|
|
135
|
-
* There is one table per document.
|
|
136
|
-
*/
|
|
137
|
-
|
|
138
106
|
typedef struct _xmlHashTable xmlRefTable;
|
|
139
107
|
typedef xmlRefTable *xmlRefTablePtr;
|
|
140
108
|
|
|
141
109
|
/* Notation */
|
|
142
|
-
XMLPUBFUN
|
|
143
|
-
xmlAddNotationDecl (
|
|
144
|
-
|
|
110
|
+
XMLPUBFUN xmlNotation *
|
|
111
|
+
xmlAddNotationDecl (xmlValidCtxt *ctxt,
|
|
112
|
+
xmlDtd *dtd,
|
|
145
113
|
const xmlChar *name,
|
|
146
|
-
const xmlChar *
|
|
147
|
-
const xmlChar *
|
|
114
|
+
const xmlChar *publicId,
|
|
115
|
+
const xmlChar *systemId);
|
|
148
116
|
XML_DEPRECATED
|
|
149
|
-
XMLPUBFUN
|
|
150
|
-
xmlCopyNotationTable (
|
|
117
|
+
XMLPUBFUN xmlNotationTable *
|
|
118
|
+
xmlCopyNotationTable (xmlNotationTable *table);
|
|
151
119
|
XML_DEPRECATED
|
|
152
120
|
XMLPUBFUN void
|
|
153
|
-
xmlFreeNotationTable (
|
|
121
|
+
xmlFreeNotationTable (xmlNotationTable *table);
|
|
154
122
|
#ifdef LIBXML_OUTPUT_ENABLED
|
|
155
123
|
XML_DEPRECATED
|
|
156
124
|
XMLPUBFUN void
|
|
157
|
-
xmlDumpNotationDecl (
|
|
158
|
-
|
|
125
|
+
xmlDumpNotationDecl (xmlBuffer *buf,
|
|
126
|
+
xmlNotation *nota);
|
|
159
127
|
/* XML_DEPRECATED, still used in lxml */
|
|
160
128
|
XMLPUBFUN void
|
|
161
|
-
xmlDumpNotationTable (
|
|
162
|
-
|
|
129
|
+
xmlDumpNotationTable (xmlBuffer *buf,
|
|
130
|
+
xmlNotationTable *table);
|
|
163
131
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
|
164
132
|
|
|
165
133
|
/* Element Content */
|
|
166
|
-
/* the non Doc version are being deprecated */
|
|
167
134
|
XML_DEPRECATED
|
|
168
|
-
XMLPUBFUN
|
|
135
|
+
XMLPUBFUN xmlElementContent *
|
|
169
136
|
xmlNewElementContent (const xmlChar *name,
|
|
170
137
|
xmlElementContentType type);
|
|
171
138
|
XML_DEPRECATED
|
|
172
|
-
XMLPUBFUN
|
|
173
|
-
xmlCopyElementContent (
|
|
139
|
+
XMLPUBFUN xmlElementContent *
|
|
140
|
+
xmlCopyElementContent (xmlElementContent *content);
|
|
174
141
|
XML_DEPRECATED
|
|
175
142
|
XMLPUBFUN void
|
|
176
|
-
xmlFreeElementContent (
|
|
177
|
-
/* the new versions with doc argument */
|
|
143
|
+
xmlFreeElementContent (xmlElementContent *cur);
|
|
178
144
|
XML_DEPRECATED
|
|
179
|
-
XMLPUBFUN
|
|
180
|
-
xmlNewDocElementContent (
|
|
145
|
+
XMLPUBFUN xmlElementContent *
|
|
146
|
+
xmlNewDocElementContent (xmlDoc *doc,
|
|
181
147
|
const xmlChar *name,
|
|
182
148
|
xmlElementContentType type);
|
|
183
149
|
XML_DEPRECATED
|
|
184
|
-
XMLPUBFUN
|
|
185
|
-
xmlCopyDocElementContent(
|
|
186
|
-
|
|
150
|
+
XMLPUBFUN xmlElementContent *
|
|
151
|
+
xmlCopyDocElementContent(xmlDoc *doc,
|
|
152
|
+
xmlElementContent *content);
|
|
187
153
|
XML_DEPRECATED
|
|
188
154
|
XMLPUBFUN void
|
|
189
|
-
xmlFreeDocElementContent(
|
|
190
|
-
|
|
155
|
+
xmlFreeDocElementContent(xmlDoc *doc,
|
|
156
|
+
xmlElementContent *cur);
|
|
191
157
|
XML_DEPRECATED
|
|
192
158
|
XMLPUBFUN void
|
|
193
159
|
xmlSnprintfElementContent(char *buf,
|
|
194
160
|
int size,
|
|
195
|
-
|
|
161
|
+
xmlElementContent *content,
|
|
196
162
|
int englob);
|
|
197
163
|
#ifdef LIBXML_OUTPUT_ENABLED
|
|
198
164
|
XML_DEPRECATED
|
|
199
165
|
XMLPUBFUN void
|
|
200
166
|
xmlSprintfElementContent(char *buf,
|
|
201
|
-
|
|
167
|
+
xmlElementContent *content,
|
|
202
168
|
int englob);
|
|
203
169
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
|
204
170
|
|
|
205
171
|
/* Element */
|
|
206
|
-
XMLPUBFUN
|
|
207
|
-
xmlAddElementDecl (
|
|
208
|
-
|
|
172
|
+
XMLPUBFUN xmlElement *
|
|
173
|
+
xmlAddElementDecl (xmlValidCtxt *ctxt,
|
|
174
|
+
xmlDtd *dtd,
|
|
209
175
|
const xmlChar *name,
|
|
210
176
|
xmlElementTypeVal type,
|
|
211
|
-
|
|
177
|
+
xmlElementContent *content);
|
|
212
178
|
XML_DEPRECATED
|
|
213
|
-
XMLPUBFUN
|
|
214
|
-
xmlCopyElementTable (
|
|
179
|
+
XMLPUBFUN xmlElementTable *
|
|
180
|
+
xmlCopyElementTable (xmlElementTable *table);
|
|
215
181
|
XML_DEPRECATED
|
|
216
182
|
XMLPUBFUN void
|
|
217
|
-
xmlFreeElementTable (
|
|
183
|
+
xmlFreeElementTable (xmlElementTable *table);
|
|
218
184
|
#ifdef LIBXML_OUTPUT_ENABLED
|
|
219
185
|
XML_DEPRECATED
|
|
220
186
|
XMLPUBFUN void
|
|
221
|
-
xmlDumpElementTable (
|
|
222
|
-
|
|
187
|
+
xmlDumpElementTable (xmlBuffer *buf,
|
|
188
|
+
xmlElementTable *table);
|
|
223
189
|
XML_DEPRECATED
|
|
224
190
|
XMLPUBFUN void
|
|
225
|
-
xmlDumpElementDecl (
|
|
226
|
-
|
|
191
|
+
xmlDumpElementDecl (xmlBuffer *buf,
|
|
192
|
+
xmlElement *elem);
|
|
227
193
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
|
228
194
|
|
|
229
195
|
/* Enumeration */
|
|
230
196
|
XML_DEPRECATED
|
|
231
|
-
XMLPUBFUN
|
|
197
|
+
XMLPUBFUN xmlEnumeration *
|
|
232
198
|
xmlCreateEnumeration (const xmlChar *name);
|
|
233
199
|
/* XML_DEPRECATED, needed for custom attributeDecl SAX handler */
|
|
234
200
|
XMLPUBFUN void
|
|
235
|
-
xmlFreeEnumeration (
|
|
201
|
+
xmlFreeEnumeration (xmlEnumeration *cur);
|
|
236
202
|
XML_DEPRECATED
|
|
237
|
-
XMLPUBFUN
|
|
238
|
-
xmlCopyEnumeration (
|
|
203
|
+
XMLPUBFUN xmlEnumeration *
|
|
204
|
+
xmlCopyEnumeration (xmlEnumeration *cur);
|
|
239
205
|
|
|
240
206
|
/* Attribute */
|
|
241
|
-
XMLPUBFUN
|
|
242
|
-
xmlAddAttributeDecl (
|
|
243
|
-
|
|
207
|
+
XMLPUBFUN xmlAttribute *
|
|
208
|
+
xmlAddAttributeDecl (xmlValidCtxt *ctxt,
|
|
209
|
+
xmlDtd *dtd,
|
|
244
210
|
const xmlChar *elem,
|
|
245
211
|
const xmlChar *name,
|
|
246
212
|
const xmlChar *ns,
|
|
247
213
|
xmlAttributeType type,
|
|
248
214
|
xmlAttributeDefault def,
|
|
249
215
|
const xmlChar *defaultValue,
|
|
250
|
-
|
|
216
|
+
xmlEnumeration *tree);
|
|
251
217
|
XML_DEPRECATED
|
|
252
|
-
XMLPUBFUN
|
|
253
|
-
xmlCopyAttributeTable (
|
|
218
|
+
XMLPUBFUN xmlAttributeTable *
|
|
219
|
+
xmlCopyAttributeTable (xmlAttributeTable *table);
|
|
254
220
|
XML_DEPRECATED
|
|
255
221
|
XMLPUBFUN void
|
|
256
|
-
xmlFreeAttributeTable (
|
|
222
|
+
xmlFreeAttributeTable (xmlAttributeTable *table);
|
|
257
223
|
#ifdef LIBXML_OUTPUT_ENABLED
|
|
258
224
|
XML_DEPRECATED
|
|
259
225
|
XMLPUBFUN void
|
|
260
|
-
xmlDumpAttributeTable (
|
|
261
|
-
|
|
226
|
+
xmlDumpAttributeTable (xmlBuffer *buf,
|
|
227
|
+
xmlAttributeTable *table);
|
|
262
228
|
XML_DEPRECATED
|
|
263
229
|
XMLPUBFUN void
|
|
264
|
-
xmlDumpAttributeDecl (
|
|
265
|
-
|
|
230
|
+
xmlDumpAttributeDecl (xmlBuffer *buf,
|
|
231
|
+
xmlAttribute *attr);
|
|
266
232
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
|
267
233
|
|
|
268
234
|
/* IDs */
|
|
269
235
|
XMLPUBFUN int
|
|
270
|
-
xmlAddIDSafe (
|
|
236
|
+
xmlAddIDSafe (xmlAttr *attr,
|
|
271
237
|
const xmlChar *value);
|
|
272
|
-
XMLPUBFUN
|
|
273
|
-
xmlAddID (
|
|
274
|
-
|
|
238
|
+
XMLPUBFUN xmlID *
|
|
239
|
+
xmlAddID (xmlValidCtxt *ctxt,
|
|
240
|
+
xmlDoc *doc,
|
|
275
241
|
const xmlChar *value,
|
|
276
|
-
|
|
242
|
+
xmlAttr *attr);
|
|
277
243
|
XMLPUBFUN void
|
|
278
|
-
xmlFreeIDTable (
|
|
279
|
-
XMLPUBFUN
|
|
280
|
-
xmlGetID (
|
|
244
|
+
xmlFreeIDTable (xmlIDTable *table);
|
|
245
|
+
XMLPUBFUN xmlAttr *
|
|
246
|
+
xmlGetID (xmlDoc *doc,
|
|
281
247
|
const xmlChar *ID);
|
|
282
248
|
XMLPUBFUN int
|
|
283
|
-
xmlIsID (
|
|
284
|
-
|
|
285
|
-
|
|
249
|
+
xmlIsID (xmlDoc *doc,
|
|
250
|
+
xmlNode *elem,
|
|
251
|
+
xmlAttr *attr);
|
|
286
252
|
XMLPUBFUN int
|
|
287
|
-
xmlRemoveID (
|
|
288
|
-
|
|
253
|
+
xmlRemoveID (xmlDoc *doc,
|
|
254
|
+
xmlAttr *attr);
|
|
289
255
|
|
|
290
256
|
/* IDREFs */
|
|
291
257
|
XML_DEPRECATED
|
|
292
|
-
XMLPUBFUN
|
|
293
|
-
xmlAddRef (
|
|
294
|
-
|
|
258
|
+
XMLPUBFUN xmlRef *
|
|
259
|
+
xmlAddRef (xmlValidCtxt *ctxt,
|
|
260
|
+
xmlDoc *doc,
|
|
295
261
|
const xmlChar *value,
|
|
296
|
-
|
|
262
|
+
xmlAttr *attr);
|
|
297
263
|
XML_DEPRECATED
|
|
298
264
|
XMLPUBFUN void
|
|
299
|
-
xmlFreeRefTable (
|
|
265
|
+
xmlFreeRefTable (xmlRefTable *table);
|
|
300
266
|
XML_DEPRECATED
|
|
301
267
|
XMLPUBFUN int
|
|
302
|
-
xmlIsRef (
|
|
303
|
-
|
|
304
|
-
|
|
268
|
+
xmlIsRef (xmlDoc *doc,
|
|
269
|
+
xmlNode *elem,
|
|
270
|
+
xmlAttr *attr);
|
|
305
271
|
XML_DEPRECATED
|
|
306
272
|
XMLPUBFUN int
|
|
307
|
-
xmlRemoveRef (
|
|
308
|
-
|
|
273
|
+
xmlRemoveRef (xmlDoc *doc,
|
|
274
|
+
xmlAttr *attr);
|
|
309
275
|
XML_DEPRECATED
|
|
310
|
-
XMLPUBFUN
|
|
311
|
-
xmlGetRefs (
|
|
276
|
+
XMLPUBFUN xmlList *
|
|
277
|
+
xmlGetRefs (xmlDoc *doc,
|
|
312
278
|
const xmlChar *ID);
|
|
313
279
|
|
|
314
280
|
/**
|
|
@@ -316,114 +282,115 @@ XMLPUBFUN xmlListPtr
|
|
|
316
282
|
*/
|
|
317
283
|
#ifdef LIBXML_VALID_ENABLED
|
|
318
284
|
/* Allocate/Release Validation Contexts */
|
|
319
|
-
XMLPUBFUN
|
|
285
|
+
XMLPUBFUN xmlValidCtxt *
|
|
320
286
|
xmlNewValidCtxt(void);
|
|
321
287
|
XMLPUBFUN void
|
|
322
|
-
xmlFreeValidCtxt(
|
|
288
|
+
xmlFreeValidCtxt(xmlValidCtxt *);
|
|
323
289
|
|
|
324
290
|
XML_DEPRECATED
|
|
325
291
|
XMLPUBFUN int
|
|
326
|
-
xmlValidateRoot (
|
|
327
|
-
|
|
292
|
+
xmlValidateRoot (xmlValidCtxt *ctxt,
|
|
293
|
+
xmlDoc *doc);
|
|
328
294
|
XML_DEPRECATED
|
|
329
295
|
XMLPUBFUN int
|
|
330
|
-
xmlValidateElementDecl (
|
|
331
|
-
|
|
332
|
-
|
|
296
|
+
xmlValidateElementDecl (xmlValidCtxt *ctxt,
|
|
297
|
+
xmlDoc *doc,
|
|
298
|
+
xmlElement *elem);
|
|
333
299
|
XML_DEPRECATED
|
|
334
300
|
XMLPUBFUN xmlChar *
|
|
335
|
-
xmlValidNormalizeAttributeValue(
|
|
336
|
-
|
|
301
|
+
xmlValidNormalizeAttributeValue(xmlDoc *doc,
|
|
302
|
+
xmlNode *elem,
|
|
337
303
|
const xmlChar *name,
|
|
338
304
|
const xmlChar *value);
|
|
339
305
|
XML_DEPRECATED
|
|
340
306
|
XMLPUBFUN xmlChar *
|
|
341
|
-
xmlValidCtxtNormalizeAttributeValue(
|
|
342
|
-
|
|
343
|
-
|
|
307
|
+
xmlValidCtxtNormalizeAttributeValue(xmlValidCtxt *ctxt,
|
|
308
|
+
xmlDoc *doc,
|
|
309
|
+
xmlNode *elem,
|
|
344
310
|
const xmlChar *name,
|
|
345
311
|
const xmlChar *value);
|
|
346
312
|
XML_DEPRECATED
|
|
347
313
|
XMLPUBFUN int
|
|
348
|
-
xmlValidateAttributeDecl(
|
|
349
|
-
|
|
350
|
-
|
|
314
|
+
xmlValidateAttributeDecl(xmlValidCtxt *ctxt,
|
|
315
|
+
xmlDoc *doc,
|
|
316
|
+
xmlAttribute *attr);
|
|
351
317
|
XML_DEPRECATED
|
|
352
318
|
XMLPUBFUN int
|
|
353
319
|
xmlValidateAttributeValue(xmlAttributeType type,
|
|
354
320
|
const xmlChar *value);
|
|
355
321
|
XML_DEPRECATED
|
|
356
322
|
XMLPUBFUN int
|
|
357
|
-
xmlValidateNotationDecl (
|
|
358
|
-
|
|
359
|
-
|
|
323
|
+
xmlValidateNotationDecl (xmlValidCtxt *ctxt,
|
|
324
|
+
xmlDoc *doc,
|
|
325
|
+
xmlNotation *nota);
|
|
360
326
|
XMLPUBFUN int
|
|
361
|
-
xmlValidateDtd (
|
|
362
|
-
|
|
363
|
-
|
|
327
|
+
xmlValidateDtd (xmlValidCtxt *ctxt,
|
|
328
|
+
xmlDoc *doc,
|
|
329
|
+
xmlDtd *dtd);
|
|
364
330
|
XML_DEPRECATED
|
|
365
331
|
XMLPUBFUN int
|
|
366
|
-
xmlValidateDtdFinal (
|
|
367
|
-
|
|
332
|
+
xmlValidateDtdFinal (xmlValidCtxt *ctxt,
|
|
333
|
+
xmlDoc *doc);
|
|
368
334
|
XMLPUBFUN int
|
|
369
|
-
xmlValidateDocument (
|
|
370
|
-
|
|
335
|
+
xmlValidateDocument (xmlValidCtxt *ctxt,
|
|
336
|
+
xmlDoc *doc);
|
|
371
337
|
XMLPUBFUN int
|
|
372
|
-
xmlValidateElement (
|
|
373
|
-
|
|
374
|
-
|
|
338
|
+
xmlValidateElement (xmlValidCtxt *ctxt,
|
|
339
|
+
xmlDoc *doc,
|
|
340
|
+
xmlNode *elem);
|
|
375
341
|
XML_DEPRECATED
|
|
376
342
|
XMLPUBFUN int
|
|
377
|
-
xmlValidateOneElement (
|
|
378
|
-
|
|
379
|
-
|
|
343
|
+
xmlValidateOneElement (xmlValidCtxt *ctxt,
|
|
344
|
+
xmlDoc *doc,
|
|
345
|
+
xmlNode *elem);
|
|
380
346
|
XML_DEPRECATED
|
|
381
347
|
XMLPUBFUN int
|
|
382
|
-
xmlValidateOneAttribute (
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
348
|
+
xmlValidateOneAttribute (xmlValidCtxt *ctxt,
|
|
349
|
+
xmlDoc *doc,
|
|
350
|
+
xmlNode *elem,
|
|
351
|
+
xmlAttr *attr,
|
|
386
352
|
const xmlChar *value);
|
|
387
353
|
XML_DEPRECATED
|
|
388
354
|
XMLPUBFUN int
|
|
389
|
-
xmlValidateOneNamespace (
|
|
390
|
-
|
|
391
|
-
|
|
355
|
+
xmlValidateOneNamespace (xmlValidCtxt *ctxt,
|
|
356
|
+
xmlDoc *doc,
|
|
357
|
+
xmlNode *elem,
|
|
392
358
|
const xmlChar *prefix,
|
|
393
|
-
|
|
359
|
+
xmlNs *ns,
|
|
394
360
|
const xmlChar *value);
|
|
395
361
|
XML_DEPRECATED
|
|
396
362
|
XMLPUBFUN int
|
|
397
|
-
xmlValidateDocumentFinal(
|
|
398
|
-
|
|
363
|
+
xmlValidateDocumentFinal(xmlValidCtxt *ctxt,
|
|
364
|
+
xmlDoc *doc);
|
|
399
365
|
XML_DEPRECATED
|
|
400
366
|
XMLPUBFUN int
|
|
401
|
-
xmlValidateNotationUse (
|
|
402
|
-
|
|
367
|
+
xmlValidateNotationUse (xmlValidCtxt *ctxt,
|
|
368
|
+
xmlDoc *doc,
|
|
403
369
|
const xmlChar *notationName);
|
|
404
370
|
#endif /* LIBXML_VALID_ENABLED */
|
|
405
371
|
|
|
372
|
+
XML_DEPRECATED
|
|
406
373
|
XMLPUBFUN int
|
|
407
|
-
xmlIsMixedElement (
|
|
374
|
+
xmlIsMixedElement (xmlDoc *doc,
|
|
408
375
|
const xmlChar *name);
|
|
409
|
-
XMLPUBFUN
|
|
410
|
-
xmlGetDtdAttrDesc (
|
|
376
|
+
XMLPUBFUN xmlAttribute *
|
|
377
|
+
xmlGetDtdAttrDesc (xmlDtd *dtd,
|
|
411
378
|
const xmlChar *elem,
|
|
412
379
|
const xmlChar *name);
|
|
413
|
-
XMLPUBFUN
|
|
414
|
-
xmlGetDtdQAttrDesc (
|
|
380
|
+
XMLPUBFUN xmlAttribute *
|
|
381
|
+
xmlGetDtdQAttrDesc (xmlDtd *dtd,
|
|
415
382
|
const xmlChar *elem,
|
|
416
383
|
const xmlChar *name,
|
|
417
384
|
const xmlChar *prefix);
|
|
418
|
-
XMLPUBFUN
|
|
419
|
-
xmlGetDtdNotationDesc (
|
|
385
|
+
XMLPUBFUN xmlNotation *
|
|
386
|
+
xmlGetDtdNotationDesc (xmlDtd *dtd,
|
|
420
387
|
const xmlChar *name);
|
|
421
|
-
XMLPUBFUN
|
|
422
|
-
xmlGetDtdQElementDesc (
|
|
388
|
+
XMLPUBFUN xmlElement *
|
|
389
|
+
xmlGetDtdQElementDesc (xmlDtd *dtd,
|
|
423
390
|
const xmlChar *name,
|
|
424
391
|
const xmlChar *prefix);
|
|
425
|
-
XMLPUBFUN
|
|
426
|
-
xmlGetDtdElementDesc (
|
|
392
|
+
XMLPUBFUN xmlElement *
|
|
393
|
+
xmlGetDtdElementDesc (xmlDtd *dtd,
|
|
427
394
|
const xmlChar *name);
|
|
428
395
|
|
|
429
396
|
#ifdef LIBXML_VALID_ENABLED
|
|
@@ -434,6 +401,7 @@ XMLPUBFUN int
|
|
|
434
401
|
int *len,
|
|
435
402
|
int max);
|
|
436
403
|
|
|
404
|
+
/* only needed for `xmllint --insert` */
|
|
437
405
|
XMLPUBFUN int
|
|
438
406
|
xmlValidGetValidElements(xmlNode *prev,
|
|
439
407
|
xmlNode *next,
|
|
@@ -454,28 +422,30 @@ XMLPUBFUN int
|
|
|
454
422
|
*/
|
|
455
423
|
XML_DEPRECATED
|
|
456
424
|
XMLPUBFUN int
|
|
457
|
-
xmlValidBuildContentModel(
|
|
458
|
-
|
|
425
|
+
xmlValidBuildContentModel(xmlValidCtxt *ctxt,
|
|
426
|
+
xmlElement *elem);
|
|
459
427
|
|
|
460
428
|
XML_DEPRECATED
|
|
461
429
|
XMLPUBFUN int
|
|
462
|
-
xmlValidatePushElement (
|
|
463
|
-
|
|
464
|
-
|
|
430
|
+
xmlValidatePushElement (xmlValidCtxt *ctxt,
|
|
431
|
+
xmlDoc *doc,
|
|
432
|
+
xmlNode *elem,
|
|
465
433
|
const xmlChar *qname);
|
|
466
434
|
XML_DEPRECATED
|
|
467
435
|
XMLPUBFUN int
|
|
468
|
-
xmlValidatePushCData (
|
|
436
|
+
xmlValidatePushCData (xmlValidCtxt *ctxt,
|
|
469
437
|
const xmlChar *data,
|
|
470
438
|
int len);
|
|
471
439
|
XML_DEPRECATED
|
|
472
440
|
XMLPUBFUN int
|
|
473
|
-
xmlValidatePopElement (
|
|
474
|
-
|
|
475
|
-
|
|
441
|
+
xmlValidatePopElement (xmlValidCtxt *ctxt,
|
|
442
|
+
xmlDoc *doc,
|
|
443
|
+
xmlNode *elem,
|
|
476
444
|
const xmlChar *qname);
|
|
477
445
|
#endif /* LIBXML_REGEXP_ENABLED */
|
|
446
|
+
|
|
478
447
|
#endif /* LIBXML_VALID_ENABLED */
|
|
448
|
+
|
|
479
449
|
#ifdef __cplusplus
|
|
480
450
|
}
|
|
481
451
|
#endif
|