nokogiri 1.16.7-aarch64-linux → 1.18.3

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.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +11 -21
  3. data/LICENSE-DEPENDENCIES.md +6 -6
  4. data/README.md +8 -5
  5. data/dependencies.yml +6 -6
  6. data/ext/nokogiri/extconf.rb +188 -142
  7. data/ext/nokogiri/gumbo.c +69 -53
  8. data/ext/nokogiri/html4_document.c +10 -4
  9. data/ext/nokogiri/html4_element_description.c +18 -18
  10. data/ext/nokogiri/html4_sax_parser.c +40 -0
  11. data/ext/nokogiri/html4_sax_parser_context.c +48 -58
  12. data/ext/nokogiri/html4_sax_push_parser.c +25 -24
  13. data/ext/nokogiri/libxml2_polyfill.c +114 -0
  14. data/ext/nokogiri/nokogiri.c +9 -2
  15. data/ext/nokogiri/nokogiri.h +18 -33
  16. data/ext/nokogiri/xml_attr.c +1 -1
  17. data/ext/nokogiri/xml_cdata.c +2 -10
  18. data/ext/nokogiri/xml_comment.c +3 -8
  19. data/ext/nokogiri/xml_document.c +163 -156
  20. data/ext/nokogiri/xml_document_fragment.c +10 -25
  21. data/ext/nokogiri/xml_dtd.c +1 -1
  22. data/ext/nokogiri/xml_element_content.c +9 -9
  23. data/ext/nokogiri/xml_encoding_handler.c +4 -4
  24. data/ext/nokogiri/xml_namespace.c +6 -6
  25. data/ext/nokogiri/xml_node.c +141 -104
  26. data/ext/nokogiri/xml_node_set.c +46 -44
  27. data/ext/nokogiri/xml_reader.c +54 -58
  28. data/ext/nokogiri/xml_relax_ng.c +35 -56
  29. data/ext/nokogiri/xml_sax_parser.c +156 -88
  30. data/ext/nokogiri/xml_sax_parser_context.c +219 -131
  31. data/ext/nokogiri/xml_sax_push_parser.c +68 -49
  32. data/ext/nokogiri/xml_schema.c +50 -85
  33. data/ext/nokogiri/xml_syntax_error.c +19 -11
  34. data/ext/nokogiri/xml_text.c +2 -4
  35. data/ext/nokogiri/xml_xpath_context.c +103 -100
  36. data/ext/nokogiri/xslt_stylesheet.c +8 -8
  37. data/gumbo-parser/src/Makefile +34 -0
  38. data/gumbo-parser/src/README.md +41 -0
  39. data/gumbo-parser/src/ascii.c +75 -0
  40. data/gumbo-parser/src/ascii.h +115 -0
  41. data/gumbo-parser/src/attribute.c +42 -0
  42. data/gumbo-parser/src/attribute.h +17 -0
  43. data/gumbo-parser/src/char_ref.c +22225 -0
  44. data/gumbo-parser/src/char_ref.h +29 -0
  45. data/gumbo-parser/src/char_ref.rl +2154 -0
  46. data/gumbo-parser/src/error.c +658 -0
  47. data/gumbo-parser/src/error.h +152 -0
  48. data/gumbo-parser/src/foreign_attrs.c +103 -0
  49. data/gumbo-parser/src/foreign_attrs.gperf +27 -0
  50. data/gumbo-parser/src/insertion_mode.h +33 -0
  51. data/gumbo-parser/src/macros.h +91 -0
  52. data/gumbo-parser/src/nokogiri_gumbo.h +953 -0
  53. data/gumbo-parser/src/parser.c +4932 -0
  54. data/gumbo-parser/src/parser.h +41 -0
  55. data/gumbo-parser/src/replacement.h +33 -0
  56. data/gumbo-parser/src/string_buffer.c +103 -0
  57. data/gumbo-parser/src/string_buffer.h +68 -0
  58. data/gumbo-parser/src/string_piece.c +48 -0
  59. data/gumbo-parser/src/svg_attrs.c +174 -0
  60. data/gumbo-parser/src/svg_attrs.gperf +77 -0
  61. data/gumbo-parser/src/svg_tags.c +137 -0
  62. data/gumbo-parser/src/svg_tags.gperf +55 -0
  63. data/gumbo-parser/src/tag.c +223 -0
  64. data/gumbo-parser/src/tag_lookup.c +382 -0
  65. data/gumbo-parser/src/tag_lookup.gperf +170 -0
  66. data/gumbo-parser/src/tag_lookup.h +13 -0
  67. data/gumbo-parser/src/token_buffer.c +79 -0
  68. data/gumbo-parser/src/token_buffer.h +71 -0
  69. data/gumbo-parser/src/token_type.h +17 -0
  70. data/gumbo-parser/src/tokenizer.c +3464 -0
  71. data/gumbo-parser/src/tokenizer.h +112 -0
  72. data/gumbo-parser/src/tokenizer_states.h +339 -0
  73. data/gumbo-parser/src/utf8.c +245 -0
  74. data/gumbo-parser/src/utf8.h +164 -0
  75. data/gumbo-parser/src/util.c +66 -0
  76. data/gumbo-parser/src/util.h +34 -0
  77. data/gumbo-parser/src/vector.c +111 -0
  78. data/gumbo-parser/src/vector.h +45 -0
  79. data/lib/nokogiri/class_resolver.rb +1 -1
  80. data/lib/nokogiri/css/node.rb +6 -2
  81. data/lib/nokogiri/css/parser.rb +6 -4
  82. data/lib/nokogiri/css/parser.y +2 -2
  83. data/lib/nokogiri/css/parser_extras.rb +6 -66
  84. data/lib/nokogiri/css/selector_cache.rb +38 -0
  85. data/lib/nokogiri/css/tokenizer.rb +4 -4
  86. data/lib/nokogiri/css/tokenizer.rex +9 -8
  87. data/lib/nokogiri/css/xpath_visitor.rb +43 -6
  88. data/lib/nokogiri/css.rb +86 -20
  89. data/lib/nokogiri/decorators/slop.rb +3 -5
  90. data/lib/nokogiri/encoding_handler.rb +2 -2
  91. data/lib/nokogiri/html4/document.rb +44 -23
  92. data/lib/nokogiri/html4/document_fragment.rb +124 -12
  93. data/lib/nokogiri/html4/encoding_reader.rb +1 -1
  94. data/lib/nokogiri/html4/sax/parser.rb +23 -38
  95. data/lib/nokogiri/html4/sax/parser_context.rb +4 -9
  96. data/lib/nokogiri/html4.rb +9 -14
  97. data/lib/nokogiri/html5/builder.rb +40 -0
  98. data/lib/nokogiri/html5/document.rb +61 -30
  99. data/lib/nokogiri/html5/document_fragment.rb +130 -20
  100. data/lib/nokogiri/html5/node.rb +4 -4
  101. data/lib/nokogiri/html5.rb +114 -72
  102. data/lib/nokogiri/version/constant.rb +1 -1
  103. data/lib/nokogiri/xml/builder.rb +8 -1
  104. data/lib/nokogiri/xml/document.rb +70 -26
  105. data/lib/nokogiri/xml/document_fragment.rb +84 -13
  106. data/lib/nokogiri/xml/node.rb +82 -11
  107. data/lib/nokogiri/xml/node_set.rb +9 -7
  108. data/lib/nokogiri/xml/parse_options.rb +1 -1
  109. data/lib/nokogiri/xml/pp/node.rb +6 -1
  110. data/lib/nokogiri/xml/reader.rb +46 -13
  111. data/lib/nokogiri/xml/relax_ng.rb +57 -20
  112. data/lib/nokogiri/xml/sax/document.rb +174 -83
  113. data/lib/nokogiri/xml/sax/parser.rb +115 -41
  114. data/lib/nokogiri/xml/sax/parser_context.rb +116 -8
  115. data/lib/nokogiri/xml/sax/push_parser.rb +3 -0
  116. data/lib/nokogiri/xml/sax.rb +48 -0
  117. data/lib/nokogiri/xml/schema.rb +112 -45
  118. data/lib/nokogiri/xml/searchable.rb +38 -42
  119. data/lib/nokogiri/xml/syntax_error.rb +22 -0
  120. data/lib/nokogiri/xml/xpath_context.rb +14 -3
  121. data/lib/nokogiri/xml.rb +13 -24
  122. data/lib/nokogiri/xslt.rb +3 -9
  123. data/lib/xsd/xmlparser/nokogiri.rb +3 -4
  124. data/patches/libxml2/0001-Remove-script-macro-support.patch +40 -0
  125. data/patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch +44 -0
  126. data/patches/libxml2/0009-allow-wildcard-namespaces.patch +77 -0
  127. data/patches/libxml2/0010-update-config.guess-and-config.sub-for-libxml2.patch +224 -0
  128. data/patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch +30 -0
  129. data/patches/libxml2/0019-xpath-Use-separate-static-hash-table-for-standard-fu.patch +244 -0
  130. data/patches/libxslt/0001-update-config.guess-and-config.sub-for-libxslt.patch +224 -0
  131. data/ports/archives/libxml2-2.13.6.tar.xz +0 -0
  132. data/ports/archives/libxslt-1.1.42.tar.xz +0 -0
  133. metadata +78 -89
  134. data/ext/nokogiri/include/libexslt/exslt.h +0 -108
  135. data/ext/nokogiri/include/libexslt/exsltconfig.h +0 -70
  136. data/ext/nokogiri/include/libexslt/exsltexports.h +0 -63
  137. data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +0 -343
  138. data/ext/nokogiri/include/libxml2/libxml/HTMLtree.h +0 -147
  139. data/ext/nokogiri/include/libxml2/libxml/SAX.h +0 -202
  140. data/ext/nokogiri/include/libxml2/libxml/SAX2.h +0 -171
  141. data/ext/nokogiri/include/libxml2/libxml/c14n.h +0 -126
  142. data/ext/nokogiri/include/libxml2/libxml/catalog.h +0 -182
  143. data/ext/nokogiri/include/libxml2/libxml/chvalid.h +0 -230
  144. data/ext/nokogiri/include/libxml2/libxml/debugXML.h +0 -217
  145. data/ext/nokogiri/include/libxml2/libxml/dict.h +0 -82
  146. data/ext/nokogiri/include/libxml2/libxml/encoding.h +0 -235
  147. data/ext/nokogiri/include/libxml2/libxml/entities.h +0 -155
  148. data/ext/nokogiri/include/libxml2/libxml/globals.h +0 -41
  149. data/ext/nokogiri/include/libxml2/libxml/hash.h +0 -232
  150. data/ext/nokogiri/include/libxml2/libxml/list.h +0 -137
  151. data/ext/nokogiri/include/libxml2/libxml/nanoftp.h +0 -186
  152. data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +0 -81
  153. data/ext/nokogiri/include/libxml2/libxml/parser.h +0 -1384
  154. data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +0 -663
  155. data/ext/nokogiri/include/libxml2/libxml/pattern.h +0 -100
  156. data/ext/nokogiri/include/libxml2/libxml/relaxng.h +0 -219
  157. data/ext/nokogiri/include/libxml2/libxml/schemasInternals.h +0 -959
  158. data/ext/nokogiri/include/libxml2/libxml/schematron.h +0 -143
  159. data/ext/nokogiri/include/libxml2/libxml/threads.h +0 -87
  160. data/ext/nokogiri/include/libxml2/libxml/tree.h +0 -1362
  161. data/ext/nokogiri/include/libxml2/libxml/uri.h +0 -95
  162. data/ext/nokogiri/include/libxml2/libxml/valid.h +0 -450
  163. data/ext/nokogiri/include/libxml2/libxml/xinclude.h +0 -129
  164. data/ext/nokogiri/include/libxml2/libxml/xlink.h +0 -189
  165. data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +0 -421
  166. data/ext/nokogiri/include/libxml2/libxml/xmlautomata.h +0 -146
  167. data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +0 -948
  168. data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +0 -50
  169. data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +0 -225
  170. data/ext/nokogiri/include/libxml2/libxml/xmlmodule.h +0 -57
  171. data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +0 -434
  172. data/ext/nokogiri/include/libxml2/libxml/xmlregexp.h +0 -215
  173. data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +0 -97
  174. data/ext/nokogiri/include/libxml2/libxml/xmlschemas.h +0 -249
  175. data/ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h +0 -152
  176. data/ext/nokogiri/include/libxml2/libxml/xmlstring.h +0 -140
  177. data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +0 -202
  178. data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +0 -511
  179. data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +0 -488
  180. data/ext/nokogiri/include/libxml2/libxml/xpath.h +0 -575
  181. data/ext/nokogiri/include/libxml2/libxml/xpathInternals.h +0 -633
  182. data/ext/nokogiri/include/libxml2/libxml/xpointer.h +0 -138
  183. data/ext/nokogiri/include/libxslt/attributes.h +0 -39
  184. data/ext/nokogiri/include/libxslt/documents.h +0 -93
  185. data/ext/nokogiri/include/libxslt/extensions.h +0 -262
  186. data/ext/nokogiri/include/libxslt/extra.h +0 -72
  187. data/ext/nokogiri/include/libxslt/functions.h +0 -78
  188. data/ext/nokogiri/include/libxslt/imports.h +0 -75
  189. data/ext/nokogiri/include/libxslt/keys.h +0 -53
  190. data/ext/nokogiri/include/libxslt/namespaces.h +0 -68
  191. data/ext/nokogiri/include/libxslt/numbersInternals.h +0 -73
  192. data/ext/nokogiri/include/libxslt/pattern.h +0 -84
  193. data/ext/nokogiri/include/libxslt/preproc.h +0 -43
  194. data/ext/nokogiri/include/libxslt/security.h +0 -104
  195. data/ext/nokogiri/include/libxslt/templates.h +0 -77
  196. data/ext/nokogiri/include/libxslt/transform.h +0 -207
  197. data/ext/nokogiri/include/libxslt/variables.h +0 -118
  198. data/ext/nokogiri/include/libxslt/xslt.h +0 -110
  199. data/ext/nokogiri/include/libxslt/xsltInternals.h +0 -1992
  200. data/ext/nokogiri/include/libxslt/xsltconfig.h +0 -179
  201. data/ext/nokogiri/include/libxslt/xsltexports.h +0 -64
  202. data/ext/nokogiri/include/libxslt/xsltlocale.h +0 -44
  203. data/ext/nokogiri/include/libxslt/xsltutils.h +0 -343
  204. data/ext/nokogiri/libxml2_backwards_compat.c +0 -121
  205. data/lib/nokogiri/3.0/nokogiri.so +0 -0
  206. data/lib/nokogiri/3.1/nokogiri.so +0 -0
  207. data/lib/nokogiri/3.2/nokogiri.so +0 -0
  208. data/lib/nokogiri/3.3/nokogiri.so +0 -0
