nokogiri-backupify 1.5.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. data/.autotest +26 -0
  2. data/CHANGELOG.ja.rdoc +509 -0
  3. data/CHANGELOG.rdoc +490 -0
  4. data/Manifest.txt +274 -0
  5. data/README.ja.rdoc +106 -0
  6. data/README.rdoc +150 -0
  7. data/Rakefile +217 -0
  8. data/bin/nokogiri +54 -0
  9. data/deps.rip +5 -0
  10. data/ext/java/nokogiri/EncodingHandler.java +124 -0
  11. data/ext/java/nokogiri/HtmlDocument.java +146 -0
  12. data/ext/java/nokogiri/HtmlElementDescription.java +145 -0
  13. data/ext/java/nokogiri/HtmlEntityLookup.java +79 -0
  14. data/ext/java/nokogiri/HtmlSaxParserContext.java +256 -0
  15. data/ext/java/nokogiri/NokogiriService.java +466 -0
  16. data/ext/java/nokogiri/XmlAttr.java +183 -0
  17. data/ext/java/nokogiri/XmlAttributeDecl.java +130 -0
  18. data/ext/java/nokogiri/XmlCdata.java +89 -0
  19. data/ext/java/nokogiri/XmlComment.java +84 -0
  20. data/ext/java/nokogiri/XmlDocument.java +514 -0
  21. data/ext/java/nokogiri/XmlDocumentFragment.java +216 -0
  22. data/ext/java/nokogiri/XmlDtd.java +464 -0
  23. data/ext/java/nokogiri/XmlElement.java +221 -0
  24. data/ext/java/nokogiri/XmlElementContent.java +382 -0
  25. data/ext/java/nokogiri/XmlElementDecl.java +147 -0
  26. data/ext/java/nokogiri/XmlEntityDecl.java +161 -0
  27. data/ext/java/nokogiri/XmlEntityReference.java +75 -0
  28. data/ext/java/nokogiri/XmlNamespace.java +127 -0
  29. data/ext/java/nokogiri/XmlNode.java +1392 -0
  30. data/ext/java/nokogiri/XmlNodeSet.java +284 -0
  31. data/ext/java/nokogiri/XmlProcessingInstruction.java +103 -0
  32. data/ext/java/nokogiri/XmlReader.java +409 -0
  33. data/ext/java/nokogiri/XmlRelaxng.java +199 -0
  34. data/ext/java/nokogiri/XmlSaxParserContext.java +353 -0
  35. data/ext/java/nokogiri/XmlSaxPushParser.java +182 -0
  36. data/ext/java/nokogiri/XmlSchema.java +175 -0
  37. data/ext/java/nokogiri/XmlSyntaxError.java +114 -0
  38. data/ext/java/nokogiri/XmlText.java +135 -0
  39. data/ext/java/nokogiri/XmlXpathContext.java +175 -0
  40. data/ext/java/nokogiri/XsltStylesheet.java +181 -0
  41. data/ext/java/nokogiri/internals/HtmlDomParserContext.java +205 -0
  42. data/ext/java/nokogiri/internals/NokogiriDocumentCache.java +73 -0
  43. data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +80 -0
  44. data/ext/java/nokogiri/internals/NokogiriHandler.java +326 -0
  45. data/ext/java/nokogiri/internals/NokogiriHelpers.java +583 -0
  46. data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +170 -0
  47. data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +118 -0
  48. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +73 -0
  49. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +121 -0
  50. data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +78 -0
  51. data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +120 -0
  52. data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +56 -0
  53. data/ext/java/nokogiri/internals/ParserContext.java +278 -0
  54. data/ext/java/nokogiri/internals/PushInputStream.java +411 -0
  55. data/ext/java/nokogiri/internals/ReaderNode.java +473 -0
  56. data/ext/java/nokogiri/internals/SaveContext.java +282 -0
  57. data/ext/java/nokogiri/internals/SchemaErrorHandler.java +68 -0
  58. data/ext/java/nokogiri/internals/XmlDeclHandler.java +42 -0
  59. data/ext/java/nokogiri/internals/XmlDomParser.java +77 -0
  60. data/ext/java/nokogiri/internals/XmlDomParserContext.java +233 -0
  61. data/ext/java/nokogiri/internals/XmlSaxParser.java +65 -0
  62. data/ext/java/nokogiri/internals/XsltExtensionFunction.java +72 -0
  63. data/ext/nokogiri/depend +358 -0
  64. data/ext/nokogiri/extconf.rb +124 -0
  65. data/ext/nokogiri/html_document.c +154 -0
  66. data/ext/nokogiri/html_document.h +10 -0
  67. data/ext/nokogiri/html_element_description.c +276 -0
  68. data/ext/nokogiri/html_element_description.h +10 -0
  69. data/ext/nokogiri/html_entity_lookup.c +32 -0
  70. data/ext/nokogiri/html_entity_lookup.h +8 -0
  71. data/ext/nokogiri/html_sax_parser_context.c +94 -0
  72. data/ext/nokogiri/html_sax_parser_context.h +11 -0
  73. data/ext/nokogiri/nokogiri.c +92 -0
  74. data/ext/nokogiri/nokogiri.h +160 -0
  75. data/ext/nokogiri/xml_attr.c +94 -0
  76. data/ext/nokogiri/xml_attr.h +9 -0
  77. data/ext/nokogiri/xml_attribute_decl.c +70 -0
  78. data/ext/nokogiri/xml_attribute_decl.h +9 -0
  79. data/ext/nokogiri/xml_cdata.c +56 -0
  80. data/ext/nokogiri/xml_cdata.h +9 -0
  81. data/ext/nokogiri/xml_comment.c +54 -0
  82. data/ext/nokogiri/xml_comment.h +9 -0
  83. data/ext/nokogiri/xml_document.c +478 -0
  84. data/ext/nokogiri/xml_document.h +23 -0
  85. data/ext/nokogiri/xml_document_fragment.c +48 -0
  86. data/ext/nokogiri/xml_document_fragment.h +10 -0
  87. data/ext/nokogiri/xml_dtd.c +202 -0
  88. data/ext/nokogiri/xml_dtd.h +10 -0
  89. data/ext/nokogiri/xml_element_content.c +123 -0
  90. data/ext/nokogiri/xml_element_content.h +10 -0
  91. data/ext/nokogiri/xml_element_decl.c +69 -0
  92. data/ext/nokogiri/xml_element_decl.h +9 -0
  93. data/ext/nokogiri/xml_encoding_handler.c +79 -0
  94. data/ext/nokogiri/xml_encoding_handler.h +8 -0
  95. data/ext/nokogiri/xml_entity_decl.c +110 -0
  96. data/ext/nokogiri/xml_entity_decl.h +10 -0
  97. data/ext/nokogiri/xml_entity_reference.c +52 -0
  98. data/ext/nokogiri/xml_entity_reference.h +9 -0
  99. data/ext/nokogiri/xml_io.c +31 -0
  100. data/ext/nokogiri/xml_io.h +11 -0
  101. data/ext/nokogiri/xml_libxml2_hacks.c +112 -0
  102. data/ext/nokogiri/xml_libxml2_hacks.h +12 -0
  103. data/ext/nokogiri/xml_namespace.c +84 -0
  104. data/ext/nokogiri/xml_namespace.h +13 -0
  105. data/ext/nokogiri/xml_node.c +1384 -0
  106. data/ext/nokogiri/xml_node.h +13 -0
  107. data/ext/nokogiri/xml_node_set.c +418 -0
  108. data/ext/nokogiri/xml_node_set.h +9 -0
  109. data/ext/nokogiri/xml_processing_instruction.c +56 -0
  110. data/ext/nokogiri/xml_processing_instruction.h +9 -0
  111. data/ext/nokogiri/xml_reader.c +684 -0
  112. data/ext/nokogiri/xml_reader.h +10 -0
  113. data/ext/nokogiri/xml_relax_ng.c +161 -0
  114. data/ext/nokogiri/xml_relax_ng.h +9 -0
  115. data/ext/nokogiri/xml_sax_parser.c +288 -0
  116. data/ext/nokogiri/xml_sax_parser.h +39 -0
  117. data/ext/nokogiri/xml_sax_parser_context.c +199 -0
  118. data/ext/nokogiri/xml_sax_parser_context.h +10 -0
  119. data/ext/nokogiri/xml_sax_push_parser.c +115 -0
  120. data/ext/nokogiri/xml_sax_push_parser.h +9 -0
  121. data/ext/nokogiri/xml_schema.c +205 -0
  122. data/ext/nokogiri/xml_schema.h +9 -0
  123. data/ext/nokogiri/xml_syntax_error.c +58 -0
  124. data/ext/nokogiri/xml_syntax_error.h +13 -0
  125. data/ext/nokogiri/xml_text.c +50 -0
  126. data/ext/nokogiri/xml_text.h +9 -0
  127. data/ext/nokogiri/xml_xpath_context.c +309 -0
  128. data/ext/nokogiri/xml_xpath_context.h +9 -0
  129. data/ext/nokogiri/xslt_stylesheet.c +258 -0
  130. data/ext/nokogiri/xslt_stylesheet.h +9 -0
  131. data/lib/isorelax.jar +0 -0
  132. data/lib/jing.jar +0 -0
  133. data/lib/nekodtd.jar +0 -0
  134. data/lib/nekohtml.jar +0 -0
  135. data/lib/nokogiri.rb +143 -0
  136. data/lib/nokogiri/css.rb +23 -0
  137. data/lib/nokogiri/css/node.rb +99 -0
  138. data/lib/nokogiri/css/parser.rb +677 -0
  139. data/lib/nokogiri/css/parser.y +237 -0
  140. data/lib/nokogiri/css/parser_extras.rb +91 -0
  141. data/lib/nokogiri/css/syntax_error.rb +7 -0
  142. data/lib/nokogiri/css/tokenizer.rb +152 -0
  143. data/lib/nokogiri/css/tokenizer.rex +55 -0
  144. data/lib/nokogiri/css/xpath_visitor.rb +171 -0
  145. data/lib/nokogiri/decorators/slop.rb +35 -0
  146. data/lib/nokogiri/html.rb +36 -0
  147. data/lib/nokogiri/html/builder.rb +35 -0
  148. data/lib/nokogiri/html/document.rb +221 -0
  149. data/lib/nokogiri/html/document_fragment.rb +41 -0
  150. data/lib/nokogiri/html/element_description.rb +23 -0
  151. data/lib/nokogiri/html/element_description_defaults.rb +671 -0
  152. data/lib/nokogiri/html/entity_lookup.rb +13 -0
  153. data/lib/nokogiri/html/sax/parser.rb +52 -0
  154. data/lib/nokogiri/html/sax/parser_context.rb +16 -0
  155. data/lib/nokogiri/syntax_error.rb +4 -0
  156. data/lib/nokogiri/version.rb +35 -0
  157. data/lib/nokogiri/xml.rb +67 -0
  158. data/lib/nokogiri/xml/attr.rb +14 -0
  159. data/lib/nokogiri/xml/attribute_decl.rb +18 -0
  160. data/lib/nokogiri/xml/builder.rb +418 -0
  161. data/lib/nokogiri/xml/cdata.rb +11 -0
  162. data/lib/nokogiri/xml/character_data.rb +7 -0
  163. data/lib/nokogiri/xml/document.rb +218 -0
  164. data/lib/nokogiri/xml/document_fragment.rb +84 -0
  165. data/lib/nokogiri/xml/dtd.rb +22 -0
  166. data/lib/nokogiri/xml/element_content.rb +36 -0
  167. data/lib/nokogiri/xml/element_decl.rb +13 -0
  168. data/lib/nokogiri/xml/entity_decl.rb +19 -0
  169. data/lib/nokogiri/xml/namespace.rb +13 -0
  170. data/lib/nokogiri/xml/node.rb +907 -0
  171. data/lib/nokogiri/xml/node/save_options.rb +45 -0
  172. data/lib/nokogiri/xml/node_set.rb +350 -0
  173. data/lib/nokogiri/xml/notation.rb +6 -0
  174. data/lib/nokogiri/xml/parse_options.rb +85 -0
  175. data/lib/nokogiri/xml/pp.rb +2 -0
  176. data/lib/nokogiri/xml/pp/character_data.rb +18 -0
  177. data/lib/nokogiri/xml/pp/node.rb +56 -0
  178. data/lib/nokogiri/xml/processing_instruction.rb +8 -0
  179. data/lib/nokogiri/xml/reader.rb +112 -0
  180. data/lib/nokogiri/xml/relax_ng.rb +32 -0
  181. data/lib/nokogiri/xml/sax.rb +4 -0
  182. data/lib/nokogiri/xml/sax/document.rb +164 -0
  183. data/lib/nokogiri/xml/sax/parser.rb +115 -0
  184. data/lib/nokogiri/xml/sax/parser_context.rb +16 -0
  185. data/lib/nokogiri/xml/sax/push_parser.rb +60 -0
  186. data/lib/nokogiri/xml/schema.rb +57 -0
  187. data/lib/nokogiri/xml/syntax_error.rb +47 -0
  188. data/lib/nokogiri/xml/text.rb +9 -0
  189. data/lib/nokogiri/xml/xpath.rb +10 -0
  190. data/lib/nokogiri/xml/xpath/syntax_error.rb +11 -0
  191. data/lib/nokogiri/xml/xpath_context.rb +16 -0
  192. data/lib/nokogiri/xslt.rb +52 -0
  193. data/lib/nokogiri/xslt/stylesheet.rb +25 -0
  194. data/lib/xercesImpl.jar +0 -0
  195. data/lib/xsd/xmlparser/nokogiri.rb +90 -0
  196. data/tasks/cross_compile.rb +177 -0
  197. data/tasks/test.rb +94 -0
  198. data/test/css/test_nthiness.rb +159 -0
  199. data/test/css/test_parser.rb +303 -0
  200. data/test/css/test_tokenizer.rb +198 -0
  201. data/test/css/test_xpath_visitor.rb +85 -0
  202. data/test/decorators/test_slop.rb +16 -0
  203. data/test/files/2ch.html +108 -0
  204. data/test/files/address_book.rlx +12 -0
  205. data/test/files/address_book.xml +10 -0
  206. data/test/files/bar/bar.xsd +4 -0
  207. data/test/files/dont_hurt_em_why.xml +422 -0
  208. data/test/files/exslt.xml +8 -0
  209. data/test/files/exslt.xslt +35 -0
  210. data/test/files/foo/foo.xsd +4 -0
  211. data/test/files/po.xml +32 -0
  212. data/test/files/po.xsd +66 -0
  213. data/test/files/shift_jis.html +10 -0
  214. data/test/files/shift_jis.xml +5 -0
  215. data/test/files/snuggles.xml +3 -0
  216. data/test/files/staff.dtd +10 -0
  217. data/test/files/staff.xml +59 -0
  218. data/test/files/staff.xslt +32 -0
  219. data/test/files/tlm.html +850 -0
  220. data/test/files/valid_bar.xml +2 -0
  221. data/test/helper.rb +171 -0
  222. data/test/html/sax/test_parser.rb +136 -0
  223. data/test/html/sax/test_parser_context.rb +48 -0
  224. data/test/html/test_builder.rb +164 -0
  225. data/test/html/test_document.rb +457 -0
  226. data/test/html/test_document_encoding.rb +123 -0
  227. data/test/html/test_document_fragment.rb +255 -0
  228. data/test/html/test_element_description.rb +100 -0
  229. data/test/html/test_named_characters.rb +14 -0
  230. data/test/html/test_node.rb +190 -0
  231. data/test/html/test_node_encoding.rb +27 -0
  232. data/test/test_convert_xpath.rb +135 -0
  233. data/test/test_css_cache.rb +45 -0
  234. data/test/test_encoding_handler.rb +46 -0
  235. data/test/test_memory_leak.rb +52 -0
  236. data/test/test_nokogiri.rb +132 -0
  237. data/test/test_reader.rb +403 -0
  238. data/test/test_soap4r_sax.rb +52 -0
  239. data/test/test_xslt_transforms.rb +189 -0
  240. data/test/xml/node/test_save_options.rb +20 -0
  241. data/test/xml/node/test_subclass.rb +44 -0
  242. data/test/xml/sax/test_parser.rb +338 -0
  243. data/test/xml/sax/test_parser_context.rb +113 -0
  244. data/test/xml/sax/test_push_parser.rb +156 -0
  245. data/test/xml/test_attr.rb +65 -0
  246. data/test/xml/test_attribute_decl.rb +86 -0
  247. data/test/xml/test_builder.rb +210 -0
  248. data/test/xml/test_cdata.rb +50 -0
  249. data/test/xml/test_comment.rb +29 -0
  250. data/test/xml/test_document.rb +675 -0
  251. data/test/xml/test_document_encoding.rb +26 -0
  252. data/test/xml/test_document_fragment.rb +192 -0
  253. data/test/xml/test_dtd.rb +107 -0
  254. data/test/xml/test_dtd_encoding.rb +33 -0
  255. data/test/xml/test_element_content.rb +56 -0
  256. data/test/xml/test_element_decl.rb +73 -0
  257. data/test/xml/test_entity_decl.rb +122 -0
  258. data/test/xml/test_entity_reference.rb +21 -0
  259. data/test/xml/test_namespace.rb +70 -0
  260. data/test/xml/test_node.rb +899 -0
  261. data/test/xml/test_node_attributes.rb +34 -0
  262. data/test/xml/test_node_encoding.rb +107 -0
  263. data/test/xml/test_node_reparenting.rb +321 -0
  264. data/test/xml/test_node_set.rb +708 -0
  265. data/test/xml/test_parse_options.rb +52 -0
  266. data/test/xml/test_processing_instruction.rb +30 -0
  267. data/test/xml/test_reader_encoding.rb +126 -0
  268. data/test/xml/test_relax_ng.rb +60 -0
  269. data/test/xml/test_schema.rb +89 -0
  270. data/test/xml/test_syntax_error.rb +12 -0
  271. data/test/xml/test_text.rb +47 -0
  272. data/test/xml/test_unparented_node.rb +381 -0
  273. data/test/xml/test_xpath.rb +237 -0
  274. data/test/xslt/test_custom_functions.rb +94 -0
  275. metadata +525 -0
