leptris 1.9.201.0-arm-linux → 1.9.201.2-arm-linux
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/Rakefile +52 -12
- data/ext/leptris/native/extconf.rb +85 -0
- data/ext/leptris/native/native.c +1 -1
- data/lib/leptris/version.rb +1 -1
- data/lib/leptris/xml/ffi.rb +13 -0
- data/lib/leptris/xml/native.so +0 -0
- data/vendor-src/libleptris/CHANGELOG.md +8080 -0
- data/vendor-src/libleptris/CLAUDE.md +150 -0
- data/vendor-src/libleptris/CMakeLists.txt +379 -0
- data/vendor-src/libleptris/CMakePresets.json +61 -0
- data/vendor-src/libleptris/CODE_OF_CONDUCT.md +132 -0
- data/vendor-src/libleptris/CONTEXT.md +49 -0
- data/vendor-src/libleptris/LICENSE.md +33 -0
- data/vendor-src/libleptris/README.adoc +1197 -0
- data/vendor-src/libleptris/TODO.assemble/README.md +16 -0
- data/vendor-src/libleptris/TODO.bindings/01-mutation-construction.md +18 -0
- data/vendor-src/libleptris/TODO.bindings/02-incremental-iterparse.md +15 -0
- data/vendor-src/libleptris/TODO.bindings/03-compiled-xpath.md +15 -0
- data/vendor-src/libleptris/TODO.bindings/04-pull-stax-api.md +14 -0
- data/vendor-src/libleptris/TODO.bindings/05-per-parse-options.md +17 -0
- data/vendor-src/libleptris/TODO.bindings/06-serialize-encoding-guarantees.md +14 -0
- data/vendor-src/libleptris/TODO.bindings/README.md +36 -0
- data/vendor-src/libleptris/TODO.concurrency/01-thread-safe-errors.md +19 -0
- data/vendor-src/libleptris/TODO.concurrency/02-export-surface-gate.md +24 -0
- data/vendor-src/libleptris/TODO.concurrency/03-mixed-nodeset-batch.md +14 -0
- data/vendor-src/libleptris/TODO.concurrency/04-canonical-status-message.md +13 -0
- data/vendor-src/libleptris/TODO.concurrency/05-windows-dll-name.md +10 -0
- data/vendor-src/libleptris/TODO.concurrency/06-exslt-pack.md +26 -0
- data/vendor-src/libleptris/TODO.concurrency/07-ns-set-pairs.md +11 -0
- data/vendor-src/libleptris/TODO.concurrency/08-threading-contract.md +45 -0
- data/vendor-src/libleptris/TODO.engine/01-file-sources.md +11 -0
- data/vendor-src/libleptris/TODO.engine/02-compiled-contexts.md +10 -0
- data/vendor-src/libleptris/TODO.engine/03-rust-publish.md +9 -0
- data/vendor-src/libleptris/TODO.engine/04-ruby-release-input.md +8 -0
- data/vendor-src/libleptris/TODO.engine/05-todo-md-refresh.md +7 -0
- data/vendor-src/libleptris/TODO.engine/README.md +16 -0
- data/vendor-src/libleptris/TODO.hygiene/README.md +15 -0
- data/vendor-src/libleptris/TODO.max-perf/00-INDEX.md +22 -0
- data/vendor-src/libleptris/TODO.max-perf/1-simd-html-scanner.md +15 -0
- data/vendor-src/libleptris/TODO.max-perf/10-moxml-plan-followups.md +9 -0
- data/vendor-src/libleptris/TODO.max-perf/2-compiled-dispatch-tokenizer.md +8 -0
- data/vendor-src/libleptris/TODO.max-perf/3-iterparse-fixed-cost.md +5 -0
- data/vendor-src/libleptris/TODO.max-perf/4-compact-node-micro-opts.md +17 -0
- data/vendor-src/libleptris/TODO.max-perf/5-xslt-bench-profiling-rounds.md +13 -0
- data/vendor-src/libleptris/TODO.max-perf/6-language-tails.md +9 -0
- data/vendor-src/libleptris/TODO.max-perf/7-validate-bindings.md +6 -0
- data/vendor-src/libleptris/TODO.max-perf/8-native-xml-diff-consumer.md +5 -0
- data/vendor-src/libleptris/TODO.max-perf/9-prebuilt-gem-matrix.md +14 -0
- data/vendor-src/libleptris/TODO.md +33 -0
- data/vendor-src/libleptris/TODO.transform/README.md +39 -0
- data/vendor-src/libleptris/TODO.validate/README.md +32 -0
- data/vendor-src/libleptris/TODO.xpath2/README.md +91 -0
- data/vendor-src/libleptris/TODO.xslt-full/01-xpath-fn-sequences.md +27 -0
- data/vendor-src/libleptris/TODO.xslt-full/02-xpath-fn-regex.md +13 -0
- data/vendor-src/libleptris/TODO.xslt-full/03-xpath-fn-math.md +10 -0
- data/vendor-src/libleptris/TODO.xslt-full/04-xpath-fn-strings-qname-uri.md +97 -0
- data/vendor-src/libleptris/TODO.xslt-full/05-xpath-fn-dates.md +30 -0
- data/vendor-src/libleptris/TODO.xslt-full/06-xpath-grammar-3x.md +83 -0
- data/vendor-src/libleptris/TODO.xslt-full/07-xpath-function-items.md +124 -0
- data/vendor-src/libleptris/TODO.xslt-full/08-xpath-maps-arrays.md +79 -0
- data/vendor-src/libleptris/TODO.xslt-full/09-xslt-noop-fillins.md +35 -0
- data/vendor-src/libleptris/TODO.xslt-full/10-xslt-tunnel-params.md +9 -0
- data/vendor-src/libleptris/TODO.xslt-full/11-xquery-core.md +119 -0
- data/vendor-src/libleptris/TODO.xslt-full/12-xquery-31.md +65 -0
- data/vendor-src/libleptris/TODO.xslt-full/13-perf-inprocess.md +425 -0
- data/vendor-src/libleptris/TODO.xslt-full/14-html-mode.md +803 -0
- data/vendor-src/libleptris/TODO.xslt-full/15-binding-entries.md +19 -0
- data/vendor-src/libleptris/TODO.xslt-full/16-schematron.md +156 -0
- data/vendor-src/libleptris/TODO.xslt-full/17-xml-diff.md +52 -0
- data/vendor-src/libleptris/TODO.xslt-full/18-compact-nodes.md +278 -0
- data/vendor-src/libleptris/TODO.xslt-full/README.md +26 -0
- data/vendor-src/libleptris/TODO.xslt-full/REMAINING.md +163 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/00-triage.md +171 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/01-fragment-nodes.md +19 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/02-root-node-semantics.md +34 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/03-crashes.md +15 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/04-namespaces.md +14 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/05-number-attrset-sort.md +13 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/06-document-chains.md +10 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/07-charef-serializer.md +9 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/08-perf-gate.md +8 -0
- data/vendor-src/libleptris/TODO.xslt-full/legacy-v19/09-release.md +14 -0
- data/vendor-src/libleptris/VALIDATION.md +151 -0
- data/vendor-src/libleptris/benchmarks/CMakeLists.txt +259 -0
- data/vendor-src/libleptris/benchmarks/README.adoc +228 -0
- data/vendor-src/libleptris/benchmarks/README.md +212 -0
- data/vendor-src/libleptris/benchmarks/common/benchmark.c +252 -0
- data/vendor-src/libleptris/benchmarks/common/benchmark.h +77 -0
- data/vendor-src/libleptris/benchmarks/common/test_data.c +415 -0
- data/vendor-src/libleptris/benchmarks/common/test_data.h +18 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/CMakeLists.txt +184 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_decomp.cpp +110 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_first_access.cpp +261 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_many_attrs.cpp +150 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_memory.cpp +185 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_parse.cpp +270 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_parse_ops.cpp +392 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_sax.c +106 -0
- data/vendor-src/libleptris/benchmarks/comprehensive/benchmark_write.cpp +351 -0
- data/vendor-src/libleptris/benchmarks/data/attrs.xml +303 -0
- data/vendor-src/libleptris/benchmarks/data/cdata_test.xml +13 -0
- data/vendor-src/libleptris/benchmarks/data/comment_test.xml +15 -0
- data/vendor-src/libleptris/benchmarks/data/deep.xml +205 -0
- data/vendor-src/libleptris/benchmarks/data/generate_attrs.rb +22 -0
- data/vendor-src/libleptris/benchmarks/data/generate_deep.rb +25 -0
- data/vendor-src/libleptris/benchmarks/data/generate_large.rb +33 -0
- data/vendor-src/libleptris/benchmarks/data/generate_wide.rb +18 -0
- data/vendor-src/libleptris/benchmarks/data/large.xml +21003 -0
- data/vendor-src/libleptris/benchmarks/data/large_workflow.xml +4003 -0
- data/vendor-src/libleptris/benchmarks/data/medium.xml +67 -0
- data/vendor-src/libleptris/benchmarks/data/medium_workflow.xml +353 -0
- data/vendor-src/libleptris/benchmarks/data/pi_test.xml +9 -0
- data/vendor-src/libleptris/benchmarks/data/small.xml +10 -0
- data/vendor-src/libleptris/benchmarks/data/small_workflow.xml +36 -0
- data/vendor-src/libleptris/benchmarks/data/wide.xml +5003 -0
- data/vendor-src/libleptris/benchmarks/dom/bench_document_lifecycle.c +69 -0
- data/vendor-src/libleptris/benchmarks/dom/bench_leptris.c +184 -0
- data/vendor-src/libleptris/benchmarks/dom/bench_libxml2.c +176 -0
- data/vendor-src/libleptris/benchmarks/dom/bench_text_borrowed.c +74 -0
- data/vendor-src/libleptris/benchmarks/dom/dom_benchmark_v2.cpp +314 -0
- data/vendor-src/libleptris/benchmarks/fixtures/large.xml +4003 -0
- data/vendor-src/libleptris/benchmarks/fixtures/large_catalog.xml +50003 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2/eve.xml +6 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2/slashdot.rdf +66 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2/wap.xml +27 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/4rects.xml +11 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/a-valid.xml +10 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/a-wf.xml +9 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/bike.xml +41 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/circle.xml +11 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/defs.xml +14 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/desc.xml +14 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/ellipse.xml +10 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/flower2.xml +44 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/gradient.xml +16 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/group01.xml +15 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/group02.xml +13 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/group03.xml +13 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/image-valid.xml +11 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/image-wf.xml +11 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/lin-gradient.xml +16 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/marker.xml +28 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/mask.xml +13 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/mathswitch.xml +32 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/parentns.xml +12 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/path01.xml +5 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/path02.xml +10 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/patternfill.xml +12 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/polyline.xml +9 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/private.xml +19 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/rad-gradient.xml +17 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/rectangle.xml +10 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/richdesc.xml +12 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/script.xml +13 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/structure01.xml +10 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/style.xml +11 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/switch.xml +21 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/symbol-use.xml +28 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/template.xml +9 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/text01.xml +12 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/text02.xml +17 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/text03.xml +8 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/toap01.xml +10 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/toap02.xml +33 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/transform.xml +26 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/trivial.xml +6 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/twin-gradients.xml +19 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/v-template.xml +9 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/viewport-nest.xml +13 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/viewport-transform.xml +46 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/viewport.xml +11 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_svg/wf-template.xml +7 -0
- data/vendor-src/libleptris/benchmarks/fixtures/libxml2_xsdtest.xml +5286 -0
- data/vendor-src/libleptris/benchmarks/fixtures/medium.xml +403 -0
- data/vendor-src/libleptris/benchmarks/fixtures/medium_catalog.xml +3003 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/empty.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/large.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/latintest_latin1.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/latintest_utf8.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/multiline.xml +3 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/small.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/truncation.xml +19 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_be.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_be_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_be_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_be_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_le.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_le_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_le_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf16_le_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_be.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_be_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_be_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_be_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_le.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_le_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_le_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf32_le_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf8.xml +87 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf8_bom.xml +87 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf8_clean.xml +84 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml/utftest_utf8_nodecl.xml +86 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml//321/202/320/265/321/201/321/202.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/empty.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/large.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/latintest_latin1.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/latintest_utf8.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/multiline.xml +3 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/small.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/truncation.xml +19 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_be.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_be_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_be_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_be_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_le.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_le_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_le_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf16_le_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_be.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_be_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_be_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_be_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_le.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_le_bom.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_le_clean.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf32_le_nodecl.xml +0 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf8.xml +87 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf8_bom.xml +87 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf8_clean.xml +84 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests/utftest_utf8_nodecl.xml +86 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pugixml_tests//321/202/320/265/321/201/321/202.xml +1 -0
- data/vendor-src/libleptris/benchmarks/fixtures/small.xml +38 -0
- data/vendor-src/libleptris/benchmarks/html/bench_html_parse.c +111 -0
- data/vendor-src/libleptris/benchmarks/html/gen_nokogiri_reference.rb +112 -0
- data/vendor-src/libleptris/benchmarks/html/nokogiri_html_parse.rb +64 -0
- data/vendor-src/libleptris/benchmarks/matrix/README.md +71 -0
- data/vendor-src/libleptris/benchmarks/matrix/bench2html.rb +316 -0
- data/vendor-src/libleptris/benchmarks/matrix/bench_matrix.cpp +724 -0
- data/vendor-src/libleptris/benchmarks/modification/bench_leptris_modify.c +211 -0
- data/vendor-src/libleptris/benchmarks/modification/bench_node_creation.c +130 -0
- data/vendor-src/libleptris/benchmarks/results/BENCHMARK_REPORT.md +226 -0
- data/vendor-src/libleptris/benchmarks/results/baseline_report.md +219 -0
- data/vendor-src/libleptris/benchmarks/results/benchmark_20251223_134550.json +13 -0
- data/vendor-src/libleptris/benchmarks/results/benchmark_20260129_225844.json +13 -0
- data/vendor-src/libleptris/benchmarks/results/leptris_dom_output.txt +24 -0
- data/vendor-src/libleptris/benchmarks/results/leptris_modify.json +36 -0
- data/vendor-src/libleptris/benchmarks/results/leptris_modify_optimized.json +36 -0
- data/vendor-src/libleptris/benchmarks/results/leptris_modify_session1.json +36 -0
- data/vendor-src/libleptris/benchmarks/results/leptris_modify_session2.json +36 -0
- data/vendor-src/libleptris/benchmarks/results/leptris_serialize.json +34 -0
- data/vendor-src/libleptris/benchmarks/results/leptris_xpath_output.txt +24 -0
- data/vendor-src/libleptris/benchmarks/results/libxml2_dom_output.txt +24 -0
- data/vendor-src/libleptris/benchmarks/results/libxml2_xpath_output.txt +24 -0
- data/vendor-src/libleptris/benchmarks/results/phase16_session2.json +21 -0
- data/vendor-src/libleptris/benchmarks/results/phase17.5_session1.json +30 -0
- data/vendor-src/libleptris/benchmarks/results/phase17_session1.json +30 -0
- data/vendor-src/libleptris/benchmarks/results/pugixml_dom_output.txt +51 -0
- data/vendor-src/libleptris/benchmarks/results/xpath_axes_leptris.json +318 -0
- data/vendor-src/libleptris/benchmarks/results/xpath_axes_libxml2.json +318 -0
- data/vendor-src/libleptris/benchmarks/results/xpath_functions_leptris.json +222 -0
- data/vendor-src/libleptris/benchmarks/results/xpath_functions_libxml2.json +222 -0
- data/vendor-src/libleptris/benchmarks/sax/bench_iterparse.c +115 -0
- data/vendor-src/libleptris/benchmarks/sax/bench_leptris.c +124 -0
- data/vendor-src/libleptris/benchmarks/sax/bench_libxml2.c +115 -0
- data/vendor-src/libleptris/benchmarks/serialization/bench_leptris_serialize.c +198 -0
- data/vendor-src/libleptris/benchmarks/src/benchmark_base.h +175 -0
- data/vendor-src/libleptris/benchmarks/twins/mutation_leptris.c +37 -0
- data/vendor-src/libleptris/benchmarks/twins/mutation_pugixml.cpp +28 -0
- data/vendor-src/libleptris/benchmarks/twins/parse_leptris.c +35 -0
- data/vendor-src/libleptris/benchmarks/twins/parse_pugixml.cpp +35 -0
- data/vendor-src/libleptris/benchmarks/utils.c +171 -0
- data/vendor-src/libleptris/benchmarks/utils.h +70 -0
- data/vendor-src/libleptris/benchmarks/workflows/bench_dom_modify.c +325 -0
- data/vendor-src/libleptris/benchmarks/workflows/bench_end_to_end.c +529 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_axes.c +411 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_axes_libxml2.c +108 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_diagnostic.c +431 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_functions.c +271 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_functions_libxml2.c +123 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_leptris.c +78 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_libxml2.c +98 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_pugixml.cpp +117 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_scalar_eval.c +86 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_scalar_eval_libxml2.c +70 -0
- data/vendor-src/libleptris/benchmarks/xpath/bench_xslt_transform.c +48 -0
- data/vendor-src/libleptris/benchmarks/xslt/bench_dispatch.c +52 -0
- data/vendor-src/libleptris/benchmarks/xslt/bench_dispatch_heavy.c +82 -0
- data/vendor-src/libleptris/benchmarks/xslt/bench_dispatch_pred.c +34 -0
- data/vendor-src/libleptris/benchmarks/xslt/bench_subtree_copy.c +55 -0
- data/vendor-src/libleptris/benchmarks/xslt/bench_valueof.c +46 -0
- data/vendor-src/libleptris/benchmarks/xslt/heavy_lxml.py +48 -0
- data/vendor-src/libleptris/benchmarks/xslt/scorecard_lxml.py +169 -0
- data/vendor-src/libleptris/bindings/ruby/leptris.gemspec +22 -0
- data/vendor-src/libleptris/bindings/ruby/lib/leptris/document.rb +60 -0
- data/vendor-src/libleptris/bindings/ruby/lib/leptris/element.rb +86 -0
- data/vendor-src/libleptris/bindings/ruby/lib/leptris/error.rb +6 -0
- data/vendor-src/libleptris/bindings/ruby/lib/leptris/node.rb +73 -0
- data/vendor-src/libleptris/bindings/ruby/lib/leptris/sax.rb +189 -0
- data/vendor-src/libleptris/bindings/ruby/lib/leptris/xpath.rb +44 -0
- data/vendor-src/libleptris/bindings/ruby/lib/leptris.rb +137 -0
- data/vendor-src/libleptris/bindings/ruby/spec/leptris_spec.rb +113 -0
- data/vendor-src/libleptris/bindings/ruby/spec/sax_spec.rb +141 -0
- data/vendor-src/libleptris/bindings/ruby/spec/spec_helper.rb +7 -0
- data/vendor-src/libleptris/bindings/ruby/test_full.rb +21 -0
- data/vendor-src/libleptris/bindings/rust/Cargo.lock +7 -0
- data/vendor-src/libleptris/bindings/rust/Cargo.toml +13 -0
- data/vendor-src/libleptris/bindings/rust/README.md +61 -0
- data/vendor-src/libleptris/bindings/rust/build.rs +74 -0
- data/vendor-src/libleptris/bindings/rust/src/ffi.rs +204 -0
- data/vendor-src/libleptris/bindings/rust/src/lib.rs +580 -0
- data/vendor-src/libleptris/bindings/rust/tests/integration.rs +156 -0
- data/vendor-src/libleptris/cli/ARCHITECTURE_REVIEW.md +514 -0
- data/vendor-src/libleptris/cli/CLI_ARCHITECTURE.md +851 -0
- data/vendor-src/libleptris/cli/CMakeLists.txt +46 -0
- data/vendor-src/libleptris/cli/cli.c +115 -0
- data/vendor-src/libleptris/cli/cli.h +232 -0
- data/vendor-src/libleptris/cli/commands/diff.c +208 -0
- data/vendor-src/libleptris/cli/commands/format.c +379 -0
- data/vendor-src/libleptris/cli/commands/parse.c +343 -0
- data/vendor-src/libleptris/cli/commands/validate.c +284 -0
- data/vendor-src/libleptris/cli/commands/version.c +49 -0
- data/vendor-src/libleptris/cli/commands/xpath.c +428 -0
- data/vendor-src/libleptris/cli/commands/xquery.c +188 -0
- data/vendor-src/libleptris/cli/completion/leptris.bash +86 -0
- data/vendor-src/libleptris/cli/completion/leptris.zsh +74 -0
- data/vendor-src/libleptris/cli/error.c +394 -0
- data/vendor-src/libleptris/cli/error.h +360 -0
- data/vendor-src/libleptris/cli/leptris +0 -0
- data/vendor-src/libleptris/cli/main.c +127 -0
- data/vendor-src/libleptris/cli/man/leptris-format.1.adoc +226 -0
- data/vendor-src/libleptris/cli/man/leptris-parse.1.adoc +213 -0
- data/vendor-src/libleptris/cli/man/leptris-xpath.1.adoc +479 -0
- data/vendor-src/libleptris/cli/man/leptris.1.adoc +192 -0
- data/vendor-src/libleptris/cli/options.c +451 -0
- data/vendor-src/libleptris/cli/options.h +378 -0
- data/vendor-src/libleptris/cli/output.c +841 -0
- data/vendor-src/libleptris/cli/output.h +361 -0
- data/vendor-src/libleptris/cmake/FindUtf8proc.cmake +56 -0
- data/vendor-src/libleptris/cmake/leptris-config.cmake.in +14 -0
- data/vendor-src/libleptris/cmake/leptris.pc.in +11 -0
- data/vendor-src/libleptris/cmake/modules/AdocMan.cmake +132 -0
- data/vendor-src/libleptris/docs/ARCHITECTURE_REVIEW.md +280 -0
- data/vendor-src/libleptris/docs/Doxyfile +47 -0
- data/vendor-src/libleptris/docs/FFI.md +165 -0
- data/vendor-src/libleptris/docs/README.md +47 -0
- data/vendor-src/libleptris/docs/ROADMAP-SAXON-PARITY.md +194 -0
- data/vendor-src/libleptris/docs/guide/building.md +199 -0
- data/vendor-src/libleptris/docs/guide/getting-started.md +134 -0
- data/vendor-src/libleptris/docs/guide/parsing.md +315 -0
- data/vendor-src/libleptris/docs/guide/xpath-queries.md +444 -0
- data/vendor-src/libleptris/examples/c/CMakeLists.txt +58 -0
- data/vendor-src/libleptris/examples/c/README.md +345 -0
- data/vendor-src/libleptris/examples/c/basic_example.c +80 -0
- data/vendor-src/libleptris/examples/c/dom_traversal_example.c +58 -0
- data/vendor-src/libleptris/examples/c/error_handling_example.c +121 -0
- data/vendor-src/libleptris/examples/c/namespace_example.c +49 -0
- data/vendor-src/libleptris/examples/c/xpath_example.c +74 -0
- data/vendor-src/libleptris/ports/leptris/portfile.cmake +41 -0
- data/vendor-src/libleptris/ports/leptris/usage +28 -0
- data/vendor-src/libleptris/scripts/check_dll_exports.py +54 -0
- data/vendor-src/libleptris/scripts/check_export_surface.py +84 -0
- data/vendor-src/libleptris/scripts/check_ffi_mirrors.py +163 -0
- data/vendor-src/libleptris/scripts/check_formatting.sh +30 -0
- data/vendor-src/libleptris/scripts/check_shared_exports.sh +120 -0
- data/vendor-src/libleptris/scripts/check_trailing_whitespace.sh +18 -0
- data/vendor-src/libleptris/scripts/gen-api-docs.sh +31 -0
- data/vendor-src/libleptris/scripts/run_static_analysis.sh +16 -0
- data/vendor-src/libleptris/scripts/validate.sh +199 -0
- data/vendor-src/libleptris/scripts/xslt_triage.sh +72 -0
- data/vendor-src/libleptris/src/CMakeLists.txt +597 -0
- data/vendor-src/libleptris/src/include/leptris/descriptor.h +178 -0
- data/vendor-src/libleptris/src/include/leptris/dom/document.h +213 -0
- data/vendor-src/libleptris/src/include/leptris/dom/element.h +435 -0
- data/vendor-src/libleptris/src/include/leptris/dom/serialize.h +133 -0
- data/vendor-src/libleptris/src/include/leptris/dtd.h +178 -0
- data/vendor-src/libleptris/src/include/leptris/error.h +97 -0
- data/vendor-src/libleptris/src/include/leptris/sax/sax.h +584 -0
- data/vendor-src/libleptris/src/include/leptris/types.h +386 -0
- data/vendor-src/libleptris/src/include/leptris/xpath/xpath.h +250 -0
- data/vendor-src/libleptris/src/include/leptris/xquery/xquery.h +80 -0
- data/vendor-src/libleptris/src/include/leptris.h +3701 -0
- data/vendor-src/libleptris/src/leptris/chartype.h +124 -0
- data/vendor-src/libleptris/src/leptris/common/chartype.c +90 -0
- data/vendor-src/libleptris/src/leptris/common/chartype.h +44 -0
- data/vendor-src/libleptris/src/leptris/common/cpu.c +40 -0
- data/vendor-src/libleptris/src/leptris/common/cpu.h +63 -0
- data/vendor-src/libleptris/src/leptris/common/entities.c +329 -0
- data/vendor-src/libleptris/src/leptris/common/entities.h +79 -0
- data/vendor-src/libleptris/src/leptris/common/format_number.c +273 -0
- data/vendor-src/libleptris/src/leptris/common/format_number.h +29 -0
- data/vendor-src/libleptris/src/leptris/common/port.h +171 -0
- data/vendor-src/libleptris/src/leptris/common/simd_text.c +237 -0
- data/vendor-src/libleptris/src/leptris/common/simd_text.h +104 -0
- data/vendor-src/libleptris/src/leptris/common/simd_text_avx2.c +105 -0
- data/vendor-src/libleptris/src/leptris/common/simd_text_neon.c +280 -0
- data/vendor-src/libleptris/src/leptris/common/string_view.c +204 -0
- data/vendor-src/libleptris/src/leptris/common/string_view.h +68 -0
- data/vendor-src/libleptris/src/leptris/common/types_internal.h +31 -0
- data/vendor-src/libleptris/src/leptris/core.c +201 -0
- data/vendor-src/libleptris/src/leptris/descriptor/plan.c +527 -0
- data/vendor-src/libleptris/src/leptris/diff/diff.c +491 -0
- data/vendor-src/libleptris/src/leptris/dom/cdata.c +47 -0
- data/vendor-src/libleptris/src/leptris/dom/cdata.h +73 -0
- data/vendor-src/libleptris/src/leptris/dom/comment.c +48 -0
- data/vendor-src/libleptris/src/leptris/dom/comment.h +74 -0
- data/vendor-src/libleptris/src/leptris/dom/compact.c +397 -0
- data/vendor-src/libleptris/src/leptris/dom/compact.h +307 -0
- data/vendor-src/libleptris/src/leptris/dom/diag.c +58 -0
- data/vendor-src/libleptris/src/leptris/dom/diag.h +75 -0
- data/vendor-src/libleptris/src/leptris/dom/digest.c +255 -0
- data/vendor-src/libleptris/src/leptris/dom/doctype.c +137 -0
- data/vendor-src/libleptris/src/leptris/dom/doctype.h +52 -0
- data/vendor-src/libleptris/src/leptris/dom/document_node.c +13 -0
- data/vendor-src/libleptris/src/leptris/dom/document_node.h +21 -0
- data/vendor-src/libleptris/src/leptris/dom/edges.h +60 -0
- data/vendor-src/libleptris/src/leptris/dom/element.c +1114 -0
- data/vendor-src/libleptris/src/leptris/dom/element.h +1109 -0
- data/vendor-src/libleptris/src/leptris/dom/element_index.c +444 -0
- data/vendor-src/libleptris/src/leptris/dom/element_index.h +135 -0
- data/vendor-src/libleptris/src/leptris/dom/element_modify.c +2185 -0
- data/vendor-src/libleptris/src/leptris/dom/element_query.c +1468 -0
- data/vendor-src/libleptris/src/leptris/dom/entity_ref.c +57 -0
- data/vendor-src/libleptris/src/leptris/dom/entity_ref.h +70 -0
- data/vendor-src/libleptris/src/leptris/dom/node.c +420 -0
- data/vendor-src/libleptris/src/leptris/dom/node.h +170 -0
- data/vendor-src/libleptris/src/leptris/dom/node_public.c +937 -0
- data/vendor-src/libleptris/src/leptris/dom/node_vtable.c +138 -0
- data/vendor-src/libleptris/src/leptris/dom/pi.c +70 -0
- data/vendor-src/libleptris/src/leptris/dom/pi.h +80 -0
- data/vendor-src/libleptris/src/leptris/dom/root_doc_map.c +310 -0
- data/vendor-src/libleptris/src/leptris/dom/root_doc_map.h +30 -0
- data/vendor-src/libleptris/src/leptris/dom/text.c +157 -0
- data/vendor-src/libleptris/src/leptris/dom/text.h +119 -0
- data/vendor-src/libleptris/src/leptris/dtd/content_check.c +300 -0
- data/vendor-src/libleptris/src/leptris/dtd/model.c +533 -0
- data/vendor-src/libleptris/src/leptris/dtd/model.h +354 -0
- data/vendor-src/libleptris/src/leptris/dtd/parser.c +827 -0
- data/vendor-src/libleptris/src/leptris/dtd/resolver.c +354 -0
- data/vendor-src/libleptris/src/leptris/dtd/validator.c +668 -0
- data/vendor-src/libleptris/src/leptris/encoding/encoders.c +346 -0
- data/vendor-src/libleptris/src/leptris/encoding/encoders.h +61 -0
- data/vendor-src/libleptris/src/leptris/encoding/encoding.c +451 -0
- data/vendor-src/libleptris/src/leptris/encoding/encoding.h +118 -0
- data/vendor-src/libleptris/src/leptris/encoding/unicode.c +317 -0
- data/vendor-src/libleptris/src/leptris/encoding/unicode.h +64 -0
- data/vendor-src/libleptris/src/leptris/encoding/utf16.c +204 -0
- data/vendor-src/libleptris/src/leptris/encoding/utf16.h +78 -0
- data/vendor-src/libleptris/src/leptris/encoding/wrapper.c +243 -0
- data/vendor-src/libleptris/src/leptris/error.c +134 -0
- data/vendor-src/libleptris/src/leptris/flat/direct_parse.c +1935 -0
- data/vendor-src/libleptris/src/leptris/flat/direct_parse.h +41 -0
- data/vendor-src/libleptris/src/leptris/html/html_parse.c +8040 -0
- data/vendor-src/libleptris/src/leptris/leptris.c +1264 -0
- data/vendor-src/libleptris/src/leptris/leptris_internal.h +910 -0
- data/vendor-src/libleptris/src/leptris/leptris_memory.c +179 -0
- data/vendor-src/libleptris/src/leptris/leptris_memory.h +180 -0
- data/vendor-src/libleptris/src/leptris/leptris_parse.h +195 -0
- data/vendor-src/libleptris/src/leptris/memory/arena.c +243 -0
- data/vendor-src/libleptris/src/leptris/memory/arena.h +93 -0
- data/vendor-src/libleptris/src/leptris/memory/pool.c +1055 -0
- data/vendor-src/libleptris/src/leptris/memory/pool.h +426 -0
- data/vendor-src/libleptris/src/leptris/rng/parse.c +814 -0
- data/vendor-src/libleptris/src/leptris/rng/rng_internal.h +112 -0
- data/vendor-src/libleptris/src/leptris/rng/rng_public.c +159 -0
- data/vendor-src/libleptris/src/leptris/rng/rng_regex.c +453 -0
- data/vendor-src/libleptris/src/leptris/rng/validate.c +1923 -0
- data/vendor-src/libleptris/src/leptris/sax/iterparse.c +435 -0
- data/vendor-src/libleptris/src/leptris/sax/parser.c +105 -0
- data/vendor-src/libleptris/src/leptris/sax/pull.c +489 -0
- data/vendor-src/libleptris/src/leptris/sax/recorder.c +252 -0
- data/vendor-src/libleptris/src/leptris/sax/sax_internal.h +163 -0
- data/vendor-src/libleptris/src/leptris/sax/streaming.c +1469 -0
- data/vendor-src/libleptris/src/leptris/sch/schematron.c +1588 -0
- data/vendor-src/libleptris/src/leptris/serialize/c14n.c +1143 -0
- data/vendor-src/libleptris/src/leptris/serialize/serialize.c +2333 -0
- data/vendor-src/libleptris/src/leptris/serialize/serialize.h +188 -0
- data/vendor-src/libleptris/src/leptris/simd_helpers.h +447 -0
- data/vendor-src/libleptris/src/leptris/unicode/unicode.c +237 -0
- data/vendor-src/libleptris/src/leptris/unicode/unicode.h +113 -0
- data/vendor-src/libleptris/src/leptris/xinclude/xinclude.c +794 -0
- data/vendor-src/libleptris/src/leptris/xpath/bytecode.h +229 -0
- data/vendor-src/libleptris/src/leptris/xpath/compiler.c +1478 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator.c +1099 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator.h +189 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_axes.c +787 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_internal.h +112 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_operators.c +2138 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_path.c +1312 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_types.c +294 -0
- data/vendor-src/libleptris/src/leptris/xpath/functions.c +2544 -0
- data/vendor-src/libleptris/src/leptris/xpath/functions.h +161 -0
- data/vendor-src/libleptris/src/leptris/xpath/functions_exslt.c +545 -0
- data/vendor-src/libleptris/src/leptris/xpath/functions_ext31.c +4316 -0
- data/vendor-src/libleptris/src/leptris/xpath/lexer.c +636 -0
- data/vendor-src/libleptris/src/leptris/xpath/lexer.h +25 -0
- data/vendor-src/libleptris/src/leptris/xpath/parser.c +2992 -0
- data/vendor-src/libleptris/src/leptris/xpath/parser.h +28 -0
- data/vendor-src/libleptris/src/leptris/xpath/vm.c +2903 -0
- data/vendor-src/libleptris/src/leptris/xpath/xpath_ast_cache.c +319 -0
- data/vendor-src/libleptris/src/leptris/xpath/xpath_compiled.c +263 -0
- data/vendor-src/libleptris/src/leptris/xpath/xpath_internal.h +134 -0
- data/vendor-src/libleptris/src/leptris/xpath/xpath_public.c +1139 -0
- data/vendor-src/libleptris/src/leptris/xpath/xpath_variables.c +410 -0
- data/vendor-src/libleptris/src/leptris/xpath/xpath_variables.h +230 -0
- data/vendor-src/libleptris/src/leptris/xquery/xquery.c +2641 -0
- data/vendor-src/libleptris/src/leptris/xslt/xslt_exec.c +4887 -0
- data/vendor-src/libleptris/src/leptris/xslt/xslt_functions.c +1612 -0
- data/vendor-src/libleptris/src/leptris/xslt/xslt_internal.h +862 -0
- data/vendor-src/libleptris/src/leptris/xslt/xslt_parse.c +2418 -0
- data/vendor-src/libleptris/src/leptris/xslt/xslt_pattern.c +441 -0
- data/vendor-src/libleptris/src/leptris/xslt/xslt_public.c +710 -0
- data/vendor-src/libleptris/src/leptris.symvers +16 -0
- data/vendor-src/libleptris/src/man/libleptris.5.adoc +961 -0
- data/vendor-src/libleptris/test/CMakeLists.txt +234 -0
- data/vendor-src/libleptris/test/README.md +59 -0
- data/vendor-src/libleptris/test/abi/test_descriptor.cpp +441 -0
- data/vendor-src/libleptris/test/abi/test_doctype_api.cpp +51 -0
- data/vendor-src/libleptris/test/abi/test_dom_deep_copy.cpp +110 -0
- data/vendor-src/libleptris/test/abi/test_dom_mutation_bugs.cpp +210 -0
- data/vendor-src/libleptris/test/abi/test_header_hygiene.cpp +269 -0
- data/vendor-src/libleptris/test/abi/test_namespace_mutation_and_create.cpp +198 -0
- data/vendor-src/libleptris/test/abi/test_node_get_xpath.cpp +128 -0
- data/vendor-src/libleptris/test/abi/test_nokogiri_api.cpp +392 -0
- data/vendor-src/libleptris/test/abi/test_parse_fragment.cpp +114 -0
- data/vendor-src/libleptris/test/abi/test_previous_sibling_and_c14n_ex.cpp +299 -0
- data/vendor-src/libleptris/test/abi/test_public_surface.cpp +463 -0
- data/vendor-src/libleptris/test/abi/test_serialize_abi.cpp +67 -0
- data/vendor-src/libleptris/test/abi/test_v0_5_14_bugs.cpp +299 -0
- data/vendor-src/libleptris/test/abi/test_xpath_custom_fns.cpp +106 -0
- data/vendor-src/libleptris/test/cli/test_cli.cpp +493 -0
- data/vendor-src/libleptris/test/common/test_simd_spans.cpp +88 -0
- data/vendor-src/libleptris/test/common/test_simd_text.cpp +142 -0
- data/vendor-src/libleptris/test/concurrency/test_concurrency.cpp +218 -0
- data/vendor-src/libleptris/test/diff/test_diff.cpp +244 -0
- data/vendor-src/libleptris/test/dom/test_compact.cpp +339 -0
- data/vendor-src/libleptris/test/dom/test_digest.cpp +111 -0
- data/vendor-src/libleptris/test/dom/test_document_children.cpp +270 -0
- data/vendor-src/libleptris/test/dom/test_dom.cpp +2310 -0
- data/vendor-src/libleptris/test/dom/test_map_lifecycle.cpp +111 -0
- data/vendor-src/libleptris/test/dom/test_node_surface_parity.cpp +268 -0
- data/vendor-src/libleptris/test/dom/test_text_borrowed.cpp +126 -0
- data/vendor-src/libleptris/test/dom/test_vtable.cpp +108 -0
- data/vendor-src/libleptris/test/dtd/test_dtd_validate.cpp +1227 -0
- data/vendor-src/libleptris/test/dtd/test_w3c_conformance.cpp +212 -0
- data/vendor-src/libleptris/test/fixtures/basic.xml +13 -0
- data/vendor-src/libleptris/test/fixtures/cdata.xml +5 -0
- data/vendor-src/libleptris/test/fixtures/malformed.xml +2 -0
- data/vendor-src/libleptris/test/fixtures/namespaces.xml +11 -0
- data/vendor-src/libleptris/test/fixtures/utf16_decl.xml +5 -0
- data/vendor-src/libleptris/test/fuzz/fuzz_parse.c +40 -0
- data/vendor-src/libleptris/test/html/html5lib-redlist.txt +1366 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/LICENSE +21 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/README.md +11 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/adoption01.dat +354 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/adoption02.dat +39 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/blocks.dat +695 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/comments01.dat +217 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/doctype01.dat +474 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/domjs-unsafe.dat +0 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/entities01.dat +943 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/entities02.dat +309 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/foreign-fragment.dat +645 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/html5test-com.dat +301 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/inbody01.dat +54 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/isindex.dat +49 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/main-element.dat +46 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/math.dat +104 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/menuitem-element.dat +240 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/namespace-sensitivity.dat +22 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/noscript01.dat +237 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/pending-spec-changes-plain-text-unsafe.dat +0 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/pending-spec-changes.dat +46 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/plain-text-unsafe.dat +0 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/ruby.dat +302 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/scriptdata01.dat +372 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/search-element.dat +46 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/svg.dat +104 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tables01.dat +308 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/template.dat +1673 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests1.dat +1956 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests10.dat +849 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests11.dat +523 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests12.dat +62 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests14.dat +75 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests15.dat +216 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests16.dat +2602 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests17.dat +179 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests18.dat +558 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests19.dat +1398 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests2.dat +821 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests20.dat +842 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests21.dat +306 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests22.dat +190 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests23.dat +168 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests24.dat +79 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests25.dat +288 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests26.dat +453 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests3.dat +305 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests4.dat +58 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests5.dat +210 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests6.dat +663 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests7.dat +417 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests8.dat +165 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests9.dat +472 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tests_innerHTML_1.dat +843 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/tricky01.dat +336 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/webkit01.dat +785 -0
- data/vendor-src/libleptris/test/html/html5lib-tests/tree-construction/webkit02.dat +554 -0
- data/vendor-src/libleptris/test/html/html5lib_cases.h.in +6 -0
- data/vendor-src/libleptris/test/html/nokogiri-parity-redlist.txt +1183 -0
- data/vendor-src/libleptris/test/html/nokogiri-tree-tests.dat +18107 -0
- data/vendor-src/libleptris/test/html/test_html.cpp +2191 -0
- data/vendor-src/libleptris/test/html/test_html5lib.cpp +831 -0
- data/vendor-src/libleptris/test/memory/test_arena.cpp +252 -0
- data/vendor-src/libleptris/test/memory/test_oom_injection.cpp +170 -0
- data/vendor-src/libleptris/test/memory/test_pool.cpp +331 -0
- data/vendor-src/libleptris/test/memory/test_pool_arena.cpp +180 -0
- data/vendor-src/libleptris/test/parser/test_encoding.cpp +282 -0
- data/vendor-src/libleptris/test/parser/test_large_documents.cpp +346 -0
- data/vendor-src/libleptris/test/parser/test_parser.cpp +565 -0
- data/vendor-src/libleptris/test/parser/test_simd_count.cpp +70 -0
- data/vendor-src/libleptris/test/perf/test_perf.cpp +362 -0
- data/vendor-src/libleptris/test/perf/test_stress_high_doc_count.cpp +67 -0
- data/vendor-src/libleptris/test/rng/include-cases/bad-construct.rng +7 -0
- data/vendor-src/libleptris/test/rng/include-cases/bad-override.rng +6 -0
- data/vendor-src/libleptris/test/rng/include-cases/bad-start-override.rng +5 -0
- data/vendor-src/libleptris/test/rng/include-cases/ext-lib.rng +3 -0
- data/vendor-src/libleptris/test/rng/include-cases/ext-main.rng +7 -0
- data/vendor-src/libleptris/test/rng/include-cases/lib.rng +5 -0
- data/vendor-src/libleptris/test/rng/include-cases/lib2.rng +6 -0
- data/vendor-src/libleptris/test/rng/include-cases/main.rng +4 -0
- data/vendor-src/libleptris/test/rng/include-cases/no-href.rng +4 -0
- data/vendor-src/libleptris/test/rng/include-cases/override.rng +8 -0
- data/vendor-src/libleptris/test/rng/include-cases/self-include.rng +4 -0
- data/vendor-src/libleptris/test/rng/include-cases/start-override.rng +5 -0
- data/vendor-src/libleptris/test/rng/jing-cases/000.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/000.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/000.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/001.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/001.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/001.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/002.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/002.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/002.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/003.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/003.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/003.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/004.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/004.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/004.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/005.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/005.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/005.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/006.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/006.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/006.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/007.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/007.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/007.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/008.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/008.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/008.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/009.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/009.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/009.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/010.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/010.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/010.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/011.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/011.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/011.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/012.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/012.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/012.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/013.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/013.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/013.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/014.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/014.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/014.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/015.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/015.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/015.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/016.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/016.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/016.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/017.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/017.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/017.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/018.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/018.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/018.rng +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/019.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/019.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/019.rng +7 -0
- data/vendor-src/libleptris/test/rng/jing-cases/020-book.rng +4 -0
- data/vendor-src/libleptris/test/rng/jing-cases/020.bad.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/020.ok.xml +1 -0
- data/vendor-src/libleptris/test/rng/jing-cases/020.rng +3 -0
- data/vendor-src/libleptris/test/rng/jing-cases/README.md +32 -0
- data/vendor-src/libleptris/test/rng/jing-cases/jing-ref.json +212 -0
- data/vendor-src/libleptris/test/rng/jing-cases/meta.json +1 -0
- data/vendor-src/libleptris/test/rng/test_rng.cpp +1365 -0
- data/vendor-src/libleptris/test/rng/test_rng_corpus.cpp +133 -0
- data/vendor-src/libleptris/test/rng/test_rng_corpus_msg.cpp +233 -0
- data/vendor-src/libleptris/test/sax/test_iterparse.cpp +203 -0
- data/vendor-src/libleptris/test/sax/test_pull.cpp +214 -0
- data/vendor-src/libleptris/test/sax/test_pull_batch.cpp +201 -0
- data/vendor-src/libleptris/test/sax/test_recorder.cpp +265 -0
- data/vendor-src/libleptris/test/sax/test_sax.cpp +665 -0
- data/vendor-src/libleptris/test/sax/test_streaming.cpp +434 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/README.md +15 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/extends-baseuri-fixup-01.xml +28 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/extends-recursive-01.xml +27 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/include-baseuri-fixup-01.xml +24 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/include-recursive-01.xml +24 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-name-collision-error-01.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-name-collision-error-02.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-name-collision-error-03.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-name-collision-error-04.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-name-collision-error-05.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-name-collision-error-06.xml +25 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-pattern-global-01.xml +24 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-reference-undefined-01.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-reference-undefined-02.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-reference-undefined-03.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-reference-undefined-04.xml +19 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-reference-undefined-05.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-reference-undefined-06.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-reference-undefined-07.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-rule-global-01.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-rule-global-02.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-scope-pattern-01.xml +25 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-scope-phase-01.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-scope-rule-01.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/let-value-element-content-01.xml +33 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/pattern-abstract-01.xml +22 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/pattern-subordinate-document-01.xml +21 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/pattern-subordinate-document-02.xml +21 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-abstract-01.xml +21 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-abstract-02.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-attribute-01.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-comment-01.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-element-01.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-pi-01.xml +20 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-root-01.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-text-01.xml +18 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-variable-01.xml +22 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-variable-02.xml +25 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-context-variable-03.xml +22 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/rule-order-01.xml +21 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/schema-default-phase-01.xml +26 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/schema-default-phase-02.xml +25 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/svrl-diagnostic-01.xml +28 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/svrl-diagnostic-02.xml +25 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/svrl-name-nopath-01.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/svrl-name-path-01.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/svrl-property-01.xml +28 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/svrl-property-copy-of.xml +26 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/svrl-value-of-01.xml +23 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/xslt-key-01.xml +19 -0
- data/vendor-src/libleptris/test/sch/conformance-cases/xslt-key-element-content-01.xml +21 -0
- data/vendor-src/libleptris/test/sch/test_schematron.cpp +337 -0
- data/vendor-src/libleptris/test/sch/test_schematron_corpus.cpp +421 -0
- data/vendor-src/libleptris/test/serializer/test_c14n.cpp +539 -0
- data/vendor-src/libleptris/test/serializer/test_serialize.cpp +890 -0
- data/vendor-src/libleptris/test/smoke/test_smoke.cpp +41 -0
- data/vendor-src/libleptris/test/xinclude/test_xinclude.cpp +903 -0
- data/vendor-src/libleptris/test/xpath/test_bytecode_vm.cpp +755 -0
- data/vendor-src/libleptris/test/xpath/test_compiled.cpp +171 -0
- data/vendor-src/libleptris/test/xpath/test_exslt.cpp +141 -0
- data/vendor-src/libleptris/test/xpath/test_xpath.cpp +2433 -0
- data/vendor-src/libleptris/test/xpath/test_xpath_conformance.cpp +570 -0
- data/vendor-src/libleptris/test/xpath/test_xslt.cpp +4245 -0
- data/vendor-src/libleptris/test/xquery/books.xml +1 -0
- data/vendor-src/libleptris/test/xquery/qt3/README.md +28 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/concat.xml +878 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/contains.xml +795 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/ends-with.xml +556 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/starts-with.xml +644 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/substring/concepts.xml +1 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/substring.xml +449 -0
- data/vendor-src/libleptris/test/xquery/test_qt3.cpp +324 -0
- data/vendor-src/libleptris/test/xquery/test_xquery.cpp +768 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/ATTRIBUTION.md +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/array.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/array.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/array.xsl +26 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-1-.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-1-.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-1-.xsl +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-10-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-10-.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-10-.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-100.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-100.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-100.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-101.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-101.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-101.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-102-inc.xsl +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-102.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-102.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-102.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-103.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-103.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-103.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-104.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-104.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-104.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-105.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-105.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-105.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-106.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-106.xml +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-106.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-107.out +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-107.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-107.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-108.out +25 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-108.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-108.xsl +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-109.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-109.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-109.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-11-.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-11-.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-11-.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-110.ent +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-110.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-110.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-110.xsl +20 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-111.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-111.xml +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-111.xsl +45 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-112.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-112.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-112.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-113.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-113.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-113.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-114.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-114.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-114.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-115.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-115.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-115.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-116.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-116.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-116.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-117.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-117.xml +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-117.xsl +59 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-118.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-118.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-118.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-119.out +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-119.xml +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-119.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-12-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-12-.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-12-.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-120.out +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-120.xml +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-120.xsl +27 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-121.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-121.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-121.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-122.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-122.xml +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-122.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-123.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-123.xml +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-123.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-124.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-124.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-124.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-125.out +351 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-125.xml +118 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-125.xsl +99 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-126.out +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-126.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-126.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-127.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-127.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-127.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-128.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-128.xml +26 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-128.xsl +26 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-129.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-129.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-129.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-13-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-13-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-13-.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130-imp1.imp +25 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130-imp2.imp +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130-imp3.imp +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130-imp4.imp +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130.doc +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-130.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-131-imp.imp +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-131.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-131.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-131.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-132.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-132.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-132.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-133.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-133.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-133.xsl +32 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-134.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-134.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-134.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-135.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-135.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-135.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-136.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-136.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-136.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-137.imp +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-137.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-137.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-137.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-138.out +23 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-138.xml +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-138.xsl +28 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-139.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-139.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-139.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-14-.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-14-.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-14-.xsl +23 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-140.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-140.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-140.xsl +32 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-141.out +46 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-141.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-141.xsl +25 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-142.out +35 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-142.xml +65 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-142.xsl +85 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-143.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-143.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-143.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-144.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-144.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-144.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-145.err +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-145.xml +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-145.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147-1.imp +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147-2.imp +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147-3.imp +57 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147-4.imp +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147-5.imp +27 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147-6.imp +31 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147.out +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147.xml +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-147.xsl +29 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-148.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-148.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-148.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-149.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-149.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-149.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-15-.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-15-.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-15-.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-150.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-150.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-150.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-151.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-151.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-152.out +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-152.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-152.xsl +30 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-153.doc +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-153.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-153.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-153.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-154.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-154.xsl +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-155.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-155.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-155.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-156.err +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-156.imp1.imp +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-156.imp2.imp +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-156.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-156.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-157.err +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-157.out +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-157.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-157.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-158.doc +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-158.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-158.xml +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-158.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-159.out +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-159.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-159.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-16-.out +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-16-.xml +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-16-.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-160.out +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-160.xml +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-160.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-161.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-161.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-161.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-163.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-163.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-163.xsl +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-164.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-164.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-164.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-165.err +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-165.xml +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-165.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-166.out +15256 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-166.xml +15255 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-166.xsl +131 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-167.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-167.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-167.xsl +20 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-168.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-168.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-168.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-169.imp +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-169.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-169.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-169.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-17-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-17-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-17-.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-170.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-170.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-170.xsl +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-171.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-171.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-171.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-172.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-172.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-172.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-173.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-173.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-173.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-174.err +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-174.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-174.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-175.err +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-175.out +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-175.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-175.xsl +33 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-176.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-176.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-176.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-177.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-177.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-177.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-178.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-178.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-178.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-179.out +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-179.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-179.xsl +24 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-18-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-18-.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-18-.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-180.err +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-180.xml +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-180.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-181.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-181.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-181.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-182.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-182.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-182.xsl +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-183.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-183.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-183.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-184.err +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-184.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-184.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-186.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-186.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-186.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-187.err +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-187.out +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-187.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-187.xsl +42 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-188-imp.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-188.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-188.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-188.xsl +20 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-189.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-189.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-189.xsl +25 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-19-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-19-.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-19-.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-190-imp.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-190.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-190.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-190.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-191-imp.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-191.err +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-191.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-191.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-192.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-192.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-192.xsl +33 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-193.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-193.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-193.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-194.err +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-194.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-194.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-195.out +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-195.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-195.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-196.out +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-196.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-196.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-197.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-197.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-197.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-198.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-198.xml +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-198.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-199.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-199.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-199.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-2-.out +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-2-.xml +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-2-.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-20-.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-20-.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-20-.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-200.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-200.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-200.xsl +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-201.err +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-201.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-201.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-202.err +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-202.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-202.xsl +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-203.err +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-203.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-203.xsl +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-204.err +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-204.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-204.xsl +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-205.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-205.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-205.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-206.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-206.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-206.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-207.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-207.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-207.xsl +61 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-208.err +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-208.xml +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-208.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-209.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-209.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-209.xsl +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-21-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-21-.xml +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-21-.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-210.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-210.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-210.xsl +20 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-211.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-211.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-211.xsl +26 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-212.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-212.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-212.xsl +25 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-213.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-213.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-213.xsl +26 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-214.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-214.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-214.xsl +25 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-215.err +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-215.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-215.xsl +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-216.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-216.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-216.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-217.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-217.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-217.xsl +24 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-218.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-218.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-218.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-219.out +68 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-219.xml +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-219.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-22-.out +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-22-.xml +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-22-.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-220.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-220.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-220.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-221.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-221.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-221.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-222.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-222.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-222.xsl +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-223-imp.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-223-inc.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-223.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-223.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-223.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-224.out +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-224.xml +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-224.xsl +28 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-225.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-225.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-225.xsl +32 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-23-.out +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-23-.xml +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-23-.xsl +20 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-24-.out +27 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-24-.xml +2419 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-24-.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-25-.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-25-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-25-.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-26-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-26-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-26-.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-27-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-27-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-27-.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-28-.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-28-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-28-.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-29-.ent +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-29-.out +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-29-.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-29-.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-3-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-3-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-3-.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-30-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-30-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-30-.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-31-.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-31-.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-31-.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-32-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-32-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-32-.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-33-.out +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-33-.xml +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-33-.xsl +29 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-35-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-35-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-35-.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-36-.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-36-.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-36-.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-36-inc.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-37-.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-37-.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-37-.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-37-inc.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-38-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-38-.xml +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-38-.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-39-.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-39-.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-39-.xsl +34 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-4-.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-4-.xml +38 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-4-.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-40-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-40-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-40-.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-41-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-41-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-41-.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-42-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-42-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-42-.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-43-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-43-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-43-.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-44-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-44-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-44-.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-45-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-45-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-45-.xsl +27 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-46-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-46-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-46-.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-47-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-47-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-47-.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-48-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-48-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-48-.xsl +24 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-49-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-49-.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-49-.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-5-.out +954 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-5-.xml +475 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-5-.xsl +158 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-50-.out +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-50-.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-50-.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-52.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-52.xml +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-52.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-53.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-53.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-53.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-54.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-54.xml +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-54.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-55.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-55.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-55.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-56.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-56.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-56.xsl +28 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-57.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-57.xml +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-57.xsl +21 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-58.xsl +274 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-59.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-59.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-59.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-6-.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-6-.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-6-.xsl +32 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-60.err +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-60.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-60.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-60.xsl +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-61.out +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-61.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-61.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-62-inc.xsl +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-62.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-62.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-62.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-63.out +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-63.xml +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-63.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-64.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-64.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-64.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-65.ent +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-65.out +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-65.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-65.xsl +26 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-66.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-66.xml +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-66.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-68.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-68.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-68.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-69.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-69.xml +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-69.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-7-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-7-.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-7-.xsl +11 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-70.out +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-70.xml +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-70.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-71.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-71.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-71.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-72.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-72.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-72.xsl +31 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-73.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-73.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-73.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-74.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-74.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-74.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-75.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-75.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-75.xsl +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-76.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-76.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-76.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-77.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-77.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-77.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-78.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-78.xml +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-78.xsl +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-79.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-79.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-79.xsl +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-8-.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-8-.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-8-.xsl +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-80.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-80.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-80.xsl +29 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-81.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-81.xml +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-81.xsl +18 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-82.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-82.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-82.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-83.out +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-83.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-83.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-84.out +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-84.xml +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-84.xsl +14 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-86.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-86.xml +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-86.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-87.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-87.xml +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-87.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-88.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-88.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-88.xsl +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-89.out +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-89.xml +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-89.xsl +105 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-9-.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-9-.xml +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-9-.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-90.out +13 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-90.xml +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-90.xsl +35 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-91.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-91.xml +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-91.xsl +8 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-92.out +15 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-92.xml +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-92.xsl +19 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-93-inc.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-93.out +3 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-93.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-93.xsl +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-94.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-94.xml +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-94.xsl +35 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-95.out +4 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-95.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-95.xsl +22 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-96.out +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-96.xml +5 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-96.xsl +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-97.out +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-97.xml +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-97.xsl +32 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-98.out +6 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-98.xml +10 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-98.xsl +31 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-99.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-99.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/bug-99.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/character.out +2 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/character.xml +23 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/character.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/date_add.out +9 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/date_add.xml +1 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/date_add.xsl +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/doc.dtd +7 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/doc.out +16 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/doc.xml +17 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/doc.xsl +62 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/inner.xsl +12 -0
- data/vendor-src/libleptris/test/xslt/libxslt_suite_general/items.xml +34 -0
- data/vendor-src/libleptris/test/xslt/open_cases.txt +0 -0
- data/vendor-src/libleptris/test/xslt/test_libxslt_suite.cpp +398 -0
- data/vendor-src/libleptris/vcpkg.json +29 -0
- data/vendor-src/utf8proc/CMakeLists.txt +133 -0
- data/vendor-src/utf8proc/Doxyfile +2765 -0
- data/vendor-src/utf8proc/LICENSE.md +93 -0
- data/vendor-src/utf8proc/MANIFEST +9 -0
- data/vendor-src/utf8proc/Makefile +203 -0
- data/vendor-src/utf8proc/NEWS.md +479 -0
- data/vendor-src/utf8proc/README.md +143 -0
- data/vendor-src/utf8proc/appveyor.yml +46 -0
- data/vendor-src/utf8proc/bench/Makefile +40 -0
- data/vendor-src/utf8proc/bench/bench.c +56 -0
- data/vendor-src/utf8proc/bench/icu.c +61 -0
- data/vendor-src/utf8proc/bench/unistring.c +60 -0
- data/vendor-src/utf8proc/bench/util.c +39 -0
- data/vendor-src/utf8proc/bench/util.h +22 -0
- data/vendor-src/utf8proc/cmake/utf8proc-config.cmake.in +5 -0
- data/vendor-src/utf8proc/data/Makefile +62 -0
- data/vendor-src/utf8proc/data/Manifest.toml +16 -0
- data/vendor-src/utf8proc/data/Project.toml +2 -0
- data/vendor-src/utf8proc/data/data_generator.jl +498 -0
- data/vendor-src/utf8proc/libutf8proc.pc.cmakein +10 -0
- data/vendor-src/utf8proc/libutf8proc.pc.in +10 -0
- data/vendor-src/utf8proc/lump.md +27 -0
- data/vendor-src/utf8proc/test/app/CMakeLists.txt +6 -0
- data/vendor-src/utf8proc/test/app/app.c +9 -0
- data/vendor-src/utf8proc/test/case.c +76 -0
- data/vendor-src/utf8proc/test/charwidth.c +91 -0
- data/vendor-src/utf8proc/test/custom.c +28 -0
- data/vendor-src/utf8proc/test/fuzz_main.c +54 -0
- data/vendor-src/utf8proc/test/fuzzer.c +97 -0
- data/vendor-src/utf8proc/test/graphemetest.c +136 -0
- data/vendor-src/utf8proc/test/iscase.c +63 -0
- data/vendor-src/utf8proc/test/iterate.c +168 -0
- data/vendor-src/utf8proc/test/maxdecomposition.c +22 -0
- data/vendor-src/utf8proc/test/misc.c +51 -0
- data/vendor-src/utf8proc/test/normtest.c +64 -0
- data/vendor-src/utf8proc/test/ossfuzz.sh +13 -0
- data/vendor-src/utf8proc/test/printproperty.c +68 -0
- data/vendor-src/utf8proc/test/tests.c +60 -0
- data/vendor-src/utf8proc/test/tests.h +27 -0
- data/vendor-src/utf8proc/test/valid.c +41 -0
- data/vendor-src/utf8proc/utf8proc.c +834 -0
- data/vendor-src/utf8proc/utf8proc.h +794 -0
- data/vendor-src/utf8proc/utf8proc_data.c +17141 -0
- data/vendor-src/utf8proc/utils.cmake +20 -0
- metadata +1528 -2
|
@@ -0,0 +1,1312 @@
|
|
|
1
|
+
/* evaluator_path.c - XPath path and predicate evaluation
|
|
2
|
+
* Copyright (c) 2024, Ribose Inc.
|
|
3
|
+
*
|
|
4
|
+
* Location path evaluation, predicates, node tests
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
#include "evaluator_internal.h"
|
|
8
|
+
#include <stdlib.h>
|
|
9
|
+
#include "../dom/pi.h"
|
|
10
|
+
#include "../dom/document_node.h" /* LeptrisPINode for processing-instruction('target') */
|
|
11
|
+
#include "../leptris_internal.h"
|
|
12
|
+
#include "../dom/element.h" /* For LeptrisElement structure */
|
|
13
|
+
#include <string.h>
|
|
14
|
+
#include <stdlib.h> /* qsort (document-order merge, issue #485) */
|
|
15
|
+
|
|
16
|
+
/* Debug logging - Set to 0 to disable */
|
|
17
|
+
#define XPATH_DEBUG 0
|
|
18
|
+
|
|
19
|
+
#if XPATH_DEBUG
|
|
20
|
+
#define DEBUG_LOG(fmt, ...) fprintf(stderr, "[XPath DEBUG] " fmt "\n", ##__VA_ARGS__)
|
|
21
|
+
#else
|
|
22
|
+
#define DEBUG_LOG(fmt, ...) do {} while(0)
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
/* ============================================================================
|
|
26
|
+
* Helper Functions
|
|
27
|
+
* ============================================================================ */
|
|
28
|
+
|
|
29
|
+
/* Helper: Get element from typed node (returns NULL if not element)
|
|
30
|
+
*
|
|
31
|
+
* Every node begins with its type tag: real DOM nodes carry the public
|
|
32
|
+
* LeptrisNodeKind (LeptrisNode.base.type), synthetic XPath nodes carry
|
|
33
|
+
* LeptrisNodeType. In the unified tag space only 0 means element.
|
|
34
|
+
*/
|
|
35
|
+
static LeptrisElement node_as_element(void* node) {
|
|
36
|
+
if (!node) return NULL;
|
|
37
|
+
|
|
38
|
+
return (XPATH_NODE_TYPE(node) == LEPTRIS_NODE_ELEMENT)
|
|
39
|
+
? (LeptrisElement)node : NULL;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Helper: Get attribute node from typed node (returns NULL if not attribute) */
|
|
43
|
+
static LeptrisAttributeNode* node_as_attribute(void* node) {
|
|
44
|
+
if (!node) return NULL;
|
|
45
|
+
|
|
46
|
+
/* Check if first field is LEPTRIS_NODE_ATTRIBUTE */
|
|
47
|
+
LeptrisNodeType first_field = *(LeptrisNodeType*)node;
|
|
48
|
+
return (first_field == LEPTRIS_NODE_ATTRIBUTE) ? (LeptrisAttributeNode*)node : NULL;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* ============================================================================
|
|
52
|
+
* Node Test Matching
|
|
53
|
+
* ============================================================================
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/* Helper: Parse node test name into prefix and local parts
|
|
57
|
+
* Input: "ns1:element" → prefix="ns1", local="element"
|
|
58
|
+
* Input: "element" → prefix=NULL, local="element"
|
|
59
|
+
* Input: "ns1:*" → prefix="ns1", local="*"
|
|
60
|
+
*/
|
|
61
|
+
static void parse_node_test_name(const char* test_name,
|
|
62
|
+
char** prefix,
|
|
63
|
+
char** local) {
|
|
64
|
+
if (!test_name) {
|
|
65
|
+
*prefix = NULL;
|
|
66
|
+
*local = NULL;
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const char* colon = strchr(test_name, ':');
|
|
71
|
+
if (colon) {
|
|
72
|
+
size_t prefix_len = colon - test_name;
|
|
73
|
+
*prefix = LEPTRIS_ALLOC_N(char, prefix_len + 1);
|
|
74
|
+
if (*prefix) {
|
|
75
|
+
memcpy(*prefix, test_name, prefix_len);
|
|
76
|
+
(*prefix)[prefix_len] = '\0';
|
|
77
|
+
}
|
|
78
|
+
*local = leptris_strdup(colon + 1);
|
|
79
|
+
} else {
|
|
80
|
+
*prefix = NULL;
|
|
81
|
+
*local = leptris_strdup(test_name);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static struct leptris_document* xpath_context_document(
|
|
86
|
+
XPathContext* ctx) {
|
|
87
|
+
if (!ctx || !ctx->context_node) return ctx ? ctx->document : NULL;
|
|
88
|
+
LeptrisNode* cn = (LeptrisNode*)ctx->context_node;
|
|
89
|
+
/* Non-element contexts (pattern matching on text()/comment()/PI)
|
|
90
|
+
* walk any-kind parent links up to the nearest ELEMENT first -
|
|
91
|
+
* leptris_element_get_document would misread their layout. */
|
|
92
|
+
if (cn->type != LEPTRIS_NODE_TYPE_ELEMENT) {
|
|
93
|
+
LeptrisElement e = leptris_node_parent((LeptrisNodeRef)cn);
|
|
94
|
+
if (!e) return ctx->document;
|
|
95
|
+
cn = (LeptrisNode*)e;
|
|
96
|
+
}
|
|
97
|
+
struct leptris_document* nd =
|
|
98
|
+
leptris_element_get_document((LeptrisElement)cn);
|
|
99
|
+
return nd ? nd : ctx->document;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
int matches_node_test(XPathContext* ctx, LeptrisNode* node, XPathASTNode* test) {
|
|
103
|
+
if (!node || !test) return 1; /* No test means match all */
|
|
104
|
+
|
|
105
|
+
/* Name and wildcard tests only match element nodes (TODO 109). */
|
|
106
|
+
if (node->type != LEPTRIS_NODE_TYPE_ELEMENT) {
|
|
107
|
+
if (test->type == XPATH_AST_NODE_TEST_TYPE && test->value) {
|
|
108
|
+
if (strcmp(test->value, "node") == 0) return 1;
|
|
109
|
+
if (strcmp(test->value, "text") == 0)
|
|
110
|
+
return node->type == LEPTRIS_NODE_TYPE_TEXT ||
|
|
111
|
+
node->type == LEPTRIS_NODE_TYPE_CDATA;
|
|
112
|
+
if (strcmp(test->value, "comment") == 0)
|
|
113
|
+
return node->type == LEPTRIS_NODE_TYPE_COMMENT;
|
|
114
|
+
if (strcmp(test->value, "processing-instruction") == 0) {
|
|
115
|
+
if (node->type != LEPTRIS_NODE_TYPE_PI) return 0;
|
|
116
|
+
/* Optional target argument: processing-instruction('xml-stylesheet') */
|
|
117
|
+
if (test->local_name) {
|
|
118
|
+
LeptrisPINode* pi = (LeptrisPINode*)node;
|
|
119
|
+
return pi->target && strcmp(pi->target, test->local_name) == 0;
|
|
120
|
+
}
|
|
121
|
+
return 1;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
LeptrisElement elem = (LeptrisElement)node;
|
|
128
|
+
|
|
129
|
+
switch (test->type) {
|
|
130
|
+
case XPATH_AST_NODE_TEST_NAME: {
|
|
131
|
+
/* Match specific name - namespace-aware. The parser
|
|
132
|
+
* pre-splits the test QName (prefix/local_name); deriving
|
|
133
|
+
* the split here per NODE cost a strchr on every element
|
|
134
|
+
* of every walked axis (#617's scalar profile). */
|
|
135
|
+
const char* node_name = leptris_element_get_name(elem);
|
|
136
|
+
if (!test->value || !node_name) return 0;
|
|
137
|
+
|
|
138
|
+
const char* test_prefix = test->prefix;
|
|
139
|
+
const char* test_local = test->local_name;
|
|
140
|
+
if (!test_local) {
|
|
141
|
+
/* Legacy un-split test: derive once per call. */
|
|
142
|
+
const char* colon = strchr(test->value, ':');
|
|
143
|
+
if (colon) {
|
|
144
|
+
test_prefix = test->value;
|
|
145
|
+
test_local = colon + 1;
|
|
146
|
+
} else {
|
|
147
|
+
test_prefix = NULL;
|
|
148
|
+
test_local = test->value;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (!test_prefix) {
|
|
153
|
+
/* Simple name match - no prefix in test */
|
|
154
|
+
/* Issue #525 (XPath 1.0 §2.3): an unprefixed test
|
|
155
|
+
* matches only NO-namespace elements. A prefix-less
|
|
156
|
+
* element under a default xmlns IS namespaced —
|
|
157
|
+
* "no prefix" is the wrong proxy. */
|
|
158
|
+
if (strcmp(node_name, test_local) != 0) return 0;
|
|
159
|
+
if (!ctx || !ctx->document || !ctx->document->has_namespaces)
|
|
160
|
+
return 1; /* namespace-free document: no gate */
|
|
161
|
+
const char* uri = leptris_element_get_namespace_uri(elem);
|
|
162
|
+
return !uri || !uri[0];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Has prefix - need namespace-aware matching */
|
|
166
|
+
size_t prefix_len = strlen(test_prefix);
|
|
167
|
+
|
|
168
|
+
/* URI-aware matching when the external bindings carry
|
|
169
|
+
* the test prefix (XPointer xmlns()): p:e matches any e
|
|
170
|
+
* in the bound namespace, including elements carrying
|
|
171
|
+
* that namespace via a different prefix or the default
|
|
172
|
+
* namespace. Unbound prefix falls through to the
|
|
173
|
+
* historic literal-prefix comparison. */
|
|
174
|
+
const char* test_uri = ctx
|
|
175
|
+
? leptris_xpath_ns_lookup(
|
|
176
|
+
(const struct leptris_xpath_ns_map*)ctx->ns_set,
|
|
177
|
+
test_prefix, prefix_len)
|
|
178
|
+
: NULL;
|
|
179
|
+
if (test_uri) {
|
|
180
|
+
const char* node_uri = leptris_element_get_namespace_uri(elem);
|
|
181
|
+
return node_uri && strcmp(node_uri, test_uri) == 0 &&
|
|
182
|
+
strcmp(node_name, test_local) == 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Get node prefix */
|
|
186
|
+
const char* node_prefix = leptris_element_get_prefix(elem);
|
|
187
|
+
if (!node_prefix) return 0; /* Test has prefix, node doesn't */
|
|
188
|
+
|
|
189
|
+
/* Match prefix (compare up to prefix_len) */
|
|
190
|
+
if (strncmp(test_prefix, node_prefix, prefix_len) != 0 ||
|
|
191
|
+
node_prefix[prefix_len] != '\0') {
|
|
192
|
+
return 0; /* Prefix mismatch or node prefix longer */
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Match local name */
|
|
196
|
+
return (strcmp(node_name, test_local) == 0);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
case XPATH_AST_NODE_TEST_ALL: {
|
|
200
|
+
/* prefix:* — namespace-scoped wildcard (the parser stores
|
|
201
|
+
* the prefix in test->prefix with value "*"). This was
|
|
202
|
+
* previously ignored: //t:* matched EVERY element. */
|
|
203
|
+
if (test->prefix) {
|
|
204
|
+
size_t prefix_len = strlen(test->prefix);
|
|
205
|
+
const char* test_uri = ctx
|
|
206
|
+
? leptris_xpath_ns_lookup(
|
|
207
|
+
(const struct leptris_xpath_ns_map*)ctx->ns_set,
|
|
208
|
+
test->prefix, prefix_len)
|
|
209
|
+
: NULL;
|
|
210
|
+
if (test_uri) {
|
|
211
|
+
const char* node_uri =
|
|
212
|
+
leptris_element_get_namespace_uri(elem);
|
|
213
|
+
return node_uri && strcmp(node_uri, test_uri) == 0;
|
|
214
|
+
}
|
|
215
|
+
const char* node_prefix = leptris_element_get_prefix(elem);
|
|
216
|
+
if (!node_prefix) return 0;
|
|
217
|
+
return strncmp(test->prefix, node_prefix, prefix_len) == 0 &&
|
|
218
|
+
node_prefix[prefix_len] == '\0';
|
|
219
|
+
}
|
|
220
|
+
/* Wildcard - if test has prefix, match namespace */
|
|
221
|
+
if (test->value) {
|
|
222
|
+
/* Fast path: No colon means match all */
|
|
223
|
+
const char* colon = strchr(test->value, ':');
|
|
224
|
+
if (!colon) return 1; /* Pure "*" matches all elements */
|
|
225
|
+
|
|
226
|
+
/* Has prefix (e.g., "ns1:*") - match namespace */
|
|
227
|
+
size_t prefix_len = colon - test->value;
|
|
228
|
+
|
|
229
|
+
const char* test_uri = ctx
|
|
230
|
+
? leptris_xpath_ns_lookup(
|
|
231
|
+
(const struct leptris_xpath_ns_map*)ctx->ns_set,
|
|
232
|
+
test->value, prefix_len)
|
|
233
|
+
: NULL;
|
|
234
|
+
if (test_uri) {
|
|
235
|
+
const char* node_uri =
|
|
236
|
+
leptris_element_get_namespace_uri(elem);
|
|
237
|
+
return node_uri && strcmp(node_uri, test_uri) == 0;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const char* node_prefix = leptris_element_get_prefix(elem);
|
|
241
|
+
|
|
242
|
+
if (!node_prefix) return 0;
|
|
243
|
+
|
|
244
|
+
/* Match prefix */
|
|
245
|
+
return (strncmp(test->value, node_prefix, prefix_len) == 0 &&
|
|
246
|
+
node_prefix[prefix_len] == '\0');
|
|
247
|
+
}
|
|
248
|
+
/* No prefix - match all elements */
|
|
249
|
+
return 1;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
case XPATH_AST_NODE_TEST_TYPE:
|
|
253
|
+
/* Node type tests (node(), text(), comment(), etc.) */
|
|
254
|
+
if (test->value) {
|
|
255
|
+
if (strcmp(test->value, "node") == 0) return 1;
|
|
256
|
+
/* text()/comment()/processing-instruction() never
|
|
257
|
+
* match elements — the non-element branch above tests
|
|
258
|
+
* real text/cdata/comment/pi nodes. The legacy
|
|
259
|
+
* "text() matches elements with text content" rule
|
|
260
|
+
* double-counted //text() (element + its text node). */
|
|
261
|
+
if (strcmp(test->value, "text") == 0) return 0;
|
|
262
|
+
if (strcmp(test->value, "comment") == 0) return 0;
|
|
263
|
+
if (strcmp(test->value, "processing-instruction") == 0) return 0;
|
|
264
|
+
}
|
|
265
|
+
return 0;
|
|
266
|
+
|
|
267
|
+
default:
|
|
268
|
+
return 0;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* ============================================================================
|
|
273
|
+
* Predicate Evaluation
|
|
274
|
+
* ============================================================================ */
|
|
275
|
+
|
|
276
|
+
/* Helper: Evaluate a single predicate for a node in-place
|
|
277
|
+
* Returns 1 if node matches predicate, 0 otherwise
|
|
278
|
+
*/
|
|
279
|
+
static int evaluate_predicate_for_node(XPathContext* ctx,
|
|
280
|
+
void* node,
|
|
281
|
+
XPathASTNode* predicate,
|
|
282
|
+
size_t proximity_position,
|
|
283
|
+
size_t context_size) {
|
|
284
|
+
/* Predicates apply to ANY node kind (XPath 1.0 §2.4): element,
|
|
285
|
+
* text, comment, PI. Attributes predicate on their OWNER as
|
|
286
|
+
* context. The old guard skipped every non-element candidate
|
|
287
|
+
* outright — text()[2] and node()[4] silently returned empty
|
|
288
|
+
* (libxslt bug-182). */
|
|
289
|
+
if (!node) return 0;
|
|
290
|
+
if (!node_as_element(node)) {
|
|
291
|
+
LeptrisAttributeNode* attr_node = node_as_attribute(node);
|
|
292
|
+
if (attr_node && !attr_node->owner) return 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* Save context */
|
|
296
|
+
LeptrisElement old_node = ctx->context_node;
|
|
297
|
+
size_t old_pos = ctx->context_position;
|
|
298
|
+
size_t old_size = ctx->context_size;
|
|
299
|
+
void* old_predicate_node = ctx->current_predicate_node;
|
|
300
|
+
|
|
301
|
+
/* #617 scalar profile: a bare NUMBER literal predicate ([1],
|
|
302
|
+
* [2], ...) is the hottest shape in select-heavy documents — it
|
|
303
|
+
* needs no context and no result object, just the position
|
|
304
|
+
* compare. Everything else falls through to the full evaluator. */
|
|
305
|
+
if (predicate->type == XPATH_AST_NUMBER) {
|
|
306
|
+
return predicate->number_value == (double)proximity_position;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* Set context ONCE for this evaluation
|
|
310
|
+
* IMPORTANT: context_node should be the actual node being tested (element or attribute)
|
|
311
|
+
* This allows functions like name() to work correctly on attributes */
|
|
312
|
+
ctx->context_node = (LeptrisElement)node; /* Use the actual node, not just element */
|
|
313
|
+
ctx->context_position = proximity_position; /* 1-based position in candidate set */
|
|
314
|
+
ctx->context_size = context_size;
|
|
315
|
+
ctx->current_predicate_node = node; /* The actual node (can be attribute) */
|
|
316
|
+
|
|
317
|
+
/* Evaluate predicate. A NULL result with an error set (e.g. an
|
|
318
|
+
* undefined variable) counts as a NON-MATCH — the filter keeps
|
|
319
|
+
* its in-place contract with merge_step_axis_result, which
|
|
320
|
+
* ignores this function's return and merges whatever remains.
|
|
321
|
+
* Hard-error propagation would need every caller audited; the
|
|
322
|
+
* bare-variable error still surfaces outside predicates. */
|
|
323
|
+
struct leptris_xpath_result* pred_result = evaluate_expr(ctx, predicate);
|
|
324
|
+
int matches = 0;
|
|
325
|
+
|
|
326
|
+
if (pred_result) {
|
|
327
|
+
/* Numeric predicate: matches position */
|
|
328
|
+
if (pred_result->type == XPATH_RESULT_NUMBER) {
|
|
329
|
+
if ((size_t)pred_result->value.number_value == proximity_position) {
|
|
330
|
+
matches = 1;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
/* Boolean predicate */
|
|
334
|
+
else if (xpath_to_boolean(pred_result)) {
|
|
335
|
+
matches = 1;
|
|
336
|
+
}
|
|
337
|
+
xpath_result_free(pred_result);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* Restore context */
|
|
341
|
+
ctx->context_node = old_node;
|
|
342
|
+
ctx->context_position = old_pos;
|
|
343
|
+
ctx->context_size = old_size;
|
|
344
|
+
ctx->current_predicate_node = old_predicate_node;
|
|
345
|
+
|
|
346
|
+
return matches;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Apply predicates using in-place filtering (libxml2 algorithm)
|
|
350
|
+
* This is 100-200x faster than creating new arrays
|
|
351
|
+
*
|
|
352
|
+
* Algorithm:
|
|
353
|
+
* - Use two-pointer technique (read/write positions)
|
|
354
|
+
* - Track matched_position separately from iteration
|
|
355
|
+
* - Set contextSize once, not per evaluation
|
|
356
|
+
* - Early termination for position predicates
|
|
357
|
+
*/
|
|
358
|
+
XPathNodeSet* apply_predicates(XPathContext* ctx, XPathNodeSet* nodes,
|
|
359
|
+
XPathASTNode** predicates, size_t pred_count) {
|
|
360
|
+
if (!nodes || pred_count == 0) return nodes;
|
|
361
|
+
|
|
362
|
+
DEBUG_LOG(" === apply_predicates: pred_count=%zu, nodeset size=%zu ===",
|
|
363
|
+
pred_count, xpath_nodeset_count(nodes));
|
|
364
|
+
/* Apply each predicate in sequence, filtering in-place */
|
|
365
|
+
for (size_t p = 0; p < pred_count; p++) {
|
|
366
|
+
DEBUG_LOG(" Processing predicate %zu", p);
|
|
367
|
+
|
|
368
|
+
size_t current_size = xpath_nodeset_count(nodes);
|
|
369
|
+
if (current_size == 0) {
|
|
370
|
+
break; /* No nodes left to filter */
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/* Two-pointer in-place filtering algorithm */
|
|
374
|
+
size_t read_pos = 0; /* Reading from here */
|
|
375
|
+
size_t write_pos = 0; /* Writing to here */
|
|
376
|
+
|
|
377
|
+
DEBUG_LOG(" Filtering %zu nodes", current_size);
|
|
378
|
+
|
|
379
|
+
/* Process all candidates */
|
|
380
|
+
for (read_pos = 0; read_pos < current_size; read_pos++) {
|
|
381
|
+
void* node = xpath_nodeset_get(nodes, read_pos);
|
|
382
|
+
size_t proximity_position = read_pos + 1; /* 1-based position in candidate set */
|
|
383
|
+
|
|
384
|
+
DEBUG_LOG(" Node[%zu]: proximity_pos=%zu",
|
|
385
|
+
read_pos, proximity_position);
|
|
386
|
+
|
|
387
|
+
/* Evaluate predicate for this node */
|
|
388
|
+
int matches = evaluate_predicate_for_node(ctx, node, predicates[p],
|
|
389
|
+
proximity_position, current_size);
|
|
390
|
+
|
|
391
|
+
if (matches) {
|
|
392
|
+
DEBUG_LOG(" MATCH! Writing to pos %zu", write_pos);
|
|
393
|
+
|
|
394
|
+
/* Keep this node - move it to write position if needed */
|
|
395
|
+
if (read_pos != write_pos) {
|
|
396
|
+
/* Move node pointer from read to write position */
|
|
397
|
+
nodes->nodes[write_pos] = node;
|
|
398
|
+
}
|
|
399
|
+
write_pos++;
|
|
400
|
+
|
|
401
|
+
/* Early termination optimization:
|
|
402
|
+
* If predicate is position-based and we've found enough matches, stop
|
|
403
|
+
* Example: [position() < 3] stops after finding 2 matches
|
|
404
|
+
*
|
|
405
|
+
* TODO: Implement maxPos detection from predicate AST
|
|
406
|
+
* For now, continue to ensure correctness
|
|
407
|
+
*/
|
|
408
|
+
} else {
|
|
409
|
+
DEBUG_LOG(" NO MATCH, skipping");
|
|
410
|
+
/* Don't increment write_pos - effectively deletes this
|
|
411
|
+
* node. owns_* sets carry heap synthetic nodes: the
|
|
412
|
+
* dropped entry's only reference dies HERE (the
|
|
413
|
+
* nodeset free only walks surviving entries). */
|
|
414
|
+
if (nodes->owns_attributes &&
|
|
415
|
+
node && XPATH_NODE_TYPE(node) == LEPTRIS_NODE_ATTRIBUTE)
|
|
416
|
+
xpath_nodeset_dispose_node(node);
|
|
417
|
+
else if (nodes->owns_namespaces &&
|
|
418
|
+
node && XPATH_NODE_TYPE(node) == LEPTRIS_NODE_NAMESPACE)
|
|
419
|
+
xpath_nodeset_dispose_node(node);
|
|
420
|
+
else if (nodes->owns_synthetic_text &&
|
|
421
|
+
node && XPATH_NODE_TYPE(node) == LEPTRIS_NODE_TEXT)
|
|
422
|
+
xpath_nodeset_dispose_node(node);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* Update nodeset size to reflect filtered results */
|
|
427
|
+
nodes->count = write_pos;
|
|
428
|
+
|
|
429
|
+
DEBUG_LOG(" After predicate %zu: %zu nodes remain", p, write_pos);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
DEBUG_LOG(" === apply_predicates END: result size=%zu ===",
|
|
433
|
+
xpath_nodeset_count(nodes));
|
|
434
|
+
return nodes;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* ============================================================================
|
|
438
|
+
* Path Expression Evaluation
|
|
439
|
+
* ============================================================================ */
|
|
440
|
+
|
|
441
|
+
/* ---- Document-order rank sort (issue #485) ------------------------------
|
|
442
|
+
*
|
|
443
|
+
* Comparing two nodes' document order directly costs O(depth +
|
|
444
|
+
* siblings) — the sibling-chain walk makes a qsort over a wide nodeset
|
|
445
|
+
* quadratic in practice (e.g. //text() on a 20k-child document).
|
|
446
|
+
* Instead we assign every node an integer rank with one preorder walk
|
|
447
|
+
* of the covering subtrees and sort by rank: O(tree) + O(n log n)
|
|
448
|
+
* integer comparisons.
|
|
449
|
+
*
|
|
450
|
+
* Walked nodes get rank 4*seq; a synthetic namespace/attribute/
|
|
451
|
+
* xpath-text node owned by a walked element ranks at 4*seq+1/+2/+3 —
|
|
452
|
+
* between the element and its first child, per XPath 1.0 document
|
|
453
|
+
* order. Nodes outside the walked region (doctype, cross-document)
|
|
454
|
+
* sort last, pointer-ordered, for determinism.
|
|
455
|
+
* ------------------------------------------------------------------------ */
|
|
456
|
+
|
|
457
|
+
typedef struct {
|
|
458
|
+
void** keys;
|
|
459
|
+
int64_t* ranks;
|
|
460
|
+
size_t count;
|
|
461
|
+
size_t mask; /* capacity - 1, power of two */
|
|
462
|
+
unsigned built_version; /* document mutation_version at build */
|
|
463
|
+
} DocOrderRankTable;
|
|
464
|
+
|
|
465
|
+
static int doc_rank_table_init(DocOrderRankTable* t, size_t expected) {
|
|
466
|
+
size_t cap = 16;
|
|
467
|
+
while (cap < expected * 2) cap <<= 1;
|
|
468
|
+
t->keys = (void**)calloc(cap, sizeof(void*));
|
|
469
|
+
t->ranks = (int64_t*)malloc(cap * sizeof(int64_t));
|
|
470
|
+
if (!t->keys || !t->ranks) {
|
|
471
|
+
free(t->keys);
|
|
472
|
+
free(t->ranks);
|
|
473
|
+
t->keys = NULL;
|
|
474
|
+
t->ranks = NULL;
|
|
475
|
+
return 0;
|
|
476
|
+
}
|
|
477
|
+
t->count = 0;
|
|
478
|
+
t->mask = cap - 1;
|
|
479
|
+
return 1;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
static void doc_rank_table_free(DocOrderRankTable* t) {
|
|
483
|
+
free(t->keys);
|
|
484
|
+
free(t->ranks);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* Grow at 70% load so probe chains stay short. */
|
|
488
|
+
static int doc_rank_table_grow(DocOrderRankTable* t) {
|
|
489
|
+
size_t new_cap = (t->mask + 1) << 1;
|
|
490
|
+
void** new_keys = (void**)calloc(new_cap, sizeof(void*));
|
|
491
|
+
int64_t* new_ranks = (int64_t*)malloc(new_cap * sizeof(int64_t));
|
|
492
|
+
if (!new_keys || !new_ranks) {
|
|
493
|
+
free(new_keys);
|
|
494
|
+
free(new_ranks);
|
|
495
|
+
return 0;
|
|
496
|
+
}
|
|
497
|
+
size_t new_mask = new_cap - 1;
|
|
498
|
+
for (size_t i = 0; i <= t->mask; i++) {
|
|
499
|
+
if (!t->keys[i]) continue;
|
|
500
|
+
size_t j = (size_t)(((uintptr_t)t->keys[i] >> 4) & new_mask);
|
|
501
|
+
while (new_keys[j]) j = (j + 1) & new_mask;
|
|
502
|
+
new_keys[j] = t->keys[i];
|
|
503
|
+
new_ranks[j] = t->ranks[i];
|
|
504
|
+
}
|
|
505
|
+
free(t->keys);
|
|
506
|
+
free(t->ranks);
|
|
507
|
+
t->keys = new_keys;
|
|
508
|
+
t->ranks = new_ranks;
|
|
509
|
+
t->mask = new_mask;
|
|
510
|
+
return 1;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
static int doc_rank_table_put(DocOrderRankTable* t, void* key, int64_t rank) {
|
|
514
|
+
if ((t->count + 1) * 10 >= (t->mask + 1) * 7) {
|
|
515
|
+
if (!doc_rank_table_grow(t)) return 0;
|
|
516
|
+
}
|
|
517
|
+
size_t i = (size_t)(((uintptr_t)key >> 4) & t->mask);
|
|
518
|
+
while (t->keys[i]) {
|
|
519
|
+
if (t->keys[i] == key) return 1; /* first visit wins */
|
|
520
|
+
i = (i + 1) & t->mask;
|
|
521
|
+
}
|
|
522
|
+
t->keys[i] = key;
|
|
523
|
+
t->ranks[i] = rank;
|
|
524
|
+
t->count++;
|
|
525
|
+
return 1;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
static int64_t doc_rank_table_get(const DocOrderRankTable* t, void* key) {
|
|
529
|
+
size_t i = (size_t)(((uintptr_t)key >> 4) & t->mask);
|
|
530
|
+
while (t->keys[i]) {
|
|
531
|
+
if (t->keys[i] == key) return t->ranks[i];
|
|
532
|
+
i = (i + 1) & t->mask;
|
|
533
|
+
}
|
|
534
|
+
return INT64_MAX;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* Preorder walk of elem's subtree, ranking every node. */
|
|
538
|
+
static void doc_rank_walk(DocOrderRankTable* t, LeptrisElement elem,
|
|
539
|
+
int64_t* seq) {
|
|
540
|
+
if (!elem) return;
|
|
541
|
+
doc_rank_table_put(t, elem, (*seq)++ * 4);
|
|
542
|
+
LeptrisNode* child = leptris_elem_first_child(elem);
|
|
543
|
+
while (child) {
|
|
544
|
+
if (child->type == LEPTRIS_NODE_TYPE_ELEMENT) {
|
|
545
|
+
doc_rank_walk(t, (LeptrisElement)child, seq);
|
|
546
|
+
} else {
|
|
547
|
+
doc_rank_table_put(t, child, (*seq)++ * 4);
|
|
548
|
+
}
|
|
549
|
+
child = leptris_node_get_next_sibling(child);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* Free a cached rank table (called from document teardown). */
|
|
554
|
+
void leptris_doc_order_index_free(void* table) {
|
|
555
|
+
if (!table) return;
|
|
556
|
+
doc_rank_table_free((DocOrderRankTable*)table);
|
|
557
|
+
free(table);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* Sort ns in document order (descending if reverse). Returns 0 on
|
|
561
|
+
* success, -1 on allocation failure (ns left unsorted — callers treat
|
|
562
|
+
* order as best-effort for exotic nodes).
|
|
563
|
+
*
|
|
564
|
+
* The rank table is cached on the document and keyed on
|
|
565
|
+
* mutation_version so repeated queries don't rewalk the tree
|
|
566
|
+
* (issue #485: a per-call walk made union-heavy benchmark loops
|
|
567
|
+
* quadratic). */
|
|
568
|
+
int xpath_nodeset_sort_doc_order(XPathContext* ctx, XPathNodeSet* ns,
|
|
569
|
+
int reverse) {
|
|
570
|
+
if (!ns || ns->count < 2) return 0;
|
|
571
|
+
if (!ctx || !ctx->document || !ctx->document->new_dom_root) return 0;
|
|
572
|
+
|
|
573
|
+
DocOrderRankTable* t = (DocOrderRankTable*)ctx->document->doc_order_index;
|
|
574
|
+
if (t && t->built_version != ctx->document->mutation_version) {
|
|
575
|
+
leptris_doc_order_index_free(t);
|
|
576
|
+
t = NULL;
|
|
577
|
+
ctx->document->doc_order_index = NULL;
|
|
578
|
+
}
|
|
579
|
+
if (!t) {
|
|
580
|
+
t = (DocOrderRankTable*)malloc(sizeof(DocOrderRankTable));
|
|
581
|
+
if (!t) return -1;
|
|
582
|
+
if (!doc_rank_table_init(t, 256)) {
|
|
583
|
+
free(t);
|
|
584
|
+
return -1;
|
|
585
|
+
}
|
|
586
|
+
int64_t seq = 0;
|
|
587
|
+
/* #580: rank the document child chain in order — prolog
|
|
588
|
+
* nodes rank before the root subtree, epilog nodes after —
|
|
589
|
+
* so mixed nodesets (//comment() unions) sort in true
|
|
590
|
+
* document order. */
|
|
591
|
+
for (LeptrisNode* c =
|
|
592
|
+
(LeptrisNode*)ctx->document->doc_children_head;
|
|
593
|
+
c; c = leptris_node_get_next_sibling(c)) {
|
|
594
|
+
if (c->type == LEPTRIS_NODE_TYPE_ELEMENT) break;
|
|
595
|
+
doc_rank_table_put(t, c, seq++);
|
|
596
|
+
}
|
|
597
|
+
doc_rank_walk(t, (LeptrisElement)ctx->document->new_dom_root, &seq);
|
|
598
|
+
for (LeptrisNode* c =
|
|
599
|
+
leptris_node_get_next_sibling(
|
|
600
|
+
(LeptrisNode*)ctx->document->new_dom_root);
|
|
601
|
+
c; c = leptris_node_get_next_sibling(c)) {
|
|
602
|
+
doc_rank_table_put(t, c, seq++);
|
|
603
|
+
}
|
|
604
|
+
t->built_version = ctx->document->mutation_version;
|
|
605
|
+
ctx->document->doc_order_index = t;
|
|
606
|
+
}
|
|
607
|
+
const DocOrderRankTable ct = *t;
|
|
608
|
+
|
|
609
|
+
/* Rank every entry: synthetic nodes via their owner's rank. */
|
|
610
|
+
size_t n = ns->count;
|
|
611
|
+
int64_t* rank = (int64_t*)malloc(n * sizeof(int64_t));
|
|
612
|
+
if (!rank) {
|
|
613
|
+
return -1;
|
|
614
|
+
}
|
|
615
|
+
for (size_t i = 0; i < n; i++) {
|
|
616
|
+
void* node = ns->nodes[i];
|
|
617
|
+
int64_t r = doc_rank_table_get(&ct, node);
|
|
618
|
+
if (r == INT64_MAX) {
|
|
619
|
+
int tag = (int)XPATH_NODE_TYPE(node);
|
|
620
|
+
if (tag == LEPTRIS_NODE_ATTRIBUTE) {
|
|
621
|
+
int64_t o = doc_rank_table_get(
|
|
622
|
+
&ct, ((LeptrisAttributeNode*)node)->owner);
|
|
623
|
+
r = (o == INT64_MAX) ? INT64_MAX : o + 2;
|
|
624
|
+
} else if (tag == LEPTRIS_NODE_NAMESPACE) {
|
|
625
|
+
int64_t o = doc_rank_table_get(
|
|
626
|
+
&ct, ((LeptrisNamespaceNode*)node)->owner);
|
|
627
|
+
r = (o == INT64_MAX) ? INT64_MAX : o + 1;
|
|
628
|
+
} else if (tag == LEPTRIS_NODE_TEXT) {
|
|
629
|
+
int64_t o = doc_rank_table_get(
|
|
630
|
+
&ct, ((XPathTextNode*)node)->owner);
|
|
631
|
+
r = (o == INT64_MAX) ? INT64_MAX : o + 3;
|
|
632
|
+
} else if (r == INT64_MAX) {
|
|
633
|
+
/* Outside the tree (doctype, cross-document): last,
|
|
634
|
+
* pointer-ordered among themselves. */
|
|
635
|
+
r = INT64_MAX - (int64_t)(((uintptr_t)node >> 4) & 0x3FFFFFFF);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
rank[i] = r;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/* Stable bottom-up merge sort on an index array keyed by rank
|
|
642
|
+
* (qsort_r is not portable C99; plain qsort cannot see the rank
|
|
643
|
+
* array). O(n log n) int64 compares. */
|
|
644
|
+
size_t* idx = (size_t*)malloc(n * sizeof(size_t));
|
|
645
|
+
if (!idx) {
|
|
646
|
+
free(rank);
|
|
647
|
+
return -1;
|
|
648
|
+
}
|
|
649
|
+
for (size_t i = 0; i < n; i++) idx[i] = i;
|
|
650
|
+
{
|
|
651
|
+
/* Bottom-up merge sort, stable, O(n log n) compares on int64. */
|
|
652
|
+
size_t* tmp = (size_t*)malloc(n * sizeof(size_t));
|
|
653
|
+
if (!tmp) {
|
|
654
|
+
free(idx);
|
|
655
|
+
free(rank);
|
|
656
|
+
return -1;
|
|
657
|
+
}
|
|
658
|
+
for (size_t width = 1; width < n; width <<= 1) {
|
|
659
|
+
for (size_t lo = 0; lo < n; lo += width << 1) {
|
|
660
|
+
size_t mid = lo + width < n ? lo + width : n;
|
|
661
|
+
size_t hi = lo + (width << 1) < n ? lo + (width << 1) : n;
|
|
662
|
+
size_t a = lo, b = mid, k = lo;
|
|
663
|
+
while (a < mid && b < hi)
|
|
664
|
+
tmp[k++] = (rank[idx[a]] <= rank[idx[b]]) ? idx[a++] : idx[b++];
|
|
665
|
+
while (a < mid) tmp[k++] = idx[a++];
|
|
666
|
+
while (b < hi) tmp[k++] = idx[b++];
|
|
667
|
+
}
|
|
668
|
+
memcpy(idx, tmp, n * sizeof(size_t));
|
|
669
|
+
}
|
|
670
|
+
free(tmp);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
void** sorted = (void**)malloc(n * sizeof(void*));
|
|
674
|
+
if (!sorted) {
|
|
675
|
+
free(idx);
|
|
676
|
+
free(rank);
|
|
677
|
+
return -1;
|
|
678
|
+
}
|
|
679
|
+
if (!reverse) {
|
|
680
|
+
for (size_t i = 0; i < n; i++) sorted[i] = ns->nodes[idx[i]];
|
|
681
|
+
} else {
|
|
682
|
+
for (size_t i = 0; i < n; i++) sorted[n - 1 - i] = ns->nodes[idx[i]];
|
|
683
|
+
}
|
|
684
|
+
memcpy(ns->nodes, sorted, n * sizeof(void*));
|
|
685
|
+
|
|
686
|
+
/* Sort groups duplicate pointers adjacently — compact them in one
|
|
687
|
+
* pass. O(n) after the O(n log n) sort, versus the O(n^2) linear
|
|
688
|
+
* duplicate scan the union operator used to run per merge. */
|
|
689
|
+
size_t w = 0;
|
|
690
|
+
for (size_t i = 0; i < n; i++) {
|
|
691
|
+
if (i == 0 || ns->nodes[i] != ns->nodes[i - 1]) {
|
|
692
|
+
ns->nodes[w++] = ns->nodes[i];
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
ns->count = w;
|
|
696
|
+
|
|
697
|
+
free(sorted);
|
|
698
|
+
free(idx);
|
|
699
|
+
free(rank);
|
|
700
|
+
return 0;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/* Shared tail of evaluate_step's per-input loop: apply the step's
|
|
704
|
+
* predicates to one input's axis result, then merge into the step
|
|
705
|
+
* result. The document-node branch and the element branch MUST flow
|
|
706
|
+
* through here together — a doc-branch shortcut that skipped
|
|
707
|
+
* predicates silently dropped them (the double-wildcard-with-
|
|
708
|
+
* predicate query, bug-16- follow-up). */
|
|
709
|
+
static void merge_step_axis_result(XPathContext* ctx,
|
|
710
|
+
XPathNodeSet* result,
|
|
711
|
+
XPathNodeSet* axis_result,
|
|
712
|
+
const char* axis_name,
|
|
713
|
+
XPathASTNode* step) {
|
|
714
|
+
if (!axis_result) return;
|
|
715
|
+
if (step->child_count > 1)
|
|
716
|
+
apply_predicates(ctx, axis_result,
|
|
717
|
+
&step->children[1], step->child_count - 1);
|
|
718
|
+
|
|
719
|
+
/* Ownership is determined by axis type, not by node kind: sets
|
|
720
|
+
* from the attribute/namespace axes carry synthetic nodes the
|
|
721
|
+
* result must own (frees only tag-matched entries). */
|
|
722
|
+
if (strcmp(axis_name, "attribute") == 0)
|
|
723
|
+
result->owns_attributes = 1;
|
|
724
|
+
else if (strcmp(axis_name, "namespace") == 0)
|
|
725
|
+
result->owns_namespaces = 1;
|
|
726
|
+
|
|
727
|
+
for (size_t j = 0; j < xpath_nodeset_count(axis_result); j++)
|
|
728
|
+
xpath_nodeset_add(result, xpath_nodeset_get(axis_result, j));
|
|
729
|
+
|
|
730
|
+
axis_result->owns_attributes = 0;
|
|
731
|
+
axis_result->owns_namespaces = 0;
|
|
732
|
+
xpath_nodeset_free(axis_result);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
struct leptris_xpath_result* evaluate_step(XPathContext* ctx,
|
|
736
|
+
XPathASTNode* step,
|
|
737
|
+
XPathNodeSet* input) {
|
|
738
|
+
DEBUG_LOG(" === evaluate_step START ===");
|
|
739
|
+
if (!step || step->type != XPATH_AST_STEP || !input) {
|
|
740
|
+
DEBUG_LOG(" Invalid parameters: step=%p, type=%d, input=%p",
|
|
741
|
+
(void*)step, step ? step->type : -1, (void*)input);
|
|
742
|
+
return NULL;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
const char* axis_name = step->value ? step->value : "child";
|
|
746
|
+
XPathASTNode* node_test = (step->child_count > 0) ? step->children[0] : NULL;
|
|
747
|
+
DEBUG_LOG(" axis_name = %s", axis_name);
|
|
748
|
+
DEBUG_LOG(" node_test = %p (type=%d)", (void*)node_test, node_test ? node_test->type : -1);
|
|
749
|
+
if (node_test && node_test->value) {
|
|
750
|
+
DEBUG_LOG(" node_test->value = %s", node_test->value);
|
|
751
|
+
}
|
|
752
|
+
DEBUG_LOG(" input nodeset count = %zu", xpath_nodeset_count(input));
|
|
753
|
+
|
|
754
|
+
XPathNodeSet* result = xpath_nodeset_new();
|
|
755
|
+
if (!result) {
|
|
756
|
+
DEBUG_LOG(" FAILED to create result nodeset");
|
|
757
|
+
return NULL;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/* Apply axis to each input node (must be elements) */
|
|
761
|
+
for (size_t i = 0; i < xpath_nodeset_count(input); i++) {
|
|
762
|
+
void* node_ptr = xpath_nodeset_get(input, i);
|
|
763
|
+
LeptrisElement node = node_as_element(node_ptr);
|
|
764
|
+
DEBUG_LOG(" Processing input[%zu]: node=%p", i, (void*)node);
|
|
765
|
+
|
|
766
|
+
/* Document-node contexts (XSLT "/" initial context):
|
|
767
|
+
* child = the document child chain — prolog comments/PIs,
|
|
768
|
+
* the root element, epilog nodes (#580); self = the document
|
|
769
|
+
* itself; descendant(-or-self) = prolog + the root subtree +
|
|
770
|
+
* epilog, in document order; parent/ancestor = nothing.
|
|
771
|
+
* Results flow through the SAME predicate + merge tail as
|
|
772
|
+
* element inputs. */
|
|
773
|
+
if (node_ptr && ((LeptrisNode*)node_ptr)->type ==
|
|
774
|
+
LEPTRIS_NODE_TYPE_DOCUMENT) {
|
|
775
|
+
struct leptris_document* dd =
|
|
776
|
+
((LeptrisDocumentNode*)node_ptr)->doc;
|
|
777
|
+
LeptrisElement doc_root = (LeptrisElement)dd->new_dom_root;
|
|
778
|
+
if (!doc_root) doc_root = dd->root;
|
|
779
|
+
XPathNodeSet* axis_result = xpath_nodeset_new();
|
|
780
|
+
if (!axis_result) continue;
|
|
781
|
+
if (strcmp(axis_name, "child") == 0) {
|
|
782
|
+
LeptrisNode* start = (LeptrisNode*)dd->doc_children_head;
|
|
783
|
+
if (!start) start = (LeptrisNode*)doc_root;
|
|
784
|
+
for (LeptrisNode* c = start; c;
|
|
785
|
+
c = leptris_node_get_next_sibling(c))
|
|
786
|
+
if (matches_node_test(ctx, c, node_test))
|
|
787
|
+
xpath_nodeset_add(axis_result, c);
|
|
788
|
+
} else if (strcmp(axis_name, "self") == 0) {
|
|
789
|
+
if (matches_node_test(ctx, (LeptrisNode*)node_ptr,
|
|
790
|
+
node_test))
|
|
791
|
+
xpath_nodeset_add(axis_result,
|
|
792
|
+
(LeptrisNode*)node_ptr);
|
|
793
|
+
} else if (strcmp(axis_name, "descendant") == 0 ||
|
|
794
|
+
strcmp(axis_name, "descendant-or-self") == 0) {
|
|
795
|
+
/* bug-16-: two document-node rules. (1) '-' sits at
|
|
796
|
+
* index 10 of "descendant-or-self", not 11 — the
|
|
797
|
+
* self-add never fired, so //NAME's first step lost
|
|
798
|
+
* the document node. (2) The root ELEMENT is itself
|
|
799
|
+
* a descendant of the document: from here the root
|
|
800
|
+
* subtree walks with -or-self semantics either way.
|
|
801
|
+
* #580: document-level nodes are descendants too —
|
|
802
|
+
* walk the chain in order, recursing into the root
|
|
803
|
+
* subtree at the root's position. */
|
|
804
|
+
int or_self = axis_name[10] == '-';
|
|
805
|
+
if (or_self &&
|
|
806
|
+
matches_node_test(ctx, (LeptrisNode*)node_ptr,
|
|
807
|
+
node_test))
|
|
808
|
+
xpath_nodeset_add(axis_result,
|
|
809
|
+
(LeptrisNode*)node_ptr);
|
|
810
|
+
LeptrisNode* start = (LeptrisNode*)dd->doc_children_head;
|
|
811
|
+
if (!start) start = (LeptrisNode*)doc_root;
|
|
812
|
+
for (LeptrisNode* c = start; c;
|
|
813
|
+
c = leptris_node_get_next_sibling(c)) {
|
|
814
|
+
if (c->type == LEPTRIS_NODE_TYPE_ELEMENT) {
|
|
815
|
+
XPathNodeSet* sub = apply_axis(
|
|
816
|
+
ctx, c, "descendant-or-self", node_test);
|
|
817
|
+
if (sub) {
|
|
818
|
+
for (size_t j = 0;
|
|
819
|
+
j < xpath_nodeset_count(sub); j++)
|
|
820
|
+
xpath_nodeset_add(
|
|
821
|
+
axis_result,
|
|
822
|
+
xpath_nodeset_get(sub, j));
|
|
823
|
+
xpath_nodeset_free(sub);
|
|
824
|
+
}
|
|
825
|
+
} else if (matches_node_test(ctx, c, node_test)) {
|
|
826
|
+
xpath_nodeset_add(axis_result, c);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
/* parent/ancestor/etc. from the document: empty */
|
|
831
|
+
merge_step_axis_result(ctx, result, axis_result,
|
|
832
|
+
axis_name, step);
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/* Handle attribute nodes for certain axes */
|
|
837
|
+
if (!node) {
|
|
838
|
+
LeptrisAttributeNode* attr_node = node_as_attribute(node_ptr);
|
|
839
|
+
if (attr_node) {
|
|
840
|
+
DEBUG_LOG(" Input is an attribute node, name=%s", attr_node->name);
|
|
841
|
+
|
|
842
|
+
/* Special case: parent axis from attribute should return owner directly */
|
|
843
|
+
if (strcmp(axis_name, "parent") == 0) {
|
|
844
|
+
if (attr_node->owner && matches_node_test(ctx, (LeptrisNode*)attr_node->owner, node_test)) {
|
|
845
|
+
xpath_nodeset_add(result, (LeptrisNode*)attr_node->owner);
|
|
846
|
+
}
|
|
847
|
+
continue; /* Skip normal axis processing */
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/* ancestor(-or-self) from an attribute walks the
|
|
851
|
+
* owner's chain; self::node() on an attribute is the
|
|
852
|
+
* ATTRIBUTE itself (XPath §2.2 — attributes are
|
|
853
|
+
* nodes in their own right). */
|
|
854
|
+
if (strcmp(axis_name, "self") == 0) {
|
|
855
|
+
if (matches_node_test(ctx, (LeptrisNode*)node_ptr,
|
|
856
|
+
node_test))
|
|
857
|
+
xpath_nodeset_add(result, node_ptr);
|
|
858
|
+
continue;
|
|
859
|
+
}
|
|
860
|
+
if (strcmp(axis_name, "ancestor") == 0 ||
|
|
861
|
+
strcmp(axis_name, "ancestor-or-self") == 0) {
|
|
862
|
+
|
|
863
|
+
/* Use the owner element as context */
|
|
864
|
+
node = attr_node->owner;
|
|
865
|
+
DEBUG_LOG(" Using owner element as context: %p (name=%s)",
|
|
866
|
+
(void*)node, node ? leptris_element_get_name(node) : "(null)");
|
|
867
|
+
} else {
|
|
868
|
+
DEBUG_LOG(" Axis '%s' cannot operate on attribute nodes, skipping", axis_name);
|
|
869
|
+
continue; /* Skip non-element nodes for other axes */
|
|
870
|
+
}
|
|
871
|
+
} else if (node_ptr && ((LeptrisNode*)node_ptr)->type ==
|
|
872
|
+
LEPTRIS_NODE_NAMESPACE) {
|
|
873
|
+
/* Synthetic namespace nodes: parent/ancestor axes
|
|
874
|
+
* resolve through the OWNER element (bug-63); self
|
|
875
|
+
* is the ns node itself. */
|
|
876
|
+
LeptrisElement owner =
|
|
877
|
+
((LeptrisNamespaceNode*)node_ptr)->owner;
|
|
878
|
+
if (strcmp(axis_name, "self") == 0) {
|
|
879
|
+
if (matches_node_test(ctx, (LeptrisNode*)node_ptr,
|
|
880
|
+
node_test))
|
|
881
|
+
xpath_nodeset_add(result, node_ptr);
|
|
882
|
+
} else if (strcmp(axis_name, "parent") == 0) {
|
|
883
|
+
if (owner &&
|
|
884
|
+
matches_node_test(ctx, (LeptrisNode*)owner,
|
|
885
|
+
node_test))
|
|
886
|
+
xpath_nodeset_add(result, (LeptrisNode*)owner);
|
|
887
|
+
} else if (owner &&
|
|
888
|
+
(strcmp(axis_name, "ancestor") == 0 ||
|
|
889
|
+
strcmp(axis_name, "ancestor-or-self") == 0)) {
|
|
890
|
+
node = owner;
|
|
891
|
+
} else {
|
|
892
|
+
continue;
|
|
893
|
+
}
|
|
894
|
+
} else if (node_ptr && ((LeptrisNode*)node_ptr)->type !=
|
|
895
|
+
LEPTRIS_NODE_TYPE_ATTRIBUTE) {
|
|
896
|
+
/* Real DOM non-element (text/comment/cdata/pi):
|
|
897
|
+
* self/parent work; sibling + ancestor axes work
|
|
898
|
+
* through the node links (XPath: a text node has
|
|
899
|
+
* siblings — key use expressions evaluated from text
|
|
900
|
+
* contexts, bug-133); child/descendant axes are
|
|
901
|
+
* empty from these nodes. */
|
|
902
|
+
if (strcmp(axis_name, "self") == 0) {
|
|
903
|
+
if (matches_node_test(ctx, (LeptrisNode*)node_ptr,
|
|
904
|
+
node_test))
|
|
905
|
+
xpath_nodeset_add(result, (LeptrisNode*)node_ptr);
|
|
906
|
+
} else if (strcmp(axis_name, "parent") == 0) {
|
|
907
|
+
/* leptris_node_parent returns LeptrisElement —
|
|
908
|
+
* musl GCC rejects the mismatched store (#582). */
|
|
909
|
+
LeptrisElement up = leptris_node_parent(
|
|
910
|
+
(LeptrisNodeRef)node_ptr);
|
|
911
|
+
if (up &&
|
|
912
|
+
matches_node_test(ctx, (LeptrisNode*)up, node_test))
|
|
913
|
+
xpath_nodeset_add(result, (LeptrisNode*)up);
|
|
914
|
+
continue;
|
|
915
|
+
} else if (strcmp(axis_name, "ancestor") == 0 ||
|
|
916
|
+
strcmp(axis_name, "ancestor-or-self") == 0 ||
|
|
917
|
+
strcmp(axis_name, "preceding-sibling") == 0 ||
|
|
918
|
+
strcmp(axis_name, "following-sibling") == 0 ||
|
|
919
|
+
strcmp(axis_name, "preceding") == 0 ||
|
|
920
|
+
strcmp(axis_name, "following") == 0) {
|
|
921
|
+
/* Fall through: the generic walkers below use the
|
|
922
|
+
* node links, which text/comment/PI nodes carry
|
|
923
|
+
* (bug-133 — evaluated from text contexts). */
|
|
924
|
+
node = (LeptrisElement)node_ptr;
|
|
925
|
+
} else {
|
|
926
|
+
continue;
|
|
927
|
+
}
|
|
928
|
+
} else {
|
|
929
|
+
DEBUG_LOG(" Skipping non-element, non-attribute node");
|
|
930
|
+
continue; /* Skip non-element, non-attribute nodes */
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
if (!node) {
|
|
935
|
+
DEBUG_LOG(" No valid node context, skipping");
|
|
936
|
+
continue;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
DEBUG_LOG(" node->name = %s",
|
|
940
|
+
leptris_element_get_name(node) ? leptris_element_get_name(node) : "(null)");
|
|
941
|
+
|
|
942
|
+
XPathNodeSet* axis_result = apply_axis(ctx, (LeptrisNode*)node, axis_name, node_test);
|
|
943
|
+
DEBUG_LOG(" axis_result count = %zu", axis_result ? xpath_nodeset_count(axis_result) : 0);
|
|
944
|
+
|
|
945
|
+
merge_step_axis_result(ctx, result, axis_result,
|
|
946
|
+
axis_name, step);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
DEBUG_LOG(" Final result count = %zu", xpath_nodeset_count(result));
|
|
950
|
+
|
|
951
|
+
/* Multi-context steps interleave: children of an early context
|
|
952
|
+
* node must precede a later context node even when they were
|
|
953
|
+
* appended after it (issue #485). Sort the merged result into
|
|
954
|
+
* document order — reverse axes descending, per XPath 1.0.
|
|
955
|
+
* Single-context steps come out of the axis walks already
|
|
956
|
+
* ordered. */
|
|
957
|
+
if (xpath_nodeset_count(input) > 1 && result->count > 1) {
|
|
958
|
+
int reverse = (strcmp(axis_name, "ancestor") == 0 ||
|
|
959
|
+
strcmp(axis_name, "ancestor-or-self") == 0 ||
|
|
960
|
+
strcmp(axis_name, "preceding") == 0 ||
|
|
961
|
+
strcmp(axis_name, "preceding-sibling") == 0);
|
|
962
|
+
xpath_nodeset_sort_doc_order(ctx, result, reverse);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
DEBUG_LOG(" === evaluate_step END ===");
|
|
966
|
+
|
|
967
|
+
struct leptris_xpath_result* res = xpath_result_new(XPATH_RESULT_NODESET);
|
|
968
|
+
if (res) res->value.nodeset_value = result;
|
|
969
|
+
return res;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
struct leptris_xpath_result* evaluate_location_path(XPathContext* ctx,
|
|
973
|
+
XPathASTNode* path) {
|
|
974
|
+
XPathNodeSet* current = xpath_nodeset_new();
|
|
975
|
+
if (!current) return NULL;
|
|
976
|
+
|
|
977
|
+
/* PATH_EXPR: a filter-expression head feeding steps —
|
|
978
|
+
* document('')//x, $v/a, key('k','v')/b, (@attr)/.. — the head
|
|
979
|
+
* result is the starting nodeset. Previously the head was
|
|
980
|
+
* IGNORED and the steps ran from the context node (every
|
|
981
|
+
* foreign-document and variable path silently misresolved). */
|
|
982
|
+
if (path->type == XPATH_AST_PATH_EXPR && path->child_count >= 1 &&
|
|
983
|
+
path->children[0]->type != XPATH_AST_STEP &&
|
|
984
|
+
path->children[0]->type != XPATH_AST_RELATIVE_PATH) {
|
|
985
|
+
struct leptris_xpath_result* head =
|
|
986
|
+
evaluate_expr(ctx, path->children[0]);
|
|
987
|
+
if (!head) {
|
|
988
|
+
xpath_nodeset_free(current);
|
|
989
|
+
return NULL;
|
|
990
|
+
}
|
|
991
|
+
if (head->type != XPATH_RESULT_NODESET) {
|
|
992
|
+
/* A non-nodeset head: per XPath 1.0 the path is applied
|
|
993
|
+
* to the head's VALUE as the context (rare; treat as
|
|
994
|
+
* empty — the common forms are nodeset heads). */
|
|
995
|
+
xpath_result_free(head);
|
|
996
|
+
xpath_nodeset_free(current);
|
|
997
|
+
return xpath_result_new(XPATH_RESULT_NODESET);
|
|
998
|
+
}
|
|
999
|
+
if (head->value.nodeset_value) {
|
|
1000
|
+
for (size_t i = 0; i < head->value.nodeset_value->count; i++)
|
|
1001
|
+
xpath_nodeset_add(current,
|
|
1002
|
+
head->value.nodeset_value->nodes[i]);
|
|
1003
|
+
}
|
|
1004
|
+
xpath_result_free(head);
|
|
1005
|
+
/* Process remaining children as steps. */
|
|
1006
|
+
for (size_t i = 1; i < path->child_count; i++) {
|
|
1007
|
+
XPathASTNode* child = path->children[i];
|
|
1008
|
+
if (child->type == XPATH_AST_STEP) {
|
|
1009
|
+
struct leptris_xpath_result* step_result =
|
|
1010
|
+
evaluate_step(ctx, child, current);
|
|
1011
|
+
if (!step_result) {
|
|
1012
|
+
xpath_nodeset_free(current);
|
|
1013
|
+
return NULL;
|
|
1014
|
+
}
|
|
1015
|
+
xpath_nodeset_free(current);
|
|
1016
|
+
current = step_result->value.nodeset_value;
|
|
1017
|
+
step_result->value.nodeset_value = NULL;
|
|
1018
|
+
xpath_result_free(step_result);
|
|
1019
|
+
} else if (child->type == XPATH_AST_RELATIVE_PATH) {
|
|
1020
|
+
for (size_t j = 0; j < child->child_count; j++) {
|
|
1021
|
+
XPathASTNode* step = child->children[j];
|
|
1022
|
+
struct leptris_xpath_result* step_result =
|
|
1023
|
+
evaluate_step(ctx, step, current);
|
|
1024
|
+
if (!step_result) {
|
|
1025
|
+
xpath_nodeset_free(current);
|
|
1026
|
+
return NULL;
|
|
1027
|
+
}
|
|
1028
|
+
xpath_nodeset_free(current);
|
|
1029
|
+
current = step_result->value.nodeset_value;
|
|
1030
|
+
step_result->value.nodeset_value = NULL;
|
|
1031
|
+
xpath_result_free(step_result);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
struct leptris_xpath_result* result =
|
|
1036
|
+
xpath_result_new(XPATH_RESULT_NODESET);
|
|
1037
|
+
if (result) result->value.nodeset_value = current;
|
|
1038
|
+
else xpath_nodeset_free(current);
|
|
1039
|
+
return result;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/* Starting nodeset */
|
|
1043
|
+
if (path->type == XPATH_AST_ABSOLUTE_PATH) {
|
|
1044
|
+
/* An absolute path roots at the CONTEXT NODE'S document
|
|
1045
|
+
* (libxslt semantics): a context inside document() output or
|
|
1046
|
+
* an RTF fragment must not see the transform source tree
|
|
1047
|
+
* (bug-65). */
|
|
1048
|
+
struct leptris_document* ctx_doc = xpath_context_document(ctx);
|
|
1049
|
+
/* Special case: Absolute path with element name as first step
|
|
1050
|
+
* XPath "/root" means "child of document node named root"
|
|
1051
|
+
* Since we don't have a document node, check if root matches and use it */
|
|
1052
|
+
int is_root_match = 0;
|
|
1053
|
+
LeptrisElement root = (LeptrisElement)ctx_doc->new_dom_root;
|
|
1054
|
+
XPathASTNode* first_step = NULL;
|
|
1055
|
+
|
|
1056
|
+
DEBUG_LOG(" Checking for special case: child_count=%zu, root=%p",
|
|
1057
|
+
(size_t)path->child_count, (void*)root);
|
|
1058
|
+
|
|
1059
|
+
if (path->child_count > 0 && root) {
|
|
1060
|
+
const char* root_name = leptris_element_get_name(root);
|
|
1061
|
+
if (!root_name) {
|
|
1062
|
+
/* No name means something is wrong, skip special case */
|
|
1063
|
+
goto normal_absolute_path;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
XPathASTNode* first_child = path->children[0];
|
|
1067
|
+
|
|
1068
|
+
DEBUG_LOG(" First child type=%d (RELATIVE_PATH=%d, STEP=%d)",
|
|
1069
|
+
first_child->type, XPATH_AST_RELATIVE_PATH, XPATH_AST_STEP);
|
|
1070
|
+
|
|
1071
|
+
/* The first child might be RELATIVE_PATH containing steps, or a direct STEP */
|
|
1072
|
+
if (first_child->type == XPATH_AST_RELATIVE_PATH && first_child->child_count > 0) {
|
|
1073
|
+
first_step = first_child->children[0];
|
|
1074
|
+
DEBUG_LOG(" Found RELATIVE_PATH, extracting first step");
|
|
1075
|
+
} else if (first_child->type == XPATH_AST_STEP) {
|
|
1076
|
+
first_step = first_child;
|
|
1077
|
+
DEBUG_LOG(" Found direct STEP");
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/* Check if first step is a simple child axis with element name */
|
|
1081
|
+
if (first_step && first_step->type == XPATH_AST_STEP) {
|
|
1082
|
+
const char* axis = first_step->value ? first_step->value : "child";
|
|
1083
|
+
DEBUG_LOG(" Axis=%s, child_count=%zu", axis, (size_t)first_step->child_count);
|
|
1084
|
+
|
|
1085
|
+
if (strcmp(axis, "child") == 0 && first_step->child_count > 0) {
|
|
1086
|
+
XPathASTNode* node_test = first_step->children[0];
|
|
1087
|
+
DEBUG_LOG(" Node test type=%d, value=%s",
|
|
1088
|
+
node_test->type, node_test->value ? node_test->value : "(null)");
|
|
1089
|
+
|
|
1090
|
+
if (node_test->type == XPATH_AST_NODE_TEST_NAME && node_test->value) {
|
|
1091
|
+
/* Parse test value to get local name (in case it has prefix) */
|
|
1092
|
+
char* test_prefix = NULL;
|
|
1093
|
+
char* test_local = NULL;
|
|
1094
|
+
parse_node_test_name(node_test->value, &test_prefix, &test_local);
|
|
1095
|
+
|
|
1096
|
+
if (test_local) {
|
|
1097
|
+
/* root_name is already the local name (split-name architecture) */
|
|
1098
|
+
const char* root_local = root_name;
|
|
1099
|
+
|
|
1100
|
+
DEBUG_LOG(" Comparing root_local='%s' with test_local='%s'",
|
|
1101
|
+
root_local, test_local);
|
|
1102
|
+
|
|
1103
|
+
/* Check if root element name matches */
|
|
1104
|
+
int names_match = (strcmp(root_local, test_local) == 0);
|
|
1105
|
+
|
|
1106
|
+
/* If test has prefix: resolve through the
|
|
1107
|
+
* context bindings — the root may carry the
|
|
1108
|
+
* namespace under a different prefix (or the
|
|
1109
|
+
* default). Unbound prefix falls back to the
|
|
1110
|
+
* literal comparison. */
|
|
1111
|
+
if (names_match && test_prefix) {
|
|
1112
|
+
const char* test_uri = ctx
|
|
1113
|
+
? leptris_xpath_ns_lookup(
|
|
1114
|
+
(const struct leptris_xpath_ns_map*)ctx->ns_set,
|
|
1115
|
+
test_prefix, strlen(test_prefix))
|
|
1116
|
+
: NULL;
|
|
1117
|
+
if (test_uri) {
|
|
1118
|
+
const char* root_uri =
|
|
1119
|
+
leptris_element_get_namespace_uri(root);
|
|
1120
|
+
names_match = root_uri &&
|
|
1121
|
+
strcmp(root_uri, test_uri) == 0;
|
|
1122
|
+
} else {
|
|
1123
|
+
const char* root_prefix =
|
|
1124
|
+
leptris_element_get_prefix(root);
|
|
1125
|
+
names_match = (root_prefix &&
|
|
1126
|
+
strcmp(root_prefix, test_prefix) == 0);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
if (names_match) {
|
|
1131
|
+
is_root_match = 1;
|
|
1132
|
+
DEBUG_LOG(" ✓ Special case: /root matches document root");
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
LEPTRIS_FREE(test_local);
|
|
1136
|
+
if (test_prefix) LEPTRIS_FREE(test_prefix);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
normal_absolute_path:
|
|
1144
|
+
DEBUG_LOG(" is_root_match=%d", is_root_match);
|
|
1145
|
+
|
|
1146
|
+
if (is_root_match) {
|
|
1147
|
+
/* Root matches - add it and process remaining steps */
|
|
1148
|
+
xpath_nodeset_add(current, root);
|
|
1149
|
+
DEBUG_LOG(" Added root to nodeset, processing remaining steps");
|
|
1150
|
+
|
|
1151
|
+
/* The skipped first step can carry predicates — "/r[pred]"
|
|
1152
|
+
* must still filter the matched root (count(/r[false()])
|
|
1153
|
+
* is 0; lang() correctness, libxslt bug-142). */
|
|
1154
|
+
if (first_step && first_step->child_count > 1)
|
|
1155
|
+
apply_predicates(ctx, current,
|
|
1156
|
+
&first_step->children[1],
|
|
1157
|
+
first_step->child_count - 1);
|
|
1158
|
+
|
|
1159
|
+
/* Get the RELATIVE_PATH (first child of ABSOLUTE_PATH) */
|
|
1160
|
+
XPathASTNode* rel_path = path->children[0];
|
|
1161
|
+
if (rel_path && rel_path->type == XPATH_AST_RELATIVE_PATH && rel_path->child_count > 1) {
|
|
1162
|
+
/* Process steps starting from index 1 (skip first step which matched root) */
|
|
1163
|
+
for (size_t j = 1; j < rel_path->child_count; j++) {
|
|
1164
|
+
XPathASTNode* step = rel_path->children[j];
|
|
1165
|
+
if (step->type == XPATH_AST_STEP) {
|
|
1166
|
+
DEBUG_LOG(" Processing remaining step %zu", j);
|
|
1167
|
+
struct leptris_xpath_result* step_result = evaluate_step(ctx, step, current);
|
|
1168
|
+
if (!step_result) {
|
|
1169
|
+
xpath_nodeset_free(current);
|
|
1170
|
+
return NULL;
|
|
1171
|
+
}
|
|
1172
|
+
xpath_nodeset_free(current);
|
|
1173
|
+
current = step_result->value.nodeset_value;
|
|
1174
|
+
step_result->value.nodeset_value = NULL;
|
|
1175
|
+
xpath_result_free(step_result);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
/* If rel_path has only 1 child (the step that matched), we're done - just return root */
|
|
1180
|
+
} else {
|
|
1181
|
+
/* Normal absolute path - start from root and process ALL steps */
|
|
1182
|
+
DEBUG_LOG(" Adding root to initial nodeset for absolute path");
|
|
1183
|
+
|
|
1184
|
+
// Special case: /* (child::* from document node) should return root element directly.
|
|
1185
|
+
// In XPath, the document node has one child: the root element.
|
|
1186
|
+
// So /* means "select all children of document node" which is just the root element.
|
|
1187
|
+
int is_wildcard_only = (path->child_count == 1);
|
|
1188
|
+
if (is_wildcard_only) {
|
|
1189
|
+
XPathASTNode* first_child = path->children[0];
|
|
1190
|
+
/* Check if it's a RELATIVE_PATH with single STEP that is child::* */
|
|
1191
|
+
if (first_child->type == XPATH_AST_RELATIVE_PATH && first_child->child_count == 1) {
|
|
1192
|
+
XPathASTNode* step = first_child->children[0];
|
|
1193
|
+
if (step->type == XPATH_AST_STEP) {
|
|
1194
|
+
const char* axis = step->value ? step->value : "child";
|
|
1195
|
+
if (strcmp(axis, "child") == 0 && step->child_count > 0) {
|
|
1196
|
+
XPathASTNode* node_test =step->children[0];
|
|
1197
|
+
if (node_test->type == XPATH_AST_NODE_TEST_ALL) {
|
|
1198
|
+
/* This is / * - just return root element (space so the
|
|
1199
|
+
* slash-star sequence doesn't look like a nested comment). */
|
|
1200
|
+
DEBUG_LOG(" Special case: /* returns document root element");
|
|
1201
|
+
xpath_nodeset_add(current, (LeptrisElement)ctx->document->new_dom_root);
|
|
1202
|
+
goto done_evaluating;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/* Seed the DOCUMENT node, not the root element (bug-16-):
|
|
1210
|
+
* an absolute path's first step runs against the document
|
|
1211
|
+
* — child:: yields the root element, descendant(-or-self)
|
|
1212
|
+
* must offer the root element itself. The doc-branch in
|
|
1213
|
+
* apply_axis handles every axis from this node type. */
|
|
1214
|
+
xpath_nodeset_add(current,
|
|
1215
|
+
(LeptrisElement)leptris_document_get_node(ctx_doc));
|
|
1216
|
+
DEBUG_LOG(" Nodeset count after adding document node: %zu",
|
|
1217
|
+
xpath_nodeset_count(current));
|
|
1218
|
+
|
|
1219
|
+
/* Process steps - handle both direct steps and those in RELATIVE_PATH */
|
|
1220
|
+
DEBUG_LOG(" Processing %zu children", (size_t)path->child_count);
|
|
1221
|
+
for (size_t i = 0; i < path->child_count; i++) {
|
|
1222
|
+
XPathASTNode* child = path->children[i];
|
|
1223
|
+
DEBUG_LOG(" Child[%zu]: type=%d", i, child->type);
|
|
1224
|
+
|
|
1225
|
+
if (child->type == XPATH_AST_STEP) {
|
|
1226
|
+
struct leptris_xpath_result* step_result = evaluate_step(ctx, child, current);
|
|
1227
|
+
if (!step_result) {
|
|
1228
|
+
DEBUG_LOG(" STEP evaluation FAILED");
|
|
1229
|
+
xpath_nodeset_free(current);
|
|
1230
|
+
return NULL;
|
|
1231
|
+
}
|
|
1232
|
+
DEBUG_LOG(" STEP result nodeset count: %zu",
|
|
1233
|
+
xpath_nodeset_count(step_result->value.nodeset_value));
|
|
1234
|
+
|
|
1235
|
+
xpath_nodeset_free(current);
|
|
1236
|
+
current = step_result->value.nodeset_value;
|
|
1237
|
+
step_result->value.nodeset_value = NULL;
|
|
1238
|
+
xpath_result_free(step_result);
|
|
1239
|
+
}
|
|
1240
|
+
else if (child->type == XPATH_AST_RELATIVE_PATH) {
|
|
1241
|
+
/* RELATIVE_PATH container - process its step children */
|
|
1242
|
+
for (size_t j = 0; j < child->child_count; j++) {
|
|
1243
|
+
XPathASTNode* step = child->children[j];
|
|
1244
|
+
|
|
1245
|
+
if (step->type == XPATH_AST_STEP) {
|
|
1246
|
+
struct leptris_xpath_result* step_result = evaluate_step(ctx, step, current);
|
|
1247
|
+
if (!step_result) {
|
|
1248
|
+
xpath_nodeset_free(current);
|
|
1249
|
+
return NULL;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
xpath_nodeset_free(current);
|
|
1253
|
+
current = step_result->value.nodeset_value;
|
|
1254
|
+
step_result->value.nodeset_value = NULL;
|
|
1255
|
+
xpath_result_free(step_result);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
} /* End of if (path->type == XPATH_AST_ABSOLUTE_PATH) */
|
|
1262
|
+
else {
|
|
1263
|
+
/* Relative path - start from context node */
|
|
1264
|
+
xpath_nodeset_add(current, ctx->context_node);
|
|
1265
|
+
|
|
1266
|
+
/* Process steps - handle both direct steps and those in RELATIVE_PATH */
|
|
1267
|
+
for (size_t i = 0; i < path->child_count; i++) {
|
|
1268
|
+
XPathASTNode* child = path->children[i];
|
|
1269
|
+
|
|
1270
|
+
if (child->type == XPATH_AST_STEP) {
|
|
1271
|
+
/* Direct step child - process it */
|
|
1272
|
+
struct leptris_xpath_result* step_result = evaluate_step(ctx, child, current);
|
|
1273
|
+
if (!step_result) {
|
|
1274
|
+
xpath_nodeset_free(current);
|
|
1275
|
+
return NULL;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
xpath_nodeset_free(current);
|
|
1279
|
+
current = step_result->value.nodeset_value;
|
|
1280
|
+
step_result->value.nodeset_value = NULL;
|
|
1281
|
+
xpath_result_free(step_result);
|
|
1282
|
+
}
|
|
1283
|
+
else if (child->type == XPATH_AST_RELATIVE_PATH) {
|
|
1284
|
+
/* RELATIVE_PATH container - process its step children */
|
|
1285
|
+
for (size_t j = 0; j < child->child_count; j++) {
|
|
1286
|
+
XPathASTNode* step = child->children[j];
|
|
1287
|
+
|
|
1288
|
+
if (step->type == XPATH_AST_STEP) {
|
|
1289
|
+
struct leptris_xpath_result* step_result = evaluate_step(ctx, step, current);
|
|
1290
|
+
if (!step_result) {
|
|
1291
|
+
xpath_nodeset_free(current);
|
|
1292
|
+
return NULL;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
xpath_nodeset_free(current);
|
|
1296
|
+
current = step_result->value.nodeset_value;
|
|
1297
|
+
step_result->value.nodeset_value = NULL;
|
|
1298
|
+
xpath_result_free(step_result);
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
done_evaluating:
|
|
1306
|
+
DEBUG_LOG(" Final nodeset count: %zu", xpath_nodeset_count(current));
|
|
1307
|
+
DEBUG_LOG("=== evaluate_location_path END ===");
|
|
1308
|
+
|
|
1309
|
+
struct leptris_xpath_result* result = xpath_result_new(XPATH_RESULT_NODESET);
|
|
1310
|
+
if (result) result->value.nodeset_value = current;
|
|
1311
|
+
return result;
|
|
1312
|
+
}
|