leptris 1.9.403.1-ppc64le-linux → 1.9.404.0-ppc64le-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/Rakefile +1 -1
- data/lib/leptris/version.rb +1 -1
- data/lib/libleptris.so +0 -0
- data/vendor-src/README.md +1 -1
- data/vendor-src/libleptris/CHANGELOG.md +109 -8
- data/vendor-src/libleptris/CMakeLists.txt +1 -1
- data/vendor-src/libleptris/src/leptris/descriptor/plan.c +98 -7
- data/vendor-src/libleptris/src/leptris/xsd/compile.c +20 -0
- data/vendor-src/libleptris/src/leptris/xsd/validate.c +40 -16
- data/vendor-src/libleptris/src/leptris/xsd/xsd_internal.h +10 -0
- data/vendor-src/libleptris/test/CMakeLists.txt +3 -0
- data/vendor-src/libleptris/test/abi/test_descriptor.cpp +232 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_fixed_empty/isdefault005.xml +1 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_fixed_empty/isdefault005.xsd +9 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_list_default/stZ072.xml +1 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_list_default/stZ072.xsd +12 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_mixed_particleless/ctA033.xml +1 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_mixed_particleless/ctA033.xsd +4 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_redefine_ext/idF025.red +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_redefine_ext/idF025.xml +15 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_redefine_ext/idF025.xsd +30 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_redefine_ext/idF025_base.xsd +7 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/ctA033.xml +2 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/ctA033.xsd +5 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/ctA035.xml +2 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/ctA035.xsd +5 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF025.red +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF025.xml +15 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF025.xsd +30 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF033.xml +12 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF033.xsd +23 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF033a.xsd +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF034.red +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF034.xml +15 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idF034.xsd +30 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG018.xml +12 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG018.xsd +23 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG018a.xsd +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG019.red +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG019.xml +15 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG019.xsd +30 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG027.xml +12 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG027.xsd +23 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG027a.xsd +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG028.red +8 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG028.xml +15 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/idG028.xsd +30 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/isdefault002.xsd +12 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/isdefault004.xsd +12 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/isdefault005.xml +5 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/isdefault006.xml +5 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/isdefault025.xml +5 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/isdefault026.xml +5 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/stZ072.xml +1 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/stZ072.xsd +20 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/test95960_1.xml +4 -0
- data/vendor-src/libleptris/test/xsd/libxml2-cases/rs35_w3c/test95960_1.xsd +12 -0
- data/vendor-src/libleptris/test/xsd/test_rs35_regression.cpp +116 -0
- data/vendor-src/libleptris/vcpkg.json +1 -1
- metadata +47 -1
|
@@ -2403,6 +2403,238 @@ TEST(Plan408, ResultBuildFeedsSerialize) {
|
|
|
2403
2403
|
leptris_plan_free(plan);
|
|
2404
2404
|
}
|
|
2405
2405
|
|
|
2406
|
+
// ---- leptris#1941: the ops builder carries emission bindings ----
|
|
2407
|
+
// The walk stamps (ns_prefix, ns_uri) onto values (#1551); the ops
|
|
2408
|
+
// builder skipped them — the root, scalar rows, and attribute rows
|
|
2409
|
+
// all spelled bare names with no xmlns declarations, so every
|
|
2410
|
+
// namespaced native-emission tree serialized unnamespaced.
|
|
2411
|
+
|
|
2412
|
+
TEST(Plan1941, ResultBuildCarriesRootRowAndAttrBindings) {
|
|
2413
|
+
LeptrisStatus st = LEPTRIS_OK;
|
|
2414
|
+
leptris_child_plan kids[1] = {};
|
|
2415
|
+
kids[0].wire_name = "p";
|
|
2416
|
+
kids[0].kind = LEPTRIS_PLAN_KIND_SCALAR;
|
|
2417
|
+
kids[0].child_plan_index = -1;
|
|
2418
|
+
kids[0].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2419
|
+
kids[0].ns_uri = "http://example.com/wml";
|
|
2420
|
+
kids[0].ns_prefix = "w";
|
|
2421
|
+
|
|
2422
|
+
leptris_attr_plan attrs[1] = {};
|
|
2423
|
+
attrs[0].wire_name = "name";
|
|
2424
|
+
attrs[0].kind = LEPTRIS_PLAN_KIND_SCALAR;
|
|
2425
|
+
attrs[0].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2426
|
+
attrs[0].ns_uri = "http://example.com/wml";
|
|
2427
|
+
attrs[0].ns_prefix = "w";
|
|
2428
|
+
|
|
2429
|
+
leptris_element_plan plans[1] = {};
|
|
2430
|
+
plans[0].element_name = "document";
|
|
2431
|
+
plans[0].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2432
|
+
plans[0].ns_uri = "http://example.com/wml";
|
|
2433
|
+
plans[0].ns_prefix = "w";
|
|
2434
|
+
plans[0].attribute_count = 1;
|
|
2435
|
+
plans[0].attribute_plans = attrs;
|
|
2436
|
+
plans[0].child_count = 1;
|
|
2437
|
+
plans[0].child_plans = kids;
|
|
2438
|
+
|
|
2439
|
+
leptris_plan_spec spec = {};
|
|
2440
|
+
spec.abi_version = leptris_plan_abi_version();
|
|
2441
|
+
spec.plan_count = 1;
|
|
2442
|
+
spec.plans = plans;
|
|
2443
|
+
LeptrisPlan plan = leptris_plan_build(&spec, &st);
|
|
2444
|
+
ASSERT_NE(plan, nullptr);
|
|
2445
|
+
|
|
2446
|
+
leptris_plan_row_op ops[] = {
|
|
2447
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2448
|
+
{LEPTRIS_PLAN_OP_ATTR, 0, 0, "name", "d1", 2},
|
|
2449
|
+
{LEPTRIS_PLAN_OP_SCALAR, 0, 0, NULL, "alpha", 5},
|
|
2450
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2451
|
+
};
|
|
2452
|
+
LeptrisPlanResult r = leptris_plan_result_build(plan, ops, 4, &st);
|
|
2453
|
+
ASSERT_NE(r, nullptr);
|
|
2454
|
+
char* out = leptris_plan_serialize(plan, r, &st);
|
|
2455
|
+
ASSERT_NE(out, nullptr);
|
|
2456
|
+
EXPECT_STREQ(out,
|
|
2457
|
+
"<w:document xmlns:w=\"http://example.com/wml\" "
|
|
2458
|
+
"w:name=\"d1\"><w:p>alpha</w:p></w:document>");
|
|
2459
|
+
leptris_free_string(out);
|
|
2460
|
+
leptris_plan_result_free(r);
|
|
2461
|
+
leptris_plan_free(plan);
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
/* A row spelling a prefix without its own ns_uri inherits the
|
|
2465
|
+
* TARGET plan's URI (the walk's #1115 fallback): the compiler
|
|
2466
|
+
* leaves inherited rows' ns unset and the prefix comes from the
|
|
2467
|
+
* child plan's tree namespace. */
|
|
2468
|
+
TEST(Plan1941, ResultBuildInheritsTargetUriForPrefixOnlyRows) {
|
|
2469
|
+
LeptrisStatus st = LEPTRIS_OK;
|
|
2470
|
+
leptris_child_plan root_kids[1] = {};
|
|
2471
|
+
root_kids[0].wire_name = "docId";
|
|
2472
|
+
root_kids[0].kind = LEPTRIS_PLAN_KIND_NESTED;
|
|
2473
|
+
root_kids[0].child_plan_index = 1;
|
|
2474
|
+
root_kids[0].ns_prefix = "w14";
|
|
2475
|
+
|
|
2476
|
+
leptris_element_plan plans[2] = {};
|
|
2477
|
+
plans[0].element_name = "settings";
|
|
2478
|
+
plans[0].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2479
|
+
plans[0].ns_uri = "http://example.com/main";
|
|
2480
|
+
plans[0].ns_prefix = "w";
|
|
2481
|
+
plans[0].child_count = 1;
|
|
2482
|
+
plans[0].child_plans = root_kids;
|
|
2483
|
+
plans[1].element_name = "docId";
|
|
2484
|
+
plans[1].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2485
|
+
plans[1].ns_uri = "http://example.com/w14";
|
|
2486
|
+
plans[1].ns_prefix = "w14";
|
|
2487
|
+
|
|
2488
|
+
leptris_plan_spec spec = {};
|
|
2489
|
+
spec.abi_version = leptris_plan_abi_version();
|
|
2490
|
+
spec.plan_count = 2;
|
|
2491
|
+
spec.plans = plans;
|
|
2492
|
+
LeptrisPlan plan = leptris_plan_build(&spec, &st);
|
|
2493
|
+
ASSERT_NE(plan, nullptr);
|
|
2494
|
+
|
|
2495
|
+
leptris_plan_row_op ops[] = {
|
|
2496
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2497
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, 0, NULL, NULL, 0},
|
|
2498
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2499
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2500
|
+
};
|
|
2501
|
+
LeptrisPlanResult r = leptris_plan_result_build(plan, ops, 4, &st);
|
|
2502
|
+
ASSERT_NE(r, nullptr);
|
|
2503
|
+
char* out = leptris_plan_serialize(plan, r, &st);
|
|
2504
|
+
ASSERT_NE(out, nullptr);
|
|
2505
|
+
EXPECT_STREQ(out,
|
|
2506
|
+
"<w:settings xmlns:w=\"http://example.com/main\" "
|
|
2507
|
+
"xmlns:w14=\"http://example.com/w14\">"
|
|
2508
|
+
"<w14:docId/></w:settings>");
|
|
2509
|
+
leptris_free_string(out);
|
|
2510
|
+
leptris_plan_result_free(r);
|
|
2511
|
+
leptris_plan_free(plan);
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
/* leptris#1941 emission inheritance, two rules (the DOM lane's
|
|
2515
|
+
* Namespaces planner contract): (1) rows of a namespaced plan
|
|
2516
|
+
* inherit that plan's binding — an explicit row binding wins;
|
|
2517
|
+
* (2) a NESTED row inherits the CHILD plan's binding so the
|
|
2518
|
+
* wrapper spells the child's namespace, not the parent's. */
|
|
2519
|
+
TEST(Plan1941, ResultBuildInheritsPlanAndChildPlanBindings) {
|
|
2520
|
+
LeptrisStatus st = LEPTRIS_OK;
|
|
2521
|
+
/* plan 0: settings (w) with a nested row "body" -> plan 1;
|
|
2522
|
+
* plan 1: body (w) with a scalar row "t" (no row binding). */
|
|
2523
|
+
leptris_child_plan root_kids[1] = {};
|
|
2524
|
+
root_kids[0].wire_name = "body";
|
|
2525
|
+
root_kids[0].kind = LEPTRIS_PLAN_KIND_NESTED;
|
|
2526
|
+
root_kids[0].child_plan_index = 1;
|
|
2527
|
+
|
|
2528
|
+
leptris_child_plan body_kids[1] = {};
|
|
2529
|
+
body_kids[0].wire_name = "t";
|
|
2530
|
+
body_kids[0].kind = LEPTRIS_PLAN_KIND_SCALAR;
|
|
2531
|
+
body_kids[0].child_plan_index = -1;
|
|
2532
|
+
|
|
2533
|
+
leptris_element_plan plans[2] = {};
|
|
2534
|
+
plans[0].element_name = "settings";
|
|
2535
|
+
plans[0].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2536
|
+
plans[0].ns_uri = "http://example.com/main";
|
|
2537
|
+
plans[0].ns_prefix = "w";
|
|
2538
|
+
plans[0].child_count = 1;
|
|
2539
|
+
plans[0].child_plans = root_kids;
|
|
2540
|
+
plans[1].element_name = "body";
|
|
2541
|
+
plans[1].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2542
|
+
plans[1].ns_uri = "http://example.com/main";
|
|
2543
|
+
plans[1].ns_prefix = "w";
|
|
2544
|
+
plans[1].child_count = 1;
|
|
2545
|
+
plans[1].child_plans = body_kids;
|
|
2546
|
+
|
|
2547
|
+
leptris_plan_spec spec = {};
|
|
2548
|
+
spec.abi_version = leptris_plan_abi_version();
|
|
2549
|
+
spec.plan_count = 2;
|
|
2550
|
+
spec.plans = plans;
|
|
2551
|
+
LeptrisPlan plan = leptris_plan_build(&spec, &st);
|
|
2552
|
+
ASSERT_NE(plan, nullptr);
|
|
2553
|
+
|
|
2554
|
+
leptris_plan_row_op ops[] = {
|
|
2555
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2556
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, 0, NULL, NULL, 0},
|
|
2557
|
+
{LEPTRIS_PLAN_OP_SCALAR, 1, 0, NULL, "hello", 5},
|
|
2558
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2559
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2560
|
+
};
|
|
2561
|
+
LeptrisPlanResult r = leptris_plan_result_build(plan, ops, 5, &st);
|
|
2562
|
+
ASSERT_NE(r, nullptr);
|
|
2563
|
+
char* out = leptris_plan_serialize(plan, r, &st);
|
|
2564
|
+
ASSERT_NE(out, nullptr);
|
|
2565
|
+
/* The nested row spells the CHILD plan's prefix; the scalar
|
|
2566
|
+
* row inherits its OWN plan's prefix; one declaration per
|
|
2567
|
+
* distinct pair on the root. */
|
|
2568
|
+
EXPECT_STREQ(out,
|
|
2569
|
+
"<w:settings xmlns:w=\"http://example.com/main\">"
|
|
2570
|
+
"<w:body><w:t>hello</w:t></w:body></w:settings>");
|
|
2571
|
+
leptris_free_string(out);
|
|
2572
|
+
leptris_plan_result_free(r);
|
|
2573
|
+
leptris_plan_free(plan);
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
/* Explicit row bindings beat inherited ones: the docId rows of
|
|
2577
|
+
* the #1115 multi-ns case carry no row binding and take the
|
|
2578
|
+
* child plan's w14/w15 namespaces, while a row WITH a binding
|
|
2579
|
+
* keeps it verbatim. */
|
|
2580
|
+
TEST(Plan1941, ResultBuildExplicitRowBindingBeatsInheritance) {
|
|
2581
|
+
LeptrisStatus st = LEPTRIS_OK;
|
|
2582
|
+
leptris_child_plan root_kids[2] = {};
|
|
2583
|
+
root_kids[0].wire_name = "docId";
|
|
2584
|
+
root_kids[0].kind = LEPTRIS_PLAN_KIND_NESTED;
|
|
2585
|
+
root_kids[0].child_plan_index = 1;
|
|
2586
|
+
root_kids[1].wire_name = "note";
|
|
2587
|
+
root_kids[1].kind = LEPTRIS_PLAN_KIND_NESTED;
|
|
2588
|
+
root_kids[1].child_plan_index = 2;
|
|
2589
|
+
root_kids[1].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2590
|
+
root_kids[1].ns_uri = "http://example.com/other";
|
|
2591
|
+
root_kids[1].ns_prefix = "o";
|
|
2592
|
+
|
|
2593
|
+
leptris_element_plan plans[3] = {};
|
|
2594
|
+
plans[0].element_name = "settings";
|
|
2595
|
+
plans[0].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2596
|
+
plans[0].ns_uri = "http://example.com/main";
|
|
2597
|
+
plans[0].ns_prefix = "w";
|
|
2598
|
+
plans[0].child_count = 2;
|
|
2599
|
+
plans[0].child_plans = root_kids;
|
|
2600
|
+
plans[1].element_name = "docId";
|
|
2601
|
+
plans[1].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2602
|
+
plans[1].ns_uri = "http://example.com/w14";
|
|
2603
|
+
plans[1].ns_prefix = "w14";
|
|
2604
|
+
plans[2].element_name = "note";
|
|
2605
|
+
plans[2].ns_form = LEPTRIS_PLAN_NS_EXACT;
|
|
2606
|
+
plans[2].ns_uri = "http://example.com/other";
|
|
2607
|
+
plans[2].ns_prefix = "o";
|
|
2608
|
+
|
|
2609
|
+
leptris_plan_spec spec = {};
|
|
2610
|
+
spec.abi_version = leptris_plan_abi_version();
|
|
2611
|
+
spec.plan_count = 3;
|
|
2612
|
+
spec.plans = plans;
|
|
2613
|
+
LeptrisPlan plan = leptris_plan_build(&spec, &st);
|
|
2614
|
+
ASSERT_NE(plan, nullptr);
|
|
2615
|
+
|
|
2616
|
+
leptris_plan_row_op ops[] = {
|
|
2617
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2618
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, 0, NULL, NULL, 0},
|
|
2619
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2620
|
+
{LEPTRIS_PLAN_OP_ELEMENT, 0, 1, NULL, NULL, 0},
|
|
2621
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2622
|
+
{LEPTRIS_PLAN_OP_END, 0, UINT32_MAX, NULL, NULL, 0},
|
|
2623
|
+
};
|
|
2624
|
+
LeptrisPlanResult r = leptris_plan_result_build(plan, ops, 6, &st);
|
|
2625
|
+
ASSERT_NE(r, nullptr);
|
|
2626
|
+
char* out = leptris_plan_serialize(plan, r, &st);
|
|
2627
|
+
ASSERT_NE(out, nullptr);
|
|
2628
|
+
EXPECT_STREQ(out,
|
|
2629
|
+
"<w:settings xmlns:w=\"http://example.com/main\" "
|
|
2630
|
+
"xmlns:w14=\"http://example.com/w14\" "
|
|
2631
|
+
"xmlns:o=\"http://example.com/other\">"
|
|
2632
|
+
"<w14:docId/><o:note/></w:settings>");
|
|
2633
|
+
leptris_free_string(out);
|
|
2634
|
+
leptris_plan_result_free(r);
|
|
2635
|
+
leptris_plan_free(plan);
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2406
2638
|
TEST(Plan408, ResultBuildRejectsBadPrograms) {
|
|
2407
2639
|
LeptrisStatus st = LEPTRIS_OK;
|
|
2408
2640
|
leptris_element_plan plans[1] = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root><number/><bool/></root>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
2
|
+
<xsd:complexType name="t">
|
|
3
|
+
<xsd:sequence>
|
|
4
|
+
<xsd:element name="number" type="xsd:integer" fixed="123"/>
|
|
5
|
+
<xsd:element name="bool" type="xsd:boolean" fixed="true"/>
|
|
6
|
+
</xsd:sequence>
|
|
7
|
+
</xsd:complexType>
|
|
8
|
+
<xsd:element name="root" type="t"/>
|
|
9
|
+
</xsd:schema>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
2
|
+
<xsd:simpleType name="mylist">
|
|
3
|
+
<xsd:restriction>
|
|
4
|
+
<xsd:simpleType>
|
|
5
|
+
<xsd:list itemType="xsd:integer"/>
|
|
6
|
+
</xsd:simpleType>
|
|
7
|
+
<xsd:enumeration value="1"/>
|
|
8
|
+
<xsd:enumeration value="2"/>
|
|
9
|
+
</xsd:restriction>
|
|
10
|
+
</xsd:simpleType>
|
|
11
|
+
<xsd:element name="root" type="mylist" default="1"/>
|
|
12
|
+
</xsd:schema>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root>test</root>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="idF025.xsd">
|
|
3
|
+
<t>
|
|
4
|
+
<r> 1 </r>
|
|
5
|
+
<c val="1"> 1 </c>
|
|
6
|
+
</t>
|
|
7
|
+
<t>
|
|
8
|
+
<r> 2 </r>
|
|
9
|
+
<c val="2"> 2 </c>
|
|
10
|
+
</t>
|
|
11
|
+
<t>
|
|
12
|
+
<r> 3 </r>
|
|
13
|
+
<c val="3"> 3 </c>
|
|
14
|
+
</t>
|
|
15
|
+
</root>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
<xsd:redefine schemaLocation="idF025.red">
|
|
4
|
+
<xsd:complexType name="tabletype">
|
|
5
|
+
<xsd:complexContent>
|
|
6
|
+
<xsd:extension base="tabletype">
|
|
7
|
+
<xsd:sequence>
|
|
8
|
+
<xsd:element name="c">
|
|
9
|
+
<xsd:complexType mixed="true">
|
|
10
|
+
<xsd:attribute name="val" type="xsd:string"/>
|
|
11
|
+
</xsd:complexType>
|
|
12
|
+
</xsd:element>
|
|
13
|
+
</xsd:sequence>
|
|
14
|
+
</xsd:extension>
|
|
15
|
+
</xsd:complexContent>
|
|
16
|
+
</xsd:complexType>
|
|
17
|
+
</xsd:redefine>
|
|
18
|
+
<xsd:element name="root">
|
|
19
|
+
<xsd:complexType>
|
|
20
|
+
<xsd:sequence>
|
|
21
|
+
<xsd:element ref="t" maxOccurs="unbounded"/>
|
|
22
|
+
</xsd:sequence>
|
|
23
|
+
</xsd:complexType>
|
|
24
|
+
<xsd:unique name="tableu">
|
|
25
|
+
<xsd:selector xpath=".//t/c"/>
|
|
26
|
+
<xsd:field xpath="@val"/>
|
|
27
|
+
</xsd:unique>
|
|
28
|
+
</xsd:element>
|
|
29
|
+
<xsd:element name="t" type="tabletype"/>
|
|
30
|
+
</xsd:schema>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="idF025.xsd">
|
|
3
|
+
<t>
|
|
4
|
+
<r> 1 </r>
|
|
5
|
+
<c val="1"> 1 </c>
|
|
6
|
+
</t>
|
|
7
|
+
<t>
|
|
8
|
+
<r> 2 </r>
|
|
9
|
+
<c val="2"> 2 </c>
|
|
10
|
+
</t>
|
|
11
|
+
<t>
|
|
12
|
+
<r> 3 </r>
|
|
13
|
+
<c val="3"> 3 </c>
|
|
14
|
+
</t>
|
|
15
|
+
</root>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
<xsd:redefine schemaLocation="idF025.red">
|
|
4
|
+
<xsd:complexType name="tabletype">
|
|
5
|
+
<xsd:complexContent>
|
|
6
|
+
<xsd:extension base="tabletype">
|
|
7
|
+
<xsd:sequence>
|
|
8
|
+
<xsd:element name="c">
|
|
9
|
+
<xsd:complexType mixed="true">
|
|
10
|
+
<xsd:attribute name="val" type="xsd:string"/>
|
|
11
|
+
</xsd:complexType>
|
|
12
|
+
</xsd:element>
|
|
13
|
+
</xsd:sequence>
|
|
14
|
+
</xsd:extension>
|
|
15
|
+
</xsd:complexContent>
|
|
16
|
+
</xsd:complexType>
|
|
17
|
+
</xsd:redefine>
|
|
18
|
+
<xsd:element name="root">
|
|
19
|
+
<xsd:complexType>
|
|
20
|
+
<xsd:sequence>
|
|
21
|
+
<xsd:element ref="t" maxOccurs="unbounded"/>
|
|
22
|
+
</xsd:sequence>
|
|
23
|
+
</xsd:complexType>
|
|
24
|
+
<xsd:unique name="tableu">
|
|
25
|
+
<xsd:selector xpath=".//t/c"/>
|
|
26
|
+
<xsd:field xpath="@val"/>
|
|
27
|
+
</xsd:unique>
|
|
28
|
+
</xsd:element>
|
|
29
|
+
<xsd:element name="t" type="tabletype"/>
|
|
30
|
+
</xsd:schema>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="idF033.xsd" xmlns:import="importNS">
|
|
3
|
+
<t val="1">
|
|
4
|
+
<import:r val2="a"> 1 </import:r>
|
|
5
|
+
</t>
|
|
6
|
+
<t val="2">
|
|
7
|
+
<import:r val2="b"> 2 </import:r>
|
|
8
|
+
</t>
|
|
9
|
+
<t val="3">
|
|
10
|
+
<import:r val2="c"> 3 </import:r>
|
|
11
|
+
</t>
|
|
12
|
+
</root>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:import="importNS">
|
|
3
|
+
<xsd:import namespace="importNS" schemaLocation="idF033a.xsd"/>
|
|
4
|
+
<xsd:element name="root">
|
|
5
|
+
<xsd:complexType>
|
|
6
|
+
<xsd:sequence>
|
|
7
|
+
<xsd:element ref="t" maxOccurs="unbounded"/>
|
|
8
|
+
</xsd:sequence>
|
|
9
|
+
</xsd:complexType>
|
|
10
|
+
<xsd:unique name="tableu">
|
|
11
|
+
<xsd:selector xpath=".//t/import:r"/>
|
|
12
|
+
<xsd:field xpath="@import:val2"/>
|
|
13
|
+
</xsd:unique>
|
|
14
|
+
</xsd:element>
|
|
15
|
+
<xsd:element name="t">
|
|
16
|
+
<xsd:complexType>
|
|
17
|
+
<xsd:sequence>
|
|
18
|
+
<xsd:element ref="import:r"/>
|
|
19
|
+
</xsd:sequence>
|
|
20
|
+
<xsd:attribute name="val" type="xsd:string"/>
|
|
21
|
+
</xsd:complexType>
|
|
22
|
+
</xsd:element>
|
|
23
|
+
</xsd:schema>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:import="importNS" targetNamespace="importNS">
|
|
3
|
+
<xsd:element name="r">
|
|
4
|
+
<xsd:complexType mixed="true">
|
|
5
|
+
<xsd:attribute name="val2" type="xsd:string"/>
|
|
6
|
+
</xsd:complexType>
|
|
7
|
+
</xsd:element>
|
|
8
|
+
</xsd:schema>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="idF034.xsd">
|
|
3
|
+
<t>
|
|
4
|
+
<r> 1 </r>
|
|
5
|
+
<c val="1"> 1 </c>
|
|
6
|
+
</t>
|
|
7
|
+
<t>
|
|
8
|
+
<r> 2 </r>
|
|
9
|
+
<c val="2"> 2 </c>
|
|
10
|
+
</t>
|
|
11
|
+
<t>
|
|
12
|
+
<r> 3 </r>
|
|
13
|
+
<c val="3"> 3 </c>
|
|
14
|
+
</t>
|
|
15
|
+
</root>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
<xsd:redefine schemaLocation="idF034.red">
|
|
4
|
+
<xsd:complexType name="tabletype">
|
|
5
|
+
<xsd:complexContent>
|
|
6
|
+
<xsd:extension base="tabletype">
|
|
7
|
+
<xsd:sequence>
|
|
8
|
+
<xsd:element name="c">
|
|
9
|
+
<xsd:complexType mixed="true">
|
|
10
|
+
<xsd:attribute name="val" type="xsd:string"/>
|
|
11
|
+
</xsd:complexType>
|
|
12
|
+
</xsd:element>
|
|
13
|
+
</xsd:sequence>
|
|
14
|
+
</xsd:extension>
|
|
15
|
+
</xsd:complexContent>
|
|
16
|
+
</xsd:complexType>
|
|
17
|
+
</xsd:redefine>
|
|
18
|
+
<xsd:element name="root">
|
|
19
|
+
<xsd:complexType>
|
|
20
|
+
<xsd:sequence>
|
|
21
|
+
<xsd:element ref="t" maxOccurs="unbounded"/>
|
|
22
|
+
</xsd:sequence>
|
|
23
|
+
</xsd:complexType>
|
|
24
|
+
<xsd:unique name="tableu">
|
|
25
|
+
<xsd:selector xpath=".//t/c"/>
|
|
26
|
+
<xsd:field xpath="@val"/>
|
|
27
|
+
</xsd:unique>
|
|
28
|
+
</xsd:element>
|
|
29
|
+
<xsd:element name="t" type="tabletype"/>
|
|
30
|
+
</xsd:schema>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="idG018.xsd" xmlns:import2="importNS">
|
|
3
|
+
<t val="1">
|
|
4
|
+
<import2:r val="1"> 1 </import2:r>
|
|
5
|
+
</t>
|
|
6
|
+
<t val="2">
|
|
7
|
+
<import2:r val="2"> 2 </import2:r>
|
|
8
|
+
</t>
|
|
9
|
+
<t val="3">
|
|
10
|
+
<import2:r val="3"> 3 </import2:r>
|
|
11
|
+
</t>
|
|
12
|
+
</root>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:import2="importNS">
|
|
3
|
+
<xsd:import namespace="importNS" schemaLocation="idG018a.xsd"/>
|
|
4
|
+
<xsd:element name="root">
|
|
5
|
+
<xsd:complexType>
|
|
6
|
+
<xsd:sequence>
|
|
7
|
+
<xsd:element ref="t" maxOccurs="unbounded"/>
|
|
8
|
+
</xsd:sequence>
|
|
9
|
+
</xsd:complexType>
|
|
10
|
+
<xsd:key name="tableu">
|
|
11
|
+
<xsd:selector xpath=".//t/import2:r"/>
|
|
12
|
+
<xsd:field xpath="@val"/>
|
|
13
|
+
</xsd:key>
|
|
14
|
+
</xsd:element>
|
|
15
|
+
<xsd:element name="t">
|
|
16
|
+
<xsd:complexType>
|
|
17
|
+
<xsd:sequence>
|
|
18
|
+
<xsd:element ref="import2:r" minOccurs="0"/>
|
|
19
|
+
</xsd:sequence>
|
|
20
|
+
<xsd:attribute name="val" type="xsd:string"/>
|
|
21
|
+
</xsd:complexType>
|
|
22
|
+
</xsd:element>
|
|
23
|
+
</xsd:schema>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="importNS">
|
|
3
|
+
<xsd:element name="r">
|
|
4
|
+
<xsd:complexType mixed="true">
|
|
5
|
+
<xsd:attribute name="val" type="xsd:string"/>
|
|
6
|
+
</xsd:complexType>
|
|
7
|
+
</xsd:element>
|
|
8
|
+
</xsd:schema>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="idG019.xsd">
|
|
3
|
+
<t>
|
|
4
|
+
<r> 1 </r>
|
|
5
|
+
<c val="1"> 1 </c>
|
|
6
|
+
</t>
|
|
7
|
+
<t>
|
|
8
|
+
<r> 2 </r>
|
|
9
|
+
<c val="2"> 2 </c>
|
|
10
|
+
</t>
|
|
11
|
+
<t>
|
|
12
|
+
<r> 3 </r>
|
|
13
|
+
<c val="3"> 3 </c>
|
|
14
|
+
</t>
|
|
15
|
+
</root>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
<xsd:redefine schemaLocation="idG019.red">
|
|
4
|
+
<xsd:complexType name="tabletype">
|
|
5
|
+
<xsd:complexContent>
|
|
6
|
+
<xsd:extension base="tabletype">
|
|
7
|
+
<xsd:sequence>
|
|
8
|
+
<xsd:element name="c">
|
|
9
|
+
<xsd:complexType mixed="true">
|
|
10
|
+
<xsd:attribute name="val" type="xsd:string"/>
|
|
11
|
+
</xsd:complexType>
|
|
12
|
+
</xsd:element>
|
|
13
|
+
</xsd:sequence>
|
|
14
|
+
</xsd:extension>
|
|
15
|
+
</xsd:complexContent>
|
|
16
|
+
</xsd:complexType>
|
|
17
|
+
</xsd:redefine>
|
|
18
|
+
<xsd:element name="root">
|
|
19
|
+
<xsd:complexType>
|
|
20
|
+
<xsd:sequence>
|
|
21
|
+
<xsd:element ref="t" maxOccurs="unbounded"/>
|
|
22
|
+
</xsd:sequence>
|
|
23
|
+
</xsd:complexType>
|
|
24
|
+
<xsd:key name="tableu">
|
|
25
|
+
<xsd:selector xpath=".//t/c"/>
|
|
26
|
+
<xsd:field xpath="@val"/>
|
|
27
|
+
</xsd:key>
|
|
28
|
+
</xsd:element>
|
|
29
|
+
<xsd:element name="t" type="tabletype"/>
|
|
30
|
+
</xsd:schema>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="idG027.xsd" xmlns:import="importNS">
|
|
3
|
+
<t val="1">
|
|
4
|
+
<import:r import:val2="a"> 1 </import:r>
|
|
5
|
+
</t>
|
|
6
|
+
<t val="2">
|
|
7
|
+
<import:r import:val2="b"> 2 </import:r>
|
|
8
|
+
</t>
|
|
9
|
+
<t val="3">
|
|
10
|
+
<import:r import:val2="c"> 3 </import:r>
|
|
11
|
+
</t>
|
|
12
|
+
</root>
|