@@ -0,0 +1,233 @@
1
+ /**
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008 - 2010:
5
+ *
6
+ * * {Aaron Patterson}[http://tenderlovemaking.com]
7
+ * * {Mike Dalessio}[http://mike.daless.io]
8
+ * * {Charles Nutter}[http://blog.headius.com]
9
+ * * {Sergio Arbeo}[http://www.serabe.com]
10
+ * * {Patrick Mahoney}[http://polycrystal.org]
11
+ * * {Yoko Harada}[http://yokolet.blogspot.com]
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * 'Software'), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+
33
+ package nokogiri.internals;
34
+
35
+ import static nokogiri.internals.NokogiriHelpers.getNokogiriClass;
36
+ import static nokogiri.internals.NokogiriHelpers.rubyStringToString;
37
+
38
+ import java.io.ByteArrayInputStream;
39
+ import java.io.IOException;
40
+ import java.util.ArrayList;
41
+ import java.util.List;
42
+
43
+ import nokogiri.XmlDocument;
44
+ import nokogiri.XmlSyntaxError;
45
+
46
+ import org.apache.xerces.parsers.DOMParser;
47
+ import org.jruby.Ruby;
48
+ import org.jruby.RubyArray;
49
+ import org.jruby.RubyClass;
50
+ import org.jruby.exceptions.RaiseException;
51
+ import org.jruby.runtime.ThreadContext;
52
+ import org.jruby.runtime.builtin.IRubyObject;
53
+ import org.w3c.dom.Document;
54
+ import org.w3c.dom.Node;
55
+ import org.w3c.dom.NodeList;
56
+ import org.xml.sax.EntityResolver;
57
+ import org.xml.sax.InputSource;
58
+ import org.xml.sax.SAXException;
59
+
60
+ /**
61
+ * Parser class for XML DOM processing. This class actually parses XML document
62
+ * and creates DOM tree in Java side. However, DOM tree in Ruby side is not since
63
+ * we delay creating objects for performance.
64
+ *
65
+ * @author sergio
66
+ */
67
+ public class XmlDomParserContext extends ParserContext {
68
+ protected static final String FEATURE_LOAD_EXTERNAL_DTD =
69
+ "http://apache.org/xml/features/nonvalidating/load-external-dtd";
70
+ protected static final String FEATURE_INCLUDE_IGNORABLE_WHITESPACE =
71
+ "http://apache.org/xml/features/dom/include-ignorable-whitespace";
72
+ protected static final String FEATURE_VALIDATION = "http://xml.org/sax/features/validation";
73
+
74
+ protected ParserContext.Options options;
75
+ protected DOMParser parser;
76
+ protected NokogiriErrorHandler errorHandler;
77
+ protected String java_encoding;
78
+ protected IRubyObject ruby_encoding;
79
+
80
+ public XmlDomParserContext(Ruby runtime, IRubyObject options) {
81
+ this(runtime, runtime.getNil(), options);
82
+ }
83
+
84
+ public XmlDomParserContext(Ruby runtime, IRubyObject encoding, IRubyObject options) {
85
+ super(runtime);
86
+ this.options = new ParserContext.Options((Long)options.toJava(Long.class));
87
+ this.java_encoding = encoding.isNil() ? NokogiriHelpers.guessEncoding(runtime) : rubyStringToString(encoding);
88
+ ruby_encoding = encoding;
89
+ initErrorHandler();
90
+ initParser(runtime);
91
+ }
92
+
93
+ protected void initErrorHandler() {
94
+ if (options.recover) {
95
+ errorHandler = new NokogiriNonStrictErrorHandler(options.noError, options.noWarning);
96
+ } else {
97
+ errorHandler = new NokogiriStrictErrorHandler(options.noError, options.noWarning);
98
+ }
99
+ }
100
+
101
+ protected void initParser(Ruby runtime) {
102
+ parser = new XmlDomParser();
103
+ parser.setErrorHandler(errorHandler);
104
+
105
+ if (options.noBlanks) {
106
+ setFeature(FEATURE_INCLUDE_IGNORABLE_WHITESPACE, false);
107
+ }
108
+
109
+ if (options.dtdValid) {
110
+ setFeature(FEATURE_VALIDATION, true);
111
+ }
112
+ // If we turn off loading of external DTDs complete, we don't
113
+ // getthe publicID. Instead of turning off completely, we use
114
+ // an entity resolver that returns empty documents.
115
+ if (options.dtdLoad) {
116
+ setFeature(FEATURE_LOAD_EXTERNAL_DTD, true);
117
+ parser.setEntityResolver(new ChdirEntityResolver(runtime));
118
+ } else {
119
+ parser.setEntityResolver(new EntityResolver() {
120
+ public InputSource resolveEntity(String arg0, String arg1)
121
+ throws SAXException, IOException {
122
+ ByteArrayInputStream empty =
123
+ new ByteArrayInputStream(new byte[0]);
124
+ return new InputSource(empty);
125
+ }
126
+ });
127
+ }
128
+ }
129
+
130
+ /**
131
+ * Convenience method that catches and ignores SAXException
132
+ * (unrecognized and unsupported exceptions).
133
+ */
134
+ protected void setFeature(String feature, boolean value) {
135
+ try {
136
+ parser.setFeature(feature, value);
137
+ } catch (SAXException e) {
138
+ // ignore
139
+ }
140
+ }
141
+
142
+ /**
143
+ * Convenience method that catches and ignores SAXException
144
+ * (unrecognized and unsupported exceptions).
145
+ */
146
+ protected void setProperty(String property, Object value) {
147
+ try {
148
+ parser.setProperty(property, value);
149
+ } catch (SAXException e) {
150
+ // ignore
151
+ }
152
+ }
153
+
154
+ public void addErrorsIfNecessary(ThreadContext context, XmlDocument doc) {
155
+ Ruby ruby = context.getRuntime();
156
+ RubyArray errors = ruby.newArray(errorHandler.getErrorsReadyForRuby(context));
157
+ doc.setInstanceVariable("@errors", errors);
158
+ }
159
+
160
+ public XmlDocument getDocumentWithErrorsOrRaiseException(ThreadContext context, Exception ex) {
161
+ if (options.recover) {
162
+ XmlDocument doc = this.getNewEmptyDocument(context);
163
+ this.addErrorsIfNecessary(context, doc);
164
+ ((RubyArray) doc.getInstanceVariable("@errors")).append(new XmlSyntaxError(context.getRuntime(), ex));
165
+ return doc;
166
+ } else {
167
+ throw new RaiseException(new XmlSyntaxError(context.getRuntime(), ex));
168
+ }
169
+ }
170
+
171
+ protected XmlDocument getNewEmptyDocument(ThreadContext context) {
172
+ IRubyObject[] args = new IRubyObject[0];
173
+ return (XmlDocument) XmlDocument.rbNew(context,
174
+ getNokogiriClass(context.getRuntime(), "Nokogiri::XML::Document"),
175
+ args);
176
+ }
177
+
178
+ /**
179
+ * This method is broken out so that HtmlDomParserContext can
180
+ * override it.
181
+ */
182
+ protected XmlDocument wrapDocument(ThreadContext context,
183
+ RubyClass klass,
184
+ Document doc) {
185
+ XmlDocument xmlDocument = new XmlDocument(context.getRuntime(), klass, doc);
186
+ xmlDocument.setEncoding(ruby_encoding);
187
+ return xmlDocument;
188
+ }
189
+
190
+ /**
191
+ * Must call setInputSource() before this method.
192
+ */
193
+ public XmlDocument parse(ThreadContext context,
194
+ IRubyObject klass,
195
+ IRubyObject url) {
196
+ try {
197
+ Document doc = do_parse();
198
+ XmlDocument xmlDoc = wrapDocument(context, (RubyClass)klass, doc);
199
+ xmlDoc.setUrl(url);
200
+ addErrorsIfNecessary(context, xmlDoc);
201
+ return xmlDoc;
202
+ } catch (SAXException e) {
203
+ return getDocumentWithErrorsOrRaiseException(context, e);
204
+ } catch (IOException e) {
205
+ return getDocumentWithErrorsOrRaiseException(context, e);
206
+ }
207
+ }
208
+
209
+ protected Document do_parse() throws SAXException, IOException {
210
+ parser.parse(getInputSource());
211
+ if (options.noBlanks) {
212
+ List<Node> emptyNodes = new ArrayList<Node>();
213
+ findEmptyTexts(parser.getDocument(), emptyNodes);
214
+ if (emptyNodes.size() > 0) {
215
+ for (Node node : emptyNodes) {
216
+ node.getParentNode().removeChild(node);
217
+ }
218
+ }
219
+ }
220
+ return parser.getDocument();
221
+ }
222
+
223
+ private void findEmptyTexts(Node node, List<Node> emptyNodes) {
224
+ if (node.getNodeType() == Node.TEXT_NODE && "".equals(node.getTextContent().trim())) {
225
+ emptyNodes.add(node);
226
+ } else {
227
+ NodeList children = node.getChildNodes();
228
+ for (int i=0; i < children.getLength(); i++) {
229
+ findEmptyTexts(children.item(i), emptyNodes);
230
+ }
231
+ }
232
+ }
233
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008 - 2010:
5
+ *
6
+ * * {Aaron Patterson}[http://tenderlovemaking.com]
7
+ * * {Mike Dalessio}[http://mike.daless.io]
8
+ * * {Charles Nutter}[http://blog.headius.com]
9
+ * * {Sergio Arbeo}[http://www.serabe.com]
10
+ * * {Patrick Mahoney}[http://polycrystal.org]
11
+ * * {Yoko Harada}[http://yokolet.blogspot.com]
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * 'Software'), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+
33
+ package nokogiri.internals;
34
+
35
+ import org.apache.xerces.parsers.SAXParser;
36
+ import org.apache.xerces.xni.Augmentations;
37
+ import org.apache.xerces.xni.XNIException;
38
+
39
+ /**
40
+ * Extends SAXParser in order to receive xmlDecl events and pass them
41
+ * on to a handler.
42
+ *
43
+ * @author Patrick Mahoney <pat@polycrystal.org>
44
+ */
45
+ public class XmlSaxParser extends SAXParser {
46
+
47
+ protected XmlDeclHandler xmlDeclHandler = null;
48
+
49
+ public XmlSaxParser() {
50
+ super();
51
+ }
52
+
53
+ public void setXmlDeclHandler(XmlDeclHandler xmlDeclHandler) {
54
+ this.xmlDeclHandler = xmlDeclHandler;
55
+ }
56
+
57
+ @Override
58
+ public void xmlDecl(String version, String encoding, String standalone,
59
+ Augmentations augs) throws XNIException {
60
+ super.xmlDecl(version, encoding, standalone, augs);
61
+ if (xmlDeclHandler != null) {
62
+ xmlDeclHandler.xmlDecl(version, encoding, standalone);
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,72 @@
1
+ /**
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008 - 2010:
5
+ *
6
+ * * {Aaron Patterson}[http://tenderlovemaking.com]
7
+ * * {Mike Dalessio}[http://mike.daless.io]
8
+ * * {Charles Nutter}[http://blog.headius.com]
9
+ * * {Sergio Arbeo}[http://www.serabe.com]
10
+ * * {Patrick Mahoney}[http://polycrystal.org]
11
+ * * {Yoko Harada}[http://yokolet.blogspot.com]
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * 'Software'), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+
33
+ package nokogiri.internals;
34
+
35
+ import org.jruby.javasupport.JavaUtil;
36
+ import org.jruby.javasupport.util.RuntimeHelpers;
37
+ import org.jruby.runtime.ThreadContext;
38
+ import org.jruby.runtime.builtin.IRubyObject;
39
+
40
+ import nokogiri.XsltStylesheet;
41
+
42
+ /**
43
+ * XSLT extension function caller. Currently, this class is not used because
44
+ * parsing XSL file with extension function (written in Java) fails. The reason of
45
+ * the failure is a conflict of Java APIs. When xercesImpl.jar or jing.jar, or both
46
+ * are on a classpath, parsing fails. Assuming parsing passes, this class will be
47
+ * used as in below:
48
+ *
49
+ * <xsl:stylesheet
50
+ * xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
51
+ * xmlns:f="xalan://nokogiri.internals.XsltExtensionFunction"
52
+ * extension-element-prefixes="f"
53
+ * version="1.0">
54
+ * <xsl:template match="text()">
55
+ * <xsl:copy-of select="f:call('capitalize', string(.))"/>
56
+ * </xsl:template>
57
+ * ...
58
+ * </xsl:stylesheet>
59
+ *
60
+ * @author Yoko Harada <yokolet@gmail.com>
61
+ */
62
+ public class XsltExtensionFunction {
63
+ public static Object call(String method, Object arg) {
64
+ if (XsltStylesheet.getRegistry() == null) return null;
65
+ ThreadContext context = (ThreadContext) XsltStylesheet.getRegistry().get("context");
66
+ IRubyObject receiver = (IRubyObject)XsltStylesheet.getRegistry().get("receiver");
67
+ if (context == null || receiver == null) return null;
68
+ IRubyObject arg0 = JavaUtil.convertJavaToUsableRubyObject(context.getRuntime(), arg);
69
+ IRubyObject result = RuntimeHelpers.invoke(context, receiver, method, arg0);
70
+ return result.toJava(Object.class);
71
+ }
72
+ }
@@ -0,0 +1,358 @@
1
+ html_document.o: html_document.c html_document.h nokogiri.h xml_io.h \
2
+ xml_document.h html_entity_lookup.h xml_node.h xml_text.h \
3
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
4
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
5
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
6
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
7
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
8
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
9
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
10
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
11
+
12
+ html_element_description.o: html_element_description.c \
13
+ html_element_description.h nokogiri.h xml_io.h xml_document.h \
14
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
15
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
16
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
17
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
18
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
19
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
20
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
21
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h xml_namespace.h \
22
+ xml_encoding_handler.h
23
+
24
+ html_entity_lookup.o: html_entity_lookup.c html_entity_lookup.h \
25
+ nokogiri.h xml_io.h xml_document.h html_document.h xml_node.h \
26
+ xml_text.h xml_cdata.h xml_attr.h xml_processing_instruction.h \
27
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
28
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
29
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
30
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
31
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
32
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
33
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
34
+
35
+ html_sax_parser_context.o: html_sax_parser_context.c \
36
+ html_sax_parser_context.h nokogiri.h xml_io.h xml_document.h \
37
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
38
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
39
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
40
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
41
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
42
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
43
+ xml_reader.h xslt_stylesheet.h xml_syntax_error.h xml_schema.h \
44
+ xml_relax_ng.h html_element_description.h xml_namespace.h \
45
+ xml_encoding_handler.h
46
+
47
+ nokogiri.o: nokogiri.c nokogiri.h xml_io.h xml_document.h \
48
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
49
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
50
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
51
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
52
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
53
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
54
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
55
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
56
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
57
+
58
+ xml_attr.o: xml_attr.c xml_attr.h nokogiri.h xml_io.h xml_document.h \
59
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
60
+ xml_cdata.h xml_processing_instruction.h xml_entity_reference.h \
61
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
62
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
63
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
64
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
65
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
66
+ xml_schema.h xml_relax_ng.h html_element_description.h \
67
+ xml_namespace.h xml_encoding_handler.h
68
+
69
+ xml_attribute_decl.o: xml_attribute_decl.c xml_attribute_decl.h \
70
+ nokogiri.h xml_io.h xml_document.h html_entity_lookup.h \
71
+ html_document.h xml_node.h xml_text.h xml_cdata.h xml_attr.h \
72
+ xml_processing_instruction.h xml_entity_reference.h \
73
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
74
+ xml_element_decl.h xml_entity_decl.h xml_xpath_context.h \
75
+ xml_element_content.h xml_sax_parser_context.h xml_sax_parser.h \
76
+ xml_sax_push_parser.h xml_reader.h html_sax_parser_context.h \
77
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
78
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
79
+
80
+ xml_cdata.o: xml_cdata.c xml_cdata.h nokogiri.h xml_io.h \
81
+ xml_document.h html_entity_lookup.h html_document.h xml_node.h \
82
+ xml_text.h xml_attr.h xml_processing_instruction.h \
83
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
84
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
85
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
86
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
87
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
88
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
89
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
90
+
91
+ xml_comment.o: xml_comment.c xml_comment.h nokogiri.h xml_io.h \
92
+ xml_document.h html_entity_lookup.h html_document.h xml_node.h \
93
+ xml_text.h xml_cdata.h xml_attr.h xml_processing_instruction.h \
94
+ xml_entity_reference.h xml_document_fragment.h xml_node_set.h \
95
+ xml_dtd.h xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
96
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
97
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
98
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
99
+ xml_schema.h xml_relax_ng.h html_element_description.h \
100
+ xml_namespace.h xml_encoding_handler.h
101
+
102
+ xml_document.o: xml_document.c xml_document.h nokogiri.h xml_io.h \
103
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
104
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
105
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
106
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
107
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
108
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
109
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
110
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
111
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
112
+
113
+ xml_document_fragment.o: xml_document_fragment.c \
114
+ xml_document_fragment.h nokogiri.h xml_io.h xml_document.h \
115
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
116
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
117
+ xml_entity_reference.h xml_comment.h xml_node_set.h xml_dtd.h \
118
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
119
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
120
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
121
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
122
+ xml_schema.h xml_relax_ng.h html_element_description.h \
123
+ xml_namespace.h xml_encoding_handler.h
124
+
125
+ xml_dtd.o: xml_dtd.c xml_dtd.h nokogiri.h xml_io.h xml_document.h \
126
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
127
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
128
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
129
+ xml_node_set.h xml_attribute_decl.h xml_element_decl.h \
130
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
131
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
132
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
133
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
134
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
135
+
136
+ xml_element_content.o: xml_element_content.c xml_element_content.h \
137
+ nokogiri.h xml_io.h xml_document.h html_entity_lookup.h \
138
+ html_document.h xml_node.h xml_text.h xml_cdata.h xml_attr.h \
139
+ xml_processing_instruction.h xml_entity_reference.h \
140
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
141
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
142
+ xml_xpath_context.h xml_sax_parser_context.h xml_sax_parser.h \
143
+ xml_sax_push_parser.h xml_reader.h html_sax_parser_context.h \
144
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
145
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
146
+
147
+ xml_element_decl.o: xml_element_decl.c xml_element_decl.h nokogiri.h \
148
+ xml_io.h xml_document.h html_entity_lookup.h html_document.h \
149
+ xml_node.h xml_text.h xml_cdata.h xml_attr.h \
150
+ xml_processing_instruction.h xml_entity_reference.h \
151
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
152
+ xml_attribute_decl.h xml_entity_decl.h xml_xpath_context.h \
153
+ xml_element_content.h xml_sax_parser_context.h xml_sax_parser.h \
154
+ xml_sax_push_parser.h xml_reader.h html_sax_parser_context.h \
155
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
156
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
157
+
158
+ xml_encoding_handler.o: xml_encoding_handler.c xml_encoding_handler.h \
159
+ nokogiri.h xml_io.h xml_document.h html_entity_lookup.h \
160
+ html_document.h xml_node.h xml_text.h xml_cdata.h xml_attr.h \
161
+ xml_processing_instruction.h xml_entity_reference.h \
162
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
163
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
164
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
165
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
166
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
167
+ xml_schema.h xml_relax_ng.h html_element_description.h \
168
+ xml_namespace.h
169
+
170
+ xml_entity_decl.o: xml_entity_decl.c xml_entity_decl.h nokogiri.h \
171
+ xml_io.h xml_document.h html_entity_lookup.h html_document.h \
172
+ xml_node.h xml_text.h xml_cdata.h xml_attr.h \
173
+ xml_processing_instruction.h xml_entity_reference.h \
174
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
175
+ xml_attribute_decl.h xml_element_decl.h xml_xpath_context.h \
176
+ xml_element_content.h xml_sax_parser_context.h xml_sax_parser.h \
177
+ xml_sax_push_parser.h xml_reader.h html_sax_parser_context.h \
178
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
179
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
180
+
181
+ xml_entity_reference.o: xml_entity_reference.c xml_entity_reference.h \
182
+ nokogiri.h xml_io.h xml_document.h html_entity_lookup.h \
183
+ html_document.h xml_node.h xml_text.h xml_cdata.h xml_attr.h \
184
+ xml_processing_instruction.h xml_document_fragment.h xml_comment.h \
185
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
186
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
187
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
188
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
189
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
190
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
191
+
192
+ xml_io.o: xml_io.c xml_io.h nokogiri.h xml_document.h \
193
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
194
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
195
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
196
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
197
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
198
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
199
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
200
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
201
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
202
+
203
+ xml_namespace.o: xml_namespace.c xml_namespace.h nokogiri.h xml_io.h \
204
+ xml_document.h html_entity_lookup.h html_document.h xml_node.h \
205
+ xml_text.h xml_cdata.h xml_attr.h xml_processing_instruction.h \
206
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
207
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
208
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
209
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
210
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
211
+ xml_syntax_error.h xml_schema.h xml_relax_ng.h \
212
+ html_element_description.h xml_encoding_handler.h
213
+
214
+ xml_node.o: xml_node.c xml_node.h nokogiri.h xml_io.h xml_document.h \
215
+ html_entity_lookup.h html_document.h xml_text.h xml_cdata.h \
216
+ xml_attr.h xml_processing_instruction.h xml_entity_reference.h \
217
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
218
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
219
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
220
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
221
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
222
+ xml_schema.h xml_relax_ng.h html_element_description.h \
223
+ xml_namespace.h xml_encoding_handler.h
224
+
225
+ xml_node_set.o: xml_node_set.c xml_node_set.h nokogiri.h xml_io.h \
226
+ xml_document.h html_entity_lookup.h html_document.h xml_node.h \
227
+ xml_text.h xml_cdata.h xml_attr.h xml_processing_instruction.h \
228
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
229
+ xml_dtd.h xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
230
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
231
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
232
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
233
+ xml_schema.h xml_relax_ng.h html_element_description.h \
234
+ xml_namespace.h xml_encoding_handler.h
235
+
236
+ xml_processing_instruction.o: xml_processing_instruction.c \
237
+ xml_processing_instruction.h nokogiri.h xml_io.h xml_document.h \
238
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
239
+ xml_cdata.h xml_attr.h xml_entity_reference.h xml_document_fragment.h \
240
+ xml_comment.h xml_node_set.h xml_dtd.h xml_attribute_decl.h \
241
+ xml_element_decl.h xml_entity_decl.h xml_xpath_context.h \
242
+ xml_element_content.h xml_sax_parser_context.h xml_sax_parser.h \
243
+ xml_sax_push_parser.h xml_reader.h html_sax_parser_context.h \
244
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
245
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
246
+
247
+ xml_reader.o: xml_reader.c xml_reader.h nokogiri.h xml_io.h \
248
+ xml_document.h html_entity_lookup.h html_document.h xml_node.h \
249
+ xml_text.h xml_cdata.h xml_attr.h xml_processing_instruction.h \
250
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
251
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
252
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
253
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
254
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
255
+ xml_schema.h xml_relax_ng.h html_element_description.h \
256
+ xml_namespace.h xml_encoding_handler.h
257
+
258
+ xml_relax_ng.o: xml_relax_ng.c xml_relax_ng.h nokogiri.h xml_io.h \
259
+ xml_document.h html_entity_lookup.h html_document.h xml_node.h \
260
+ xml_text.h xml_cdata.h xml_attr.h xml_processing_instruction.h \
261
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
262
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
263
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
264
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
265
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
266
+ xml_syntax_error.h xml_schema.h html_element_description.h \
267
+ xml_namespace.h xml_encoding_handler.h
268
+
269
+ xml_sax_parser.o: xml_sax_parser.c xml_sax_parser.h nokogiri.h \
270
+ xml_io.h xml_document.h html_entity_lookup.h html_document.h \
271
+ xml_node.h xml_text.h xml_cdata.h xml_attr.h \
272
+ xml_processing_instruction.h xml_entity_reference.h \
273
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
274
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
275
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
276
+ xml_sax_push_parser.h xml_reader.h html_sax_parser_context.h \
277
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
278
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
279
+
280
+ xml_sax_parser_context.o: xml_sax_parser_context.c \
281
+ xml_sax_parser_context.h nokogiri.h xml_io.h xml_document.h \
282
+ html_entity_lookup.h html_document.h xml_node.h xml_text.h \
283
+ xml_cdata.h xml_attr.h xml_processing_instruction.h \
284
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
285
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
286
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
287
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
288
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
289
+ xml_schema.h xml_relax_ng.h html_element_description.h \
290
+ xml_namespace.h xml_encoding_handler.h
291
+
292
+ xml_sax_push_parser.o: xml_sax_push_parser.c xml_sax_push_parser.h \
293
+ nokogiri.h xml_io.h xml_document.h html_entity_lookup.h \
294
+ html_document.h xml_node.h xml_text.h xml_cdata.h xml_attr.h \
295
+ xml_processing_instruction.h xml_entity_reference.h \
296
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
297
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
298
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
299
+ xml_sax_parser.h xml_reader.h html_sax_parser_context.h \
300
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
301
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
302
+
303
+ xml_schema.o: xml_schema.c xml_schema.h nokogiri.h xml_io.h \
304
+ xml_document.h html_entity_lookup.h html_document.h xml_node.h \
305
+ xml_text.h xml_cdata.h xml_attr.h xml_processing_instruction.h \
306
+ xml_entity_reference.h xml_document_fragment.h xml_comment.h \
307
+ xml_node_set.h xml_dtd.h xml_attribute_decl.h xml_element_decl.h \
308
+ xml_entity_decl.h xml_xpath_context.h xml_element_content.h \
309
+ xml_sax_parser_context.h xml_sax_parser.h xml_sax_push_parser.h \
310
+ xml_reader.h html_sax_parser_context.h xslt_stylesheet.h \
311
+ xml_syntax_error.h xml_relax_ng.h html_element_description.h \
312
+ xml_namespace.h xml_encoding_handler.h
313
+
314
+ xml_syntax_error.o: xml_syntax_error.c xml_syntax_error.h nokogiri.h \
315
+ xml_io.h xml_document.h html_entity_lookup.h html_document.h \
316
+ xml_node.h xml_text.h xml_cdata.h xml_attr.h \
317
+ xml_processing_instruction.h xml_entity_reference.h \
318
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
319
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
320
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
321
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
322
+ html_sax_parser_context.h xslt_stylesheet.h xml_schema.h \
323
+ xml_relax_ng.h html_element_description.h xml_namespace.h \
324
+ xml_encoding_handler.h
325
+
326
+ xml_text.o: xml_text.c xml_text.h nokogiri.h xml_io.h xml_document.h \
327
+ html_entity_lookup.h html_document.h xml_node.h xml_cdata.h \
328
+ xml_attr.h xml_processing_instruction.h xml_entity_reference.h \
329
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
330
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
331
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
332
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
333
+ html_sax_parser_context.h xslt_stylesheet.h xml_syntax_error.h \
334
+ xml_schema.h xml_relax_ng.h html_element_description.h \
335
+ xml_namespace.h xml_encoding_handler.h
336
+
337
+ xml_xpath_context.o: xml_xpath_context.c xml_xpath_context.h \
338
+ nokogiri.h xml_io.h xml_document.h html_entity_lookup.h \
339
+ html_document.h xml_node.h xml_text.h xml_cdata.h xml_attr.h \
340
+ xml_processing_instruction.h xml_entity_reference.h \
341
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
342
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
343
+ xml_element_content.h xml_sax_parser_context.h xml_sax_parser.h \
344
+ xml_sax_push_parser.h xml_reader.h html_sax_parser_context.h \
345
+ xslt_stylesheet.h xml_syntax_error.h xml_schema.h xml_relax_ng.h \
346
+ html_element_description.h xml_namespace.h xml_encoding_handler.h
347
+
348
+ xslt_stylesheet.o: xslt_stylesheet.c xslt_stylesheet.h nokogiri.h \
349
+ xml_io.h xml_document.h html_entity_lookup.h html_document.h \
350
+ xml_node.h xml_text.h xml_cdata.h xml_attr.h \
351
+ xml_processing_instruction.h xml_entity_reference.h \
352
+ xml_document_fragment.h xml_comment.h xml_node_set.h xml_dtd.h \
353
+ xml_attribute_decl.h xml_element_decl.h xml_entity_decl.h \
354
+ xml_xpath_context.h xml_element_content.h xml_sax_parser_context.h \
355
+ xml_sax_parser.h xml_sax_push_parser.h xml_reader.h \
356
+ html_sax_parser_context.h xml_syntax_error.h xml_schema.h \
357
+ xml_relax_ng.h html_element_description.h xml_namespace.h \
358
+ xml_encoding_handler.h