lxml 6.0.0__cp39-cp39-musllinux_1_2_armv7l.whl
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.
- lxml/ElementInclude.py +244 -0
- lxml/__init__.py +22 -0
- lxml/_elementpath.cpython-39-arm-linux-gnueabihf.so +0 -0
- lxml/_elementpath.py +343 -0
- lxml/apihelpers.pxi +1801 -0
- lxml/builder.cpython-39-arm-linux-gnueabihf.so +0 -0
- lxml/builder.py +243 -0
- lxml/classlookup.pxi +580 -0
- lxml/cleanup.pxi +215 -0
- lxml/cssselect.py +101 -0
- lxml/debug.pxi +36 -0
- lxml/docloader.pxi +178 -0
- lxml/doctestcompare.py +488 -0
- lxml/dtd.pxi +479 -0
- lxml/etree.cpython-39-arm-linux-gnueabihf.so +0 -0
- lxml/etree.h +244 -0
- lxml/etree.pyx +3853 -0
- lxml/etree_api.h +204 -0
- lxml/extensions.pxi +830 -0
- lxml/html/ElementSoup.py +10 -0
- lxml/html/__init__.py +1927 -0
- lxml/html/_diffcommand.py +86 -0
- lxml/html/_difflib.cpython-39-arm-linux-gnueabihf.so +0 -0
- lxml/html/_difflib.py +2106 -0
- lxml/html/_html5builder.py +100 -0
- lxml/html/_setmixin.py +56 -0
- lxml/html/builder.py +173 -0
- lxml/html/clean.py +21 -0
- lxml/html/defs.py +135 -0
- lxml/html/diff.cpython-39-arm-linux-gnueabihf.so +0 -0
- lxml/html/diff.py +972 -0
- lxml/html/formfill.py +299 -0
- lxml/html/html5parser.py +260 -0
- lxml/html/soupparser.py +314 -0
- lxml/html/usedoctest.py +13 -0
- lxml/includes/__init__.pxd +0 -0
- lxml/includes/__init__.py +0 -0
- lxml/includes/c14n.pxd +25 -0
- lxml/includes/config.pxd +3 -0
- lxml/includes/dtdvalid.pxd +18 -0
- lxml/includes/etree_defs.h +379 -0
- lxml/includes/etreepublic.pxd +237 -0
- lxml/includes/extlibs/__init__.py +0 -0
- lxml/includes/extlibs/libcharset.h +45 -0
- lxml/includes/extlibs/localcharset.h +137 -0
- lxml/includes/extlibs/zconf.h +543 -0
- lxml/includes/extlibs/zlib.h +1938 -0
- lxml/includes/htmlparser.pxd +56 -0
- lxml/includes/libexslt/__init__.py +0 -0
- lxml/includes/libexslt/exslt.h +108 -0
- lxml/includes/libexslt/exsltconfig.h +70 -0
- lxml/includes/libexslt/exsltexports.h +63 -0
- lxml/includes/libxml/HTMLparser.h +339 -0
- lxml/includes/libxml/HTMLtree.h +148 -0
- lxml/includes/libxml/SAX.h +18 -0
- lxml/includes/libxml/SAX2.h +170 -0
- lxml/includes/libxml/__init__.py +0 -0
- lxml/includes/libxml/c14n.h +115 -0
- lxml/includes/libxml/catalog.h +183 -0
- lxml/includes/libxml/chvalid.h +230 -0
- lxml/includes/libxml/debugXML.h +79 -0
- lxml/includes/libxml/dict.h +82 -0
- lxml/includes/libxml/encoding.h +307 -0
- lxml/includes/libxml/entities.h +147 -0
- lxml/includes/libxml/globals.h +25 -0
- lxml/includes/libxml/hash.h +251 -0
- lxml/includes/libxml/list.h +137 -0
- lxml/includes/libxml/nanoftp.h +16 -0
- lxml/includes/libxml/nanohttp.h +98 -0
- lxml/includes/libxml/parser.h +1633 -0
- lxml/includes/libxml/parserInternals.h +591 -0
- lxml/includes/libxml/relaxng.h +224 -0
- lxml/includes/libxml/schemasInternals.h +959 -0
- lxml/includes/libxml/schematron.h +143 -0
- lxml/includes/libxml/threads.h +81 -0
- lxml/includes/libxml/tree.h +1326 -0
- lxml/includes/libxml/uri.h +106 -0
- lxml/includes/libxml/valid.h +485 -0
- lxml/includes/libxml/xinclude.h +141 -0
- lxml/includes/libxml/xlink.h +193 -0
- lxml/includes/libxml/xmlIO.h +419 -0
- lxml/includes/libxml/xmlautomata.h +163 -0
- lxml/includes/libxml/xmlerror.h +962 -0
- lxml/includes/libxml/xmlexports.h +96 -0
- lxml/includes/libxml/xmlmemory.h +188 -0
- lxml/includes/libxml/xmlmodule.h +61 -0
- lxml/includes/libxml/xmlreader.h +444 -0
- lxml/includes/libxml/xmlregexp.h +116 -0
- lxml/includes/libxml/xmlsave.h +111 -0
- lxml/includes/libxml/xmlschemas.h +254 -0
- lxml/includes/libxml/xmlschemastypes.h +152 -0
- lxml/includes/libxml/xmlstring.h +140 -0
- lxml/includes/libxml/xmlunicode.h +15 -0
- lxml/includes/libxml/xmlversion.h +332 -0
- lxml/includes/libxml/xmlwriter.h +489 -0
- lxml/includes/libxml/xpath.h +569 -0
- lxml/includes/libxml/xpathInternals.h +639 -0
- lxml/includes/libxml/xpointer.h +48 -0
- lxml/includes/libxslt/__init__.py +0 -0
- lxml/includes/libxslt/attributes.h +39 -0
- lxml/includes/libxslt/documents.h +93 -0
- lxml/includes/libxslt/extensions.h +262 -0
- lxml/includes/libxslt/extra.h +72 -0
- lxml/includes/libxslt/functions.h +78 -0
- lxml/includes/libxslt/imports.h +75 -0
- lxml/includes/libxslt/keys.h +53 -0
- lxml/includes/libxslt/namespaces.h +68 -0
- lxml/includes/libxslt/numbersInternals.h +73 -0
- lxml/includes/libxslt/pattern.h +84 -0
- lxml/includes/libxslt/preproc.h +43 -0
- lxml/includes/libxslt/security.h +104 -0
- lxml/includes/libxslt/templates.h +77 -0
- lxml/includes/libxslt/transform.h +207 -0
- lxml/includes/libxslt/variables.h +118 -0
- lxml/includes/libxslt/xslt.h +110 -0
- lxml/includes/libxslt/xsltInternals.h +1995 -0
- lxml/includes/libxslt/xsltconfig.h +146 -0
- lxml/includes/libxslt/xsltexports.h +64 -0
- lxml/includes/libxslt/xsltlocale.h +44 -0
- lxml/includes/libxslt/xsltutils.h +343 -0
- lxml/includes/lxml-version.h +3 -0
- lxml/includes/relaxng.pxd +64 -0
- lxml/includes/schematron.pxd +34 -0
- lxml/includes/tree.pxd +492 -0
- lxml/includes/uri.pxd +5 -0
- lxml/includes/xinclude.pxd +22 -0
- lxml/includes/xmlerror.pxd +852 -0
- lxml/includes/xmlparser.pxd +303 -0
- lxml/includes/xmlschema.pxd +35 -0
- lxml/includes/xpath.pxd +136 -0
- lxml/includes/xslt.pxd +190 -0
- lxml/isoschematron/__init__.py +348 -0
- lxml/isoschematron/resources/rng/iso-schematron.rng +709 -0
- lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -0
- lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl +77 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +313 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1160 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt +84 -0
- lxml/iterparse.pxi +438 -0
- lxml/lxml.etree.h +244 -0
- lxml/lxml.etree_api.h +204 -0
- lxml/nsclasses.pxi +281 -0
- lxml/objectify.cpython-39-arm-linux-gnueabihf.so +0 -0
- lxml/objectify.pyx +2149 -0
- lxml/objectpath.pxi +332 -0
- lxml/parser.pxi +2059 -0
- lxml/parsertarget.pxi +180 -0
- lxml/proxy.pxi +619 -0
- lxml/public-api.pxi +178 -0
- lxml/pyclasslookup.py +3 -0
- lxml/readonlytree.pxi +565 -0
- lxml/relaxng.pxi +165 -0
- lxml/sax.cpython-39-arm-linux-gnueabihf.so +0 -0
- lxml/sax.py +286 -0
- lxml/saxparser.pxi +875 -0
- lxml/schematron.pxi +173 -0
- lxml/serializer.pxi +1849 -0
- lxml/usedoctest.py +13 -0
- lxml/xinclude.pxi +67 -0
- lxml/xmlerror.pxi +1654 -0
- lxml/xmlid.pxi +179 -0
- lxml/xmlschema.pxi +215 -0
- lxml/xpath.pxi +487 -0
- lxml/xslt.pxi +957 -0
- lxml/xsltext.pxi +242 -0
- lxml-6.0.0.dist-info/METADATA +163 -0
- lxml-6.0.0.dist-info/RECORD +174 -0
- lxml-6.0.0.dist-info/WHEEL +5 -0
- lxml-6.0.0.dist-info/licenses/LICENSE.txt +31 -0
- lxml-6.0.0.dist-info/licenses/LICENSES.txt +29 -0
- lxml-6.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,224 @@
|
|
1
|
+
/*
|
2
|
+
* Summary: implementation of the Relax-NG validation
|
3
|
+
* Description: implementation of the Relax-NG validation
|
4
|
+
*
|
5
|
+
* Copy: See Copyright for the status of this software.
|
6
|
+
*
|
7
|
+
* Author: Daniel Veillard
|
8
|
+
*/
|
9
|
+
|
10
|
+
#ifndef __XML_RELAX_NG__
|
11
|
+
#define __XML_RELAX_NG__
|
12
|
+
|
13
|
+
#include <libxml/xmlversion.h>
|
14
|
+
#include <libxml/xmlerror.h>
|
15
|
+
#include <libxml/xmlstring.h>
|
16
|
+
#include <libxml/tree.h>
|
17
|
+
#include <libxml/parser.h>
|
18
|
+
|
19
|
+
#ifdef LIBXML_RELAXNG_ENABLED
|
20
|
+
|
21
|
+
#ifdef __cplusplus
|
22
|
+
extern "C" {
|
23
|
+
#endif
|
24
|
+
|
25
|
+
typedef struct _xmlRelaxNG xmlRelaxNG;
|
26
|
+
typedef xmlRelaxNG *xmlRelaxNGPtr;
|
27
|
+
|
28
|
+
|
29
|
+
/**
|
30
|
+
* xmlRelaxNGValidityErrorFunc:
|
31
|
+
* @ctx: the validation context
|
32
|
+
* @msg: the message
|
33
|
+
* @...: extra arguments
|
34
|
+
*
|
35
|
+
* Signature of an error callback from a Relax-NG validation
|
36
|
+
*/
|
37
|
+
typedef void (*xmlRelaxNGValidityErrorFunc) (void *ctx,
|
38
|
+
const char *msg,
|
39
|
+
...) LIBXML_ATTR_FORMAT(2,3);
|
40
|
+
|
41
|
+
/**
|
42
|
+
* xmlRelaxNGValidityWarningFunc:
|
43
|
+
* @ctx: the validation context
|
44
|
+
* @msg: the message
|
45
|
+
* @...: extra arguments
|
46
|
+
*
|
47
|
+
* Signature of a warning callback from a Relax-NG validation
|
48
|
+
*/
|
49
|
+
typedef void (*xmlRelaxNGValidityWarningFunc) (void *ctx,
|
50
|
+
const char *msg,
|
51
|
+
...) LIBXML_ATTR_FORMAT(2,3);
|
52
|
+
|
53
|
+
/**
|
54
|
+
* A schemas validation context
|
55
|
+
*/
|
56
|
+
typedef struct _xmlRelaxNGParserCtxt xmlRelaxNGParserCtxt;
|
57
|
+
typedef xmlRelaxNGParserCtxt *xmlRelaxNGParserCtxtPtr;
|
58
|
+
|
59
|
+
typedef struct _xmlRelaxNGValidCtxt xmlRelaxNGValidCtxt;
|
60
|
+
typedef xmlRelaxNGValidCtxt *xmlRelaxNGValidCtxtPtr;
|
61
|
+
|
62
|
+
/*
|
63
|
+
* xmlRelaxNGValidErr:
|
64
|
+
*
|
65
|
+
* List of possible Relax NG validation errors
|
66
|
+
*/
|
67
|
+
typedef enum {
|
68
|
+
XML_RELAXNG_OK = 0,
|
69
|
+
XML_RELAXNG_ERR_MEMORY,
|
70
|
+
XML_RELAXNG_ERR_TYPE,
|
71
|
+
XML_RELAXNG_ERR_TYPEVAL,
|
72
|
+
XML_RELAXNG_ERR_DUPID,
|
73
|
+
XML_RELAXNG_ERR_TYPECMP,
|
74
|
+
XML_RELAXNG_ERR_NOSTATE,
|
75
|
+
XML_RELAXNG_ERR_NODEFINE,
|
76
|
+
XML_RELAXNG_ERR_LISTEXTRA,
|
77
|
+
XML_RELAXNG_ERR_LISTEMPTY,
|
78
|
+
XML_RELAXNG_ERR_INTERNODATA,
|
79
|
+
XML_RELAXNG_ERR_INTERSEQ,
|
80
|
+
XML_RELAXNG_ERR_INTEREXTRA,
|
81
|
+
XML_RELAXNG_ERR_ELEMNAME,
|
82
|
+
XML_RELAXNG_ERR_ATTRNAME,
|
83
|
+
XML_RELAXNG_ERR_ELEMNONS,
|
84
|
+
XML_RELAXNG_ERR_ATTRNONS,
|
85
|
+
XML_RELAXNG_ERR_ELEMWRONGNS,
|
86
|
+
XML_RELAXNG_ERR_ATTRWRONGNS,
|
87
|
+
XML_RELAXNG_ERR_ELEMEXTRANS,
|
88
|
+
XML_RELAXNG_ERR_ATTREXTRANS,
|
89
|
+
XML_RELAXNG_ERR_ELEMNOTEMPTY,
|
90
|
+
XML_RELAXNG_ERR_NOELEM,
|
91
|
+
XML_RELAXNG_ERR_NOTELEM,
|
92
|
+
XML_RELAXNG_ERR_ATTRVALID,
|
93
|
+
XML_RELAXNG_ERR_CONTENTVALID,
|
94
|
+
XML_RELAXNG_ERR_EXTRACONTENT,
|
95
|
+
XML_RELAXNG_ERR_INVALIDATTR,
|
96
|
+
XML_RELAXNG_ERR_DATAELEM,
|
97
|
+
XML_RELAXNG_ERR_VALELEM,
|
98
|
+
XML_RELAXNG_ERR_LISTELEM,
|
99
|
+
XML_RELAXNG_ERR_DATATYPE,
|
100
|
+
XML_RELAXNG_ERR_VALUE,
|
101
|
+
XML_RELAXNG_ERR_LIST,
|
102
|
+
XML_RELAXNG_ERR_NOGRAMMAR,
|
103
|
+
XML_RELAXNG_ERR_EXTRADATA,
|
104
|
+
XML_RELAXNG_ERR_LACKDATA,
|
105
|
+
XML_RELAXNG_ERR_INTERNAL,
|
106
|
+
XML_RELAXNG_ERR_ELEMWRONG,
|
107
|
+
XML_RELAXNG_ERR_TEXTWRONG
|
108
|
+
} xmlRelaxNGValidErr;
|
109
|
+
|
110
|
+
/*
|
111
|
+
* xmlRelaxNGParserFlags:
|
112
|
+
*
|
113
|
+
* List of possible Relax NG Parser flags
|
114
|
+
*/
|
115
|
+
typedef enum {
|
116
|
+
XML_RELAXNGP_NONE = 0,
|
117
|
+
XML_RELAXNGP_FREE_DOC = 1,
|
118
|
+
XML_RELAXNGP_CRNG = 2
|
119
|
+
} xmlRelaxNGParserFlag;
|
120
|
+
|
121
|
+
XMLPUBFUN int
|
122
|
+
xmlRelaxNGInitTypes (void);
|
123
|
+
XML_DEPRECATED
|
124
|
+
XMLPUBFUN void
|
125
|
+
xmlRelaxNGCleanupTypes (void);
|
126
|
+
|
127
|
+
/*
|
128
|
+
* Interfaces for parsing.
|
129
|
+
*/
|
130
|
+
XMLPUBFUN xmlRelaxNGParserCtxtPtr
|
131
|
+
xmlRelaxNGNewParserCtxt (const char *URL);
|
132
|
+
XMLPUBFUN xmlRelaxNGParserCtxtPtr
|
133
|
+
xmlRelaxNGNewMemParserCtxt (const char *buffer,
|
134
|
+
int size);
|
135
|
+
XMLPUBFUN xmlRelaxNGParserCtxtPtr
|
136
|
+
xmlRelaxNGNewDocParserCtxt (xmlDocPtr doc);
|
137
|
+
|
138
|
+
XMLPUBFUN int
|
139
|
+
xmlRelaxParserSetFlag (xmlRelaxNGParserCtxtPtr ctxt,
|
140
|
+
int flag);
|
141
|
+
|
142
|
+
XMLPUBFUN void
|
143
|
+
xmlRelaxNGFreeParserCtxt (xmlRelaxNGParserCtxtPtr ctxt);
|
144
|
+
XMLPUBFUN void
|
145
|
+
xmlRelaxNGSetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
|
146
|
+
xmlRelaxNGValidityErrorFunc err,
|
147
|
+
xmlRelaxNGValidityWarningFunc warn,
|
148
|
+
void *ctx);
|
149
|
+
XMLPUBFUN int
|
150
|
+
xmlRelaxNGGetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
|
151
|
+
xmlRelaxNGValidityErrorFunc *err,
|
152
|
+
xmlRelaxNGValidityWarningFunc *warn,
|
153
|
+
void **ctx);
|
154
|
+
XMLPUBFUN void
|
155
|
+
xmlRelaxNGSetParserStructuredErrors(
|
156
|
+
xmlRelaxNGParserCtxtPtr ctxt,
|
157
|
+
xmlStructuredErrorFunc serror,
|
158
|
+
void *ctx);
|
159
|
+
XMLPUBFUN void
|
160
|
+
xmlRelaxNGSetResourceLoader (xmlRelaxNGParserCtxtPtr ctxt,
|
161
|
+
xmlResourceLoader loader,
|
162
|
+
void *vctxt);
|
163
|
+
XMLPUBFUN xmlRelaxNGPtr
|
164
|
+
xmlRelaxNGParse (xmlRelaxNGParserCtxtPtr ctxt);
|
165
|
+
XMLPUBFUN void
|
166
|
+
xmlRelaxNGFree (xmlRelaxNGPtr schema);
|
167
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
168
|
+
XMLPUBFUN void
|
169
|
+
xmlRelaxNGDump (FILE *output,
|
170
|
+
xmlRelaxNGPtr schema);
|
171
|
+
XMLPUBFUN void
|
172
|
+
xmlRelaxNGDumpTree (FILE * output,
|
173
|
+
xmlRelaxNGPtr schema);
|
174
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
175
|
+
/*
|
176
|
+
* Interfaces for validating
|
177
|
+
*/
|
178
|
+
XMLPUBFUN void
|
179
|
+
xmlRelaxNGSetValidErrors(xmlRelaxNGValidCtxtPtr ctxt,
|
180
|
+
xmlRelaxNGValidityErrorFunc err,
|
181
|
+
xmlRelaxNGValidityWarningFunc warn,
|
182
|
+
void *ctx);
|
183
|
+
XMLPUBFUN int
|
184
|
+
xmlRelaxNGGetValidErrors(xmlRelaxNGValidCtxtPtr ctxt,
|
185
|
+
xmlRelaxNGValidityErrorFunc *err,
|
186
|
+
xmlRelaxNGValidityWarningFunc *warn,
|
187
|
+
void **ctx);
|
188
|
+
XMLPUBFUN void
|
189
|
+
xmlRelaxNGSetValidStructuredErrors(xmlRelaxNGValidCtxtPtr ctxt,
|
190
|
+
xmlStructuredErrorFunc serror, void *ctx);
|
191
|
+
XMLPUBFUN xmlRelaxNGValidCtxtPtr
|
192
|
+
xmlRelaxNGNewValidCtxt (xmlRelaxNGPtr schema);
|
193
|
+
XMLPUBFUN void
|
194
|
+
xmlRelaxNGFreeValidCtxt (xmlRelaxNGValidCtxtPtr ctxt);
|
195
|
+
XMLPUBFUN int
|
196
|
+
xmlRelaxNGValidateDoc (xmlRelaxNGValidCtxtPtr ctxt,
|
197
|
+
xmlDocPtr doc);
|
198
|
+
/*
|
199
|
+
* Interfaces for progressive validation when possible
|
200
|
+
*/
|
201
|
+
XMLPUBFUN int
|
202
|
+
xmlRelaxNGValidatePushElement (xmlRelaxNGValidCtxtPtr ctxt,
|
203
|
+
xmlDocPtr doc,
|
204
|
+
xmlNodePtr elem);
|
205
|
+
XMLPUBFUN int
|
206
|
+
xmlRelaxNGValidatePushCData (xmlRelaxNGValidCtxtPtr ctxt,
|
207
|
+
const xmlChar *data,
|
208
|
+
int len);
|
209
|
+
XMLPUBFUN int
|
210
|
+
xmlRelaxNGValidatePopElement (xmlRelaxNGValidCtxtPtr ctxt,
|
211
|
+
xmlDocPtr doc,
|
212
|
+
xmlNodePtr elem);
|
213
|
+
XMLPUBFUN int
|
214
|
+
xmlRelaxNGValidateFullElement (xmlRelaxNGValidCtxtPtr ctxt,
|
215
|
+
xmlDocPtr doc,
|
216
|
+
xmlNodePtr elem);
|
217
|
+
|
218
|
+
#ifdef __cplusplus
|
219
|
+
}
|
220
|
+
#endif
|
221
|
+
|
222
|
+
#endif /* LIBXML_RELAXNG_ENABLED */
|
223
|
+
|
224
|
+
#endif /* __XML_RELAX_NG__ */
|