@@ -1,202 +0,0 @@
1
- /*
2
- * Summary: Old SAX version 1 handler, deprecated
3
- * Description: DEPRECATED set of SAX version 1 interfaces used to
4
- * build the DOM tree.
5
- *
6
- * Copy: See Copyright for the status of this software.
7
- *
8
- * Author: Daniel Veillard
9
- */
10
-
11
-
12
- #ifndef __XML_SAX_H__
13
- #define __XML_SAX_H__
14
-
15
- #include <libxml/xmlversion.h>
16
- #include <libxml/parser.h>
17
-
18
- #ifdef LIBXML_LEGACY_ENABLED
19
-
20
- #ifdef __cplusplus
21
- extern "C" {
22
- #endif
23
- XML_DEPRECATED
24
- XMLPUBFUN const xmlChar *
25
- getPublicId (void *ctx);
26
- XML_DEPRECATED
27
- XMLPUBFUN const xmlChar *
28
- getSystemId (void *ctx);
29
- XML_DEPRECATED
30
- XMLPUBFUN void
31
- setDocumentLocator (void *ctx,
32
- xmlSAXLocatorPtr loc);
33
-
34
- XML_DEPRECATED
35
- XMLPUBFUN int
36
- getLineNumber (void *ctx);
37
- XML_DEPRECATED
38
- XMLPUBFUN int
39
- getColumnNumber (void *ctx);
40
-
41
- XML_DEPRECATED
42
- XMLPUBFUN int
43
- isStandalone (void *ctx);
44
- XML_DEPRECATED
45
- XMLPUBFUN int
46
- hasInternalSubset (void *ctx);
47
- XML_DEPRECATED
48
- XMLPUBFUN int
49
- hasExternalSubset (void *ctx);
50
-
51
- XML_DEPRECATED
52
- XMLPUBFUN void
53
- internalSubset (void *ctx,
54
- const xmlChar *name,
55
- const xmlChar *ExternalID,
56
- const xmlChar *SystemID);
57
- XML_DEPRECATED
58
- XMLPUBFUN void
59
- externalSubset (void *ctx,
60
- const xmlChar *name,
61
- const xmlChar *ExternalID,
62
- const xmlChar *SystemID);
63
- XML_DEPRECATED
64
- XMLPUBFUN xmlEntityPtr
65
- getEntity (void *ctx,
66
- const xmlChar *name);
67
- XML_DEPRECATED
68
- XMLPUBFUN xmlEntityPtr
69
- getParameterEntity (void *ctx,
70
- const xmlChar *name);
71
- XML_DEPRECATED
72
- XMLPUBFUN xmlParserInputPtr
73
- resolveEntity (void *ctx,
74
- const xmlChar *publicId,
75
- const xmlChar *systemId);
76
-
77
- XML_DEPRECATED
78
- XMLPUBFUN void
79
- entityDecl (void *ctx,
80
- const xmlChar *name,
81
- int type,
82
- const xmlChar *publicId,
83
- const xmlChar *systemId,
84
- xmlChar *content);
85
- XML_DEPRECATED
86
- XMLPUBFUN void
87
- attributeDecl (void *ctx,
88
- const xmlChar *elem,
89
- const xmlChar *fullname,
90
- int type,
91
- int def,
92
- const xmlChar *defaultValue,
93
- xmlEnumerationPtr tree);
94
- XML_DEPRECATED
95
- XMLPUBFUN void
96
- elementDecl (void *ctx,
97
- const xmlChar *name,
98
- int type,
99
- xmlElementContentPtr content);
100
- XML_DEPRECATED
101
- XMLPUBFUN void
102
- notationDecl (void *ctx,
103
- const xmlChar *name,
104
- const xmlChar *publicId,
105
- const xmlChar *systemId);
106
- XML_DEPRECATED
107
- XMLPUBFUN void
108
- unparsedEntityDecl (void *ctx,
109
- const xmlChar *name,
110
- const xmlChar *publicId,
111
- const xmlChar *systemId,
112
- const xmlChar *notationName);
113
-
114
- XML_DEPRECATED
115
- XMLPUBFUN void
116
- startDocument (void *ctx);
117
- XML_DEPRECATED
118
- XMLPUBFUN void
119
- endDocument (void *ctx);
120
- XML_DEPRECATED
121
- XMLPUBFUN void
122
- attribute (void *ctx,
123
- const xmlChar *fullname,
124
- const xmlChar *value);
125
- XML_DEPRECATED
126
- XMLPUBFUN void
127
- startElement (void *ctx,
128
- const xmlChar *fullname,
129
- const xmlChar **atts);
130
- XML_DEPRECATED
131
- XMLPUBFUN void
132
- endElement (void *ctx,
133
- const xmlChar *name);
134
- XML_DEPRECATED
135
- XMLPUBFUN void
136
- reference (void *ctx,
137
- const xmlChar *name);
138
- XML_DEPRECATED
139
- XMLPUBFUN void
140
- characters (void *ctx,
141
- const xmlChar *ch,
142
- int len);
143
- XML_DEPRECATED
144
- XMLPUBFUN void
145
- ignorableWhitespace (void *ctx,
146
- const xmlChar *ch,
147
- int len);
148
- XML_DEPRECATED
149
- XMLPUBFUN void
150
- processingInstruction (void *ctx,
151
- const xmlChar *target,
152
- const xmlChar *data);
153
- XML_DEPRECATED
154
- XMLPUBFUN void
155
- globalNamespace (void *ctx,
156
- const xmlChar *href,
157
- const xmlChar *prefix);
158
- XML_DEPRECATED
159
- XMLPUBFUN void
160
- setNamespace (void *ctx,
161
- const xmlChar *name);
162
- XML_DEPRECATED
163
- XMLPUBFUN xmlNsPtr
164
- getNamespace (void *ctx);
165
- XML_DEPRECATED
166
- XMLPUBFUN int
167
- checkNamespace (void *ctx,
168
- xmlChar *nameSpace);
169
- XML_DEPRECATED
170
- XMLPUBFUN void
171
- namespaceDecl (void *ctx,
172
- const xmlChar *href,
173
- const xmlChar *prefix);
174
- XML_DEPRECATED
175
- XMLPUBFUN void
176
- comment (void *ctx,
177
- const xmlChar *value);
178
- XML_DEPRECATED
179
- XMLPUBFUN void
180
- cdataBlock (void *ctx,
181
- const xmlChar *value,
182
- int len);
183
-
184
- #ifdef LIBXML_SAX1_ENABLED
185
- XML_DEPRECATED
186
- XMLPUBFUN void
187
- initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
188
- int warning);
189
- #ifdef LIBXML_HTML_ENABLED
190
- XML_DEPRECATED
191
- XMLPUBFUN void
192
- inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
193
- #endif
194
- #endif /* LIBXML_SAX1_ENABLED */
195
-
196
- #ifdef __cplusplus
197
- }
198
- #endif
199
-
200
- #endif /* LIBXML_LEGACY_ENABLED */
201
-
202
- #endif /* __XML_SAX_H__ */
@@ -1,171 +0,0 @@
1
- /*
2
- * Summary: SAX2 parser interface used to build the DOM tree
3
- * Description: those are the default SAX2 interfaces used by
4
- * the library when building DOM tree.
5
- *
6
- * Copy: See Copyright for the status of this software.
7
- *
8
- * Author: Daniel Veillard
9
- */
10
-
11
-
12
- #ifndef __XML_SAX2_H__
13
- #define __XML_SAX2_H__
14
-
15
- #include <libxml/xmlversion.h>
16
- #include <libxml/parser.h>
17
-
18
- #ifdef __cplusplus
19
- extern "C" {
20
- #endif
21
- XMLPUBFUN const xmlChar *
22
- xmlSAX2GetPublicId (void *ctx);
23
- XMLPUBFUN const xmlChar *
24
- xmlSAX2GetSystemId (void *ctx);
25
- XMLPUBFUN void
26
- xmlSAX2SetDocumentLocator (void *ctx,
27
- xmlSAXLocatorPtr loc);
28
-
29
- XMLPUBFUN int
30
- xmlSAX2GetLineNumber (void *ctx);
31
- XMLPUBFUN int
32
- xmlSAX2GetColumnNumber (void *ctx);
33
-
34
- XMLPUBFUN int
35
- xmlSAX2IsStandalone (void *ctx);
36
- XMLPUBFUN int
37
- xmlSAX2HasInternalSubset (void *ctx);
38
- XMLPUBFUN int
39
- xmlSAX2HasExternalSubset (void *ctx);
40
-
41
- XMLPUBFUN void
42
- xmlSAX2InternalSubset (void *ctx,
43
- const xmlChar *name,
44
- const xmlChar *ExternalID,
45
- const xmlChar *SystemID);
46
- XMLPUBFUN void
47
- xmlSAX2ExternalSubset (void *ctx,
48
- const xmlChar *name,
49
- const xmlChar *ExternalID,
50
- const xmlChar *SystemID);
51
- XMLPUBFUN xmlEntityPtr
52
- xmlSAX2GetEntity (void *ctx,
53
- const xmlChar *name);
54
- XMLPUBFUN xmlEntityPtr
55
- xmlSAX2GetParameterEntity (void *ctx,
56
- const xmlChar *name);
57
- XMLPUBFUN xmlParserInputPtr
58
- xmlSAX2ResolveEntity (void *ctx,
59
- const xmlChar *publicId,
60
- const xmlChar *systemId);
61
-
62
- XMLPUBFUN void
63
- xmlSAX2EntityDecl (void *ctx,
64
- const xmlChar *name,
65
- int type,
66
- const xmlChar *publicId,
67
- const xmlChar *systemId,
68
- xmlChar *content);
69
- XMLPUBFUN void
70
- xmlSAX2AttributeDecl (void *ctx,
71
- const xmlChar *elem,
72
- const xmlChar *fullname,
73
- int type,
74
- int def,
75
- const xmlChar *defaultValue,
76
- xmlEnumerationPtr tree);
77
- XMLPUBFUN void
78
- xmlSAX2ElementDecl (void *ctx,
79
- const xmlChar *name,
80
- int type,
81
- xmlElementContentPtr content);
82
- XMLPUBFUN void
83
- xmlSAX2NotationDecl (void *ctx,
84
- const xmlChar *name,
85
- const xmlChar *publicId,
86
- const xmlChar *systemId);
87
- XMLPUBFUN void
88
- xmlSAX2UnparsedEntityDecl (void *ctx,
89
- const xmlChar *name,
90
- const xmlChar *publicId,
91
- const xmlChar *systemId,
92
- const xmlChar *notationName);
93
-
94
- XMLPUBFUN void
95
- xmlSAX2StartDocument (void *ctx);
96
- XMLPUBFUN void
97
- xmlSAX2EndDocument (void *ctx);
98
- #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
99
- defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_LEGACY_ENABLED)
100
- XMLPUBFUN void
101
- xmlSAX2StartElement (void *ctx,
102
- const xmlChar *fullname,
103
- const xmlChar **atts);
104
- XMLPUBFUN void
105
- xmlSAX2EndElement (void *ctx,
106
- const xmlChar *name);
107
- #endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED or LIBXML_LEGACY_ENABLED */
108
- XMLPUBFUN void
109
- xmlSAX2StartElementNs (void *ctx,
110
- const xmlChar *localname,
111
- const xmlChar *prefix,
112
- const xmlChar *URI,
113
- int nb_namespaces,
114
- const xmlChar **namespaces,
115
- int nb_attributes,
116
- int nb_defaulted,
117
- const xmlChar **attributes);
118
- XMLPUBFUN void
119
- xmlSAX2EndElementNs (void *ctx,
120
- const xmlChar *localname,
121
- const xmlChar *prefix,
122
- const xmlChar *URI);
123
- XMLPUBFUN void
124
- xmlSAX2Reference (void *ctx,
125
- const xmlChar *name);
126
- XMLPUBFUN void
127
- xmlSAX2Characters (void *ctx,
128
- const xmlChar *ch,
129
- int len);
130
- XMLPUBFUN void
131
- xmlSAX2IgnorableWhitespace (void *ctx,
132
- const xmlChar *ch,
133
- int len);
134
- XMLPUBFUN void
135
- xmlSAX2ProcessingInstruction (void *ctx,
136
- const xmlChar *target,
137
- const xmlChar *data);
138
- XMLPUBFUN void
139
- xmlSAX2Comment (void *ctx,
140
- const xmlChar *value);
141
- XMLPUBFUN void
142
- xmlSAX2CDataBlock (void *ctx,
143
- const xmlChar *value,
144
- int len);
145
-
146
- #ifdef LIBXML_SAX1_ENABLED
147
- XML_DEPRECATED
148
- XMLPUBFUN int
149
- xmlSAXDefaultVersion (int version);
150
- #endif /* LIBXML_SAX1_ENABLED */
151
-
152
- XMLPUBFUN int
153
- xmlSAXVersion (xmlSAXHandler *hdlr,
154
- int version);
155
- XMLPUBFUN void
156
- xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr,
157
- int warning);
158
- #ifdef LIBXML_HTML_ENABLED
159
- XMLPUBFUN void
160
- xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
161
- XML_DEPRECATED
162
- XMLPUBFUN void
163
- htmlDefaultSAXHandlerInit (void);
164
- #endif
165
- XML_DEPRECATED
166
- XMLPUBFUN void
167
- xmlDefaultSAXHandlerInit (void);
168
- #ifdef __cplusplus
169
- }
170
- #endif
171
- #endif /* __XML_SAX2_H__ */
@@ -1,126 +0,0 @@
1
- /*
2
- * Summary: Provide Canonical XML and Exclusive XML Canonicalization
3
- * Description: the c14n modules provides a
4
- *
5
- * "Canonical XML" implementation
6
- * http://www.w3.org/TR/xml-c14n
7
- *
8
- * and an
9
- *
10
- * "Exclusive XML Canonicalization" implementation
11
- * http://www.w3.org/TR/xml-exc-c14n
12
-
13
- * Copy: See Copyright for the status of this software.
14
- *
15
- * Author: Aleksey Sanin <aleksey@aleksey.com>
16
- */
17
- #ifndef __XML_C14N_H__
18
- #define __XML_C14N_H__
19
-
20
- #include <libxml/xmlversion.h>
21
-
22
- #ifdef LIBXML_C14N_ENABLED
23
-
24
- #include <libxml/tree.h>
25
- #include <libxml/xpath.h>
26
-
27
- #ifdef __cplusplus
28
- extern "C" {
29
- #endif /* __cplusplus */
30
-
31
- /*
32
- * XML Canonicalization
33
- * http://www.w3.org/TR/xml-c14n
34
- *
35
- * Exclusive XML Canonicalization
36
- * http://www.w3.org/TR/xml-exc-c14n
37
- *
38
- * Canonical form of an XML document could be created if and only if
39
- * a) default attributes (if any) are added to all nodes
40
- * b) all character and parsed entity references are resolved
41
- * In order to achieve this in libxml2 the document MUST be loaded with
42
- * following global settings:
43
- *
44
- * xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
45
- * xmlSubstituteEntitiesDefault(1);
46
- *
47
- * or corresponding parser context setting:
48
- * xmlParserCtxtPtr ctxt;
49
- *
50
- * ...
51
- * ctxt->loadsubset = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
52
- * ctxt->replaceEntities = 1;
53
- * ...
54
- */
55
-
56
- /*
57
- * xmlC14NMode:
58
- *
59
- * Predefined values for C14N modes
60
- *
61
- */
62
- typedef enum {
63
- XML_C14N_1_0 = 0, /* Original C14N 1.0 spec */
64
- XML_C14N_EXCLUSIVE_1_0 = 1, /* Exclusive C14N 1.0 spec */
65
- XML_C14N_1_1 = 2 /* C14N 1.1 spec */
66
- } xmlC14NMode;
67
-
68
- XMLPUBFUN int
69
- xmlC14NDocSaveTo (xmlDocPtr doc,
70
- xmlNodeSetPtr nodes,
71
- int mode, /* a xmlC14NMode */
72
- xmlChar **inclusive_ns_prefixes,
73
- int with_comments,
74
- xmlOutputBufferPtr buf);
75
-
76
- XMLPUBFUN int
77
- xmlC14NDocDumpMemory (xmlDocPtr doc,
78
- xmlNodeSetPtr nodes,
79
- int mode, /* a xmlC14NMode */
80
- xmlChar **inclusive_ns_prefixes,
81
- int with_comments,
82
- xmlChar **doc_txt_ptr);
83
-
84
- XMLPUBFUN int
85
- xmlC14NDocSave (xmlDocPtr doc,
86
- xmlNodeSetPtr nodes,
87
- int mode, /* a xmlC14NMode */
88
- xmlChar **inclusive_ns_prefixes,
89
- int with_comments,
90
- const char* filename,
91
- int compression);
92
-
93
-
94
- /**
95
- * This is the core C14N function
96
- */
97
- /**
98
- * xmlC14NIsVisibleCallback:
99
- * @user_data: user data
100
- * @node: the current node
101
- * @parent: the parent node
102
- *
103
- * Signature for a C14N callback on visible nodes
104
- *
105
- * Returns 1 if the node should be included
106
- */
107
- typedef int (*xmlC14NIsVisibleCallback) (void* user_data,
108
- xmlNodePtr node,
109
- xmlNodePtr parent);
110
-
111
- XMLPUBFUN int
112
- xmlC14NExecute (xmlDocPtr doc,
113
- xmlC14NIsVisibleCallback is_visible_callback,
114
- void* user_data,
115
- int mode, /* a xmlC14NMode */
116
- xmlChar **inclusive_ns_prefixes,
117
- int with_comments,
118
- xmlOutputBufferPtr buf);
119
-
120
- #ifdef __cplusplus
121
- }
122
- #endif /* __cplusplus */
123
-
124
- #endif /* LIBXML_C14N_ENABLED */
125
- #endif /* __XML_C14N_H__ */
126
-
@@ -1,182 +0,0 @@
1
- /**
2
- * Summary: interfaces to the Catalog handling system
3
- * Description: the catalog module implements the support for
4
- * XML Catalogs and SGML catalogs
5
- *
6
- * SGML Open Technical Resolution TR9401:1997.
7
- * http://www.jclark.com/sp/catalog.htm
8
- *
9
- * XML Catalogs Working Draft 06 August 2001
10
- * http://www.oasis-open.org/committees/entity/spec-2001-08-06.html
11
- *
12
- * Copy: See Copyright for the status of this software.
13
- *
14
- * Author: Daniel Veillard
15
- */
16
-
17
- #ifndef __XML_CATALOG_H__
18
- #define __XML_CATALOG_H__
19
-
20
- #include <stdio.h>
21
-
22
- #include <libxml/xmlversion.h>
23
- #include <libxml/xmlstring.h>
24
- #include <libxml/tree.h>
25
-
26
- #ifdef LIBXML_CATALOG_ENABLED
27
-
28
- #ifdef __cplusplus
29
- extern "C" {
30
- #endif
31
-
32
- /**
33
- * XML_CATALOGS_NAMESPACE:
34
- *
35
- * The namespace for the XML Catalogs elements.
36
- */
37
- #define XML_CATALOGS_NAMESPACE \
38
- (const xmlChar *) "urn:oasis:names:tc:entity:xmlns:xml:catalog"
39
- /**
40
- * XML_CATALOG_PI:
41
- *
42
- * The specific XML Catalog Processing Instruction name.
43
- */
44
- #define XML_CATALOG_PI \
45
- (const xmlChar *) "oasis-xml-catalog"
46
-
47
- /*
48
- * The API is voluntarily limited to general cataloging.
49
- */
50
- typedef enum {
51
- XML_CATA_PREFER_NONE = 0,
52
- XML_CATA_PREFER_PUBLIC = 1,
53
- XML_CATA_PREFER_SYSTEM
54
- } xmlCatalogPrefer;
55
-
56
- typedef enum {
57
- XML_CATA_ALLOW_NONE = 0,
58
- XML_CATA_ALLOW_GLOBAL = 1,
59
- XML_CATA_ALLOW_DOCUMENT = 2,
60
- XML_CATA_ALLOW_ALL = 3
61
- } xmlCatalogAllow;
62
-
63
- typedef struct _xmlCatalog xmlCatalog;
64
- typedef xmlCatalog *xmlCatalogPtr;
65
-
66
- /*
67
- * Operations on a given catalog.
68
- */
69
- XMLPUBFUN xmlCatalogPtr
70
- xmlNewCatalog (int sgml);
71
- XMLPUBFUN xmlCatalogPtr
72
- xmlLoadACatalog (const char *filename);
73
- XMLPUBFUN xmlCatalogPtr
74
- xmlLoadSGMLSuperCatalog (const char *filename);
75
- XMLPUBFUN int
76
- xmlConvertSGMLCatalog (xmlCatalogPtr catal);
77
- XMLPUBFUN int
78
- xmlACatalogAdd (xmlCatalogPtr catal,
79
- const xmlChar *type,
80
- const xmlChar *orig,
81
- const xmlChar *replace);
82
- XMLPUBFUN int
83
- xmlACatalogRemove (xmlCatalogPtr catal,
84
- const xmlChar *value);
85
- XMLPUBFUN xmlChar *
86
- xmlACatalogResolve (xmlCatalogPtr catal,
87
- const xmlChar *pubID,
88
- const xmlChar *sysID);
89
- XMLPUBFUN xmlChar *
90
- xmlACatalogResolveSystem(xmlCatalogPtr catal,
91
- const xmlChar *sysID);
92
- XMLPUBFUN xmlChar *
93
- xmlACatalogResolvePublic(xmlCatalogPtr catal,
94
- const xmlChar *pubID);
95
- XMLPUBFUN xmlChar *
96
- xmlACatalogResolveURI (xmlCatalogPtr catal,
97
- const xmlChar *URI);
98
- #ifdef LIBXML_OUTPUT_ENABLED
99
- XMLPUBFUN void
100
- xmlACatalogDump (xmlCatalogPtr catal,
101
- FILE *out);
102
- #endif /* LIBXML_OUTPUT_ENABLED */
103
- XMLPUBFUN void
104
- xmlFreeCatalog (xmlCatalogPtr catal);
105
- XMLPUBFUN int
106
- xmlCatalogIsEmpty (xmlCatalogPtr catal);
107
-
108
- /*
109
- * Global operations.
110
- */
111
- XMLPUBFUN void
112
- xmlInitializeCatalog (void);
113
- XMLPUBFUN int
114
- xmlLoadCatalog (const char *filename);
115
- XMLPUBFUN void
116
- xmlLoadCatalogs (const char *paths);
117
- XMLPUBFUN void
118
- xmlCatalogCleanup (void);
119
- #ifdef LIBXML_OUTPUT_ENABLED
120
- XMLPUBFUN void
121
- xmlCatalogDump (FILE *out);
122
- #endif /* LIBXML_OUTPUT_ENABLED */
123
- XMLPUBFUN xmlChar *
124
- xmlCatalogResolve (const xmlChar *pubID,
125
- const xmlChar *sysID);
126
- XMLPUBFUN xmlChar *
127
- xmlCatalogResolveSystem (const xmlChar *sysID);
128
- XMLPUBFUN xmlChar *
129
- xmlCatalogResolvePublic (const xmlChar *pubID);
130
- XMLPUBFUN xmlChar *
131
- xmlCatalogResolveURI (const xmlChar *URI);
132
- XMLPUBFUN int
133
- xmlCatalogAdd (const xmlChar *type,
134
- const xmlChar *orig,
135
- const xmlChar *replace);
136
- XMLPUBFUN int
137
- xmlCatalogRemove (const xmlChar *value);
138
- XMLPUBFUN xmlDocPtr
139
- xmlParseCatalogFile (const char *filename);
140
- XMLPUBFUN int
141
- xmlCatalogConvert (void);
142
-
143
- /*
144
- * Strictly minimal interfaces for per-document catalogs used
145
- * by the parser.
146
- */
147
- XMLPUBFUN void
148
- xmlCatalogFreeLocal (void *catalogs);
149
- XMLPUBFUN void *
150
- xmlCatalogAddLocal (void *catalogs,
151
- const xmlChar *URL);
152
- XMLPUBFUN xmlChar *
153
- xmlCatalogLocalResolve (void *catalogs,
154
- const xmlChar *pubID,
155
- const xmlChar *sysID);
156
- XMLPUBFUN xmlChar *
157
- xmlCatalogLocalResolveURI(void *catalogs,
158
- const xmlChar *URI);
159
- /*
160
- * Preference settings.
161
- */
162
- XMLPUBFUN int
163
- xmlCatalogSetDebug (int level);
164
- XMLPUBFUN xmlCatalogPrefer
165
- xmlCatalogSetDefaultPrefer(xmlCatalogPrefer prefer);
166
- XMLPUBFUN void
167
- xmlCatalogSetDefaults (xmlCatalogAllow allow);
168
- XMLPUBFUN xmlCatalogAllow
169
- xmlCatalogGetDefaults (void);
170
-
171
-
172
- /* DEPRECATED interfaces */
173
- XMLPUBFUN const xmlChar *
174
- xmlCatalogGetSystem (const xmlChar *sysID);
175
- XMLPUBFUN const xmlChar *
176
- xmlCatalogGetPublic (const xmlChar *pubID);
177
-
178
- #ifdef __cplusplus
179
- }
180
- #endif
181
- #endif /* LIBXML_CATALOG_ENABLED */
182
- #endif /* __XML_CATALOG_H__ */