1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 23581 23582 23583 23584 23585 23586 23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 23688 23689 23690 23691 23692 23693 23694 23695 23696 23697 23698 23699 23700 23701 23702 23703 23704 23705 23706 23707 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 23888 23889 23890 23891 23892 23893 23894 23895 23896 23897 23898 23899 23900 23901 23902 23903 23904 23905 23906 23907 23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 24078 24079 24080 24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 24102 24103 24104 24105 24106 24107 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 24123 24124 24125 24126 24127 24128 24129 24130 24131 24132 24133 24134 24135 24136 24137 24138 24139 24140 24141 24142 24143 24144 24145 24146 24147 24148 24149 24150 24151 24152 24153 24154 24155 24156 24157 24158 24159 24160 24161 24162 24163 24164 24165 24166 24167 24168 24169 24170 24171 24172 24173 24174 24175 24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237 24238 24239 24240 24241 24242 24243 24244 24245 24246 24247 24248 24249 24250 24251 24252 24253 24254 24255 24256 24257 24258 24259 24260 24261 24262 24263 24264 24265 24266 24267 24268 24269 24270 24271 24272 24273 24274 24275 24276 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339 24340 24341 24342 24343 24344 24345 24346 24347 24348 24349 24350 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 24381 24382 24383 24384 24385 24386 24387 24388 24389 24390 24391 24392 24393 24394 24395 24396 24397 24398 24399 24400 24401 24402 24403 24404 24405 24406 24407 24408 24409 24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 24476 24477 24478 24479 24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 24540 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550 24551 24552 24553 24554 24555 24556 24557 24558 24559 24560 24561 24562 24563 24564 24565 24566 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 24609 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 24620 24621 24622 24623 24624 24625 24626 24627 24628 24629 24630 24631 24632 24633 24634 24635 24636 24637 24638 24639 24640 24641 24642 24643 24644 24645 24646 24647 24648 24649 24650 24651 24652 24653 24654 24655 24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 24666 24667 24668 24669 24670 24671 24672 24673 24674 24675 24676 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 24747 24748 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 24763 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779 24780 24781 24782 24783 24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 24852 24853 24854 24855 24856 24857 24858 24859 24860 24861 24862 24863 24864 24865 24866 24867 24868 24869 24870 24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 24908 24909 24910 24911 24912 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 24930 24931 24932 24933 24934 24935 24936 24937 24938 24939 24940 24941 24942 24943 24944 24945 24946 24947 24948 24949 24950 24951 24952 24953 24954 24955 24956 24957 24958 24959 24960 24961 24962 24963 24964 24965 24966 24967 24968 24969 24970 24971 24972 24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 25012 25013 25014 25015 25016 25017 25018 25019 25020 25021 25022 25023 25024 25025 25026 25027 25028 25029 25030 25031 25032 25033 25034 25035 25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 25052 25053 25054 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 25066 25067 25068 25069 25070 25071 25072 25073 25074 25075 25076 25077 25078 25079 25080 25081 25082 25083 25084 25085 25086 25087 25088 25089 25090 25091 25092 25093 25094 25095 25096 25097 25098 25099 25100 25101 25102 25103 25104 25105 25106 25107 25108 25109 25110 25111 25112 25113 25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 25148 25149 25150 25151 25152 25153 25154 25155 25156 25157 25158 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 25189 25190 25191 25192 25193 25194 25195 25196 25197 25198 25199 25200 25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 25273 25274 25275 25276 25277 25278 25279 25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 25573 25574 25575 25576 25577 25578 25579 25580 25581 25582 25583 25584 25585 25586 25587 25588 25589 25590 25591 25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614 25615 25616 25617 25618 25619 25620 25621 25622 25623 25624 25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731 25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 25835 25836 25837 25838 25839 25840 25841 25842 25843 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 25952 25953 25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 26336 26337 26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 26364 26365 26366 26367 26368 26369 26370 26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 26396 26397 26398 26399 26400 26401 26402 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 26415 26416 26417 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 26429 26430 26431 26432 26433 26434 26435 26436 26437 26438 26439 26440 26441 26442 26443 26444 26445 26446 26447 26448 26449 26450 26451 26452 26453 26454 26455 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 26489 26490 26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 26519 26520 26521 26522 26523 26524 26525 26526 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 26542 26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 26669 26670 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680 26681 26682 26683 26684 26685 26686 26687 26688 26689 26690 26691 26692 26693 26694 26695 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 26715 26716 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727 26728 26729 26730 26731 26732 26733 26734 26735 26736 26737 26738 26739 26740 26741 26742 26743 26744 26745 26746 26747 26748 26749 26750 26751 26752 26753 26754 26755 26756 26757 26758 26759 26760 26761 26762 26763 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 26779 26780 26781 26782 26783 26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 26794 26795 26796 26797 26798 26799 26800 26801 26802 26803 26804 26805 26806 26807 26808 26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 27007 27008 27009 27010 27011 27012 27013 27014 27015 27016 27017 27018 27019 27020 27021 27022 27023 27024 27025 27026 27027 27028 27029 27030 27031 27032 27033 27034 27035 27036 27037 27038 27039 27040 27041 27042 27043 27044 27045 27046 27047 27048 27049 27050 27051 27052 27053 27054 27055 27056 27057 27058 27059 27060 27061 27062 27063 27064 27065 27066 27067 27068 27069 27070 27071 27072 27073 27074 27075 27076 27077 27078 27079 27080 27081 27082 27083 27084 27085 27086 27087 27088 27089 27090 27091 27092 27093 27094 27095 27096 27097 27098 27099 27100 27101 27102 27103 27104 27105 27106 27107 27108 27109 27110 27111 27112 27113 27114 27115 27116 27117 27118 27119 27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271 27272 27273 27274 27275 27276 27277 27278 27279 27280 27281 27282 27283 27284 27285 27286 27287 27288 27289 27290 27291 27292 27293 27294 27295 27296 27297 27298 27299 27300 27301 27302 27303 27304 27305 27306 27307 27308 27309 27310 27311 27312 27313 27314 27315 27316 27317 27318 27319 27320 27321 27322 27323 27324 27325 27326 27327 27328 27329 27330 27331 27332 27333 27334 27335 27336 27337 27338 27339 27340 27341 27342 27343 27344 27345 27346 27347 27348 27349 27350 27351 27352 27353 27354 27355 27356 27357 27358 27359 27360 27361 27362 27363 27364 27365 27366 27367 27368 27369 27370 27371 27372 27373 27374 27375 27376 27377 27378 27379 27380 27381 27382 27383 27384 27385 27386 27387 27388 27389 27390 27391 27392 27393 27394 27395 27396 27397 27398 27399 27400 27401 27402 27403 27404 27405 27406 27407 27408 27409 27410 27411 27412 27413 27414 27415 27416 27417 27418 27419 27420 27421 27422 27423 27424 27425 27426 27427 27428 27429 27430 27431 27432 27433 27434 27435 27436 27437 27438 27439 27440 27441 27442 27443 27444 27445 27446 27447 27448 27449 27450 27451 27452 27453 27454 27455 27456 27457 27458 27459 27460 27461 27462 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 27480 27481 27482 27483 27484 27485 27486 27487 27488 27489 27490 27491 27492 27493 27494 27495 27496 27497 27498 27499 27500 27501 27502 27503 27504 27505 27506 27507 27508 27509 27510 27511 27512 27513 27514 27515 27516 27517 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530 27531 27532 27533 27534 27535 27536 27537 27538 27539 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 27550 27551 27552 27553 27554 27555 27556 27557 27558 27559 27560 27561 27562 27563 27564 27565 27566 27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 27577 27578 27579 27580 27581 27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739 27740 27741 27742 27743 27744 27745 27746 27747 27748 27749 27750 27751 27752 27753 27754 27755 27756 27757 27758 27759 27760 27761 27762 27763 27764 27765 27766 27767 27768 27769 27770 27771 27772 27773 27774 27775 27776 27777 27778 27779 27780 27781 27782 27783 27784 27785 27786 27787 27788 27789 27790 27791 27792 27793 27794 27795 27796 27797 27798 27799 27800 27801 27802 27803 27804 27805 27806 27807 27808 27809 27810 27811 27812 27813 27814 27815 27816 27817 27818 27819 27820 27821 27822 27823 27824 27825 27826 27827 27828 27829 27830 27831 27832 27833 27834 27835 27836 27837 27838 27839 27840 27841 27842 27843 27844 27845 27846 27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868 27869 27870 27871 27872 27873 27874 27875 27876 27877 27878 27879 27880 27881 27882 27883 27884 27885 27886 27887 27888 27889 27890 27891 27892 27893 27894 27895 27896 27897 27898 27899 27900 27901 27902 27903 27904 27905 27906 27907 27908 27909 27910 27911 27912 27913 27914 27915 27916 27917 27918 27919 27920 27921 27922 27923 27924 27925 27926 27927 27928 27929 27930 27931 27932 27933 27934 27935 27936 27937 27938 27939 27940 27941 27942 27943 27944 27945 27946 27947 27948 27949 27950 27951 27952 27953 27954 27955 27956 27957 27958 27959 27960 27961 27962 27963 27964 27965 27966 27967 27968 27969 27970 27971 27972 27973 27974 27975 27976 27977 27978 27979 27980 27981 27982 27983 27984 27985 27986 27987 27988 27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 28004 28005 28006 28007 28008 28009 28010 28011 28012 28013 28014 28015 28016 28017 28018 28019 28020 28021 28022 28023 28024 28025 28026 28027 28028 28029 28030 28031 28032 28033 28034 28035 28036 28037 28038 28039 28040 28041 28042 28043 28044 28045 28046 28047 28048 28049 28050 28051 28052 28053 28054 28055 28056 28057 28058 28059 28060 28061 28062 28063 28064 28065 28066 28067 28068 28069 28070 28071 28072 28073 28074 28075 28076 28077 28078 28079 28080 28081 28082 28083 28084 28085 28086 28087 28088 28089 28090 28091 28092 28093 28094 28095 28096 28097 28098 28099 28100 28101 28102 28103 28104 28105 28106 28107 28108 28109 28110 28111 28112 28113 28114 28115 28116 28117 28118 28119 28120 28121 28122 28123 28124 28125 28126 28127 28128 28129 28130 28131 28132 28133 28134 28135 28136 28137 28138 28139 28140 28141 28142 28143 28144 28145 28146 28147 28148 28149 28150 28151 28152 28153 28154 28155 28156 28157 28158 28159 28160 28161 28162 28163 28164 28165 28166 28167 28168 28169 28170 28171 28172 28173 28174 28175 28176 28177 28178 28179 28180 28181 28182 28183 28184 28185 28186 28187 28188 28189 28190 28191 28192 28193 28194 28195 28196 28197 28198 28199 28200 28201 28202 28203 28204 28205 28206 28207 28208 28209 28210 28211 28212 28213 28214 28215 28216 28217 28218 28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 28244 28245 28246 28247 28248 28249 28250 28251 28252 28253 28254 28255 28256 28257 28258 28259 28260 28261 28262 28263 28264 28265 28266 28267 28268 28269 28270 28271 28272 28273 28274 28275 28276 28277 28278 28279 28280 28281 28282 28283 28284 28285 28286 28287 28288 28289 28290 28291 28292 28293 28294 28295 28296 28297 28298 28299 28300 28301 28302 28303 28304 28305 28306 28307 28308 28309 28310 28311 28312 28313 28314 28315 28316 28317 28318 28319 28320 28321 28322 28323 28324 28325 28326 28327 28328 28329 28330 28331 28332 28333 28334 28335 28336 28337 28338 28339 28340 28341 28342 28343 28344 28345 28346 28347 28348 28349 28350 28351 28352 28353 28354 28355 28356 28357 28358 28359 28360 28361 28362 28363 28364 28365 28366 28367 28368 28369 28370 28371 28372 28373 28374 28375 28376 28377 28378 28379 28380 28381 28382 28383 28384 28385 28386 28387 28388 28389 28390 28391 28392 28393 28394 28395 28396 28397 28398 28399 28400 28401 28402 28403 28404 28405 28406 28407 28408 28409 28410 28411 28412 28413 28414 28415 28416 28417 28418 28419 28420 28421 28422 28423 28424 28425 28426 28427 28428 28429 28430 28431 28432 28433 28434 28435 28436 28437 28438 28439 28440 28441 28442 28443 28444 28445 28446 28447 28448 28449 28450 28451 28452 28453 28454 28455 28456 28457 28458 28459 28460 28461 28462 28463 28464 28465 28466 28467 28468 28469 28470 28471 28472 28473 28474 28475 28476 28477 28478 28479 28480 28481 28482 28483 28484 28485 28486 28487 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507 28508 28509 28510 28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 28539 28540 28541 28542 28543 28544 28545 28546 28547 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 28579 28580 28581 28582 28583 28584 28585 28586 28587 28588 28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 28656 28657 28658 28659 28660 28661 28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 28672 28673 28674 28675 28676 28677 28678 28679 28680 28681 28682 28683 28684 28685 28686 28687 28688 28689 28690 28691 28692 28693 28694 28695 28696 28697 28698 28699 28700 28701 28702 28703 28704 28705 28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735 28736 28737 28738 28739 28740 28741 28742 28743 28744 28745 28746 28747 28748 28749 28750 28751 28752 28753 28754 28755 28756 28757 28758 28759 28760 28761 28762 28763 28764 28765 28766 28767 28768 28769 28770 28771 28772 28773 28774 28775 28776 28777 28778 28779 28780 28781 28782 28783 28784 28785 28786 28787 28788 28789 28790 28791 28792 28793 28794 28795 28796 28797 28798 28799 28800 28801 28802 28803 28804 28805 28806 28807 28808 28809 28810 28811 28812 28813 28814 28815 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 28840 28841 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 28879 28880 28881 28882 28883 28884 28885 28886 28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 28898 28899 28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 28913 28914 28915 28916 28917 28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022 29023 29024 29025 29026 29027 29028 29029 29030 29031 29032 29033 29034 29035 29036 29037 29038 29039 29040 29041 29042 29043 29044 29045 29046 29047 29048 29049 29050 29051 29052 29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 29149 29150 29151 29152 29153 29154 29155 29156 29157 29158 29159 29160 29161 29162 29163 29164 29165 29166 29167 29168 29169 29170 29171 29172 29173 29174 29175 29176 29177 29178 29179 29180 29181 29182 29183 29184 29185 29186 29187 29188 29189 29190 29191 29192 29193 29194 29195 29196 29197 29198 29199 29200 29201 29202 29203 29204 29205 29206 29207 29208 29209 29210 29211 29212 29213 29214 29215 29216 29217 29218 29219 29220 29221 29222 29223 29224 29225 29226 29227 29228 29229 29230 29231 29232 29233 29234 29235 29236 29237 29238 29239 29240 29241 29242 29243 29244 29245 29246 29247 29248 29249 29250 29251 29252 29253 29254 29255 29256 29257 29258 29259 29260 29261 29262 29263 29264 29265 29266 29267 29268 29269 29270 29271 29272 29273 29274 29275 29276 29277 29278 29279 29280 29281 29282 29283 29284 29285 29286 29287 29288 29289 29290 29291 29292 29293 29294 29295 29296 29297 29298 29299 29300 29301 29302 29303 29304 29305 29306 29307 29308 29309 29310 29311 29312 29313 29314 29315 29316 29317 29318 29319 29320 29321 29322 29323 29324 29325 29326 29327 29328 29329 29330 29331 29332 29333 29334 29335 29336 29337 29338 29339 29340 29341 29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391
|
/* This file is automatically generated by sql_to_c.awk */
#include "sqlnode.h"
#include "sqlfn.h"
#include "sqltype.h"
/* vsp_auth.sql */
static const char *proc0 =
"#line 48 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"islwsp (in ch integer)\n"
"{\n"
"if (32 = ch or 8 = ch)\n"
"{\n"
"return (1);\n"
"}\n"
"else\n"
"{\n"
"return (0);\n"
"}\n"
"}\n"
"--src vsp_auth.sql:46\n";
static const char *proc1 =
"#line 63 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"issep (in ch integer)\n"
"{\n"
"if (islwsp(ch) or 44 = ch or 10 = ch or 13 = ch)\n"
"{\n"
"return (1);\n"
"}\n"
"else\n"
"{\n"
"return (0);\n"
"}\n"
"}\n"
"--src vsp_auth.sql:61\n";
static const char *proc2 =
"#line 78 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"skip_lwsp (in str varchar, in pos integer, in len integer)\n"
"{\n"
"declare inx integer;\n"
"\n"
"inx := pos;\n"
"\n"
"while (inx < len and islwsp (aref (str, inx)))\n"
"{\n"
"inx := inx + 1;\n"
"}\n"
"return (inx);\n"
"}\n"
"--src vsp_auth.sql:76\n";
static const char *proc3 =
"#line 94 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"skip_sep (in str varchar, in pos integer, in len integer)\n"
"{\n"
"declare inx integer;\n"
"declare c integer;\n"
"\n"
"inx := pos;\n"
"\n"
"while (inx < len and issep (aref (str, inx)))\n"
"{\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"return (inx);\n"
"}\n"
"--src vsp_auth.sql:92\n";
static const char *proc4 =
"#line 112 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"skip_quote (in str varchar, in pos integer, in len integer)\n"
"{\n"
"declare inx integer;\n"
"\n"
"inx := pos;\n"
"\n"
"while (inx < len and 34 <> aref (str, inx))\n"
"{\n"
"inx := inx + 1;\n"
"}\n"
"return (inx + 1);\n"
"}\n"
"--src vsp_auth.sql:110\n";
static const char *proc5 =
"#line 136 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_auth_next_tok (in str varchar, inout pos integer, in len integer)\n"
"{\n"
"declare start, inx integer;\n"
"declare quote integer;\n"
"declare reading_val integer;\n"
"declare c integer;\n"
"\n"
"start := skip_sep (str, pos, len);\n"
"inx := start;\n"
"\n"
"reading_val := 0;\n"
"quote := 0;\n"
"\n"
"if (61 = aref (str, inx))\n"
"{\n"
"reading_val := 1;\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"while (inx < len)\n"
"{\n"
"c := aref (str, inx);\n"
"\n"
"\n"
"\n"
"if (34 = c)\n"
"{\n"
"if (quote)\n"
"{\n"
"pos := inx + 1;\n"
"return (vector (\'value\', subseq (str, start, inx)));\n"
"}\n"
"else\n"
"{\n"
"quote := 1;\n"
"start := inx + 1;\n"
"goto cont;\n"
"}\n"
"}\n"
"if (not quote)\n"
"{\n"
"\n"
"\n"
"if (61 = c)\n"
"{\n"
"pos := inx + 1;\n"
"return (vector (\'name\', subseq (str, start, inx)));\n"
"}\n"
"if (issep (c))\n"
"{\n"
"pos := inx + 1;\n"
"if (reading_val)\n"
"{\n"
"return (vector (\'value\', subseq (str, start, inx)));\n"
"}\n"
"else\n"
"{\n"
"return (vector (\'single\', subseq (str, start, inx)));\n"
"}\n"
"}\n"
"}\n"
"cont:\n"
"\n"
"inx := inx + 1;\n"
"}\n"
"return (null);\n"
"}\n"
"--src vsp_auth.sql:134\n";
static const char *proc6 =
"#line 207 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_auth_vec_compose (in str varchar, in meth varchar)\n"
"{\n"
"\n"
"declare reading_name varchar;\n"
"declare cred, authtype, vec varchar;\n"
"declare i, start, pos, len integer;\n"
"\n"
"declare tok varchar;\n"
"\n"
"len := length (str);\n"
"pos := strcasestr (str, \'Authorization:\')+14;\n"
"\n"
"tok := vsp_auth_next_tok (str, pos, len);\n"
"\n"
"if (aref (tok, 0) <> \'single\')\n"
"return (null);\n"
"\n"
"authtype := aref(tok, 1);\n"
"\n"
"if (\'basic\' = lcase (authtype))\n"
"{\n"
"\n"
"declare start_pos integer;\n"
"pos := skip_sep (str, pos, len);\n"
"start_pos := pos;\n"
"while (0 = issep (aref (str, pos)))\n"
"{\n"
"pos := pos + 1;\n"
"}\n"
"tok := sprintf (\'%s\', decode_base64 (subseq (str, start_pos, pos)));\n"
"if (length (tok) < 2)\n"
"return (0);\n"
"i := strchr(tok, \':\');\n"
"return (vector (\'authtype\', \'basic\',\n"
"\'username\', \"LEFT\" (tok, i),\n"
"\'pass\', \"RIGHT\" (tok, length (tok) - 1 - i)));\n"
"}\n"
"\n"
"vec := make_array (26,\'any\');\n"
"\n"
"aset (vec, 0, \'method\');\n"
"aset (vec, 1, meth);\n"
"aset (vec, 2, \'authtype\');\n"
"aset (vec, 3, authtype);\n"
"\n"
"i := 4;\n"
"\n"
"while (1)\n"
"{\n"
"tok := vsp_auth_next_tok (str, pos, len);\n"
"\n"
"if (tok is null)\n"
"return (vec);\n"
"\n"
"\n"
"aset (vec, i, aref(tok, 1));\n"
"\n"
"i := i + 1;\n"
"}\n"
"}\n"
"--src vsp_auth.sql:205\n";
static const char *proc7 =
"#line 272 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_auth_vec (in lines varchar)\n"
"{\n"
"\n"
"declare line varchar;\n"
"declare nlines integer;\n"
"declare inx integer;\n"
"declare pos, len integer;\n"
"declare meth varchar;\n"
"\n"
"inx := 0;\n"
"nlines := length (lines);\n"
"\n"
"\n"
"\n"
"\n"
"pos := 0;\n"
"len := length (aref (lines, 0));\n"
"meth := (aref (vsp_auth_next_tok (aref (lines, 0), pos, len), 1));\n"
"\n"
"while (inx < nlines)\n"
"{\n"
"line := aref (lines, inx);\n"
"\n"
"if (strcasestr (line, \'Authorization:\') is not null)\n"
"return (vsp_auth_vec_compose (line, meth));\n"
"inx := inx + 1;\n"
"}\n"
"return (0);\n"
"}\n"
"--src vsp_auth.sql:270\n";
static const char *proc8 =
"#line 304 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_skip_lwsp (inout str varchar)\n"
"{\n"
"return (subseq (str, skip_lwsp (str, 0, length (str)), length (str)));\n"
"}\n"
"--src vsp_auth.sql:302\n";
static const char *proc9 =
"#line 312 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_match_hdr (inout lines any, in match_str varchar)\n"
"{\n"
"declare idx, len integer;\n"
"declare line varchar;\n"
"\n"
"idx := 0;\n"
"len := length (lines);\n"
"\n"
"while (idx < len)\n"
"{\n"
"line := aref (lines, idx);\n"
"if (matches_like (line, match_str))\n"
"return (vsp_ua_skip_lwsp (aref (split_and_decode (line, 0, \'=_\\n:\'), 1)));\n"
"inc (idx);\n"
"}\n"
"return \'\';\n"
"}\n"
"--src vsp_auth.sql:310\n";
static const char *proc10 =
"#line 336 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_calculate_digest (in username varchar, in pass varchar, in auth_vec any)\n"
"{\n"
"declare A1, A2, gen_resp varchar;\n"
"declare auth_type varchar;\n"
"\n"
"if (not isarray (auth_vec))\n"
"return null;\n"
"\n"
"auth_type := lower (get_keyword (\'authtype\', auth_vec, \'\'));\n"
"\n"
"gen_resp := null;\n"
"\n"
"if (\'digest\' = auth_type)\n"
"{\n"
"A1 := sprintf (\'%s:%s:%s\', username, get_keyword (\'realm\', auth_vec, \'\'), pass);\n"
"A1 := md5 (A1);\n"
"\n"
"A2 := sprintf (\'%s:%s\', get_keyword(\'method\', auth_vec), get_keyword (\'uri\', auth_vec, \'\'));\n"
"\n"
"A2 := md5 (A2);\n"
"\n"
"gen_resp := sprintf (\'%s:%s:%s:%s:%s:%s\', A1, get_keyword (\'nonce\', auth_vec, \'\'),\n"
"get_keyword (\'nc\', auth_vec, \'\'),\n"
"get_keyword (\'cnonce\', auth_vec, \'\'),\n"
"get_keyword (\'qop\', auth_vec, \'\'), A2);\n"
"\n"
"gen_resp := md5 (gen_resp);\n"
"}\n"
"return gen_resp;\n"
"}\n"
"--src vsp_auth.sql:334\n";
static const char *proc11 =
"#line 369 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_prop_init ()\n"
"{\n"
"\n"
"return (vector (\'has_basic_auth\', \'has_digest_auth\',\n"
"\'is_msie\', \'has_frames\',\n"
"\'has_tables\', \'has_css1\',\n"
"\'has_css2\', \'has_xml\',\n"
"\'browser_level\', \'ua_platform\',\n"
"\'is_robot\', \'is_dav_client\'));\n"
"}\n"
"--src vsp_auth.sql:367\n";
static const char *proc12 =
"#line 382 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_vec_init ()\n"
"{\n"
"return (vector (\n"
"\'Mozilla/4*(compatible; MSIE 6*Windows*\',\n"
"vector (\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"6, \'Win32\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/4*(compatible; MSIE 5*Windows*\',\n"
"vector (\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"5, \'Win32\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/4*(compatible; MSIE 4*Windows*\',\n"
"vector (\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"4, \'Win32\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/4*(compatible; MSIE 6*Linux*Opera [7-9]*\',\n"
"vector (\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"4, \'Linux\',\n"
"\'False\', \'False\'),\n"
"\'*(compatible; MSIE*\',\n"
"vector (\'False\', \'False\',\n"
"\'True\', \'False\',\n"
"\'True\', \'False\',\n"
"\'False\', \'False\',\n"
"2, \'Win32\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/4.*Windows*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"4, \'Win32\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/5.*Windows*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"5, \'Win32\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/4.*Linux*\',\n"
"vector (\'True\', \'False\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"4, \'Linux\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/5.*AppleWebKit/5*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"5, \'NA\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/5.*Linux*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"5, \'Linux\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/4.*Macintosh*\',\n"
"vector (\'True\', \'False\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"4, \'Mac\',\n"
"\'False\', \'False\'),\n"
"\'Mozilla/5.*Macintosh*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"5, \'Mac\',\n"
"\'False\', \'False\'),\n"
"\'Lynx/2*\',\n"
"vector (\'True\', \'False\',\n"
"\'False\', \'True\',\n"
"\'True\', \'False\',\n"
"\'False\', \'False\',\n"
"2, \'NA\',\n"
"\'False\', \'False\'),\n"
"\'Microsoft Data Access Internet Publishing Provider DAV*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"0, \'Win32\',\n"
"\'False\', \'True\'),\n"
"\'cadaver/*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"0, \'NA\',\n"
"\'False\', \'True\'),\n"
"\'Opera/4*\',\n"
"vector (\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"4, \'Linux\',\n"
"\'False\', \'False\'),\n"
"\'curl/*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"0, \'NA\',\n"
"\'False\', \'False\'),\n"
"\'WebDAVFS/*\',\n"
"vector (\'True\', \'True\',\n"
"\'False\', \'True\',\n"
"\'True\', \'True\',\n"
"\'False\', \'False\',\n"
"0, \'Mac\',\n"
"\'False\', \'True\'),\n"
"\'*\',\n"
"vector (\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"\'False\', \'False\',\n"
"1, \'NA\',\n"
"\'False\', \'False\')));\n"
"}\n"
"--src vsp_auth.sql:380\n";
static const char *proc13 =
"#line 527 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_get_prop (in prop_name varchar, inout ua_id varchar, inout prop_map any, inout ua_vec any)\n"
"{\n"
"\n"
"\n"
"declare idx, prop_idx integer;\n"
"declare ua_vec_len integer;\n"
"\n"
"\n"
"ua_vec_len := length (ua_vec);\n"
"prop_idx := 0;\n"
"\n"
"while (prop_idx <= length (prop_map) and aref (prop_map, prop_idx) <> prop_name)\n"
"{\n"
"inc (prop_idx);\n"
"}\n"
"\n"
"return (aref (vsp_ua_get_prop_list (ua_id, prop_map, ua_vec), prop_idx));\n"
"}\n"
"--src vsp_auth.sql:525\n";
static const char *proc14 =
"#line 550 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_ua_get_props (in prop_name varchar, in lines any)\n"
"{\n"
"return vsp_ua_get_prop (prop_name, vsp_ua_id (lines), vsp_ua_prop_init (), vsp_ua_vec_init ());\n"
"}\n"
"--src vsp_auth.sql:548\n";
static const char *proc15 =
"#line 562 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_get_prop_list (inout ua_id varchar, inout prop_map any, inout ua_vec any)\n"
"{\n"
"\n"
"declare idx, prop_idx integer;\n"
"declare ua_vec_len integer;\n"
"\n"
"ua_vec_len := length (ua_vec);\n"
"idx := 0;\n"
"\n"
"while (idx < ua_vec_len)\n"
"{\n"
"\n"
"if (matches_like (ua_id, aref (ua_vec, idx)))\n"
"{\n"
"\n"
"return (aref (ua_vec, idx + 1));\n"
"}\n"
"idx := idx + 2;\n"
"}\n"
"}\n"
"--src vsp_auth.sql:560\n";
static const char *proc16 =
"#line 586 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"inc (inout i integer)\n"
"{\n"
"i := i + 1;\n"
"}\n"
"--src vsp_auth.sql:584\n";
static const char *proc17 =
"#line 594 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_prop_tbl (inout prop_list any, inout prop_map any)\n"
"{\n"
"\n"
"declare idx, len integer;\n"
"len := length (prop_map);\n"
"idx := 0;\n"
"\n"
"\n"
"\n"
"\n"
"http (\'<table border=\"1\">\');\n"
"while (idx < len)\n"
"{\n"
"http (\'<tr><td>\');\n"
"http (aref (prop_map, idx));\n"
"http (\'</td><td>\');\n"
"http (cast (aref (prop_list, idx) as varchar));\n"
"http (\'</td></tr>\');\n"
"inc (idx);\n"
"}\n"
"http (\'</table>\');\n"
"}\n"
"--src vsp_auth.sql:592\n";
static const char *proc18 =
"#line 620 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_id (in lines any)\n"
"{\n"
"return (vsp_ua_match_hdr (lines, \'%[Uu]ser-[Aa]gent: %\'));\n"
"}\n"
"--src vsp_auth.sql:618\n";
static const char *proc19 =
"#line 632 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_match_hdr_1 (inout lines any, in match_str varchar)\n"
"{\n"
"declare idx, jdx, len integer;\n"
"declare line varchar;\n"
"declare dbg integer;\n"
"\n"
"idx := 0;\n"
"len := length (lines);\n"
"jdx := 0;\n"
"\n"
"while (idx < len)\n"
"{\n"
"line := aref (lines, idx);\n"
"if (matches_like (line, match_str))\n"
"{\n"
"\n"
"len := length (line);\n"
"vsp_ua_next_tok (line, \':\', jdx);\n"
"inc (jdx);\n"
"return (subseq (line, skip_lwsp (line, jdx, len), len));\n"
"}\n"
"inc (idx);\n"
"}\n"
"return (null);\n"
"}\n"
"--src vsp_auth.sql:630\n";
static const char *proc20 =
"#line 661 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_get_cookie_str (in lines any)\n"
"{\n"
"return (vsp_ua_match_hdr_1 (lines, \'%[Cc]ookie:%\'));\n"
"}\n"
"--src vsp_auth.sql:659\n";
static const char *proc21 =
"#line 673 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_next_cookie (in cook_str varchar, inout inx integer)\n"
"{\n"
"return vector();\n"
"}\n"
"--src vsp_auth.sql:671\n";
static const char *proc22 =
"#line 686 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_ua_set_cookie (in cook_str varchar)\n"
"{\n"
"http_header (concat (http_header_get (),\n"
"cook_str));\n"
"}\n"
"--src vsp_auth.sql:684\n";
static const char *proc23 =
"#line 695 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_app_cookie (in cook_str varchar,\n"
"in name varchar,\n"
"in value varchar,\n"
"in domain varchar,\n"
"in path varchar,\n"
"in expires varchar,\n"
"in secure varchar) returns varchar\n"
"{\n"
"declare tmp varchar;\n"
"\n"
"tmp := concat (cook_str, \', \',\n"
"name, \'=\', value, \';\');\n"
"if (\'\' <> expires)\n"
"tmp := concat (tmp, \',expires=\', expires);\n"
"\n"
"if (\'\' <> domain)\n"
"tmp := concat (tmp, \',domain=\', domain);\n"
"\n"
"if (\'\' <> path)\n"
"tmp := concat (tmp, \',path=\', path);\n"
"\n"
"if (\'\' <> secure)\n"
"tmp := concat (tmp, \' secure\');\n"
"\n"
"return (tmp);\n"
"}\n"
"--src vsp_auth.sql:693\n";
static const char *proc24 =
"#line 726 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_auth_get (in realm varchar, in domain varchar,\n"
"in nonce varchar, in opaque varchar,\n"
"in stale varchar, inout lines any, in allow_basic integer)\n"
"{\n"
"\n"
"declare hdr varchar;\n"
"declare ua_id varchar;\n"
"declare foo varchar;\n"
"declare require_encrypted integer;\n"
"\n"
"ua_id := vsp_ua_id (lines);\n"
"\n"
"http_request_status (\'HTTP/1.1 401 Unauthorized\');\n"
"require_encrypted := sys_stat (\'sql_encryption_on_password\');\n"
"if (allow_basic and (require_encrypted = 1 or require_encrypted = 2))\n"
"require_encrypted := 0;\n"
"else\n"
"require_encrypted := 1;\n"
"\n"
"if (require_encrypted and (\'True\' = vsp_ua_get_prop (\'has_digest_auth\',\n"
"ua_id, vsp_ua_prop_init (),\n"
"vsp_ua_vec_init ()) or 0 = allow_basic))\n"
"{\n"
"\n"
"hdr := sprintf (\'WWW-Authenticate: Digest realm=\"%s\", domain=\"%s\", nonce=\"%s\", opaque=\"%s\", stale=\"%s\", qop=\"auth\", algorithm=\"MD5\"\\r\\n\',\n"
"coalesce (realm, \'\'),\n"
"coalesce (domain, \'\'),\n"
"coalesce (nonce, \'\'),\n"
"coalesce (opaque, \'\'),\n"
"coalesce (stale, \'\'));\n"
"\n"
"http_header(concat (coalesce (http_header_get (), \'\'), hdr));\n"
"return 0;\n"
"}\n"
"hdr := sprintf (\'WWW-Authenticate: Basic realm=\"%s\"\\r\\n\', coalesce (realm, \'\'));\n"
"http_header (concat (coalesce (http_header_get (), \'\'), hdr));\n"
"return 0;\n"
"}\n"
"--src vsp_auth.sql:724\n";
static const char *proc25 =
"#line 773 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_auth_verify_pass (in auth_vec varchar,\n"
"in username varchar,\n"
"in realm varchar,\n"
"in uri varchar,\n"
"in nonce varchar,\n"
"in nc varchar,\n"
"in cnonce varchar,\n"
"in qop varchar,\n"
"in pass varchar)\n"
"\n"
"{\n"
"\n"
"return http_auth_verify (auth_vec, username, realm, uri, nonce, nc, cnonce, qop, pass);\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"}\n"
"--src vsp_auth.sql:771\n";
static const char *proc26 =
"#line 839 \"[executable]/vsp_auth.sql\"\n"
"create procedure\n"
"vsp_ua_next_tok (in str varchar, in sep varchar, inout inx integer)\n"
"{\n"
"declare len integer;\n"
"declare tok_st integer;\n"
"\n"
"len := length (str);\n"
"\n"
"while (not isnull (strchr (sep, aref (str, inx))))\n"
"{\n"
"if (inx = len)\n"
"return (NULL);\n"
"\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"tok_st := inx;\n"
"\n"
"while (isnull (strchr (sep, aref (str, inx))))\n"
"{\n"
"inx := inx + 1;\n"
"}\n"
"return subseq (str, tok_st, inx);\n"
"}\n"
"--src vsp_auth.sql:837\n";
static const char *proc27 =
"#line 867 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_ua_get_cookie_vec (in lines any)\n"
"{\n"
"declare cook_vec any;\n"
"declare cook_str varchar;\n"
"declare inx integer;\n"
"declare tok varchar;\n"
"\n"
"inx := 0;\n"
"cook_vec := vector ();\n"
"\n"
"\n"
"cook_str := vsp_ua_get_cookie_str (lines);\n"
"\n"
"\n"
"\n"
"if (cook_str is null)\n"
"return (vector ());\n"
"\n"
"while (1)\n"
"{\n"
"tok := vsp_ua_next_tok (cook_str, \' \\t=;\\r\\n\', inx);\n"
"\n"
"if (tok is null)\n"
"goto nd;\n"
"cook_vec := vector_concat (cook_vec, vector (tok));\n"
"}\n"
"nd:\n"
"if (0 <> mod (length (cook_vec), 2))\n"
"return (vector ());\n"
"return (cook_vec);\n"
"}\n"
"--src vsp_auth.sql:865\n";
static const char *proc28 =
"#line 902 \"[executable]/vsp_auth.sql\"\n"
" create procedure\n"
"vsp_ua_make_cookie (in name varchar,\n"
"in value varchar,\n"
"in expires datetime,\n"
"in domain varchar,\n"
"in path varchar,\n"
"in secure integer)\n"
"{\n"
"declare tmp varchar;\n"
"\n"
"tmp := concat (\'Set-cookie: \', name, \'=\', value, \'\');\n"
"\n"
"if (expires is not null)\n"
"{\n"
"tmp := concat (tmp, \'; expires=\', soap_print_box (expires, \'\', 1),\'\');\n"
"}\n"
"if (\'\' <> domain)\n"
"tmp := concat (tmp, \'; domain=\', domain, \'\');\n"
"\n"
"if (\'\' <> path)\n"
"tmp := concat (tmp, \'; path=\', path,\'\');\n"
"\n"
"if (0 <> secure)\n"
"tmp := concat (tmp, \' secure\');\n"
"\n"
"\n"
"\n"
"tmp := concat (tmp, \'\\r\\n\');\n"
"return (tmp);\n"
"}\n"
"--src vsp_auth.sql:900\n";
/* soap.sql */
static const char *proc29 =
"#line 24 \"[executable]/soap.sql\"\n"
" create procedure\n"
"SOAP_CLIENT (\n"
"in url varchar,\n"
"in operation varchar,\n"
"in target_namespace varchar := null,\n"
"in parameters any := null,\n"
"in headers any := null,\n"
"in soap_action varchar := \'\',\n"
"in attachments any := null,\n"
"in ticket any := null,\n"
"in passwd varchar := null,\n"
"in user_name varchar := null,\n"
"in user_password varchar := null,\n"
"in auth_type varchar := \'none\',\n"
"in security_type varchar := \'sign\',\n"
"in debug integer := 0,\n"
"in template varchar := null,\n"
"in style integer := 0,\n"
"in version integer := 11,\n"
"in direction integer := 0,\n"
"in http_header any := null,\n"
"in security_schema any := null,\n"
"in time_out int := 100)\n"
"{\n"
"declare conn, ret any;\n"
"conn := null;\n"
"ret := SOAP_ASYNC_CLIENT (\n"
"url,\n"
"operation,\n"
"target_namespace,\n"
"parameters,\n"
"headers,\n"
"soap_action,\n"
"attachments,\n"
"ticket,\n"
"passwd,\n"
"user_name,\n"
"user_password,\n"
"auth_type,\n"
"security_type,\n"
"debug,\n"
"template,\n"
"style,\n"
"version,\n"
"direction,\n"
"http_header,\n"
"security_schema,\n"
"time_out,\n"
"conn\n"
");\n"
"return ret;\n"
"}\n"
"--src soap.sql:22\n";
static const char *proc30 =
"#line 79 \"[executable]/soap.sql\"\n"
" create procedure\n"
"SOAP_ASYNC_CLIENT\n"
"(\n"
"in url varchar,\n"
"in operation varchar,\n"
"in target_namespace varchar := null,\n"
"in parameters any := null,\n"
"in headers any := null,\n"
"in soap_action varchar := \'\',\n"
"in attachments any := null,\n"
"in ticket any := null,\n"
"in passwd varchar := null,\n"
"in user_name varchar := null,\n"
"in user_password varchar := null,\n"
"in auth_type varchar := \'none\',\n"
"in security_type varchar := \'sign\',\n"
"in debug integer := 0,\n"
"in template varchar := null,\n"
"in style integer := 0,\n"
"in version integer := 11,\n"
"in direction integer := 0,\n"
"in http_header any := null,\n"
"in security_schema any := null,\n"
"in time_out int := 100,\n"
"inout conn any\n"
")\n"
"{\n"
"declare host, path varchar;\n"
"declare hinfo, resp, ver, skeys any;\n"
"declare security_tp int;\n"
"\n"
"hinfo := rfc1808_parse_uri (url);\n"
"host := hinfo [1];\n"
"if (lower (hinfo[0]) = \'https\' and ticket is null)\n"
"ticket := \'1\';\n"
"path := vspx_uri_compose (vector (\'\',\'\', hinfo [2], hinfo[3], hinfo[4], hinfo[5]));\n"
"if (parameters is null)\n"
"parameters := vector ();\n"
"\n"
"if (auth_type = \'x509\' or auth_type = \'kerberos\' or auth_type = \'key\')\n"
"security_tp := case security_type when \'sign\' then 1 else 2 end;\n"
"else\n"
"{\n"
"security_tp := 0;\n"
"if (lower (hinfo[0]) <> \'https\')\n"
"ticket := null;\n"
"}\n"
"\n"
"if (debug)\n"
"ver := -1 * version;\n"
"else\n"
"ver := version;\n"
"\n"
"soap_action := \'\"\' || trim (soap_action, \'\"\') || \'\"\';\n"
"\n"
"if (lower (hinfo[0]) = \'https\' and strchr (host, \':\') is null)\n"
"host := host || \':443\';\n"
"\n"
"skeys := null;\n"
"\n"
"if (connection_get (\'wssc-keys\') is not null)\n"
"connection_set (\'wssc-keys\', null);\n"
"\n"
"resp := soap_call_new (host, path, target_namespace, operation, parameters,\n"
"ver, ticket, passwd, soap_action, style,\n"
"user_name, user_password, security_tp, ticket, template, headers, http_header,\n"
"direction, security_schema, conn, time_out, skeys);\n"
"\n"
"if (skeys is not null)\n"
"connection_set (\'wssc-keys\', skeys);\n"
"\n"
"return resp;\n"
"}\n"
"--src soap.sql:77\n";
static const char *proc31 =
"#line 154 \"[executable]/soap.sql\"\n"
"create procedure WSSE_GET_NS_INFO (inout doc any, inout ns any)\n"
"{\n"
"declare wsse any;\n"
"wsse := vector (\n"
"\'http://schemas.xmlsoap.org/ws/2002/12/secext\',\n"
"\'http://schemas.xmlsoap.org/ws/2002/04/secext\',\n"
"\'http://schemas.xmlsoap.org/ws/2002/07/secext\',\n"
"\'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\'\n"
");\n"
"foreach (varchar uri in wsse) do\n"
"{\n"
"if (xpath_eval (sprintf (\'[ xmlns:wsse=\"%s\" ] //wsse:Security\', uri), doc) is not null)\n"
"{\n"
"if (uri like \'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-%\')\n"
"ns := vector (\'wsse\', uri,\n"
"\'wsu\', \'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\');\n"
"else\n"
"ns := vector (\'wsse\', uri);\n"
"}\n"
"}\n"
"}\n"
"--src soap.sql:152\n";
static const char *proc32 =
"#line 178 \"[executable]/soap.sql\"\n"
" create procedure WSSE_OASIS_URI () returns varchar\n"
"{\n"
"return \'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\';\n"
"}\n"
"--src soap.sql:176\n";
static const char *proc33 =
"#line 185 \"[executable]/soap.sql\"\n"
" create procedure WSSU_OASIS_URI () returns varchar\n"
"{\n"
"return \'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\';\n"
"}\n"
"--src soap.sql:183\n";
static const char *proc34 =
"#line 191 \"[executable]/soap.sql\"\n"
"create procedure\n"
"SOAP_DEFAULT_XENC_TEMPLATE (in body varchar, in key_name varchar, in ns any)\n"
"{\n"
"declare tmpl, algo varchar;\n"
"algo := xenc_get_key_algo (key_name);\n"
"if (algo is null)\n"
"return NULL;\n"
"\n"
"tmpl := sprintf (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\" >\n"
"<SignedInfo>\n"
"<CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\" />\n"
"<SignatureMethod Algorithm=\"%s\" />\n"
"</SignedInfo>\n"
"<SignatureValue></SignatureValue>\n"
"<KeyInfo>\n"
"<KeyName>%s</KeyName>\n"
"</KeyInfo>\n"
"</Signature>\', algo, key_name);\n"
"\n"
"return dsig_template_ext (xtree_doc (body), tmpl, ns,\n"
"\'http://schemas.xmlsoap.org/soap/envelope/\', \'Body\',\n"
"\n"
"\'http://schemas.xmlsoap.org/ws/2004/03/addressing\', \'Action\',\n"
"\'http://schemas.xmlsoap.org/ws/2004/03/addressing\', \'From\',\n"
"\'http://schemas.xmlsoap.org/ws/2004/03/addressing\', \'To\',\n"
"\'http://schemas.xmlsoap.org/ws/2004/03/addressing\', \'MessageID\',\n"
"\'http://schemas.xmlsoap.org/ws/2004/03/addressing\', \'ReplyTo\',\n"
"\'http://schemas.xmlsoap.org/ws/2004/03/addressing\', \'FaultTo\',\n"
"\'http://schemas.xmlsoap.org/ws/2004/03/addressing\', \'RelatesTo\',\n"
"\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'Action\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'From\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'To\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'MessageID\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'ReplyTo\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'FaultTo\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'RelatesTo\',\n"
"\n"
"\'http://schemas.xmlsoap.org/rp\', \'action\',\n"
"\'http://schemas.xmlsoap.org/rp\', \'to\',\n"
"\'http://schemas.xmlsoap.org/rp\', \'id\',\n"
"\n"
"\'http://schemas.xmlsoap.org/ws/2002/07/utility\', \'Created\',\n"
"\'http://schemas.xmlsoap.org/ws/2002/07/utility\', \'Expires\'\n"
");\n"
"\n"
"}\n"
"--src soap.sql:189\n";
static const char *proc35 =
"#line 241 \"[executable]/soap.sql\"\n"
"create procedure\n"
"SOAP_CLIENT_WSS (INOUT BODY ANY, INOUT KEYI ANY, INOUT TEMPLATE VARCHAR, INOUT SIGN INT, INOUT NS ANY)\n"
"{\n"
"declare resp varchar;\n"
"declare request varchar;\n"
"declare _template varchar;\n"
"declare _ns any;\n"
"\n"
"if (not sign)\n"
"return;\n"
"\n"
"request := string_output_string (BODY);\n"
"_template := TEMPLATE;\n"
"\n"
"if (isarray (NS) and not isstring (NS))\n"
"_ns := NS;\n"
"else\n"
"_ns := vector ();\n"
"\n"
"\n"
"if (_template like \'^[%^]\' escape \'^\')\n"
"{\n"
"_template := trim (_template, \'[]\');\n"
"if (\"LEFT\" (_template, 5) = \'func:\')\n"
"{\n"
"declare mdata any;\n"
"_template := subseq (_template, 5);\n"
"_template := call (_template)(request);\n"
"}\n"
"else\n"
"_template := SOAP_DEFAULT_XENC_TEMPLATE (request, _template, _ns);\n"
"}\n"
"\n"
"if (sign = 1 or keyi is null)\n"
"{\n"
"resp := xenc_encrypt (request, 11, _template, _ns);\n"
"}\n"
"else if (sign = 2)\n"
"resp := xenc_encrypt (request, 11, _template, _ns, \'//Envelope/Body\', keyi, \'Content\');\n"
"string_output_flush (BODY);\n"
"http (resp, BODY);\n"
"}\n"
"--src soap.sql:239\n";
static const char *proc36 =
"#line 286 \"[executable]/soap.sql\"\n"
" create procedure\n"
"wsrp_error (in code integer, in reason varchar, in endpoint varchar, inout soap_xml any)\n"
"{\n"
"declare errm any;\n"
"http_rewrite ();\n"
"errm := xslt (\'http://local.virt/wsrp_error\', soap_xml, vector (\'code\', cast (code as varchar), \'reason\', reason, \'endpoint\', endpoint, \'id\', lower(uuid())));\n"
"http_value (errm);\n"
"http_request_status (\'HTTP/1.1 500 Server Error\');\n"
"signal (\'SOAP\', sprintf (\'%d %s\', code, reason));\n"
"}\n"
"--src soap.sql:284\n";
static const char *proc37 =
"#line 298 \"[executable]/soap.sql\"\n"
"create procedure\n"
"WS_SOAP_GET_KEYINFO (inout soap_xml any, inout lines any)\n"
"{\n"
"declare tkt any;\n"
"declare tp, enc varchar;\n"
"declare ser, own, issuer, stard, endd, usr any;\n"
"declare sec, pos1, pos2 any;\n"
"\n"
"sec := xpath_eval\n"
"(\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"] /S:Envelope/S:Header/*:Security\',\n"
"soap_xml, 1);\n"
"\n"
"\n"
"if (sec is null)\n"
"return ;\n"
"\n"
"\n"
"\n"
"tkt := xpath_eval (\'BinarySecurityToken/text()\', sec, 1);\n"
"tp := xpath_eval (\'BinarySecurityToken/@ValueType\', sec, 1);\n"
"enc := xpath_eval (\'BinarySecurityToken/@EncodingType\', sec, 1);\n"
"usr := xpath_eval (\'UsernameToken/Username/text()\', sec, 1);\n"
"\n"
"if (usr is not null)\n"
"{\n"
"connection_set (\'wss-user\', cast (usr as varchar));\n"
"}\n"
"\n"
"if (tkt is null)\n"
"return;\n"
"\n"
"tp := cast (tp as varchar);\n"
"enc := cast (enc as varchar);\n"
"tkt := cast (tkt as varchar);\n"
"\n"
"pos1 := strrchr (tp, \'#\');\n"
"pos2 := strrchr (enc, \'#\');\n"
"if (pos1 is null)\n"
"{\n"
"pos1 := strrchr (tp, \':\');\n"
"pos2 := strrchr (enc, \':\');\n"
"}\n"
"\n"
"if (pos1 is not null)\n"
"tp := subseq (tp, pos1 + 1, length (tp));\n"
"if (pos2 is not null)\n"
"enc := subseq (enc, pos2 + 1, length (enc));\n"
"\n"
"ser := own := issuer := stard := endd := NULL;\n"
"if (tp = \'X509v3\')\n"
"{\n"
"if (enc = \'Base64Binary\')\n"
"{\n"
"declare cert any;\n"
"cert := decode_base64 (tkt);\n"
"ser := get_certificate_info (1, cert, 1);\n"
"own := get_certificate_info (2, cert, 1);\n"
"issuer := get_certificate_info (3, cert, 1);\n"
"stard := get_certificate_info (4, cert, 1);\n"
"endd := get_certificate_info (5, cert, 1);\n"
"}\n"
"}\n"
"else if (tp = \'Kerberosv5ST\')\n"
"{\n"
"if (enc = \'Base64Binary\')\n"
"{\n"
"declare cert, ctx, cip, cnt any;\n"
"cert := decode_base64 (tkt);\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"dbg_obj_print (__SQL_MESSAGE);\n"
"resignal;\n"
"};\n"
"ctx := krb_init_srv_ctx (\'host\', cert);\n"
"ser := krb_inquire_ctx (ctx, 1);\n"
"own := krb_inquire_ctx (ctx, 2);\n"
"issuer := krb_inquire_ctx (ctx, 3);\n"
"stard := krb_inquire_ctx (ctx, 4);\n"
"endd := krb_inquire_ctx (ctx, 5);\n"
"\n"
"cip := cast (xpath_eval (\'//CipherValue/text()\', soap_xml, 1) as varchar);\n"
"cnt := kerberos_unseal (ctx, cip);\n"
"dbg_obj_print (cnt);\n"
"}\n"
"}\n"
"connection_set (\'wss-token-owner\', own);\n"
"connection_set (\'wss-token-issuer\', issuer);\n"
"connection_set (\'wss-token-serial\', ser);\n"
"connection_set (\'wss-token-start\', stard);\n"
"connection_set (\'wss-token-end\', endd);\n"
"}\n"
"--src soap.sql:296\n";
static const char *proc38 =
"#line 391 \"[executable]/soap.sql\"\n"
"create procedure\n"
"WS_SECURITY_CHECK (inout body varchar, inout soap_xml any, inout lines any, inout ns any)\n"
"{\n"
"declare decoded varchar;\n"
"declare body_str varchar;\n"
"declare validate_sign int;\n"
"declare opts, uhook, ekeys any;\n"
"\n"
"body_str := string_output_string (body);\n"
"\n"
"if (0)\n"
"log_message (\'Calling security pre-processing\');\n"
"\n"
"opts := http_map_get (\'soap_opts\');\n"
"validate_sign := get_keyword (\'WSS-Validate-Signature\', opts, 2);\n"
"\n"
"if (isstring (validate_sign))\n"
"validate_sign := cast (validate_sign as integer);\n"
"\n"
"\n"
"{\n"
"declare exit handler for sqlstate \'*\' {\n"
"if (1)\n"
"log_message (sprintf (\'WSS: %s\', __SQL_MESSAGE));\n"
"resignal;\n"
"\n"
"\n"
"};\n"
"\n"
"decoded := xenc_decrypt_soap (body_str, 11, validate_sign, \'UTF-8\', \'x-any\', opts, ekeys);\n"
"connection_set (\'wss-keys\', ekeys);\n"
"if (isstring (decoded))\n"
"soap_xml := xml_tree_doc (decoded);\n"
"}\n"
"\n"
"WSSE_GET_NS_INFO (soap_xml, ns);\n"
"\n"
"\n"
"{\n"
"declare created, expires, timenow datetime;\n"
"declare _created, _expires any;\n"
"timenow := now ();\n"
"_created := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:u=\"http://schemas.xmlsoap.org/ws/2002/07/utility\"] /S:Envelope/S:Header/u:Timestamp/u:Created\', soap_xml);\n"
"_expires := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:u=\"http://schemas.xmlsoap.org/ws/2002/07/utility\"] /S:Envelope/S:Header/u:Timestamp/u:Expires\', soap_xml);\n"
"\n"
"if (_expires is not null and _created is not null)\n"
"{\n"
"created := soap_box_xml_entity (_created, timenow, 11);\n"
"expires := soap_box_xml_entity (_expires, timenow, 11);\n"
"\n"
"\n"
"if ((dateadd(\'second\', -1, created) > timenow or timenow > expires))\n"
"signal (\'SOAP\', sprintf (\'300 Message Expired (created %s expires %s, time now is %s)\',\n"
"__rdf_strsqlval (created), __rdf_strsqlval (expires), __rdf_strsqlval (timenow) ) );\n"
"}\n"
"}\n"
"\n"
"\n"
"nxt:\n"
"WS_SOAP_GET_KEYINFO (soap_xml, lines);\n"
"\n"
"uhook := get_keyword (\'WSS-SecurityCheck\', opts, NULL);\n"
"\n"
"\n"
"if (length (uhook) > 0 and __proc_exists (uhook))\n"
"{\n"
"call (uhook) (soap_xml);\n"
"}\n"
"\n"
"if (__proc_exists (\'DB.DBA.WS_SOAP_ACCOUNTING\'))\n"
"{\n"
"declare rc int;\n"
"rc := call (\'DB.DBA.WS_SOAP_ACCOUNTING\') ();\n"
"if (not rc)\n"
"{\n"
"http_rewrite ();\n"
"http (soap_make_error (\'300\', \'42000\', \'Accounting failed\'));\n"
"http_request_status (\'HTTP/1.1 500 Server Error\');\n"
"signal (\'SOAP\', sprintf (\'%d %s\', 300, \'Accounting failed\'));\n"
"}\n"
"}\n"
"\n"
"}\n"
"--src soap.sql:389\n";
static const char *proc39 =
"#line 476 \"[executable]/soap.sql\"\n"
"create procedure\n"
"WS_SECURITY_ADD (inout body any, inout ns any)\n"
"{\n"
"declare _body any;\n"
"declare _ns any;\n"
"\n"
"if (0)\n"
"log_message (\'Calling security post-processing\');\n"
"declare templ, tempf, kname, ktype, tp varchar;\n"
"declare keyinst, ses, opts any;\n"
"\n"
"opts := http_map_get (\'soap_opts\');\n"
"templ := get_keyword (\'WSS-Template\', opts, NULL);\n"
"tempf := get_keyword (\'WSS-Func-Template\', opts, NULL);\n"
"kname := get_keyword (\'WSS-KEY\', opts, NULL);\n"
"\n"
"if (isarray (ns) and not isstring (ns))\n"
"_ns := ns;\n"
"else\n"
"_ns := vector ();\n"
"\n"
"\n"
"if (isstring (kname) and __proc_exists (kname))\n"
"keyinst := call (kname) ();\n"
"else\n"
"keyinst := NULL;\n"
"\n"
"\n"
"ses := string_output ();\n"
"http_value (body, null, ses);\n"
"_body := string_output_string (ses);\n"
"\n"
"\n"
"if (tempf is not null)\n"
"{\n"
"templ := call (tempf)(body);\n"
"}\n"
"else if (templ is not null)\n"
"{\n"
"if (templ like \'^[%^]\' escape \'^\')\n"
"{\n"
"templ := trim (templ, \'[]\');\n"
"if (\"LEFT\" (templ, 5) = \'func:\')\n"
"{\n"
"templ := subseq (templ, 5);\n"
"templ := call (templ)(_body);\n"
"}\n"
"else\n"
"templ := SOAP_DEFAULT_XENC_TEMPLATE (_body, templ, _ns);\n"
"}\n"
"else\n"
"templ := file_to_string (templ);\n"
"}\n"
"else\n"
"templ := null;\n"
"\n"
"if (keyinst is not null)\n"
"body := xenc_encrypt (_body, 11, templ, _ns,\n"
"\'//Envelope/Body[*]\', keyinst, \'Content\');\n"
"else if (templ is not null)\n"
"body := xenc_encrypt (_body, 11, templ, _ns);\n"
"else\n"
"return 0;\n"
"return 1;\n"
"}\n"
"--src soap.sql:474\n";
static const char *proc40 =
"#line 544 \"[executable]/soap.sql\"\n"
" create procedure\n"
"WS_SOAP (in path any, in params any, in lines any)\n"
"{\n"
"declare content_type, soap_method, soap_xml varchar;\n"
"declare res any;\n"
"declare rp, soap_header any;\n"
"declare rp_act, wssec, wsrpe integer;\n"
"declare req_body varchar;\n"
"declare wss, attachments, ns any;\n"
"declare soap_ver int;\n"
"\n"
"soap_ver := 11;\n"
"ns := vector ();\n"
"\n"
"if (length (params) < 1) params := __http_stream_params ();\n"
"\n"
"if (isstring({?\'content\'}) and lower(trim({?\'content\'})) = \'wsdl\')\n"
"{\n"
"http (soap_wsdl ());\n"
"return;\n"
"}\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"rp_act := 0; wssec := 0; wsrpe := 0;\n"
"content_type := http_request_header (lines, \'Content-Type\');\n"
"soap_method := trim (http_request_header (lines, \'SOAPAction\', null, \'\'), \'\"\');\n"
"soap_xml := NULL; attachments := NULL;\n"
"if (isstring (content_type))\n"
"content_type := lower (content_type);\n"
"\n"
"if (content_type = \'text/xml\')\n"
"{\n"
"req_body := http_body_read ();\n"
"soap_xml := xml_tree_doc (xml_tree (req_body));\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"}\n"
"else if (content_type = \'application/dime\')\n"
"{\n"
"declare dime_arr any;\n"
"req_body := http_body_read ();\n"
"req_body := string_output_string (req_body);\n"
"dime_arr := dime_tree (req_body);\n"
"\n"
"req_body := dime_arr [0][2];\n"
"attachments := dime_arr;\n"
"aset (attachments, 0, NULL);\n"
"soap_xml := xml_tree_doc (xml_tree (req_body));\n"
"}\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"else\n"
"{\n"
"http_request_status (\'HTTP/1.1 400 Bad request\');\n"
"signal (\'42000\', \'Unsupported media type\');\n"
"}\n"
"\n"
"http_header (\'Content-Type: text/xml; charset=\"utf-8\"\\r\\n\');\n"
"\n"
"\n"
"rp := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:rp=\"http://schemas.xmlsoap.org/rp\"] /S:Envelope/S:Header/rp:path\', soap_xml, 1);\n"
"soap_header := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"] /S:Envelope/S:Header\', soap_xml, 1);\n"
"\n"
"wss := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:wss=\"http://schemas.xmlsoap.org/ws/2002/07/secext\"] /S:Envelope/S:Header/wss:Security\', soap_xml, 1);\n"
"if (wss is null)\n"
"wss := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:wss=\"http://schemas.xmlsoap.org/ws/2002/04/secext\"] /S:Envelope/S:Header/wss:Security\', soap_xml, 1);\n"
"\n"
"if (http_map_get (\'soap_opts\'))\n"
"{\n"
"if (lower (get_keyword (\'WS-SEC\', http_map_get (\'soap_opts\'), \'no\')) like \'y%\')\n"
"{\n"
"\n"
"wssec := 1;\n"
"}\n"
"\n"
"if (lower (get_keyword (\'WS-RP\', http_map_get (\'soap_opts\'), \'no\')) like \'y%\')\n"
"wsrpe := 1;\n"
"}\n"
"\n"
"declare this_point, send_to, _action, _id, _to, newfwd varchar;\n"
"declare _rev any;\n"
"declare errm any;\n"
"if (rp is not null and wsrpe)\n"
"{\n"
"declare _actor, _mustund nvarchar;\n"
"\n"
"declare _fwd any;\n"
"\n"
"_action := xpath_eval (\'string(action)\', rp, 1);\n"
"_id := xpath_eval (\'string(id)\', rp, 1);\n"
"_actor := xpath_eval (\'@actor\', rp, 1);\n"
"_mustund := xpath_eval (\'@mustUnderstand\', rp, 1);\n"
"if (_actor <> N\'http://schemas.xmlsoap.org/soap/actor/next\' or _mustund <> N\'1\')\n"
"db..wsrp_error (701, \'WS-Routing Header Required\', \'\', soap_xml);\n"
"\n"
"_to := xpath_eval (\'string(to)\', rp, 1);\n"
"_fwd := xpath_eval (\'fwd\', rp, 1);\n"
"_rev := xpath_eval (\'rev\', rp, 1);\n"
"\n"
"\n"
"\n"
"\n"
"this_point := soap_current_url ();\n"
"if (this_point not like \'%/\' and http_path() like \'%/\')\n"
"this_point := concat (this_point, \'/\');\n"
"send_to := NULL;\n"
"_to := cast (_to as varchar);\n"
"if (_fwd is null or xpath_eval(\'via[1]\', _fwd, 1) is null)\n"
"{\n"
"\n"
"if (_to <> this_point)\n"
"{\n"
"db..wsrp_error (800, \'WS-Routing receiver fault\', _to, soap_xml);\n"
"}\n"
"\n"
"rp_act := 2;\n"
"}\n"
"else\n"
"{\n"
"declare _to1 varchar;\n"
"send_to := xpath_eval(\'via[2]\', _fwd, 1);\n"
"if (send_to is not null)\n"
"send_to := xpath_eval(\'string()\', send_to, 1);\n"
"_to1 := xpath_eval(\'string(via[1])\', _fwd, 1);\n"
"_to1 := cast (_to1 as varchar);\n"
"\n"
"\n"
"if (_to1 <> this_point)\n"
"{\n"
"db..wsrp_error (800, \'WS-Routing receiver fault\', _to, soap_xml);\n"
"}\n"
"\n"
"if (send_to is null)\n"
"{\n"
"if (xpath_eval (\'to\', rp, 1) is null)\n"
"{\n"
"\n"
"_to := _to1;\n"
"rp_act := 2;\n"
"}\n"
"else\n"
"{\n"
"\n"
"send_to := _to;\n"
"rp_act := 1;\n"
"}\n"
"}\n"
"else\n"
"{\n"
"\n"
"rp_act := 1;\n"
"}\n"
"}\n"
"\n"
"}\n"
"else if (wsrpe)\n"
"db..wsrp_error (701, \'WS-Routing Header Required\', \'\', soap_xml);\n"
"\n"
"newfwd := \'\';\n"
"if (__proc_exists (\'DB.DBA.WS_SOAP_RF_HEADER\'))\n"
"{\n"
"newfwd := call (\'DB.DBA.WS_SOAP_RF_HEADER\') (soap_header, lines, this_point, send_to);\n"
"if (newfwd <> \'\')\n"
"{\n"
"send_to := newfwd;\n"
"rp_act := 1;\n"
"}\n"
"}\n"
"\n"
"if (rp_act = 1)\n"
"{\n"
"declare hdr, body, hl, ses, hinfo varchar;\n"
"declare hst varchar;\n"
"send_to := cast (send_to as varchar);\n"
"hinfo := rfc1808_parse_uri (send_to);\n"
"if (hinfo [0] = \'\' or hinfo [1] = \'\' or hinfo [2] = \'\' or hinfo [5] <> \'\')\n"
"{\n"
"db..wsrp_error (713, \'Endpoint Invalid\', send_to, soap_xml);\n"
"}\n"
"if (hinfo [0] <> \'http\')\n"
"{\n"
"db..wsrp_error (712, \'Endpoint Not Supported\', send_to, soap_xml);\n"
"}\n"
"body := xslt (\'http://local.virt/wsrp_interm\', soap_xml, vector (\'newrev\', \'\', \'newfwd\', newfwd));\n"
"ses := string_output ();\n"
"http_value (body, NULL, ses);\n"
"body := string_output_string (ses);\n"
"hdr := sprintf (\'SOAPAction: \"%s\"\\r\\nContent-Type: text/xml; charset=\"utf-8\"\', _action);\n"
"{\n"
"declare exit handler for sqlstate \'*\' {\n"
"db..wsrp_error (820, \'Endpoint Not Reachable\', send_to, soap_xml);\n"
"};\n"
"declare exit handler for sqlstate \'22023\' {\n"
"db..wsrp_error (730, \'Endpoint Too Long\', send_to, soap_xml);\n"
"};\n"
"declare exit handler for sqlstate \'08006\' {\n"
"db..wsrp_error (740, \'Message Timeout\', send_to, soap_xml);\n"
"};\n"
"if (registry_get (\'__SOAP_WSRP_LOG\') = \'1\')\n"
"log_message (\'Forwarding request to: \' || send_to);\n"
"res := http_get (send_to, hl, \'POST\', hdr, body);\n"
"}\n"
"\n"
"\n"
"hst := trim(hl[0], \'\\r\\n \');\n"
"\n"
"if (hst like \'HTTP/1.1 4%\')\n"
"db..wsrp_error (820, \'Endpoint Not Reachable\', send_to, soap_xml);\n"
"\n"
"http_request_status (hst);\n"
"\n"
"rp_act := 0;\n"
"if ((\'text/xml\' = http_request_header (hl, \'Content-Type\')) and atoi (http_request_header (hl, \'Content-Length\', null, \'0\')))\n"
"{\n"
"soap_xml := xml_tree_doc (xml_tree (res));\n"
"\n"
"res := xslt (\'http://local.virt/wsrp_interm\', soap_xml, vector (\'newrev\', this_point, \'newfwd\', \'\'));\n"
"}\n"
"\n"
"}\n"
"else\n"
"{\n"
"declare soap_res any;\n"
"declare new_xml any;\n"
"\n"
"declare exit handler for SQLSTATE \'*\' {\n"
"declare err_msg varchar;\n"
"err_msg := soap_make_error (\'300\', __SQL_STATE, __SQL_MESSAGE);\n"
"http (err_msg);\n"
"if (wssec and length (http_pending_req ()) = 1)\n"
"xenc_delete_temp_keys ();\n"
"resignal \'VSPRT\';\n"
"};\n"
"\n"
"if (wssec)\n"
"{\n"
"WS_SECURITY_CHECK (req_body, soap_xml, lines, ns);\n"
"}\n"
"\n"
"new_xml := xslt (\'http://local.virt/wsrp_ultim\', soap_xml);\n"
"\n"
"if (__proc_exists (\'DB.DBA.WS_SOAP_RF_MESSAGE\'))\n"
"res := call (\'DB.DBA.WS_SOAP_RF_MESSAGE\') (new_xml, lines, _action, this_point);\n"
"if (res is null)\n"
"res := soap_server (new_xml, soap_method, lines, soap_ver, null, null, attachments);\n"
"\n"
"if (wsrpe)\n"
"{\n"
"declare _from_mail varchar;\n"
"_from_mail := get_keyword (\'wsrp-from\',http_map_get (\'soap_opts\'), \'\');\n"
"soap_res := xml_tree_doc (res);\n"
"\n"
"res := xslt (\'http://local.virt/wsrp_resp\', soap_res, vector (\'id\', lower(uuid()), \'relatesTo\', _id, \'action\', _action, \'fwd\', _rev, \'to\', _to, \'from\', _from_mail));\n"
"}\n"
"else\n"
"{\n"
"soap_res := xml_tree_doc (res);\n"
"res := xslt (\'http://local.virt/wsrp_resp\', soap_res, vector (\'routing\', 0, \'b_id\', lower(uuid())));\n"
"}\n"
"\n"
"if (wssec)\n"
"{\n"
"WS_SECURITY_ADD (res, ns);\n"
"if (length (http_pending_req ()) = 1)\n"
"xenc_delete_temp_keys ();\n"
"}\n"
"}\n"
"\n"
"if (registry_get (\'__SOAP_WSRP_LOG\') = \'1\')\n"
"log_message (\'Sending response to: \' || http_client_ip ());\n"
"\n"
"if (isstring (res))\n"
"http (res);\n"
"else\n"
"http_value (res);\n"
"}\n"
"--src soap.sql:542\n";
static const char *tbl0 =
"create table DB.DBA.WS_REFERRALS (\n"
"R_ID varchar,\n"
"R_FOR varchar,\n"
"R_GO long varchar,\n"
"R_EXPIRY datetime,\n"
"R_URL varchar,\n"
"R_STATIC varchar default NULL,\n"
"primary key (R_ID, R_FOR)\n"
")\n";
static const char *alter0 =
"alter table DB.DBA.WS_REFERRALS add R_STATIC varchar default NULL\n";
static const char *proc41 =
"#line 859 \"[executable]/soap.sql\"\n"
"create procedure\n"
"DB.DBA.WS_SOAP_RF_HEADER (in soap_xml any, in lines any, in this_point varchar, in next_hop varchar)\n"
"{\n"
"declare referrals any;\n"
"declare matches any;\n"
"\n"
"if (soap_xml is null)\n"
"return \'\';\n"
"\n"
"referrals := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\"] /S:Envelope/S:Header/r:referrals\', soap_xml, 1);\n"
"\n"
"matches := vector ();\n"
"if (referrals is null)\n"
"{\n"
"for select R_ID, R_FOR, R_GO, R_EXPIRY from DB.DBA.WS_REFERRALS where R_URL = this_point and\n"
"(this_point like R_FOR or next_hop like R_FOR)\n"
"and datediff (\'second\', now(), R_EXPIRY) > 0 do\n"
"{\n"
"matches := vector_concat (matches, vector (vector (R_FOR, R_GO, R_ID, R_EXPIRY)));\n"
"}\n"
"goto choose;\n"
"}\n"
"\n"
"\n"
"declare _refs, _ref, _for_pref, _for_exact, _go, _if_ttl, go_via any;\n"
"declare _refid, _if_inv varchar;\n"
"declare len, inx, i, l integer;\n"
"\n"
"_refs := xpath_eval (\'ref[*]\', referrals, 0);\n"
"inx := 0; len := length(_refs);\n"
"\n"
"if (not len)\n"
"return \'\';\n"
"while (inx < len)\n"
"{\n"
"_ref := _refs[inx];\n"
"inx := inx + 1;\n"
"_refid := cast (xpath_eval (\'string(refId)\', _ref, 1) as varchar);\n"
"_if_ttl := cast (xpath_eval (\'string(if/ttl)\', _ref, 1) as integer);\n"
"_if_inv := xpath_eval (\'if/invalidates/rid/text()\', _ref, 0);\n"
"_go := xpath_eval (\'go/via/text()\', _ref, 0);\n"
"_for_pref := xpath_eval (\'for/prefix/text()\', _ref, 0);\n"
"_for_exact := xpath_eval (\'for/exact/text()\', _ref, 0);\n"
"i := 0; l := length (_if_inv);\n"
"while (i < l)\n"
"{\n"
"declare elm varchar;\n"
"elm := cast (_if_inv[i] as varchar);\n"
"delete from WS_REFERRALS where R_ID = elm;\n"
"i := i + 1;\n"
"}\n"
"i := 0; l := length (_go);\n"
"go_via := vector ();\n"
"while (i < l)\n"
"{\n"
"go_via := vector_concat (go_via, vector (cast (_go[i] as varchar)));\n"
"i := i + 1;\n"
"}\n"
"if (i)\n"
"go_via := serialize (go_via);\n"
"else\n"
"go_via := NULL;\n"
"declare expiry datetime;\n"
"_if_ttl := _if_ttl / 1000;\n"
"if (_if_ttl <= 0)\n"
"_if_ttl := 3600*24;\n"
"expiry := dateadd (\'second\', _if_ttl, now());\n"
"declare exit handler for sqlstate \'23000\' {\n"
"rollback work;\n"
"return \'\';\n"
"};\n"
"i := 0; l := length (_for_pref);\n"
"while (go_via is not null and (i < l))\n"
"{\n"
"declare elm varchar;\n"
"elm := cast (_for_pref[i] as varchar);\n"
"elm := concat (elm, \'%\');\n"
"if (this_point like elm)\n"
"{\n"
"matches := vector_concat (matches, vector (vector (elm, go_via, _refid, expiry)));\n"
"\n"
"}\n"
"i := i + 1;\n"
"}\n"
"i := 0; l := length (_for_exact);\n"
"while (go_via is not null and (i < l))\n"
"{\n"
"declare elm varchar;\n"
"elm := cast (_for_exact[i] as varchar);\n"
"if (this_point = elm)\n"
"{\n"
"matches := vector_concat (matches, vector (vector (elm, go_via, _refid, expiry)));\n"
"\n"
"}\n"
"i := i + 1;\n"
"}\n"
"}\n"
"choose:\n"
"commit work;\n"
"i := 0; l := length (matches);\n"
"declare choice any;\n"
"choice := vector (\'\', vector (\'\'));\n"
"while (i < l)\n"
"{\n"
"declare elm any;\n"
"declare via, host varchar;\n"
"elm := matches[i];\n"
"host := elm[0];\n"
"via := deserialize(elm[1]);\n"
"if (length (via) and length (host) > length (choice[0]))\n"
"choice := vector (host, via);\n"
"i := i + 1;\n"
"}\n"
"\n"
"if (choice[0] <> \'\')\n"
"return choice[1][0];\n"
"return \'\';\n"
"}\n"
"--src soap.sql:857\n";
static const char *proc42 =
"#line 979 \"[executable]/soap.sql\"\n"
"create procedure\n"
"DB.DBA.WS_SOAP_RF_MESSAGE (in soap_xml any, in lines any, inout action varchar, inout this_url varchar)\n"
"{\n"
"declare query, queryresp, register, register_resp, refresp, referrals, _for_pref, _for_exact any;\n"
"declare _go, _if, _refid any;\n"
"declare i, l integer;\n"
"query := NULL; queryresp := NULL; register := NULL; register_resp := NULL; refresp := NULL;\n"
"referrals := NULL;\n"
"if (action = \'http://schemas.xmlsoap.org/ws/2001/10/referral#query\')\n"
"query := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\"] /S:Envelope/S:Body/r:query\', soap_xml, 1);\n"
"else if (action = \'http://schemas.xmlsoap.org/ws/2001/10/referral#queryResponse\')\n"
"queryresp := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\"] /S:Envelope/S:Body/r:queryResponse\', soap_xml, 1);\n"
"else if (action = \'http://schemas.xmlsoap.org/ws/2001/10/referral#register\')\n"
"register := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\"] /S:Envelope/S:Body/r:register\', soap_xml, 1);\n"
"else if (action = \'http://schemas.xmlsoap.org/ws/2001/10/referral#registrationResponse\')\n"
"register_resp := xpath_eval (\'[xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\"] /S:Envelope/S:Body/r:registrationResponse\', soap_xml, 1);\n"
"\n"
"if (query is not null or queryresp is not null or register is not null or register_resp is not null)\n"
"{\n"
"delete from WS_REFERRALS where datediff (\'second\', now(), R_EXPIRY) <= 0;\n"
"commit work;\n"
"}\n"
"\n"
"if (query is not null)\n"
"{\n"
"declare ses, _for any;\n"
"declare pt varchar;\n"
"ses := string_output ();\n"
"_for_pref := xpath_eval (\'for/prefix/text()\', query, 0);\n"
"_for_exact := xpath_eval (\'for/exact/text()\', query, 0);\n"
"http (\'<S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\">\', ses);\n"
"http (\'<S:Body xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\">\', ses);\n"
"http (\'<r:queryResponse>\', ses);\n"
"\n"
"pt := \'exact\';\n"
"_for := _for_exact;\n"
"again:\n"
"i := 0; l := length (_for);\n"
"while (i < l)\n"
"{\n"
"declare elm, velm varchar;\n"
"declare j, k, ttl integer;\n"
"declare via any;\n"
"elm := cast (_for[i] as varchar);\n"
"for select R_ID, R_FOR, R_GO, R_EXPIRY from WS_REFERRALS where elm like R_FOR and R_URL = this_url do\n"
"{\n"
"ttl := datediff (\'second\', now(), R_EXPIRY);\n"
"ttl := ttl * 1000;\n"
"R_FOR := trim (R_FOR, \'%\');\n"
"http (\'<r:ref>\', ses);\n"
"http (\'<r:for>\', ses);\n"
"http (sprintf (\'<r:%s>%s</r:%s>\', pt, R_FOR, pt), ses);\n"
"http (\'</r:for>\', ses);\n"
"http (\'<r:if>\', ses);\n"
"http (sprintf (\'<r:ttl>%d</r:ttl>\', ttl), ses);\n"
"http (\'</r:if>\', ses);\n"
"via := deserialize (R_GO);\n"
"j := 0; k := length (via);\n"
"http (\'<r:go>\', ses);\n"
"\n"
"while (j < k)\n"
"{\n"
"velm := sprintf (\'<r:via>%s</r:via>\', via[j]);\n"
"http (velm, ses);\n"
"j := j + 1;\n"
"}\n"
"http (\'</r:go>\', ses);\n"
"http (sprintf (\'<r:refId>%s</r:refId>\', R_ID), ses);\n"
"http (\'</r:ref>\', ses);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"if (pt = \'exact\')\n"
"{\n"
"pt := \'prefix\';\n"
"_for := _for_pref;\n"
"goto again;\n"
"}\n"
"http (\'</r:queryResponse>\', ses);\n"
"http (\'</S:Body>\', ses);\n"
"http (\'</S:Envelope>\', ses);\n"
"action := \'http://schemas.xmlsoap.org/ws/2001/10/referral#queryResponse\';\n"
"return string_output_string (ses);\n"
"}\n"
"else if (register is not null or queryresp is not null)\n"
"{\n"
"declare _ref, _refs, go_via, _if_ttl, _if_inv any;\n"
"declare is_reg integer;\n"
"declare inx, len integer;\n"
"is_reg := 1;\n"
"if (register is null)\n"
"{\n"
"is_reg := 0;\n"
"register := queryresp;\n"
"}\n"
"_refs := xpath_eval (\'ref[*]\', register, 0);\n"
"inx := 0; len := length(_refs);\n"
"\n"
"if (not len)\n"
"return NULL;\n"
"\n"
"while (inx < len)\n"
"{\n"
"_ref := _refs[inx];\n"
"inx := inx + 1;\n"
"_refid := cast (xpath_eval (\'string(refId)\', _ref, 1) as varchar);\n"
"_if_ttl := cast (xpath_eval (\'string(if/ttl)\', _ref, 1) as integer);\n"
"_if_inv := xpath_eval (\'if/invalidates/rid/text()\', _ref, 0);\n"
"_go := xpath_eval (\'go/via/text()\', _ref, 0);\n"
"_for_pref := xpath_eval (\'for/prefix/text()\', _ref, 0);\n"
"_for_exact := xpath_eval (\'for/exact/text()\', _ref, 0);\n"
"i := 0; l := length (_if_inv);\n"
"while (i < l)\n"
"{\n"
"declare elm varchar;\n"
"elm := cast (_if_inv[i] as varchar);\n"
"delete from WS_REFERRALS where R_ID = elm;\n"
"i := i + 1;\n"
"}\n"
"i := 0; l := length (_go);\n"
"go_via := vector ();\n"
"while (i < l)\n"
"{\n"
"go_via := vector_concat (go_via, vector (cast (_go[i] as varchar)));\n"
"i := i + 1;\n"
"}\n"
"if (i)\n"
"go_via := serialize (go_via);\n"
"else\n"
"go_via := NULL;\n"
"i := 0; l := length (_for_pref);\n"
"declare expiry datetime;\n"
"_if_ttl := _if_ttl / 1000;\n"
"if (_if_ttl <= 0)\n"
"_if_ttl := 3600*24;\n"
"expiry := dateadd (\'second\', _if_ttl, now());\n"
"declare exit handler for sqlstate \'23000\' {\n"
"rollback work;\n"
"if (is_reg)\n"
"{\n"
"action := \'http://schemas.xmlsoap.org/ws/2001/10/referral#registrationResponse\';\n"
"return (\n"
"\'<S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
"<S:Body>\n"
"<S:Fault xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\">\n"
"<faultcode>r:registrationFault</faultcode>\n"
"<faultstring>Registration Fault</faultstring>\n"
"<detail>\n"
"<r:duplicate />\n"
"</detail>\n"
"</S:Fault>\n"
"</S:Body>\n"
"</S:Envelope>\');\n"
"}\n"
"return NULL;\n"
"};\n"
"while (go_via is not null and (i < l))\n"
"{\n"
"declare elm varchar;\n"
"elm := cast (_for_pref[i] as varchar);\n"
"elm := concat (elm, \'%\');\n"
"insert into WS_REFERRALS (R_ID, R_FOR, R_GO, R_EXPIRY, R_URL)\n"
"values (_refid, elm, go_via, expiry, this_url);\n"
"i := i + 1;\n"
"}\n"
"i := 0; l := length (_for_exact);\n"
"while (go_via is not null and (i < l))\n"
"{\n"
"declare elm varchar;\n"
"elm := cast (_for_exact[i] as varchar);\n"
"insert into WS_REFERRALS (R_ID, R_FOR, R_GO, R_EXPIRY, R_URL)\n"
"values (_refid, elm, go_via, expiry, this_url);\n"
"i := i + 1;\n"
"}\n"
"}\n"
"\n"
"if (is_reg)\n"
"{\n"
"action := \'http://schemas.xmlsoap.org/ws/2001/10/referral#registrationResponse\';\n"
"return (\'<S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
"<S:Body>\n"
"<r:registrationResponse xmlns:r=\"http://schemas.xmlsoap.org/ws/2001/10/referral\"/>\n"
"</S:Body>\n"
"</S:Envelope>\');\n"
"}\n"
"\n"
"}\n"
"\n"
"return NULL;\n"
"}\n"
"--src soap.sql:977\n";
static const char *proc43 =
"#line 1171 \"[executable]/soap.sql\"\n"
"create procedure\n"
"SOAP_LOAD_SCH (in sch varchar, in udts any := null, in \"array\" int := 0, in do_result int := 1)\n"
"{\n"
"declare ents, xte, xt, arr, xarr any;\n"
"declare i, l int;\n"
"declare name, udt, name1, tns1 varchar;\n"
"if (isentity (sch))\n"
"xte := sch;\n"
"else\n"
"xte := xml_tree_doc (sch);\n"
"xt := xslt (\'http://local.virt/soap_import_sch\', xte);\n"
"arr := xpath_eval (\'/complexType|/element|/simpleType|/attribute\', xt, 0);\n"
"l := length (arr);\n"
"if (not \"array\")\n"
"{\n"
"if (do_result)\n"
"result_names (name, udt);\n"
"}\n"
"else\n"
"xarr := make_array (l, \'any\');\n"
"if (isnull (udts))\n"
"udts := vector ();\n"
"while (i < l)\n"
"{\n"
"declare frag, udtn any;\n"
"frag := xml_cut (arr[i]);\n"
"frag := xslt (\'http://local.virt/xslt_copy\', frag);\n"
"name1 := cast(xpath_eval (\'string(/@name)\', frag, 1) as varchar);\n"
"tns1 := cast(xpath_eval (\'string(/@targetNamespace)\', frag, 1) as varchar);\n"
"if (tns1 is not null and tns1 <> \'\')\n"
"name1 := sprintf (\'%s:%s\', tns1, name1);\n"
"udt := null;\n"
"if (not \"array\")\n"
"{\n"
"if (get_keyword (name1, udts, \'\') <> \'\')\n"
"{\n"
"udtn := get_keyword (name1, udts, \'\');\n"
"udt := udtn;\n"
"name := soap_dt_define (\'\', frag, udtn);\n"
"}\n"
"else\n"
"name := soap_dt_define (\'\', frag);\n"
"if (do_result)\n"
"result (name, udt);\n"
"}\n"
"else if (\"array\" < 0)\n"
"{\n"
"aset (xarr, i, frag);\n"
"}\n"
"else\n"
"{\n"
"declare xte1 any;\n"
"\n"
"xte1 := xslt (\'http://local.virt/soap_sch\', frag, vector (\'udt_struct\', 0, \'any_type\', 1));\n"
"aset (xarr, i, xte1);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"return xarr;\n"
"}\n"
"--src soap.sql:1169\n";
static const char *proc44 =
"#line 1234 \"[executable]/soap.sql\"\n"
" create procedure\n"
"DB.DBA.WSDL_SPLIT_NAME (in url varchar, in part int)\n"
"{\n"
"declare pos int;\n"
"declare ret varchar;\n"
"if (not isstring (url))\n"
"return \'\';\n"
"pos := strrchr (url, \':\');\n"
"if (pos is not null)\n"
"{\n"
"if (part)\n"
"{\n"
"ret := substring (url, pos + 2, length (url));\n"
"}\n"
"else\n"
"{\n"
"ret := substring (url, 1, pos);\n"
"}\n"
"}\n"
"else\n"
"return url;\n"
"return ret;\n"
"}\n"
"--src soap.sql:1232\n";
static const char *other0 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) VALUES (\'http://www.openlinksw.com/wsdl/:split-name\',\n"
"\'DB.DBA.WSDL_SPLIT_NAME\')\n";
static const char *other1 =
"xpf_extension (\'http://www.openlinksw.com/wsdl/:split-name\', \'DB.DBA.WSDL_SPLIT_NAME\', 0)\n";
static const char *proc45 =
"#line 1266 \"[executable]/soap.sql\"\n"
"create procedure\n"
"WSDL_IMPORT_TYPES (inout mid any)\n"
"{\n"
"declare xp, tp any;\n"
"declare i, l, inx, len int;\n"
"xp := xpath_eval (\'[ xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" ] //xsd:schema\', mid, 0);\n"
"i := 0; l := length (xp);\n"
"while (i < l)\n"
"{\n"
"declare ent any;\n"
"ent := xml_cut (xp[i]);\n"
"tp := SOAP_LOAD_SCH (ent, null, -1);\n"
"inx := 0; len := length (tp);\n"
"while (inx < len)\n"
"{\n"
"declare elm any;\n"
"declare name1, tns1, name2, is_elem varchar;\n"
"elm := tp[inx];\n"
"name1 := cast(xpath_eval (\'string(/@name)\', elm, 1) as varchar);\n"
"tns1 := cast(xpath_eval (\'string(/@targetNamespace)\', elm, 1) as varchar);\n"
"is_elem := xpath_eval (\'boolean (element)\', elm, 1);\n"
"if (tns1 is not null and tns1 <> \'\')\n"
"name1 := sprintf (\'%s:%s\', tns1, name1);\n"
"if (not exists (select 1 from SYS_SOAP_DATATYPES where SDT_NAME = name1 and SDT_TYPE = is_elem))\n"
"{\n"
"name2 := soap_dt_define (\'\', elm);\n"
"\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"i := i + 1;\n"
"}\n"
"}\n"
"--src soap.sql:1264\n";
static const char *proc46 =
"#line 1301 \"[executable]/soap.sql\"\n"
"create procedure\n"
"EXECUTE_SCRIPT (inout ses any)\n"
"{\n"
"declare cmd, dbg any;\n"
"declare line varchar;\n"
"declare i, is_drop, ctr, offs int;\n"
"commit work;\n"
"cmd := null;\n"
"ctr := 0;\n"
"while (1)\n"
"{\n"
"line := ses_read_line (ses, 0);\n"
"ctr := ctr + 1;\n"
"if (not isstring (line))\n"
"return;\n"
"if (cmd is null and (line like \'create %\' or line like \'drop %\'))\n"
"{\n"
"cmd := string_output ();\n"
"dbg := string_output ();\n"
"is_drop := 0;\n"
"if (line like \'drop %\')\n"
"is_drop := 1;\n"
"i := 1;\n"
"offs := ctr;\n"
"}\n"
"if (rtrim(line) = \';\')\n"
"{\n"
"declare stmt, stat, msg varchar;\n"
"stmt := string_output_string (cmd);\n"
"stat := \'00000\'; msg := \'\';\n"
"exec (stmt, stat, msg);\n"
"if (stat = \'00000\')\n"
"{\n"
"commit work;\n"
"}\n"
"else\n"
"{\n"
"rollback work;\n"
"if (not is_drop)\n"
"{\n"
"log_message (sprintf (\'VSPX: %s %s\',stat, msg));\n"
"dbg_obj_print (string_output_string (dbg));\n"
"}\n"
"if (not (stmt like \'drop %\'))\n"
"signal (stat, concat (msg, sprintf (\'; at offset: %d\', offs), \'\\nwhile executing the following statement:\\n\', stmt));\n"
"}\n"
"cmd := null;\n"
"dbg := null;\n"
"}\n"
"if (cmd is not null)\n"
"{\n"
"http (line, cmd);\n"
"http (\'\\n\', cmd);\n"
"http (sprintf (\'%03d \', i), dbg);\n"
"http (line, dbg);\n"
"http (\'\\n\', dbg);\n"
"i := i + 1;\n"
"}\n"
"}\n"
"return NULL;\n"
"}\n"
"--src soap.sql:1299\n";
static const char *proc47 =
"#line 1364 \"[executable]/soap.sql\"\n"
"create procedure\n"
"WSDL_IMPORT_UDT (in url varchar, in f varchar := null, in exec int := 0)\n"
"{\n"
"declare res, ses, xe, mid any;\n"
"declare resource_text, src varchar;\n"
"\n"
"resource_text := XML_URI_GET (\'\', url);\n"
"xe := xtree_doc (resource_text, 0, url);\n"
"res := xslt (\'http://local.virt/wsdl_expand\', xe);\n"
"\n"
"mid := xslt (\'http://local.virt/wsdl_parts\', res);\n"
"\n"
"\n"
"res := xslt (\'http://local.virt/wsdl_import\', mid, vector (\'wsdlURI\', url));\n"
"ses := string_output ();\n"
"http_value (res, null, ses);\n"
"src := string_output_string (ses);\n"
"\n"
"if (f is not null)\n"
"string_to_file (f, src, -2);\n"
"\n"
"\n"
"WSDL_IMPORT_TYPES (mid);\n"
"\n"
"if (exec)\n"
"EXECUTE_SCRIPT (ses);\n"
"\n"
"return src;\n"
"}\n"
"--src soap.sql:1362\n";
static const char *proc48 =
"#line 1398 \"[executable]/soap.sql\"\n"
" create procedure\n"
"DB.DBA.XML_RPC_GET_PARAM_NAME (in proc varchar, in ordinal int)\n"
"{\n"
"declare pars, proc1 any;\n"
"declare elm any;\n"
"proc1 := __proc_exists (proc);\n"
"if (proc1 is not null)\n"
"pars := procedure_cols (proc1);\n"
"else\n"
"pars := procedure_cols (complete_proc_name (proc,1));\n"
"if (not isarray(pars) or length (pars) < ordinal)\n"
"return \'param\';\n"
"if (pars[0][3] = \'\')\n"
"ordinal := ordinal + 1;\n"
"elm := pars[ordinal - 1];\n"
"return elm[3];\n"
"}\n"
"--src soap.sql:1396\n";
static const char *proc49 =
"#line 1418 \"[executable]/soap.sql\"\n"
" create procedure\n"
"DB.DBA.XML_RPC_MAKE_ELT_NAME (in val varchar)\n"
"{\n"
"if (val like \'[0-9]%\')\n"
"val := \'_\'||val;\n"
"val := sprintf (\'%U\', val);\n"
"val := replace (val, \'/\', \'%2F\');\n"
"val := replace (val, \'%\', \'_x\');\n"
"return val;\n"
"}\n"
"--src soap.sql:1416\n";
static const char *other2 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME)\n"
"VALUES (\'http://www.openlinksw.com/xmlrpc/:getParamName\', \'DB.DBA.XML_RPC_GET_PARAM_NAME\')\n";
static const char *other3 =
"xpf_extension (\'http://www.openlinksw.com/xmlrpc/:getParamName\', \'DB.DBA.XML_RPC_GET_PARAM_NAME\', 0)\n";
static const char *other4 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME)\n"
"VALUES (\'http://www.openlinksw.com/xmlrpc/:makeElementName\', \'DB.DBA.XML_RPC_MAKE_ELT_NAME\')\n";
static const char *other5 =
"xpf_extension (\'http://www.openlinksw.com/xmlrpc/:makeElementName\', \'DB.DBA.XML_RPC_MAKE_ELT_NAME\', 0)\n";
static const char *proc50 =
"#line 1448 \"[executable]/soap.sql\"\n"
" create procedure DB.DBA.XML_RPC_DATE_CVT (in dt varchar)\n"
"{\n"
"declare ts any;\n"
"if (dt not like \'____-__-__T__:__:__.%\')\n"
"return dt;\n"
"ts := stringdate (dt);\n"
"ts := dt_set_tz (ts, 0);\n"
"return soap_print_box (ts, \'\', 0);\n"
"}\n"
"--src soap.sql:1446\n";
static const char *other6 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME)\n"
"VALUES (\'http://www.openlinksw.com/xmlrpc/:getGMTtime\', \'DB.DBA.XML_RPC_DATE_CVT\')\n";
static const char *other7 =
"xpf_extension (\'http://www.openlinksw.com/xmlrpc/:getGMTtime\', \'DB.DBA.XML_RPC_DATE_CVT\', 0)\n";
static const char *proc51 =
"#line 1467 \"[executable]/soap.sql\"\n"
"create procedure\n"
"XMLRPC_MAKE_ERROR (in code varchar, in state varchar, in message varchar)\n"
"{\n"
"return\n"
"\'<?xml version=\"1.0\"?>\\n\' ||\n"
"\' <methodResponse>\\n\' ||\n"
"\' <fault>\\n\' ||\n"
"\' <value>\\n\' ||\n"
"\' <struct>\\n\' ||\n"
"\' <member>\\n\' ||\n"
"\' <name>faultCode</name>\\n\' ||\n"
"\' <value><int>\' || code || \'</int></value>\\n\' ||\n"
"\' </member>\\n\' ||\n"
"\' <member>\\n\' ||\n"
"\' <name>faultString</name>\\n\' ||\n"
"\' <value>\\n\' ||\n"
"\' <string>\' || sprintf (\'%V\', message) ||\'</string>\\n\' ||\n"
"\' </value>\\n\' ||\n"
"\' </member>\\n\' ||\n"
"\' </struct>\\n\' ||\n"
"\' </value>\\n\' ||\n"
"\'</fault>\\n\' ||\n"
"\'</methodResponse>\' ;\n"
"}\n"
"--src soap.sql:1465\n";
static const char *proc52 =
"#line 1496 \"[executable]/soap.sql\"\n"
" create procedure\n"
"XMLRPC_SERVER (in path any, in params any, in lines any)\n"
"{\n"
"declare content_type, soap_xml varchar;\n"
"declare req_body, resp_body varchar;\n"
"declare soap_req any;\n"
"declare soap_resp any;\n"
"declare result any;\n"
"\n"
"if (length (params) < 1) params := __http_stream_params ();\n"
"\n"
"content_type := http_request_header (lines, \'Content-Type\');\n"
"\n"
"\n"
"if (content_type = \'text/xml\')\n"
"{\n"
"req_body := http_body_read ();\n"
"soap_xml := xml_tree_doc (xml_tree (req_body));\n"
"}\n"
"else\n"
"{\n"
"http_request_status (\'HTTP/1.1 400 Bad request\');\n"
"signal (\'42000\', \'Unsupported media type\');\n"
"}\n"
"\n"
"http_header (\'Content-Type: text/xml; charset=\"utf-8\"\\r\\n\');\n"
"\n"
"set http_charset=\'UTF-8\';\n"
"\n"
"declare exit handler for SQLSTATE \'*\' {\n"
"declare err_msg varchar;\n"
"http_rewrite ();\n"
"rollback work;\n"
"err_msg := xmlrpc_make_error (\'300\', __SQL_STATE, __SQL_MESSAGE);\n"
"if (registry_get (\'__debug_xmlrpc\') = \'1\')\n"
"dbg_obj_print (err_msg);\n"
"http (err_msg);\n"
"resignal \'VSPRT\';\n"
"};\n"
"\n"
"set_user_id (http_map_get (\'soap_uid\'), 0);\n"
"if (registry_get (\'__debug_xmlrpc\') = \'1\')\n"
"dbg_obj_print (\'XML-RPC request:\', soap_xml);\n"
"soap_req := xslt (\'http://local.virt/xmlrpc_soap\', soap_xml);\n"
"\n"
"resp_body := soap_server (soap_req, \'\', lines, 11);\n"
"\n"
"soap_resp := xml_tree_doc (resp_body);\n"
"result := xslt (\'http://local.virt/soap_xmlrpc\', soap_resp);\n"
"if (registry_get (\'__debug_xmlrpc\') = \'1\')\n"
"dbg_obj_print (\'XML-RPC response:\', result);\n"
"http_value (result);\n"
"}\n"
"--src soap.sql:1494\n";
static const char *proc53 =
"#line 1553 \"[executable]/soap.sql\"\n"
"create procedure\n"
"XMLRPC2SOAP (INOUT BODY VARCHAR)\n"
"{\n"
"declare tmp, ret, ses any;\n"
"{\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"signal (\'42000\', \'Not well formed XMLRPC response.\', \'SP036\');\n"
"};\n"
"if (registry_get (\'__debug_xmlrpc\') = \'1\')\n"
"dbg_obj_print (BODY);\n"
"tmp := xml_tree_doc (BODY);\n"
"}\n"
"ret := xslt (\'http://local.virt/xmlrpc_soap\', tmp, vector (\'call\', \'1\'));\n"
"ses := string_output ();\n"
"http_value (ret, null, ses);\n"
"BODY := string_output_string (ses);\n"
"}\n"
"--src soap.sql:1551\n";
static const char *proc54 =
"#line 1573 \"[executable]/soap.sql\"\n"
"create procedure\n"
"SOAP2XMLRPC (INOUT BODY VARCHAR)\n"
"{\n"
"declare tmp, ret, body_str any;\n"
"body_str := string_output_string (BODY);\n"
"if (registry_get (\'__debug_xmlrpc\') = \'1\')\n"
"dbg_obj_print (body_str);\n"
"tmp := xml_tree_doc (body_str);\n"
"ret := xslt (\'http://local.virt/soap_xmlrpc\', tmp, vector (\'call\', \'1\'));\n"
"if (registry_get (\'__debug_xmlrpc\') = \'1\')\n"
"dbg_obj_print (ret);\n"
"string_output_flush (BODY);\n"
"http_value (ret, null, BODY);\n"
"}\n"
"--src soap.sql:1571\n";
static const char *proc55 =
"#line 1592 \"[executable]/soap.sql\"\n"
" create procedure\n"
"XMLRPC_CALL (in uri varchar, in meth varchar, in params any, in id any := null)\n"
"{\n"
"declare i, l int;\n"
"declare pars, ret, hinfo, res any;\n"
"\n"
"l := length (params);\n"
"i := 0;\n"
"pars := vector ();\n"
"\n"
"while (i < l)\n"
"{\n"
"pars := vector_concat (pars, vector (sprintf (\'param%d\', i), params[i]));\n"
"i := i + 1;\n"
"}\n"
"hinfo := rfc1808_parse_uri (uri);\n"
"res := soap_call_new (hinfo[1], hinfo[2], null, meth, pars, 11, null, null, null, 32, null, null, 0, null, null, null, id);\n"
"return res;\n"
"}\n"
"--src soap.sql:1590\n";
static const char *proc56 =
"#line 1614 \"[executable]/soap.sql\"\n"
" create procedure\n"
"SOAP12_ROUTER (in uri varchar, in this_url varchar, in header any, in body any)\n"
"{\n"
"declare req varchar;\n"
"declare resp varchar;\n"
"declare hd, head any;\n"
"declare host varchar;\n"
"declare ss any;\n"
"ss := string_output ();\n"
"\n"
"req := xml_tree_doc (xmlconcat (xml_tree_doc (header), xml_tree_doc (body)));\n"
"req := xslt (\'http://local.virt/soap12_router\', req, vector (\'this\', this_url));\n"
"req := serialize_to_UTF8_xml (req);\n"
"http (req, ss);\n"
"\n"
"hd := rfc1808_parse_uri (uri);\n"
"\n"
"host := hd[1];\n"
"\n"
"head := vector (\n"
"sprintf (\'POST %s HTTP/1.1\\r\\n\', hd[2]),\n"
"\'Content-Type: application/soap+xml; charset=\"utf-8\"\\r\\n\',\n"
"sprintf (\'Content-Length: %d\\r\\n\', length (req))\n"
");\n"
"\n"
"http_proxy (host, head, ss);\n"
"}\n"
"--src soap.sql:1612\n";
static const char *proc57 =
"#line 1643 \"[executable]/soap.sql\"\n"
"create procedure\n"
"DB.DBA.SOAP_WS_TRUST_XENC_TEMPLATE (in body varchar)\n"
"{\n"
"declare tmpl, _user, _pass varchar;\n"
"_user := cast (connection_get (\'__soap_ws_trust_user\') as varchar);\n"
"_pass := cast (connection_get (\'__soap_ws_trust_pass\') as varchar);\n"
"tmpl := sprintf (\'<?xml version=\"1.0\" encoding=\"utf-8\"?><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\" xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2002/12/secext\"> <SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"/><SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#hmac-sha1\"/></SignedInfo><SignatureValue /><KeyInfo><KeyValue><wsse:UsernameToken><wsse:Username>%s</wsse:Username><wsse:Password Type=\"wsse:PasswordText\">%s</wsse:Password></wsse:UsernameToken></KeyValue></KeyInfo></Signature>\', _user, _pass);\n"
"return dsig_template_ext (xtree_doc (body), tmpl,\n"
"\'http://schemas.xmlsoap.org/soap/envelope/\', \'Body\',\n"
"\'http://schemas.xmlsoap.org/ws/2002/07/utility\', \'Expires\',\n"
"\'http://schemas.xmlsoap.org/ws/2002/07/utility\', \'Created\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'To\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'MessageID\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'From\',\n"
"\'http://schemas.xmlsoap.org/ws/2003/03/addressing\', \'Action\');\n"
"}\n"
"--src soap.sql:1641\n";
static const char *tbl1 =
"create table SYS_SOAP_UDT_PUB (SUP_CLASS varchar,\n"
"SUP_LHOST varchar,\n"
"SUP_HOST varchar,\n"
"SUP_END_POINT varchar,\n"
"primary key (SUP_LHOST, SUP_HOST, SUP_END_POINT, SUP_CLASS))\n";
static const char *trig0 =
"#line 1668 \"[executable]/soap.sql\"\n"
"create trigger HTTP_PATH_D_UDT_PUB after delete on DB.DBA.HTTP_PATH\n"
"{\n"
"delete from SYS_SOAP_UDT_PUB where SUP_LHOST = HP_LISTEN_HOST and\n"
"SUP_HOST = HP_HOST and SUP_END_POINT = HP_LPATH;\n"
"}\n"
"--src soap.sql:1666\n";
static const char *trig1 =
"#line 1675 \"[executable]/soap.sql\"\n"
"create trigger SOAP_UDT_PUB_I before insert on SYS_SOAP_UDT_PUB\n"
"{\n"
"if (not exists\n"
"(select 1 from DB.DBA.HTTP_PATH\n"
"where SUP_LHOST = HP_LISTEN_HOST and SUP_HOST = HP_HOST and SUP_END_POINT = HP_LPATH\n"
"))\n"
"signal (\'22023\', \'No such virtual directory defined\');\n"
"__soap_udt_publish (SUP_HOST, SUP_LHOST, SUP_END_POINT, SUP_CLASS);\n"
"}\n"
"--src soap.sql:1673\n";
static const char *trig2 =
"#line 1687 \"[executable]/soap.sql\"\n"
"create trigger SOAP_UDT_PUB_U before update on SYS_SOAP_UDT_PUB referencing old as O, new as N\n"
"{\n"
"__soap_udt_unpublish (O.SUP_HOST, O.SUP_LHOST, O.SUP_END_POINT, O.SUP_CLASS);\n"
"__soap_udt_publish (O.SUP_HOST, O.SUP_LHOST, N.SUP_END_POINT, N.SUP_CLASS);\n"
"}\n"
"--src soap.sql:1685\n";
static const char *trig3 =
"#line 1695 \"[executable]/soap.sql\"\n"
"create trigger SOAP_UDT_PUB_D before delete on SYS_SOAP_UDT_PUB\n"
"{\n"
"__soap_udt_unpublish (SUP_HOST, SUP_LHOST, SUP_END_POINT, SUP_CLASS);\n"
"}\n"
"--src soap.sql:1693\n";
static const char *proc58 =
"#line 1702 \"[executable]/soap.sql\"\n"
" create procedure GET_XSD_EXTENSION (in nam varchar)\n"
"{\n"
"declare ext any;\n"
"ext := (select xslt(\'http://local.virt/soap_sch\', xml_tree_doc (sdt_sch)) from sys_soap_datatypes where sdt_name = nam and sdt_type = 0);\n"
"if (ext is null)\n"
"return xml_tree_doc (\'<fake/>\');\n"
"return ext;\n"
"}\n"
"--src soap.sql:1700\n";
static const char *other8 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) VALUES\n"
"(\'http://www.openlinksw.com/virtuoso/soap:getExtension\', \'DB.DBA.GET_XSD_EXTENSION\')\n";
static const char *other9 =
"xpf_extension (\'http://www.openlinksw.com/virtuoso/soap:getExtension\', \'DB.DBA.GET_XSD_EXTENSION\', 0)\n";
static const char *proc59 =
"#line 1721 \"[executable]/soap.sql\"\n"
"create procedure DB.DBA.WS_MIME_ENV (in _all any, in call_mode integer)\n"
"{\n"
"declare _inx, _len integer;\n"
"declare _res, _bnd, _c_type varchar;\n"
"declare _part, temp, hdr any;\n"
"\n"
"_bnd := concat (\'-\',\'-\',\'-\',\'-\', md5 (cast (now () as varchar)));\n"
"\n"
"temp := \'<uuid:\' || uuid () || \'>\';\n"
"temp := \'<\' || uuid () || \'>\';\n"
"\n"
"_c_type := sprintf (\'multipart/related; boundary=\"%s\"; type=\"text/xml\"; start=\"%s\"\', _bnd, temp);\n"
"\n"
"if (call_mode)\n"
"{\n"
"hdr := (concat (\'Content-Type: \', _c_type, \'\\r\\n\'));\n"
"_res := \'\\r\\n\\r\\n\';\n"
"}\n"
"else\n"
"{\n"
"hdr := _c_type;\n"
"_res := \'\';\n"
"}\n"
"\n"
"_inx := 0;\n"
"_len := length (_all);\n"
"\n"
"while (_inx < _len)\n"
"{\n"
"declare c_id, c_type any;\n"
"\n"
"_part := aref (_all, _inx);\n"
"\n"
"if (_inx = 0)\n"
"{\n"
"c_id := temp;\n"
"c_type := \'text/xml\';\n"
"}\n"
"else\n"
"{\n"
"c_id := \'<\' || replace (_part[0], \'cid:\', \'\', 1) || \'>\';\n"
"c_type := _part[1];\n"
"}\n"
"\n"
"_res := concat (_res, \'-\',\'-\', _bnd, \'\\r\\n\');\n"
"_res := concat (_res, \'Content-Type: \', c_type, \'\\r\\n\');\n"
"_res := concat (_res, \'Content-Transfer-Encoding: binary\\r\\n\');\n"
"_res := concat (_res, \'Content-ID: \', c_id, \'\\r\\n\\r\\n\');\n"
"_res := concat (_res, aref (_part, 2), \'\\r\\n\');\n"
"_inx := _inx + 1;\n"
"}\n"
"_res := concat (_res, \'-\',\'-\', _bnd, \'-\',\'-\\r\\n\');\n"
"\n"
"return vector (_res, hdr);\n"
"}\n"
"--src soap.sql:1719\n";
static const char *proc60 =
"#line 1779 \"[executable]/soap.sql\"\n"
"create procedure DB.DBA.WS_MIME_RESP_C (in _all any)\n"
"{\n"
"return DB.DBA.WS_MIME_ENV (_all, 0);\n"
"}\n"
"--src soap.sql:1777\n";
static const char *proc61 =
"#line 1785 \"[executable]/soap.sql\"\n"
"create procedure DB.DBA.WS_MIME_RESP (in _all any)\n"
"{\n"
"return DB.DBA.WS_MIME_ENV (_all, 1);\n"
"}\n"
"--src soap.sql:1783\n";
static const char *other10 =
"grant execute on DB.DBA.WS_MIME_RESP to public\n";
static const char *other11 =
"grant execute on DB.DBA.WS_MIME_RESP_C to public\n";
static const char *proc62 =
"#line 1797 \"[executable]/soap.sql\"\n"
"create procedure vsmx_user_check (in name varchar, in pass varchar)\n"
"{\n"
"return 1;\n"
"}\n"
"--src soap.sql:1795\n";
static const char *proc63 =
"#line 1804 \"[executable]/soap.sql\"\n"
" create procedure\n"
"DB.DBA.SOAP_VSMX (in path any, in params any, in lines any)\n"
"{ ?>\n"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"\n"
"\"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"
"<HTML>\n"
"<HEAD>\n"
"<STYLE>\n"
"BODY\n"
"{\n"
"MARGIN-TOP: 0px;\n"
"FONT-SIZE: 80%;\n"
"MARGIN-LEFT: 0em;\n"
"COLOR: #000000;\n"
"MARGIN-RIGHT: 0em;\n"
"FONT-FAMILY: Verdana, \'MS Serif\', Serif;\n"
"BACKGROUND-COLOR: #ffffff\n"
"}\n"
".head1\n"
"{\n"
"PADDING-BOTTOM: 5px;\n"
"MARGIN-LEFT: -3em;\n"
"COLOR: #191970;\n"
"LINE-HEIGHT: normal;\n"
"MARGIN-RIGHT: -3em;\n"
"PADDING-TOP: 5px;\n"
"BORDER-BOTTOM: navy thin solid;\n"
"FONT-FAMILY: Verdana, Arial, Helvetica, Lucida, Sans-Serif;\n"
"BACKGROUND-COLOR: skyblue;\n"
"TEXT-ALIGN: right\n"
"}\n"
"DIV.foot\n"
"{\n"
"CLEAR: left;\n"
"BORDER-TOP: lightslategray thin solid;\n"
"FONT-SIZE: 10px;\n"
"LINE-HEIGHT: normal;\n"
"FONT-FAMILY: Verdana, Arial, Helvetica, Lucida, Sans-Serif;\n"
"TEXT-ALIGN: right\n"
"}\n"
"H1\n"
"{\n"
"PADDING-RIGHT: 3em;\n"
"MARGIN-TOP: 5px;\n"
"FONT-SIZE: 185%;\n"
"MARGIN-BOTTOM: 5px;\n"
"MARGIN-LEFT: 0em\n"
"}\n"
"A\n"
"{\n"
"COLOR: blue;\n"
"TEXT-DECORATION: none\n"
"}\n"
"A:hover\n"
"{\n"
"TEXT-DECORATION: underline\n"
"}\n"
".operation\n"
"{\n"
"PADDING-RIGHT: 10px;\n"
"PADDING-LEFT: 30px;\n"
"PADDING-BOTTOM: 10px;\n"
"PADDING-TOP: 10px;\n"
"VERTICAL-ALIGN: top;\n"
"}\n"
".soaplist\n"
"{\n"
"VERTICAL-ALIGN: top;\n"
"PADDING-RIGHT: 5px;\n"
"PADDING-LEFT: 25px;\n"
"PADDING-BOTTOM: 10px;\n"
"MARGIN: 0px;\n"
"WIDTH: 225px;\n"
"PADDING-TOP: 10px;\n"
"BACKGROUND-COLOR: gainsboro\n"
"}\n"
".soapdesc\n"
"{\n"
"FONT-SIZE: 90%;\n"
"FONT-FAMILY: Tahoma\n"
"}\n"
"INPUT\n"
"{\n"
"BORDER-RIGHT: silver 1px solid;\n"
"BORDER-TOP: silver 1px solid;\n"
"BORDER-LEFT: silver 1px solid;\n"
"BORDER-BOTTOM: silver 1px solid;\n"
"FONT-FAMILY: Tahoma\n"
"}\n"
".btns\n"
"{\n"
"TEXT-ALIGN: right\n"
"}\n"
"TABLE.service\n"
"{\n"
"BORDER-RIGHT: #ebebeb 1px solid;\n"
"BORDER-TOP: #ebebeb 1px solid;\n"
"BORDER-LEFT: #ebebeb 1px solid;\n"
"BORDER-BOTTOM: #ebebeb 1px solid;\n"
"FONT-FAMILY: Tahoma\n"
"}\n"
"TH.service\n"
"{\n"
"BACKGROUND-COLOR: silver;\n"
"TEXT-ALIGN: left\n"
"}\n"
"H2\n"
"{\n"
"FONT-SIZE: 150%;\n"
"MARGIN-LEFT: -20px\n"
"}\n"
"H3\n"
"{\n"
"FONT-SIZE: 120%;\n"
"MARGIN-BOTTOM: 0px;\n"
"MARGIN-LEFT: -10px\n"
"}\n"
".soapli\n"
"{\n"
"PADDING-BOTTOM: 5px;\n"
"TEXT-INDENT: -20px\n"
"}\n"
"TD.service\n"
"{\n"
"BACKGROUND-COLOR: #f0f0f0\n"
"}\n"
".response\n"
"{\n"
"BORDER-RIGHT: #f0f0f0 1px solid;\n"
"PADDING-RIGHT: 2px;\n"
"BORDER-TOP: #f0f0f0 1px solid;\n"
"PADDING-LEFT: 2px;\n"
"PADDING-BOTTOM: 2px;\n"
"BORDER-LEFT: #f0f0f0 1px solid;\n"
"PADDING-TOP: 2px;\n"
"BORDER-BOTTOM: #f0f0f0 1px solid\n"
"}\n"
".details\n"
"{\n"
"PADDING-RIGHT: 2px;\n"
"PADDING-LEFT: 30px;\n"
"PADDING-BOTTOM: 2px;\n"
"PADDING-TOP: 10px;\n"
"BACKGROUND-COLOR: #f0f0f0;\n"
"TEXT-ALIGN: left\n"
"}\n"
".level1\n"
"{\n"
"COLOR: blue\n"
"}\n"
".level2\n"
"{\n"
"COLOR: red\n"
"}\n"
".level3\n"
"{\n"
"COLOR: green\n"
"}\n"
".level4\n"
"{\n"
"COLOR: teal\n"
"}\n"
".attribname\n"
"{\n"
"TEXT-ALIGN: right;\n"
"}\n"
".attrib\n"
"{\n"
"COLOR: #990000\n"
"}\n"
"</STYLE>\n"
"<TITLE>Web Service Testing</TITLE>\n"
"</HEAD>\n"
"<BODY>\n"
"<DIV class=\"head1\"><H1>Web Services Test Page (VSMX)</H1></DIV>\n"
"<?vsp\n"
"declare this_page varchar;\n"
"declare wsdl any;\n"
"declare inx, len, _u_id integer;\n"
"this_page := \'services.vsmx\';\n"
"set http_charset=\'UTF-8\';\n"
"http_header (\'Cache-Control: no-cache, must-revalidate\\r\\nPragma: no-cache\\r\\nExpires: Thu, 01 Dec 1994 01:02:03 GMT\\r\\n\');\n"
"\n"
"?>\n"
"<DIV class=\"soappage\">\n"
"<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\n"
"<TR><TD class=\"soaplist\">\n"
"<H2>Services Available</H2>\n"
"<?vsp\n"
"declare xt any;\n"
"wsdl := soap_wsdl();\n"
"if (not (registry_get (\'old_vsmx\') = \'1\') and isstring (file_stat (http_root()||\'/vsmx/oper.vspx\')))\n"
"{\n"
"declare sid any;\n"
"sid := vspx_sid_generate ();\n"
"insert into VSPX_SESSION (VS_REALM, VS_SID, VS_UID, VS_STATE, VS_EXPIRY)\n"
"values (\'vsmx\', sid, null,\n"
"serialize (vector (\'wsdl\', wsdl, \'loc\', WS.WS.EXPAND_URL (HTTP_REQUESTED_URL(),\'services.wsdl\'))),\n"
"now ());\n"
"http_request_status (\'HTTP/1.1 302 Found\');\n"
"http_header (sprintf (\'Location: /vsmx/oper.vspx?sid=%s&realm=vsmx\\r\\n\', sid));\n"
"http_rewrite ();\n"
"return;\n"
"}\n"
"xt := xml_tree_doc (wsdl);\n"
"inx := 0;\n"
"_u_id := (select top 1 U_ID from DB.DBA.SYS_USERS where U_NAME = http_map_get (\'soap_uid\'));\n"
"for select 0 as TP, P_NAME as operation, coalesce (P_TEXT, blob_to_string (P_MORE)) as content\n"
"from DB.DBA.SYS_PROCEDURES where (name_part (P_NAME, 0) = http_map_get (\'soap_qual\')\n"
"and name_part (P_NAME,1) = http_map_get (\'soap_uid\'))\n"
"or exists (select 1 from DB.DBA.SYS_GRANTS where G_USER = _u_id and G_OP = 32 and G_OBJECT = P_NAME)\n"
"\n"
"union select 0 as TP, G_OBJECT as operation, \'\' as content from DB.DBA.SYS_GRANTS where\n"
"G_USER = _u_id and G_OP = 32 and __proc_exists (G_OBJECT) is not null\n"
"and not exists (select 1 from DB.DBA.SYS_PROCEDURES where G_OBJECT = P_NAME)\n"
"\n"
"union select 1 as TP, M_NAME as operation, blob_to_string (M_TEXT) as content\n"
"from DB.DBA.SYS_METHODS, DB.DBA.SYS_USER_TYPES where M_ID = UT_ID and\n"
"exists (select 1 from DB.DBA.SYS_GRANTS where G_USER = _u_id and G_OP = 32 and G_OBJECT = UT_NAME)\n"
"do\n"
"{\n"
"declare comments, title, elm, operation1, q, o varchar;\n"
"\n"
"q := name_part (operation, 0);\n"
"o := name_part (operation, 1);\n"
"\n"
"if (TP = 1)\n"
"operation1 := operation;\n"
"else if ((length (q) + length (o) + 3) < length (operation))\n"
"operation1 := substring (operation, length (q) + length (o) + 3, length (operation));\n"
"else\n"
"goto nxt;\n"
"\n"
"operation := operation1;\n"
"\n"
"elm := xpath_eval (sprintf (\'/definitions/portType/operation[@name = \\\'%s\\\']\', operation), xt);\n"
"if (elm is null)\n"
"goto nxt;\n"
"title := regexp_match (\'--##.*\', content);\n"
"if (title is null)\n"
"title := \'\';\n"
"else\n"
"title := substring (title, 5, length (title));\n"
"?>\n"
"<DIV class=\"soapli\"><A href=\"<?=this_page?>?operation=<?=operation?>\"><?=operation?></A><BR />\n"
"<SPAN class=\"soapdesc\"><?=title?></SPAN></DIV>\n"
"<?vsp\n"
"inx := inx + 1;\n"
"nxt:;\n"
"}\n"
"?>\n"
"</TD>\n"
"<TD class=\"operation\">\n"
"<?vsp\n"
"\n"
"if ({?\'operation\'} is not null )\n"
"{\n"
"declare xe, pars any;\n"
"declare xps, url varchar;\n"
"wsdl := soap_wsdl();\n"
"xe := xml_tree_doc (wsdl);\n"
"if (xpath_eval (sprintf (\'/definitions/binding/operation[@name=\"%s\"]/operation[@style=\"document\"]\', {?\'operation\'}), xe) is null)\n"
"{\n"
"xps := sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part\', {?\'operation\'});\n"
"}\n"
"else if (xpath_eval (sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part[@name=\"parameters\"]\', {?\'operation\'}), xe) is not null)\n"
"{\n"
"declare elm_name any;\n"
"declare pos int;\n"
"\n"
"xps := sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part/@element\', {?\'operation\'});\n"
"elm_name := cast (xpath_eval (xps, xe) as varchar);\n"
"pos := strrchr (elm_name, \':\');\n"
"if (pos is not null)\n"
"{\n"
"elm_name := subseq (elm_name, pos + 1, length (elm_name));\n"
"}\n"
"xps := sprintf (\'/definitions/types/schema/element[@name = \"%s\"]//element\', elm_name);\n"
"}\n"
"else\n"
"{\n"
"xps := sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part\', {?\'operation\'});\n"
"}\n"
"\n"
"pars := xpath_eval (xps, xe, 0);\n"
"url := cast (xpath_eval (\'/definitions/service/port/address/@location\', xe, 1) as varchar);\n"
"len := length (pars);\n"
"inx := 0;\n"
"?>\n"
"<H2><?={?\'operation\'}?></H2>\n"
"<H3>Details</H3>\n"
"<P>The service end point is: <?=url?></P>\n"
"<P>The WSDL end point is: <A href=\"<?=url?>/services.wsdl\"><?=url?>/services.wsdl</A></P>\n"
"<H3>Test</H3>\n"
"<FORM method=\"POST\" action=\"<?=this_page?>\">\n"
"<INPUT type=\"hidden\" name=\"operation\" value=\"<?={?\'operation\'}?>\" >\n"
"<INPUT type=\"hidden\" name=\"url\" value=\"<?=url?>\" >\n"
"<TABLE class=\"service\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n"
"<TR>\n"
"<TH class=\"service\">Parameter</TH>\n"
"<TH class=\"service\">Value</TH>\n"
"<TH class=\"service\">Type</TH>\n"
"</TR>\n"
"<?vsp\n"
"while (inx < len)\n"
"{\n"
"declare n, t varchar;\n"
"n := xpath_eval (\'@name\', pars[inx], 1);\n"
"t := xpath_eval (\'@type\', pars[inx], 1);\n"
"n := cast (n as varchar); t := cast (t as varchar);\n"
"if (t like \'http://www.w3.org/____/XMLSchema:%\')\n"
"{\n"
"t := substring (t, length (\'http://www.w3.org/____/XMLSchema:\') + 1, length (t));\n"
"t := concat (\'xsd:\', t);\n"
"}\n"
"else if (strchr (t, \':\') is not null and t not like \'xsd:%\')\n"
"{\n"
"declare colon integer;\n"
"colon := strrchr (t, \':\');\n"
"t := substring (t, colon + 1, length (t));\n"
"t := concat (\'s\', t);\n"
"}\n"
"?>\n"
"<TR>\n"
"<TD class=\"service\"><?=n?></TD>\n"
"<?vsp if (t like \'xsd:%\') { ?>\n"
"<TD class=\"service\"><input type=\"text\" name=\"<?=n?>\" size=\"40\" /></TD>\n"
"<?vsp } else { ?>\n"
"<TD class=\"service\"><textarea name=\"<?=n?>\" rows=10 cols=\"40\"><?vsp\n"
"if (t like \'_:%\' and t not like \'_:ArrayOf%\')\n"
"{\n"
"declare struct, t1 any;\n"
"declare i, l integer;\n"
"t1 := substring (t, 3, length (t));\n"
"xps :=\n"
"sprintf (\'/definitions/types/schema/complexType[@name = \'\'%s\'\']/*/element/@name\', t1);\n"
"struct := xpath_eval (xps, xe, 0);\n"
"i := 0; l := length (struct);\n"
"while (i < l)\n"
"{\n"
"http (cast (struct[i] as varchar));\n"
"http (\'=\\r\\n\');\n"
"i := i + 1;\n"
"}\n"
"}\n"
"?></textarea></TD>\n"
"<?vsp } ?>\n"
"<TD class=\"service\"><SPAN class=\"datatype\"><?=t?></SPAN>\n"
"<input type=\"hidden\" name=\"<?=n?>_type\" value=\"<?=t?>\"></TD>\n"
"</TR>\n"
"<?vsp\n"
"inx := inx + 1;\n"
"}\n"
"if (not inx)\n"
"{\n"
"?>\n"
"<TR><TD class=\"service\" colspan=\"2\">No input parameters are required for this service.</TD></TR>\n"
"<?vsp\n"
"}\n"
"?>\n"
"<TR><TD class=\"btns\" colspan=\"2\"><input type=\"submit\" name=\"callit\" value=\"Invoke\"></TD></TR>\n"
"</TABLE>\n"
"</form>\n"
"<?vsp\n"
"}\n"
"\n"
"if ({?\'operation\'} is not null and {?\'callit\'} is not null)\n"
"{\n"
"declare hinfo, result, ver, pars1, _url any;\n"
"declare xe, xps, pars any;\n"
"wsdl := soap_wsdl();\n"
"xe := xml_tree_doc (wsdl);\n"
"_url := {?\'url\'};\n"
"hinfo := rfc1808_parse_uri ({?\'url\'});\n"
"\n"
"if (xpath_eval (sprintf (\'/definitions/binding/operation[@name=\"%s\"]/operation[@style=\"document\"]\', {?\'operation\'}), xe) is null)\n"
"{\n"
"xps := sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part\', {?\'operation\'});\n"
"}\n"
"else if (xpath_eval (sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part[@name=\"parameters\"]\', {?\'operation\'}), xe) is not null)\n"
"{\n"
"declare elm_name any;\n"
"declare pos int;\n"
"\n"
"xps := sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part/@element\', {?\'operation\'});\n"
"elm_name := cast (xpath_eval (xps, xe) as varchar);\n"
"pos := strrchr (elm_name, \':\');\n"
"if (pos is not null)\n"
"{\n"
"elm_name := subseq (elm_name, pos + 1, length (elm_name));\n"
"}\n"
"xps := sprintf (\'/definitions/types/schema/element[@name = \"%s\"]//element\', elm_name);\n"
"}\n"
"else\n"
"{\n"
"xps := sprintf (\'/definitions/message[@name = \\\'%sRequest\\\']/part\', {?\'operation\'});\n"
"}\n"
"pars := xpath_eval (xps, xe, 0);\n"
"len := length (pars);\n"
"inx := 0;\n"
"pars1 := vector ();\n"
"while (inx < len)\n"
"{\n"
"declare exit handler for sqlstate \'*\' {\n"
"result := xml_tree_doc (sprintf (\'<Error>\n"
"<Code>%V\n"
"</Code>\n"
"<Message>%V\n"
"</Message>\n"
"</Error>\', __SQL_STATE, __SQL_MESSAGE));\n"
"goto err;\n"
"};\n"
"declare n, t, v, va varchar;\n"
"n := xpath_eval (\'@name\', pars[inx], 1);\n"
"t := xpath_eval (\'@type\', pars[inx], 1);\n"
"n := cast (n as varchar); t := cast (t as varchar);\n"
"if (t like \'http://www.w3.org/____/XMLSchema:%\')\n"
"{\n"
"t := substring (t, length (\'http://www.w3.org/____/XMLSchema:\') + 1, length (t));\n"
"t := concat (\'xsd:\', t);\n"
"}\n"
"else if (strchr (t, \':\') is not null and t not like \'xsd:%\')\n"
"{\n"
"declare colon integer;\n"
"colon := strrchr (t, \':\');\n"
"t := substring (t, colon + 1, length (t));\n"
"t := concat (\'s\', t);\n"
"}\n"
"v := get_keyword (n, params);\n"
"if (t like \'_:ArrayOf%\')\n"
"{\n"
"v := replace (v, \'\\r\\n\', \'\\n\');\n"
"va := split_and_decode (v, 0, \'\\0\\0\\n\');\n"
"pars1 := vector_concat (pars1, vector (n, va));\n"
"}\n"
"else if (t like \'_:%\')\n"
"{\n"
"declare r, struct, rstr any;\n"
"declare i, l integer;\n"
"v := replace (v, \'\\r\\n\', \'\\n\');\n"
"va := coalesce (split_and_decode (v, 0, \'\\0\\0\\n=\'), vector ());\n"
"t := substring (t, 3, length (t));\n"
"xps :=\n"
"sprintf (\'/definitions/types/schema/complexType[@name = \'\'%s\'\']/*/element/@name\', t);\n"
"struct := xpath_eval (xps, xe, 0);\n"
"i := 0; l := length (struct);\n"
"rstr := vector (composite(), \'<soap_box_structure>\');\n"
"while (i < l)\n"
"{\n"
"declare part nvarchar;\n"
"part := get_keyword (struct[i], va);\n"
"part := charset_recode (part,\'UTF-8\',\'_WIDE_\');\n"
"rstr := vector_concat (rstr, vector (cast (struct[i] as varchar), part));\n"
"i := i + 1;\n"
"}\n"
"pars1 := vector_concat (pars1, vector (n, rstr));\n"
"}\n"
"else if (t like \'%:dateTime\')\n"
"{\n"
"v := charset_recode (v,\'UTF-8\',\'_WIDE_\');\n"
"v := cast (v as varchar);\n"
"v := cast (v as datetime);\n"
"pars1 := vector_concat (pars1, vector (n, v));\n"
"}\n"
"else\n"
"{\n"
"v := charset_recode (v,\'UTF-8\',\'_WIDE_\');\n"
"pars1 := vector_concat (pars1, vector (n, v));\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"ver := 11;\n"
"{\n"
"declare exit handler for sqlstate \'*\' {\n"
"result := xml_tree_doc (sprintf (\'<Error>\n"
"<Code>%V\n"
"</Code>\n"
"<Message>%V\n"
"</Message>\n"
"</Error>\', __SQL_STATE, __SQL_MESSAGE));\n"
"goto err;\n"
"};\n"
"if (atoi (virtuoso_ini_item_value (\'HTTPServer\', \'ServerThreads\')) < 2)\n"
"{\n"
"result := xml_tree_doc (sprintf (\'<Error>\n"
"<Code>%V\n"
"</Code>\n"
"<Message>%V\n"
"</Message>\n"
"</Error>\', \'42000\', \'At least two HTTP threads must be available\'));\n"
"goto err;\n"
"}\n"
"else\n"
"{\n"
"result := DB.DBA.SOAP_CLIENT (url=>_url, operation=>{?\'operation\'}, parameters=>pars1, version=>ver);\n"
"}\n"
"}\n"
"\n"
"if (ver = 11)\n"
"{\n"
"if (result[0][0] <> \' root\')\n"
"result := vector (vector(\' root\'), result);\n"
"result := xml_tree_doc (result);\n"
"}\n"
"else\n"
"{\n"
"result := xml_tree_doc (sprintf (\'<Error>\n"
"<Code>%V\n"
"</Code>\n"
"<Message>%V\n"
"</Message>\n"
"</Error>\', ver[1], ver[2]));\n"
"}\n"
"err:;\n"
"declare ses any;\n"
"ses := xslt (\'__soap_vsmx\', result, vector (\'service\', {?\'operation\'}));\n"
"http_value (ses);\n"
"}\n"
"\n"
"?>\n"
"</TD></TR></TABLE>\n"
"</DIV>\n"
"<DIV class=\"foot\"><SPAN class=\"foot\">Virtuoso Universal Server <?=sys_stat(\'st_dbms_ver\')?> - Copyright© 1998-2012 OpenLink Software.</SPAN></DIV>\n"
"</BODY>\n"
"</HTML>\n"
"<?vsp\n"
"}\n"
"--src soap.sql:1802\n";
static const char *other12 =
" xslt_sheet (\'__soap_vsmx\', xml_tree_doc(\'<?xml version=\"1.0\"?>\n"
"<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n"
"<xsl:output method=\"html\" indent=\"yes\" encoding=\"UTF-8\" />\n"
"<xsl:param name=\"service\" select=\"\'\'\'\'\" />\n"
"<xsl:param name=\"ret_uri\" select=\"\'\'services.vsmx\'\'\" />\n"
"<xsl:template match=\"/\">\n"
"<H3>Response</H3>\n"
"<BR />\n"
"<DIV class=\"response\"><xsl:apply-templates select=\"*\">\n"
"<xsl:with-param name=\"level\">1</xsl:with-param></xsl:apply-templates></DIV>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\"><xsl:param name=\"level\" />\n"
"<DIV class=\"details\">\n"
"<SPAN><xsl:attribute name=\"class\">level<xsl:value-of select=\"$level\" /></xsl:attribute>\n"
"<xsl:value-of select=\"local-name()\"/>:</SPAN>\n"
"<xsl:if test=\"$level > 1\">\n"
"<SPAN class=\"data\"><xsl:value-of select=\"text()\"/>\n"
"<xsl:if test=\"@*\">\n"
"<BR /><TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"2\">\n"
"<xsl:for-each select=\"@*\">\n"
"<xsl:if test=\"(namespace-uri(.) != \'\'urn:schemas-microsoft-com:datatypes\'\')\n"
"and (namespace-uri(.) != \'\'http://www.w3.org/2001/XMLSchema-instance\'\')\n"
"and (namespace-uri(.) != \'\'http://schemas.xmlsoap.org/soap/encoding/\'\')\n"
"and (namespace-uri(.) != \'\'urn:schemas-openlink-com:xml-sql\'\')\">\n"
"<TR><TD class=\"attribname\"><xsl:value-of select=\"local-name()\" />=</TD>\n"
"<TD class=\"attrib\">\"<xsl:value-of select=\".\" />\"</TD></TR>\n"
"</xsl:if>\n"
"</xsl:for-each>\n"
"</TABLE>\n"
"</xsl:if>\n"
"</SPAN>\n"
"</xsl:if>\n"
"<xsl:apply-templates select=\"*\">\n"
"<xsl:with-param name=\"level\"><xsl:value-of select=\"$level+1\" /></xsl:with-param>\n"
"</xsl:apply-templates>\n"
"</DIV>\n"
"</xsl:template>\n"
"</xsl:stylesheet>\')\n"
")\n";
static const char *proc64 =
"#line 2377 \"[executable]/soap.sql\"\n"
"create procedure WSDL_EXPAND (in _base_url any, in rsv any, inout schem any, inout defs any, inout ret any)\n"
"{\n"
"declare idx, len, idx1, len1, use_cache integer;\n"
"declare _location, _what varchar;\n"
"declare _new, _import, _base, sch, t1, t2 any;\n"
"\n"
"if (not isarray (schem)) schem := vector ();\n"
"if (not isarray (defs)) defs := vector ();\n"
"if (not rsv is NULL) _base_url := WS.WS.EXPAND_URL (_base_url, rsv);\n"
"\n"
"use_cache := 0;\n"
"\n"
"_base := WSDL_GET (_base_url, use_cache);\n"
"\n"
"if (rsv is NULL) ret := _base;\n"
"\n"
"sch := xpath_eval (\'/definitions/import\', _base, 0);\n"
"\n"
"if (length (t1 := xpath_eval (\'/definitions/types/schema\', _base, 0)) > 0) schem := vector_concat (t1, schem);\n"
"if (length (t2 := xpath_eval (\'/definitions\', _base, 0)) > 0) defs := vector_concat (defs, t2);\n"
"\n"
"idx := 0; len := length (sch);\n"
"while (idx < len)\n"
"{\n"
"_location := cast (xpath_eval (\'@location\', sch[idx], 1) as varchar);\n"
"_import := WSDL_GET (WS.WS.EXPAND_URL (_base_url, _location), use_cache);\n"
"_new := xpath_eval (\'/definitions/import\', _import, 0);\n"
"if (length (t1 := xpath_eval (\'/definitions/types/schema\', _import, 0))>0) schem := vector_concat (schem, t1);\n"
"if (length (t2 := xpath_eval (\'/definitions\', _import, 0)) > 0) defs := vector_concat (defs, t2);\n"
"len1 := length (_new); idx1 := 0;\n"
"if (length (_new) > 0)\n"
"{\n"
"while (idx1 < len1)\n"
"{\n"
"_what := cast (xpath_eval (\'@location\', _new[0], 1) as varchar);\n"
"_base_url := WS.WS.EXPAND_URL (_base_url, _location);\n"
"WSDL_EXPAND (_base_url, _what, schem, defs, ret);\n"
"idx1 := idx1 + 1;\n"
"}\n"
"}\n"
"idx := idx + 1;\n"
"}\n"
"}\n"
"--src soap.sql:2375\n";
static const char *proc65 =
"#line 2424 \"[executable]/soap.sql\"\n"
" create procedure\n"
"DB.DBA.SOAP_WSDL_IMPORT (in url varchar, in mode_wsdl integer := 1, in wire_dump integer := 0, in drop_module integer := 0)\n"
"{\n"
"declare wsdl, xp, xt, uri, hinfo, sch, ret, pt any;\n"
"declare i, l, i1, l1, is_literal integer;\n"
"declare err, name, tns, mname, stmt, transport varchar;\n"
"declare port_name, port_name_last any;\n"
"declare tt, dmod varchar;\n"
"\n"
"WSDL_EXPAND (url, NULL, sch, pt, wsdl);\n"
"\n"
"i1 := 0; l1 := length (sch);\n"
"while (i1 < l1)\n"
"{\n"
"xp := xpath_eval (\'complexType\', sch[i1], 0);\n"
"tns := xpath_eval (\'@targetNamespace\', sch[i1], 1);\n"
"if (tns is not null)\n"
"{\n"
"tns := cast (tns as varchar);\n"
"tns := concat (tns, \':\');\n"
"}\n"
"else\n"
"tns := \'\';\n"
"\n"
"i := 0; l := length (xp);\n"
"while (i < l)\n"
"{\n"
"xt := xslt (\'http://local.virt/soap_sch\', xp[i]);\n"
"err := xpath_eval (\'string(//@error)\', xt, 1);\n"
"err := cast (err as varchar);\n"
"if (err <> \'\')\n"
"{\n"
"rollback work;\n"
"signal (\'22023\', err, \'SODT1\');\n"
"}\n"
"name := cast(xpath_eval (\'string(/complexType/@name)\', xt, 1) as varchar);\n"
"if (not exists (select 1 from DB.DBA.SYS_SOAP_DATATYPES where SDT_NAME = concat (tns, name) and SDT_TYPE = 0))\n"
"{\n"
"insert soft DB.DBA.SYS_SOAP_DATATYPES (SDT_NAME,SDT_SCH,SDT_TYPE) values (concat(tns, name), xt, 0);\n"
"__soap_dt_define (concat(tns, name), xt);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"xp := xpath_eval (\'element\', sch[i1], 0);\n"
"i := 0; l := length (xp);\n"
"while (i < l)\n"
"{\n"
"xt := xslt (\'http://local.virt/soap_sch\', xp[i], vector (\'target_Namespace\', rtrim(tns, \':\')));\n"
"err := xpath_eval (\'string(//@error)\', xt, 1);\n"
"err := cast (err as varchar);\n"
"if (err <> \'\')\n"
"{\n"
"rollback work;\n"
"signal (\'22023\', err, \'SODT1\');\n"
"}\n"
"name := cast(xpath_eval (\'string(/element/@name)\', xt, 1) as varchar);\n"
"if (not exists (select 1 from DB.DBA.SYS_SOAP_DATATYPES where SDT_NAME = concat (tns, name) and SDT_TYPE = 1))\n"
"{\n"
"insert soft DB.DBA.SYS_SOAP_DATATYPES (SDT_NAME,SDT_SCH,SDT_TYPE) values (concat(tns, name), xt, 1);\n"
"__soap_dt_define (concat(tns, name), xt, NULL, 1);\n"
"}\n"
"\n"
"{\n"
"declare cmpl, cname, cname2, sch2 varchar;\n"
"cmpl := xpath_eval (sprintf (\'element[%d]/complexType[*]\', (i+1)), sch[i1], 1);\n"
"\n"
"if (cmpl is not null)\n"
"{\n"
"declare name1 varchar;\n"
"name1 := cast(xpath_eval (sprintf (\'string(element[%d]/@name)\' , (i+1)), sch[i1], 1) as varchar);\n"
"cname := sprintf (\'elementType__%s\', name1);\n"
"if (tns is null or tns = \'\')\n"
"cname2 := cname;\n"
"else\n"
"cname2 := sprintf (\'%s%s\', tns, cname);\n"
"sch2 := xslt (\'http://local.virt/soap_sch\', cmpl,\n"
"vector (\'type_name\', cname, \'target_Namespace\', rtrim(tns, \':\')));\n"
"__soap_dt_define (cname2, sch2, sch2, 0);\n"
"insert replacing DB.DBA.SYS_SOAP_DATATYPES (SDT_NAME,SDT_SCH, SDT_TYPE) values (cname2, sch2, 0);\n"
"}\n"
"}\n"
"i := i + 1;\n"
"}\n"
"i1 := i1 + 1;\n"
"}\n"
"declare extens any;\n"
"declare ns_ext nvarchar;\n"
"extens := xpath_eval (\'[xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"] //*[@wsdl:required = \"true\"]\', wsdl, 0);\n"
"i1 := 0; l1 := length (extens);\n"
"while (i1 < l1)\n"
"{\n"
"ns_ext := xpath_eval (\'namespace-uri(.)\', extens[i1], 1);\n"
"if (ns_ext <> N\'http://schemas.xmlsoap.org/wsdl/soap/\')\n"
"{\n"
"rollback work;\n"
"signal (\'22023\', \'Not supported extensibility element\', \'SODT2\');\n"
"}\n"
"i1 := i1 + 1;\n"
"}\n"
"\n"
"\n"
"mname := cast (xpath_eval (\'/definitions/service/@name\', wsdl, 1) as varchar);\n"
"uri := cast (xpath_eval (\'[xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"] /definitions/service/port/soap:address/@location\', wsdl, 1) as varchar);\n"
"hinfo := rfc1808_parse_uri (uri);\n"
"\n"
"stmt := concat (\'CREATE MODULE \', DB.DBA.SYS_ALFANUM_NAME (mname), \' {\\r\\n\');\n"
"dmod := concat (\'DROP MODULE \', DB.DBA.SYS_ALFANUM_NAME (mname));\n"
"ret := vector (mname);\n"
"i1 := 0; l1 := length (pt);\n"
"while (i1 < l1)\n"
"{\n"
"if (not port_name is NULL or port_name <> 0) port_name_last := port_name;\n"
"port_name := cast (xpath_eval (\'/definitions/portType/@name\', pt[i1], 1) as varchar);\n"
"if (port_name is NULL) goto new_loop;\n"
"if ((port_name_last <> port_name) and\n"
"(port_name_last <> \'0\') and\n"
"(port_name_last <> 0) and\n"
"(not port_name_last is NULL))\n"
"port_name := port_name_last;\n"
"tt := sprintf (\'[xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"] /definitions/binding[@type like \'\'%s\'\']/soap:binding/@transport\', concat (\'%\', port_name));\n"
"if (transport := FIND_WSDL (pt, tt) is NULL) goto new_loop;\n"
"tt := sprintf (\'/definitions/portType[@name like \'\'%s\'\']/operation\', port_name);\n"
"xp := xpath_eval (tt, pt[i1], 0);\n"
"i := 0; l := length (xp);\n"
"while (i < l)\n"
"{\n"
"declare i_message, o_message, i_parm, o_parm any;\n"
"declare o_name, o_ns, soap_action, _ins, _out varchar;\n"
"declare colon, j, k integer;\n"
"declare ppars, res_pars varchar;\n"
"declare encoded any;\n"
"\n"
"o_name := cast (xpath_eval (\'@name\', xp[i], 1) as varchar);\n"
"\n"
"i_message := cast (xpath_eval (\'input/@message\', xp[i], 1) as varchar);\n"
"o_message := cast (xpath_eval (\'output/@message\', xp[i], 1) as varchar);\n"
"\n"
"colon := strrchr (i_message, \':\');\n"
"if (colon is not null)\n"
"i_message := substring (i_message, colon+2, length (i_message));\n"
"colon := strrchr (o_message, \':\');\n"
"if (colon is not null)\n"
"o_message := substring (o_message, colon+2, length (o_message));\n"
"\n"
"tt := sprintf (\'/definitions/message[@name like \'\'%s\'\']/part\', concat (\'%\', i_message));\n"
"i_parm := FIND_WSDL(pt ,tt);\n"
"\n"
"tt := sprintf (\'/definitions/message[@name like \'\'%s\'\']/part\', concat (\'%\', o_message));\n"
"o_parm := FIND_WSDL(pt ,tt);\n"
"\n"
"ppars := \'\'; res_pars := vector ();\n"
"_ins := \'\'; _out := \'\';\n"
"\n"
"\n"
"\n"
"declare have_in_par integer;\n"
"j := 0; k := length (i_parm); have_in_par := 0;\n"
"is_literal := 0;\n"
"while (j < k)\n"
"{\n"
"declare par, typ varchar;\n"
"par := cast (xpath_eval (\'@name\', i_parm[j]) as varchar);\n"
"typ := cast (xpath_eval (\'@type\', i_parm[j]) as varchar);\n"
"if (typ is NULL)\n"
"{\n"
"typ := cast (xpath_eval (\'@element\', i_parm[j]) as varchar);\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"is_literal := 1;\n"
"}\n"
"if (j > 0)\n"
"{\n"
"_ins := concat (_ins, \',\');\n"
"ppars := concat (ppars, \',\');\n"
"}\n"
"_ins := concat (_ins, \'IN _\', par, \' any __soap_type \'\'\',typ ,\'\'\'\');\n"
"ppars := concat (ppars, sprintf (\'vector(\'\'%s\'\', \'\'%s\'\'), _\', par, typ), par);\n"
"res_pars := vector_concat (res_pars, vector (concat (\'_\', par), typ));\n"
"j := j + 1;\n"
"}\n"
"have_in_par := j;\n"
"\n"
"\n"
"\n"
"j := 0; k := length (o_parm);\n"
"while (j < k)\n"
"{\n"
"declare par, typ varchar;\n"
"par := cast (xpath_eval (\'@name\', o_parm[j]) as varchar);\n"
"typ := cast (xpath_eval (\'@type\', o_parm[j]) as varchar);\n"
"if (j > 0 or have_in_par > 0)\n"
"{\n"
"_out := concat (_out, \',\');\n"
"}\n"
"_out := concat (_out, \'OUT _\', par ,\' any __soap_type \'\'\',typ ,\'\'\'\');\n"
"\n"
"j := j + 1;\n"
"}\n"
"\n"
"stmt := concat (stmt, \'\\r\\n PROCEDURE \', o_name, \' (\', _ins);\n"
"\n"
"ret := vector_concat (ret, vector(o_name, res_pars));\n"
"o_ns := cast (xpath_eval (\n"
"sprintf (\'/definitions/binding/operation[@name = \'\'%s\'\']/input/body/@namespace\',\n"
"o_name), wsdl, 1) as varchar);\n"
"soap_action :=\n"
"cast (xpath_eval (\n"
"sprintf (\'/definitions/binding/operation[@name = \'\'%s\'\']/operation/@soapAction\',\n"
"o_name), wsdl, 1) as varchar);\n"
"\n"
"encoded := cast (xpath_eval (\n"
"sprintf (\'[xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"] /definitions/binding/operation[@name = \'\'%s\'\']/input/soap:body/@use\',\n"
"o_name), wsdl, 1) as varchar);\n"
"\n"
"if (encoded is not null and encoded = \'literal\')\n"
"{\n"
"encoded := 1;\n"
"is_literal := 1;\n"
"}\n"
"else\n"
"encoded := 0;\n"
"\n"
"if (wire_dump)\n"
"encoded := encoded + 2;\n"
"\n"
"if (soap_action is null or soap_action = \'\')\n"
"{\n"
"soap_action := \'\"\"\';\n"
"}\n"
"else\n"
"{\n"
"soap_action := concat (\'\"\',trim (soap_action, \'\" \'),\'\"\');\n"
"}\n"
"\n"
"if (length (o_ns))\n"
"o_ns := sprintf (\'\'\'%s\'\'\', o_ns);\n"
"else\n"
"o_ns := \'NULL\';\n"
"\n"
"soap_action := sprintf (\'\'\'%s\'\'\', soap_action);\n"
"\n"
"if (not mode_wsdl)\n"
"stmt := concat (stmt, _out);\n"
"\n"
"if (is_literal)\n"
"stmt := concat (stmt, \') \\n returns any __soap_doc \'\'__VOID__\'\'\\n\');\n"
"else\n"
"stmt := concat (stmt, \') \\n returns any __soap_type \'\'__VOID__\'\'\\n\');\n"
"\n"
"if (mode_wsdl)\n"
"{\n"
"stmt := concat (stmt, \'{\\n declare res, ver any;\\n ver:=11;\\n \');\n"
"stmt := concat (stmt,\n"
"sprintf (\'res := soap_call_new (\'\'%s\'\',\'\'%s\'\',\\n %s, \'\'%s\'\', vector (%s), ver, NULL, NULL, %s, %d);\\n\',\n"
"hinfo[1], hinfo[2], o_ns, o_name, ppars, soap_action, encoded));\n"
"stmt := concat (stmt, \' if (ver <> 11) signal (ver[1], ver[2]); \\r\\n return res; }; \');\n"
"}\n"
"else\n"
"{\n"
"stmt := concat (stmt, \'{ \\n declare ret any; \\n return ret; \\n} ;\\n\');\n"
"}\n"
"\n"
"i := i + 1;\n"
"}\n"
"new_loop:\n"
"i1 := i1 + 1;\n"
"}\n"
"stmt := concat (stmt, \' \\r\\n} \\n\');\n"
"\n"
"if (length (stmt) > 7)\n"
"{\n"
"if (drop_module)\n"
"{\n"
"declare st1, ms1 varchar;\n"
"st1 := \'00000\';\n"
"exec (dmod, st1, ms1);\n"
"}\n"
"DB.DBA.EXEC_STMT (stmt, 0);\n"
"}\n"
"else\n"
"ret := NULL;\n"
"return ret;\n"
"}\n"
"--src soap.sql:2422\n";
static const char *proc66 =
"#line 2712 \"[executable]/soap.sql\"\n"
"create procedure FIND_WSDL (in _all any, in _what varchar)\n"
"{\n"
"declare idx, len integer;\n"
"declare ret any;\n"
"\n"
"len := length (_all);\n"
"idx := 0;\n"
"\n"
"while (idx < len)\n"
"{\n"
"ret := xpath_eval (_what, _all[idx], 0);\n"
"if (length (ret) > 0)\n"
"return ret;\n"
"idx := idx + 1;\n"
"}\n"
"\n"
"return NULL;\n"
"}\n"
"--src soap.sql:2710\n";
static const char *proc67 =
"#line 2733 \"[executable]/soap.sql\"\n"
"create procedure WSDL_GET (in uri varchar, in _mode integer)\n"
"{\n"
"declare _hdr, _ret any;\n"
"\n"
"\n"
"_ret := xml_uri_get (uri, \'\');\n"
"_ret := xml_tree_doc (_ret);\n"
"return _ret;\n"
"}\n"
"--src soap.sql:2731\n";
/* wsrp_ultim.xsl */
static const char *xsl3[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"
" xmlns:rp=\"http://schemas.xmlsoap.org/rp\"\n"
" xmlns:wss04=\"http://schemas.xmlsoap.org/ws/2002/04/secext\"\n"
" xmlns:wss07=\"http://schemas.xmlsoap.org/ws/2002/07/secext\"\n"
" xmlns:wss=\"http://schemas.xmlsoap.org/ws/2002/12/secext\"\n"
" xmlns:wsso=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\"\n"
" xmlns:util=\"http://schemas.xmlsoap.org/ws/2002/07/utility\">\n"
"<xsl:output method=\"xml\" indent=\"yes\" omit-xml-declaration=\"yes\"/>\n"
"\n"
" <xsl:template match=\"rp:path|wss04:Security|wss07:Security|wss:Security|wsso:Security|util:Timestamp\" />\n"
"\n"
" <xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
"\n"
,
NULL };
/* wsrp_resp.xsl */
static const char *xsl4[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"
" xmlns:rp=\"http://schemas.xmlsoap.org/rp\"\n"
" xmlns:wss=\"http://schemas.xmlsoap.org/ws/2002/12/secext\"\n"
" xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2002/12/secext\"\n"
" xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2003/03/addressing\"\n"
" xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\"\n"
" xmlns:wsuoasis=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"\n"
" >\n"
"<xsl:output method=\"xml\" indent=\"yes\" omit-xml-declaration=\"yes\"/>\n"
"\n"
" <xsl:param name=\"action\" />\n"
" <xsl:param name=\"fwd\" />\n"
" <xsl:param name=\"id\" />\n"
" <xsl:param name=\"to\" />\n"
" <xsl:param name=\"from\" />\n"
" <xsl:param name=\"relatesTo\" />\n"
" <xsl:param name=\"routing\" select=\"1\" />\n"
" <xsl:param name=\"b_id\" />\n"
" <xsl:param name=\"wsu\" select=\"'http://schemas.xmlsoap.org/ws/2002/07/utility'\"/>\n"
"\n"
" <xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"*\" />\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Envelope\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:choose>\n"
" <xsl:when test=\"not SOAP:Header and boolean($routing)\">\n"
" <SOAP:Header>\n"
" <rp:path SOAP:actor=\"http://schemas.xmlsoap.org/soap/actor/next\" SOAP:mustUnderstand=\"1\">\n"
" <rp:action><xsl:value-of select=\"$action\" /></rp:action>\n"
" <rp:id>uuid:<xsl:value-of select=\"$id\" /></rp:id>\n"
" <rp:relatesTo><xsl:value-of select=\"$relatesTo\" /></rp:relatesTo>\n"
" <rp:fwd>\n"
" <xsl:if test=\"$fwd\">\n"
" <xsl:copy-of select=\"$fwd/via\" />\n"
" </xsl:if>\n"
" </rp:fwd>\n"
" <rp:rev>\n"
" <rp:via><xsl:value-of select=\"$to\" /></rp:via>\n"
" </rp:rev>\n"
" <rp:from><xsl:value-of select=\"$from\" /></rp:from>\n"
" </rp:path>\n"
" </SOAP:Header>\n"
" </xsl:when>\n"
" <xsl:when test=\"not boolean($routing) and not SOAP:Header\">\n"
" <SOAP:Header />\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Header\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:if test=\"boolean($routing)\" >\n"
" <rp:path SOAP:actor=\"http://schemas.xmlsoap.org/soap/actor/next\" SOAP:mustUnderstand=\"1\">\n"
" <rp:action><xsl:value-of select=\"$action\" /></rp:action>\n"
" <rp:id>uuid:<xsl:value-of select=\"$id\" /></rp:id>\n"
" <rp:relatesTo><xsl:value-of select=\"$relatesTo\" /></rp:relatesTo>\n"
" <rp:fwd>\n"
" <xsl:if test=\"$fwd\">\n"
" <xsl:copy-of select=\"$fwd/via\" />\n"
" </xsl:if>\n"
" </rp:fwd>\n"
" <rp:rev>\n"
" <rp:via><xsl:value-of select=\"$to\" /></rp:via>\n"
" </rp:rev>\n"
" <rp:from><xsl:value-of select=\"$from\" /></rp:from>\n"
" </rp:path>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"rp:path\"></xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Body[not @wsu:Id and not @wsuoasis:Id]\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:attribute name=\"Id\" namespace=\"{$wsu}\">Id-<xsl:value-of select=\"$b_id\" /></xsl:attribute>\n"
" <xsl:apply-templates select=\"*\"/>\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:copy-of select=\"*\" />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* wsrp_interm.xsl */
static const char *xsl5[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"
" xmlns:rp=\"http://schemas.xmlsoap.org/rp\">\n"
"<xsl:output method=\"xml\" indent=\"yes\" omit-xml-declaration=\"yes\"/>\n"
"<xsl:param name=\"newrev\" />\n"
"<xsl:param name=\"newfwd\" />\n"
" <xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"*\" />\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Envelope\">\n"
" <SOAP:Envelope>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"*\" />\n"
" </SOAP:Envelope>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Body\">\n"
" <SOAP:Body>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:copy-of select=\"*\" />\n"
" </SOAP:Body>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Header\">\n"
" <SOAP:Header>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:for-each select=\"*\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"name(.) = 'http://schemas.xmlsoap.org/rp:path'\">\n"
" <rp:path>\n"
" <xsl:apply-templates select=\".\" />\n"
" </rp:path>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:copy-of select=\".\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:for-each>\n"
" </SOAP:Header>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"rp:path\">\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:for-each select=\"*\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"name(.) = 'http://schemas.xmlsoap.org/rp:fwd'\">\n"
" <rp:fwd>\n"
" <xsl:if test=\"$newfwd != ''\">\n"
" <rp:via><xsl:value-of select=\"$newfwd\" /></rp:via>\n"
" </xsl:if>\n"
" <xsl:for-each select=\"via\">\n"
" <xsl:if test=\"position(.) > 1\">\n"
" <xsl:copy-of select=\".\" />\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
" </rp:fwd>\n"
" </xsl:when>\n"
" <xsl:when test=\"name(.) = 'http://schemas.xmlsoap.org/rp:rev'\">\n"
" <rp:rev>\n"
" <rp:via><xsl:value-of select=\"$newrev\" /></rp:via>\n"
" <xsl:copy-of select=\"via\" />\n"
" </rp:rev>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:copy-of select=\".\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:for-each>\n"
" </xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* wsrp_error.xsl */
static const char *xsl6[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"
" xmlns:n0=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"
" xmlns:rp=\"http://schemas.xmlsoap.org/rp\">\n"
"<xsl:output method=\"xml\" indent=\"yes\" omit-xml-declaration=\"yes\"/>\n"
"<xsl:param name=\"newrev\" />\n"
" <xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"*\" />\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Envelope\">\n"
" <SOAP:Envelope>\n"
" <xsl:apply-templates select=\"*\" />\n"
" </SOAP:Envelope>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Body\">\n"
" <SOAP:Body>\n"
" <SOAP:Fault>\n"
" <SOAP:faultcode>n0:Client</SOAP:faultcode>\n"
" <SOAP:faultstring>Client Error</SOAP:faultstring>\n"
" <SOAP:faultactor></SOAP:faultactor>\n"
" </SOAP:Fault>\n"
" </SOAP:Body>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"SOAP:Header\">\n"
" <SOAP:Header>\n"
" <xsl:choose>\n"
" <xsl:when test=\"rp:path\">\n"
" <xsl:for-each select=\"*\">\n"
" <xsl:if test=\"name(.) = 'http://schemas.xmlsoap.org/rp:path'\">\n"
" <rp:path>\n"
" <xsl:apply-templates select=\".\" />\n"
" <rp:fault>\n"
" <rp:code><xsl:value-of select=\"$code\" /></rp:code>\n"
" <rp:reason><xsl:value-of select=\"$reason\" /></rp:reason>\n"
" <rp:endpoint><xsl:value-of select=\"$endpoint\" /></rp:endpoint>\n"
" </rp:fault>\n"
" </rp:path>\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <rp:path>\n"
" <rp:fwd>\n"
" <rp:via />\n"
" </rp:fwd>\n"
" <rp:rev>\n"
" </rp:rev>\n"
" <rp:fault>\n"
" <rp:code><xsl:value-of select=\"$code\" /></rp:code>\n"
" <rp:reason><xsl:value-of select=\"$reason\" /></rp:reason>\n"
" <rp:endpoint><xsl:value-of select=\"$endpoint\" /></rp:endpoint>\n"
" </rp:fault>\n"
" </rp:path>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </SOAP:Header>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"rp:path\">\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:for-each select=\"*\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"name(.) = 'http://schemas.xmlsoap.org/rp:fwd'\">\n"
" <rp:fwd>\n"
" <rp:via />\n"
" </rp:fwd>\n"
" </xsl:when>\n"
" <xsl:when test=\"name(.) = 'http://schemas.xmlsoap.org/rp:rev'\">\n"
" <rp:rev>\n"
" </rp:rev>\n"
" </xsl:when>\n"
" <xsl:when test=\"name(.) = 'http://schemas.xmlsoap.org/rp:id'\">\n"
" <rp:relatesTo><xsl:value-of select=\".\" /></rp:relatesTo>\n"
" <rp:id>uuid:<xsl:value-of select=\"$id\" /></rp:id>\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" </xsl:for-each>\n"
" </xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* soap_sch.xsl */
static const char *xsl7[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:enc=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"
" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\n"
" xmlns=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:vi=\"http://www.openlinksw.com/wsdl/\"\n"
" xmlns:vs=\"http://www.openlinksw.com/virtuoso/soap\"\n"
" >\n"
" <xsl:output method=\"xml\" omit-xml-declaration=\"yes\" indent=\"yes\" encoding=\"UTF-8\"/>\n"
" <xsl:param name=\"type_name\" select=\"''\"/>\n"
" <xsl:param name=\"udt_struct\" select=\"0\"/>\n"
" <xsl:param name=\"target_Namespace\" select=\"''\"/>\n"
" <xsl:param name=\"any_type\" select=\"0\"/>\n"
" <xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"*\"/>\n"
" </xsl:template>\n"
" <xsl:template match=\"schema\">\n"
" <xsl:apply-templates select=\"*\"/>\n"
" </xsl:template>\n"
" <xsl:template match=\"complexType\">\n"
" <complexType>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@name != ''\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"@name\"/></xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$type_name\"/></xsl:attribute>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <!-- keep the targetNamespace -->\n"
" <xsl:attribute name=\"targetNamespace\"><xsl:value-of select=\"@targetNamespace\"/></xsl:attribute>\n"
" <xsl:choose>\n"
" <xsl:when test=\"not boolean ($udt_struct) and (count (child::*/child::*/sequence/element) <= 1 or starts-with(@name,'ArrayOf') or count (child::*/element) <= 1)\">\n"
" <xsl:apply-templates select=\"complexContent|simpleContent\">\n"
" <xsl:with-param name=\"min\">0</xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"complexContent|simpleContent\">\n"
" <xsl:with-param name=\"min\">1</xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:apply-templates select=\"group\">\n"
" <xsl:with-param name=\"min\">1</xsl:with-param>\n"
" </xsl:apply-templates>\n"
" <xsl:choose>\n"
" <xsl:when test=\"count (sequence/element) <= 1 and not boolean ($udt_struct)\">\n"
" <xsl:apply-templates select=\"sequence\">\n"
" <xsl:with-param name=\"min\">0</xsl:with-param>\n"
" <xsl:with-param name=\"cmpc\">1</xsl:with-param>\n"
" <xsl:with-param name=\"attr\">\n"
" <xsl:copy-of select=\"attribute\"/>\n"
" </xsl:with-param>\n"
" <xsl:with-param name=\"ext\">\n"
" <xsl:value-of select=\"count(attribute)\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"sequence\">\n"
" <xsl:with-param name=\"min\">1</xsl:with-param>\n"
" <xsl:with-param name=\"cmpc\">1</xsl:with-param>\n"
" <xsl:with-param name=\"attr\">\n"
" <xsl:copy-of select=\"attribute|anyAttribute\"/>\n"
" </xsl:with-param>\n"
" <xsl:with-param name=\"ext\">\n"
" <xsl:value-of select=\"count(attribute|anyAttribute)\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:if test=\"choice\">\n"
" <complexContent>\n"
" <restriction base=\"enc:Struct\">\n"
" <xsl:attribute name=\"choice\">1</xsl:attribute>\n"
" <xsl:apply-templates select=\"choice\">\n"
" <xsl:with-param name=\"min\">1</xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </restriction>\n"
" </complexContent>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"all\">\n"
" <xsl:with-param name=\"min\">1</xsl:with-param>\n"
" </xsl:apply-templates>\n"
" <xsl:if test=\"attribute and not local-name(*) != 'attribute'\">\n"
" <simpleContent>\n"
" <extension base=\"string\">\n"
" <xsl:apply-templates select=\"attribute\" />\n"
" </extension>\n"
" </simpleContent>\n"
" </xsl:if>\n"
" </complexType>\n"
" </xsl:template>\n"
" <xsl:template match=\"complexContent\">\n"
" <complexContent>\n"
" <xsl:apply-templates select=\"restriction\">\n"
" <xsl:with-param name=\"min\">\n"
" <xsl:value-of select=\"$min\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" <xsl:apply-templates select=\"extension\">\n"
" <xsl:with-param name=\"min\">\n"
" <xsl:value-of select=\"$min\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" <xsl:if test=\"count(sequence)>0\">\n"
" <sequence error=\"The 'sequence' element is not supported as child of complexContent\"/>\n"
" </xsl:if>\n"
" </complexContent>\n"
" </xsl:template>\n"
" <xsl:template match=\"any\">\n"
" <element type=\"__XML__\" name=\"\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n"
" <!--any error=\"The 'any' element is not supported\"/-->\n"
" </xsl:template>\n"
" <xsl:template match=\"simpleContent\">\n"
" <xsl:copy-of select=\".\"/>\n"
" <!--complexContent>\n"
" <xsl:apply-templates select=\"restriction\">\n"
" <xsl:with-param name=\"min\"><xsl:value-of select=\"$min\" /></xsl:with-param>\n"
" </xsl:apply-templates>\n"
" <xsl:apply-templates select=\"extension\">\n"
" <xsl:with-param name=\"min\"><xsl:value-of select=\"$min\" /></xsl:with-param>\n"
" </xsl:apply-templates>\n"
"</complexContent-->\n"
" </xsl:template>\n"
" <xsl:template match=\"extension|restriction\" mode=\"simple\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:attribute name=\"enumeration\"><xsl:value-of select=\"boolean(enumeration)\" /></xsl:attribute>\n"
" <xsl:copy-of select=\"*\" />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
" <xsl:template match=\"*\" mode=\"simple\">\n"
" </xsl:template>\n"
" <xsl:template match=\"simpleType\">\n"
" <complexType>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"@name\"/></xsl:attribute>\n"
" <simpleContent>\n"
" <xsl:apply-templates select=\"extension|restriction\" mode=\"simple\" />\n"
" </simpleContent>\n"
" </complexType>\n"
" </xsl:template>\n"
" <xsl:template match=\"group\">\n"
" <group error=\"The 'group' element is not supported\"/>\n"
" </xsl:template>\n"
" <xsl:template match=\"choice\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::sequence\">\n"
" <xsl:apply-templates select=\"element|any\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <sequence>\n"
" <xsl:apply-templates select=\"element|any\" />\n"
" <!--choice error=\"The 'choice' element is not supported\"/-->\n"
" </sequence>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:template>\n"
" <xsl:template match=\"restriction\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"count(sequence/element|attribute)>0\">\n"
" <restriction base=\"enc:Struct\">\n"
" <xsl:if test=\"$min!=1\">\n"
" <xsl:attribute name=\"base\"><xsl:value-of select=\"@base\"/></xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:choose>\n"
" <xsl:when test=\"sequence/element\">\n"
" <xsl:apply-templates select=\"sequence\">\n"
" <xsl:with-param name=\"min\">\n"
" <xsl:value-of select=\"$min\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:when test=\"attribute/@arrayType\">\n"
" <sequence>\n"
" <element name=\"item\" type=\"\" minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"normalize-space(translate(attribute/@arrayType,'[]',' '))\"/></xsl:attribute>\n"
" </element>\n"
" </sequence>\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" <xsl:if test=\"attribute/@arrayType\">\n"
" <attribute ref=\"enc:arrayType\" wsdl:arrayType=\"\">\n"
" <xsl:attribute name=\"wsdl:arrayType\"><xsl:value-of select=\"attribute/@arrayType\"/></xsl:attribute>\n"
" </attribute>\n"
" </xsl:if>\n"
" <xsl:if test=\"not(attribute/@arrayType) and $min=0 and @base\">\n"
" <attribute ref=\"enc:arrayType\">\n"
" <xsl:attribute name=\"wsdl:arrayType\"><xsl:value-of select=\"sequence/element[1]/@type\"/><xsl:text>[]</xsl:text></xsl:attribute>\n"
" </attribute>\n"
" </xsl:if>\n"
" </restriction>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:if test=\"@base\">\n"
" <restriction base=\"enc:Struct\">\n"
" <sequence>\n"
" <element name=\"item\" type=\"\">\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"@base\"/></xsl:attribute>\n"
" </element>\n"
" </sequence>\n"
" </restriction>\n"
" </xsl:if>\n"
" <xsl:if test=\"not (@base)\">\n"
" <sequence>\n"
" <element error=\"No sequence/element defined or base attribute supplied\"/>\n"
" </sequence>\n"
" </xsl:if>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:template>\n"
" <xsl:template match=\"extension\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"not boolean ($udt_struct)\">\n"
" <xsl:variable name=\"ext\" select=\"vs:getExtension (@base)\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"$ext//xs:element or xs:sequence/xs:element\">\n"
" <restriction base=\"enc:Struct\">\n"
" <sequence>\n"
" <xsl:apply-templates select=\"$ext//xs:element\">\n"
" <xsl:with-param name=\"namespace\" select=\"concat($ext/*/@targetNamespace,':',$ext/*/@name)\"/>\n"
" </xsl:apply-templates>\n"
" <xsl:apply-templates select=\"xs:sequence/*\"/>\n"
" </sequence>\n"
" </restriction>\n"
" </xsl:when>\n"
" <xsl:when test=\"$ext//xs:simpleContent\">\n"
" <restriction base=\"enc:Struct\">\n"
" <xsl:apply-templates select=\"$ext//xs:simpleContent/xs:attribute\"/>\n"
" <xsl:apply-templates select=\"xs:attribute\"/>\n"
" </restriction>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:message terminate=\"no\"><xsl:copy-of select=\"vs:getExtension (@base)\"/></xsl:message>\n"
" <extension>\n"
" <xsl:attribute name=\"error\">The 'extension' element [<xsl:value-of select=\"@base\"/>] can not be found when expanding <xsl:value-of select=\"ancestor::*[@name]/@name\"/></xsl:attribute>\n"
" </extension>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\"/>\n"
" <xsl:apply-templates select=\"node()\">\n"
" <xsl:with-param name=\"min\">1</xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </xsl:copy>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:template>\n"
" <xsl:template match=\"attribute\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@arrayType\">\n"
" <attribute ref=\"enc:arrayType\" wsdl:arrayType=\"\">\n"
" <xsl:attribute name=\"wsdl:arrayType\"><xsl:value-of select=\"@arrayType\"/></xsl:attribute>\n"
" </attribute>\n"
" </xsl:when>\n"
" <xsl:when test=\"@ref\">\n"
" <xsl:copy>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"vi:split-name(@ref, 1)\"/></xsl:attribute>\n"
" <xsl:attribute name=\"type\">string</xsl:attribute>\n"
" </xsl:copy>\n"
" </xsl:when>\n"
" <xsl:when test=\"@type and @name\">\n"
" <xsl:copy-of select=\".|@*\"/>\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" </xsl:template>\n"
" <xsl:template match=\"sequence\">\n"
" <xsl:param name=\"min\" select=\"0\"/>\n"
" <xsl:param name=\"cmpc\" select=\"''\"/>\n"
" <xsl:param name=\"ext\" select=\"0\"/>\n"
" <xsl:param name=\"attr\" select=\"''\"/>\n"
" <xsl:if test=\"$cmpc!=''\">\n"
" <xsl:if test=\"$ext='0'\">\n"
" <complexContent>\n"
" <restriction base=\"enc:Struct\">\n"
" <xsl:attribute name=\"base\"><xsl:choose><xsl:when test=\"count(element) > 1 or boolean($udt_struct) or choice\">http://schemas.xmlsoap.org/soap/encoding/:Struct</xsl:when><xsl:otherwise>http://schemas.xmlsoap.org/soap/encoding/:Array</xsl:otherwise></xsl:choose></xsl:attribute>\n"
" <xsl:if test=\"choice\">\n"
" <xsl:attribute name=\"choice\">1</xsl:attribute>\n"
" </xsl:if>\n"
" <sequence>\n"
" <xsl:apply-templates select=\"element|any|choice\">\n"
" <xsl:with-param name=\"min\">\n"
" <xsl:value-of select=\"$min\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </sequence>\n"
" </restriction>\n"
" </complexContent>\n"
" </xsl:if>\n"
" <xsl:if test=\"$ext!='0'\">\n"
" <complexContent>\n"
" <extension base=\"enc:Struct\">\n"
" <sequence>\n"
" <xsl:apply-templates select=\"element|any|choice\">\n"
" <xsl:with-param name=\"min\">\n"
" <xsl:value-of select=\"$min\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </sequence>\n"
" <xsl:copy-of select=\"$attr\"/>\n"
" </extension>\n"
" </complexContent>\n"
" </xsl:if>\n"
" </xsl:if>\n"
" <xsl:if test=\"$cmpc=''\">\n"
" <sequence>\n"
" <xsl:apply-templates select=\"element|any|choice\">\n"
" <xsl:with-param name=\"min\">\n"
" <xsl:value-of select=\"$min\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </sequence>\n"
" </xsl:if>\n"
" </xsl:template>\n"
" <xsl:template match=\"element\">\n"
" <xsl:param name=\"min\" select=\"0\"/>\n"
" <xsl:param name=\"namespace\" select=\"''\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"complexType\">\n"
" <element>\n"
" <xsl:copy-of select=\"@*\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"$any_type and complexType/sequence/any\" >\n"
" <xsl:attribute name=\"type\">__ANY__</xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:when test=\"complexType\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@targetNamespace != ''\">\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"@targetNamespace\"/>:elementType__<xsl:value-of select=\"@name\"/></xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:attribute name=\"targetNamespace\"><xsl:value-of select=\"$target_Namespace\"/></xsl:attribute>\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"$target_Namespace\"/>:elementType__<xsl:value-of select=\"@name\"/></xsl:attribute>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" </element>\n"
" </xsl:when>\n"
" <xsl:when test=\"simpleType/restriction[@base]\">\n"
" <element>\n"
" <xsl:copy-of select=\"@*\"/>\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"simpleType/restriction/@base\"/></xsl:attribute>\n"
" </element>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <element>\n"
" <xsl:choose>\n"
" <xsl:when test=\"boolean (@ref)\">\n"
" <xsl:attribute name=\"ref\"><xsl:value-of select=\"@ref\"/></xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"@name\"/></xsl:attribute>\n"
" <xsl:choose>\n"
" <xsl:when test=\"boolean(@type)\">\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"@type\"/></xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:attribute name=\"type\">__ANY__</xsl:attribute>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:if test=\"@form\">\n"
" <xsl:attribute name=\"form\"><xsl:value-of select=\"@form\"/></xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:attribute name=\"nillable\"><xsl:value-of select=\"boolean(@nillable = 1 or @nillable = 'true')\"/></xsl:attribute>\n"
" <xsl:copy-of select=\"@minOccurs\"/>\n"
" <xsl:copy-of select=\"@maxOccurs\"/>\n"
" <xsl:if test=\"not @minOccurs\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::*[@minOccurs]\">\n"
" <xsl:copy-of select=\"parent::*/@minOccurs\"/>\n"
" </xsl:when>\n"
" <xsl:when test=\"ancestor::*[@base='http://schemas.xmlsoap.org/soap/encoding/:Array']\">\n"
" <xsl:attribute name=\"minOccurs\">0</xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:attribute name=\"minOccurs\">1</xsl:attribute>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:if>\n"
" <xsl:if test=\"not @maxOccurs\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::*[@maxOccurs]\">\n"
" <xsl:copy-of select=\"parent::*/@maxOccurs\"/>\n"
" </xsl:when>\n"
" <xsl:when test=\"ancestor::*[@base='http://schemas.xmlsoap.org/soap/encoding/:Array']\">\n"
" <xsl:attribute name=\"maxOccurs\">unbounded</xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:attribute name=\"maxOccurs\">1</xsl:attribute>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:if>\n"
" <xsl:if test=\"./child::*\">\n"
" <xsl:attribute name=\"error\">The definitions cannot be implied</xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:if test=\"$namespace != ''\">\n"
" <xsl:attribute name=\"namespace\"><xsl:value-of select=\"$namespace\"/></xsl:attribute>\n"
" </xsl:if>\n"
" </element>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:template>\n"
" <xsl:template match=\"all\">\n"
" <complexContent>\n"
" <restriction base=\"enc:Struct\">\n"
" <sequence>\n"
" <xsl:apply-templates select=\"element|any\">\n"
" <xsl:with-param name=\"min\">\n"
" <xsl:value-of select=\"$min\"/>\n"
" </xsl:with-param>\n"
" </xsl:apply-templates>\n"
" </sequence>\n"
" </restriction>\n"
" </complexContent>\n"
" </xsl:template>\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* soap_import_sch.xsl */
static const char *xsl8[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:types=\"http://soapinterop.org/attachments/xsd\"\n"
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"\n"
" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\n"
" xmlns:dime=\"http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/\"\n"
" xmlns:content=\"http://schemas.xmlsoap.org/ws/2002/04/content-type/\"\n"
" xmlns:ref=\"http://schemas.xmlsoap.org/ws/2002/04/reference/\">\n"
" <xsl:output method=\"xml\" indent=\"yes\" omit-xml-declaration=\"yes\"/>\n"
"\n"
" <xsl:param name=\"tns\" select=\"//xsd:schema/@targetNamespace\"/>\n"
"\n"
" <xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"*\" />\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"xsd:schema\">\n"
" <xsl:apply-templates select=\"xsd:complexType[not xsd:complexContent/xsd:extension]|xsd:simpleType|xsd:element|xsd:attribute\" />\n"
" <xsl:apply-templates select=\"xsd:complexType[xsd:complexContent/xsd:extension]\" />\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"xsd:complexType|xsd:simpleType|xsd:element|xsd:attribute\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\"/>\n"
" <xsl:attribute name=\"targetNamespace\"><xsl:value-of select=\"$tns\"/></xsl:attribute>\n"
" <xsl:apply-templates select=\"*\" mode=\"inside_type\" />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"xsd:annotation[not xsd:appinfo]|xsd:documentation\" mode=\"inside_type\"/>\n"
"\n"
" <xsl:template match=\"*\" mode=\"inside_type\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"*\" mode=\"inside_type\" />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"*\"/>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* wsdl_expand.xsl */
static const char *xsl9[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\n"
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"\n"
" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"
" xmlns:pl=\"http://schemas.xmlsoap.org/ws/2003/05/partner-link/\"\n"
" >\n"
"\n"
"<xsl:output method=\"xml\" omit-xml-declaration=\"no\" indent=\"yes\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
"<wsdl:definitions>\n"
" <xsl:attribute name=\"targetNamespace\"><xsl:value-of select=\"descendant-or-self::wsdl:definitions/@targetNamespace\" /></xsl:attribute>\n"
" <wsdl:types>\n"
" <xsl:apply-templates select=\"//xsd:schema\" mode=\"xsd\"/>\n"
" <xsl:apply-templates select=\"//wsdl:import\" mode=\"xsd\"/>\n"
" </wsdl:types>\n"
" <xsl:apply-templates select=\"node()\" />\n"
"</wsdl:definitions>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:import\">\n"
" <xsl:param name=\"topns\" />\n"
" <xsl:choose>\n"
" <xsl:when test=\"$topns != ''\">\n"
" <xsl:variable name=\"ns\" select=\"$topns\"/>\n"
" </xsl:when>\n"
" <xsl:when test=\"@namespace\">\n"
" <xsl:variable name=\"ns\" select=\"@namespace\"/>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"ns\" select=\"ancestor::wsdl:definitions/@targetNamespace\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@namespace\">\n"
" <xsl:variable name=\"ns1\" select=\"@namespace\"/>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"ns1\" select=\"ancestor::wsdl:definitions/@targetNamespace\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:variable name=\"doc\" select=\"document (@location)\"/>\n"
" <xsl:apply-templates select=\"$doc/*[@targetNamespace = $ns]\" >\n"
" <xsl:with-param name=\"topns\" select=\"$ns\" />\n"
" </xsl:apply-templates>\n"
" <xsl:apply-templates select=\"$doc//wsdl:import\" >\n"
" <xsl:with-param name=\"topns\" select=\"$ns1\" />\n"
" </xsl:apply-templates>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:definitions\">\n"
"<xsl:param name=\"topns\" />\n"
" <xsl:apply-templates select=\"node()\" >\n"
" <xsl:with-param name=\"topns\" select=\"$topns\" />\n"
" </xsl:apply-templates>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:portType|wsdl:binding|wsdl:message\">\n"
" <xsl:variable name=\"tns\" select=\"ancestor::wsdl:definitions/@targetNamespace\"/>\n"
" <xsl:variable name=\"localname\" select=\"@name\"/>\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"concat ($tns,':',$localname)\" /></xsl:attribute>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"pl:*\">\n"
" <xsl:copy>\n"
" <xsl:for-each select=\"@*\">\n"
" <xsl:attribute name=\"{local-name()}\"><xsl:value-of select=\"expand-qname (0, .)\"/></xsl:attribute>\n"
" </xsl:for-each>\n"
" <xsl:apply-templates select=\"*\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:types\" />\n"
"<xsl:template match=\"xsd:schema\" />\n"
"<xsl:template match=\"xsd:import[@schemaLocation]\" />\n"
"\n"
"<xsl:template match=\"xsd:schema\" mode=\"xsd\">\n"
" <xsl:for-each select=\"xsd:import\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@schemaLocation\">\n"
" <xsl:variable name=\"sch\" select=\"document(@schemaLocation)\"/>\n"
" <xsl:apply-templates select=\"$sch/*\" mode=\"xsd\"/>\n"
" </xsl:when>\n"
" <!--xsl:otherwise>\n"
" <xsl:variable name=\"lns\" select=\"@namespace\"/>\n"
" <xsl:apply-templates select=\"//xsd:schema[@targetNamespace = $lns]\" mode=\"xsd\"/>\n"
" </xsl:otherwise-->\n"
" </xsl:choose>\n"
" </xsl:for-each>\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"*\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:import\" mode=\"xsd\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@namespace\">\n"
" <xsl:variable name=\"ns\" select=\"@namespace\"/>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"ns\" select=\"ancestor::wsdl:definitions/@targetNamespace\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"\n"
" <xsl:variable name=\"doc\" select=\"document (@location)\"/>\n"
" <xsl:apply-templates select=\"$doc//xsd:schema[@targetNamespace = $ns]\" mode=\"xsd\"/>\n"
" <xsl:apply-templates select=\"$doc//wsdl:definitions[@targetNamespace = $ns]/wsdl:import\" mode=\"xsd\"/>\n"
" <xsl:apply-templates select=\"$doc//wsdl:import[@namespace=$ns]\" mode=\"xsd\"/>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* wsdl_parts.xsl */
static const char *xsl10[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\n"
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"\n"
" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"
" xmlns:vi=\"http://www.openlinksw.com/wsdl/\"\n"
" >\n"
"\n"
"<xsl:output method=\"xml\" omit-xml-declaration=\"no\" indent=\"yes\" />\n"
"\n"
"<xsl:param name=\"tns\" select=\"/wsdl:definitions/@targetNamespace\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"node()\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:part\">\n"
"<xsl:choose>\n"
"<xsl:when test=\"@type\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:when>\n"
"<xsl:when test=\"@element and @name != 'parameters'\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
" <!--wsdl:part>\n"
" <xsl:variable name=\"ename\" select=\"vi:split-name (@element, 1)\" />\n"
" <xsl:variable name=\"exsd\" select=\"vi:split-name (@element, 0)\" />\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"//xsd:schema[@targetNamespace = $exsd]/xsd:element[@name = $ename]/@name\" /></xsl:attribute>\n"
" <xsl:choose>\n"
" <xsl:when test=\"//xsd:schema[@targetNamespace = $exsd]/xsd:element[@name = $ename]/@type\">\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"//xsd:schema[@targetNamespace = $exsd]/xsd:element[@name = $ename]/@type\" /></xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:attribute name=\"type\"><xsl:value-of select=\"$exsd\"/>:elementType__<xsl:value-of select=\"//xsd:schema[@targetNamespace = $exsd]/xsd:element[@name = $ename]/@name\" /></xsl:attribute>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </wsdl:part-->\n"
"</xsl:when>\n"
"<xsl:when test=\"@element and @name = 'parameters'\">\n"
" <xsl:variable name=\"ename\" select=\"vi:split-name (@element, 1)\" />\n"
" <xsl:variable name=\"exsd\" select=\"vi:split-name (@element, 0)\" />\n"
" <xsl:for-each select=\"//xsd:schema[@targetNamespace = $exsd]/xsd:element[@name = $ename]\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"xsd:complexType//xsd:element\">\n"
" <xsl:for-each select=\"xsd:complexType//xsd:element\">\n"
" <wsdl:part>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@name\">\n"
" <xsl:attribute name=\"name\">\n"
" <xsl:value-of select=\"@name\"/>\n"
" </xsl:attribute>\n"
" <xsl:attribute name=\"type\">\n"
" <xsl:value-of select=\"@type\"/>\n"
" </xsl:attribute>\n"
" </xsl:when>\n"
" <xsl:when test=\"@ref\">\n"
" <xsl:variable name=\"rnam\" select=\"vi:split-name (@ref, 1)\" />\n"
" <xsl:variable name=\"rns\" select=\"vi:split-name (@ref, 0)\" />\n"
" <xsl:attribute name=\"name\">\n"
" <xsl:value-of select=\"$rnam\"/>\n"
" </xsl:attribute>\n"
" <xsl:attribute name=\"type\">\n"
" <xsl:value-of select=\"//xsd:schema[@targetNamespace = $rns]/xsd:element[@name=$rnam]/@type\"/>\n"
" </xsl:attribute>\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" </wsdl:part>\n"
" </xsl:for-each>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"tname\" select=\"vi:split-name (@type, 1)\" />\n"
" <xsl:variable name=\"txsd\" select=\"vi:split-name (@type, 0)\" />\n"
" <xsl:for-each select=\"//xsd:schema[@targetNamespace = $txsd]/xsd:complexType[@name = $tname]//xsd:element\">\n"
" <wsdl:part>\n"
" <xsl:attribute name=\"name\">\n"
" <xsl:value-of select=\"@name\"/>\n"
" </xsl:attribute>\n"
" <xsl:attribute name=\"type\">\n"
" <xsl:value-of select=\"@type\"/>\n"
" </xsl:attribute>\n"
" </wsdl:part>\n"
" </xsl:for-each>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:for-each>\n"
"</xsl:when>\n"
"<xsl:otherwise>\n"
" <xsl:apply-templates select=\"node()\" />\n"
"</xsl:otherwise>\n"
"</xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:operation[wsdl:input/soap:body]\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
"\n"
" <xsl:if test=\"not (wsdl:input/soap:body/@encodingStyle)\">\n"
" <xsl:variable name=\"opname\" select=\"@name\" />\n"
" <xsl:variable name=\"pname\" select=\"ancestor::wsdl:binding/@type\" />\n"
" <xsl:attribute name=\"enc\">\n"
" <xsl:for-each select=\"/wsdl:definitions/wsdl:portType[@name = $pname]/wsdl:operation[@name = $opname]\">\n"
" <xsl:variable name=\"msg\" select=\"wsdl:input/@message\"/>\n"
" <xsl:value-of select=\"boolean (/wsdl:definitions/wsdl:message[@name = $msg]/part[1]/@name = 'parameters')\" />\n"
" </xsl:for-each>\n"
" </xsl:attribute>\n"
" <xsl:if test=\"/wsdl:definitions/wsdl:message[@name = $msg]/part[1]/@name = 'parameters'\">\n"
" <xsl:attribute name=\"elnamespace\">\n"
" <xsl:value-of select=\"vi:split-name (/wsdl:definitions/wsdl:message[@name = $msg]/part[1]/@element, 0)\" />\n"
" </xsl:attribute>\n"
" <xsl:attribute name=\"form\">\n"
" <xsl:variable name=\"elname\" select=\"/wsdl:definitions/wsdl:message[@name = $msg]/part[1]/@element\" />\n"
" <xsl:variable name=\"elname0\" select=\"vi:split-name ($elname, 0)\" />\n"
" <xsl:variable name=\"elname1\" select=\"vi:split-name ($elname, 1)\" />\n"
" <xsl:value-of select=\"/wsdl:definitions/wsdl:types/xsd:schema[ @targetNamespace = $elname0 and xsd:element[ @name = $elname1 ] ]/@elementFormDefault\"/>\n"
" </xsl:attribute>\n"
"\n"
" </xsl:if>\n"
" </xsl:if>\n"
"\n"
" <xsl:if test=\"not (wsdl:input/soap:body/@namespace)\">\n"
" <xsl:variable name=\"opname\" select=\"@name\" />\n"
" <xsl:variable name=\"pname\" select=\"ancestor::wsdl:binding/@type\" />\n"
" <xsl:attribute name=\"namespace\">\n"
" <xsl:for-each select=\"/wsdl:definitions/wsdl:portType[@name = $pname]/wsdl:operation[@name = $opname]\">\n"
" <xsl:variable name=\"msg\" select=\"wsdl:input/@message\"/>\n"
" <xsl:value-of select=\"vi:split-name (/wsdl:definitions/wsdl:message[@name = $msg]/part[1]/@element, 0)\" />\n"
" </xsl:for-each>\n"
" </xsl:attribute>\n"
" </xsl:if>\n"
"\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* wsdl_import.xsl */
static const char *xsl11[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\n"
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"\n"
" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"
" xmlns:vi=\"http://www.openlinksw.com/wsdl/\"\n"
" >\n"
"<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"yes\" />\n"
"\n"
"<xsl:param name=\"tns\" select=\"/wsdl:definitions/@targetNamespace\" />\n"
"<xsl:param name=\"wsdlURI\" />\n"
"<xsl:template match=\"/\">\n"
"-- Automatically generated code\n"
"-- imported from WSDL URI: \"<xsl:value-of select=\"$wsdlURI\" />\"\n"
" <xsl:apply-templates select=\"*\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:definitions\">\n"
" <xsl:apply-templates select=\"*\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:service\">\n"
"<xsl:variable name=\"classname\" select=\"@name\" />\n"
"<xsl:for-each select=\"wsdl:port[soap:address]\">\n"
"<xsl:variable name=\"binded\" select=\"@binding\" />\n"
"<xsl:choose>\n"
"<xsl:when test=\"position() = 1\">\n"
"<xsl:variable name=\"sname\" select=\"$classname\" />\n"
"</xsl:when>\n"
"<xsl:otherwise>\n"
"<xsl:variable name=\"sname\" select=\"concat ($classname,position())\" />\n"
"</xsl:otherwise>\n"
"</xsl:choose>\n"
"-- UDT class\n"
"drop type \"<xsl:value-of select=\"$sname\"/>\"\n"
";\n",
"\n"
"create type \"<xsl:value-of select=\"$sname\"/>\"\n"
" as\n"
" (\n"
" debug int default 0,\n"
" url varchar default '<xsl:value-of select=\"soap:address/@location\" />',\n"
" ticket varchar default null,\n"
" request varchar,\n"
" response varchar\n"
" )\n"
"-- Binding: \"<xsl:value-of select=\"$binded\" />\"\n"
"<xsl:apply-templates select=\"/wsdl:definitions/wsdl:binding[@name=$binded]\" mode=\"declare\" />\n"
"method style () returns any\n"
";\n",
"\n"
"-- Methods\n"
"<xsl:apply-templates select=\"/wsdl:definitions/wsdl:binding[@name=$binded]\" mode=\"define\" ><xsl:with-param name=\"class\" select=\"$sname\"/></xsl:apply-templates>\n"
"</xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:binding\" mode=\"declare\" >\n"
" <xsl:apply-templates select=\"wsdl:*\" mode=\"declare\">\n"
" <xsl:with-param name=\"portname\" select=\"@type\" />\n"
" <xsl:with-param name=\"bindname\" select=\"@name\" />\n"
" </xsl:apply-templates>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:binding\" mode=\"define\" >\n"
" <xsl:apply-templates select=\"wsdl:*\" mode=\"define\">\n"
" <xsl:with-param name=\"portname\" select=\"@type\" />\n"
" <xsl:with-param name=\"bindname\" select=\"@name\" />\n"
" <xsl:with-param name=\"class\" select=\"$class\" />\n"
" </xsl:apply-templates>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:operation\" mode=\"declare\" >\n"
"<xsl:variable name=\"opname\" select=\"@name\" />\n"
"<xsl:variable name=\"oper\" select=\".\" />\n"
"method \"<xsl:value-of select=\"@name\" />\"\n"
" (\n"
"<xsl:apply-templates select=\"/wsdl:definitions/wsdl:portType[@name = $portname]/wsdl:operation[@name = $opname]\" mode=\"params\" >\n"
" <xsl:with-param name=\"bindname\" select=\"$bindname\" />\n"
" <xsl:with-param name=\"oper\" select=\"$oper\" />\n"
" </xsl:apply-templates>\n"
" ) returns any,\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:operation\" mode=\"define\" >\n"
"<xsl:variable name=\"opname\" select=\"@name\" />\n"
"<xsl:variable name=\"oper\" select=\".\" />\n"
"create method \"<xsl:value-of select=\"@name\" />\"\n"
" (\n"
"<xsl:apply-templates select=\"/wsdl:definitions/wsdl:portType[@name = $portname]/wsdl:operation[@name = $opname]\" mode=\"def_params\" >\n"
" <xsl:with-param name=\"bindname\" select=\"$bindname\" />\n"
" <xsl:with-param name=\"oper\" select=\"$oper\" />\n"
" </xsl:apply-templates>\n"
" )\n"
" <xsl:text>__soap_type '__VOID__' </xsl:text>\n"
"for \"<xsl:value-of select=\"$class\" />\"\n"
"{\n"
" declare action, namespace, enc varchar;\n"
" declare style, form int;\n"
" declare _result, _body, xe any;\n"
" action := '<xsl:value-of select=\"soap:operation/@soapAction\" />';\n"
" <xsl:choose>\n"
" <xsl:when test=\"@elnamespace and @enc = 1\">\n"
" namespace := '<xsl:value-of select=\"@elnamespace\" />';\n"
" form := <xsl:value-of select=\"boolean (@form = 'qualified')\" />;\n"
" </xsl:when>\n"
" <xsl:when test=\"wsdl:input/soap:body/@namespace\">\n"
" namespace := '<xsl:value-of select=\"wsdl:input/soap:body/@namespace\" />';\n"
" form := 0;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" namespace := '<xsl:value-of select=\"@namespace\" />';\n"
" form := 0;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:choose>\n"
" <xsl:when test=\"wsdl:input/soap:body/@encodingStyle\" >\n"
" style := 0;\n"
" </xsl:when>\n"
" <xsl:when test=\"@enc = 1\" >\n"
" style := 5;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" style := 1;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" if (self.debug)\n"
" style := style + 2;\n"
" style := style + (form * 16);\n"
" _result := DB.DBA.SOAP_CLIENT (\n"
" url=>self.url,\n"
" operation=>'<xsl:value-of select=\"@name\" />',\n"
" soap_action=>action,\n"
" target_namespace=>namespace,\n"
" parameters=>vector\n"
" (\n"
"<xsl:apply-templates select=\"/wsdl:definitions/wsdl:portType[@name=$portname]/wsdl:operation[@name = $opname]\" mode=\"val_params\" />\n"
" ),\n"
" headers=>vector\n"
" (\n"
"<xsl:call-template name=\"header_params\" />\n"
" ),\n"
" style=>style,\n"
" ticket=>self.ticket\n"
" );\n"
" if (self.debug)\n"
" {\n"
" _body := _result[0];\n"
" self.request := _result[1];\n"
" self.response := _result[2];\n"
" }\n"
" else\n"
" _body := _result;\n"
" xe := xml_cut (xml_tree_doc (_body));\n"
" if (xpath_eval ('[ xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\" ] //SOAP:Fault', xe, 1) is null)\n"
" {\n"
"<xsl:apply-templates select=\"/wsdl:definitions/wsdl:portType[@name=$portname]/wsdl:operation[@name = $opname]\" mode=\"ret_params\" /><xsl:text> </xsl:text>;\n"
" }\n"
" return _result;\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:operation\" mode=\"params\" >\n"
"<xsl:variable name=\"inmsg\" select=\"wsdl:input/@message\"/>\n"
"<xsl:variable name=\"outmsg\" select=\"wsdl:output/@message\"/>\n"
"<xsl:variable name=\"inhdr\" select=\"$oper/input/header/@message\"/>\n"
"<xsl:variable name=\"outhdr\" select=\"$oper/output/header/@message\"/>\n"
"<xsl:for-each select=\"/wsdl:definitions/wsdl:message[@name = $inmsg or @name = $outmsg or @name = $inhdr or @name = $outhdr]/part\" >\n"
"<xsl:choose>\n"
"<xsl:when test=\"parent::wsdl:message[@name = $inmsg or @name = $inhdr]\">\n"
"<xsl:variable name=\"partname\" select=\"''\"/>\n"
"</xsl:when>\n"
"<xsl:otherwise>\n"
"<xsl:variable name=\"partname\" select=\"@name\"/>\n"
"</xsl:otherwise>\n"
"</xsl:choose>\n"
"<xsl:if test=\"not(/wsdl:definitions/wsdl:message[@name = $inmsg or @name = $inhdr]/part[@name=$partname])\">\n"
"<xsl:text> </xsl:text>\"<xsl:value-of select=\"@name\" />\" any<xsl:if test=\"position() < last()\">,\n"
"</xsl:if>\n"
"</xsl:if>\n"
"</xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:operation\" mode=\"def_params\" >\n"
"<xsl:variable name=\"inmsg\" select=\"wsdl:input/@message\"/>\n"
"<xsl:variable name=\"outmsg\" select=\"wsdl:output/@message\"/>\n"
"<xsl:variable name=\"inhdr\" select=\"$oper/input/header/@message\"/>\n"
"<xsl:variable name=\"outhdr\" select=\"$oper/output/header/@message\"/>\n"
"<xsl:for-each select=\"/wsdl:definitions/wsdl:message[@name = $inmsg or @name = $outmsg or @name = $inhdr or @name = $outhdr]/part\" >\n"
" <xsl:variable name=\"myname\" select=\"@name\"/>\n"
"<xsl:choose>\n"
"<xsl:when test=\"parent::wsdl:message[@name = $inmsg or @name = $inhdr]\">\n"
" <xsl:variable name=\"partname\" select=\"''\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"/wsdl:definitions/wsdl:message[@name = $outmsg or @name = $outhdr]/part[@name=$myname]\">\n"
" <xsl:variable name=\"partty\" select=\"'inout'\"/>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"partty\" select=\"'in'\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:when>\n"
"<xsl:otherwise>\n"
"<xsl:variable name=\"partname\" select=\"@name\"/>\n"
" <xsl:variable name=\"partty\" select=\"'out'\"/>\n"
"</xsl:otherwise>\n"
"</xsl:choose>\n"
"<xsl:if test=\"not(/wsdl:definitions/wsdl:message[@name = $inmsg]/part[@name=$partname])\">\n"
" <xsl:text> </xsl:text><xsl:value-of select=\"$partty\"/><xsl:text> \"</xsl:text>\n"
" <xsl:value-of select=\"@name\" /><xsl:text>\" any </xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"/wsdl:definitions/wsdl:message[@name = $inhdr or @name = $outhdr]/part[@name=$myname]\">\n"
" <xsl:variable name=\"ishdr\" select=\"true()\"/>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"ishdr\" select=\"false()\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:call-template name=\"soap_dt\">\n"
" <xsl:with-param name=\"ishdr\" select=\"$ishdr\"/>\n"
" </xsl:call-template>\n"
" <xsl:if test=\"position() < last()\">,\n"
"</xsl:if>\n"
"</xsl:if>\n"
"</xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"soap_dt\">\n"
" <xsl:if test=\"@type != '' or @element != ''\">\n"
" <xsl:text> </xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"$ishdr\">__soap_header</xsl:when>\n"
" <xsl:otherwise>__soap_type</xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:text> '</xsl:text><xsl:call-template name=\"par_type\"/><xsl:text>'</xsl:text>\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"header_params\">\n"
" <xsl:for-each select=\"wsdl:input/header\">\n"
" <xsl:variable name=\"part\" select=\"@part\"/>\n"
" <xsl:variable name=\"message\" select=\"@message\"/>\n"
" <xsl:for-each select=\"/wsdl:definitions/wsdl:message[@name = $message]/part[@name=$part]\">\n"
" <xsl:text> </xsl:text>vector('<xsl:value-of select=\"@name\" />', '<xsl:call-template name=\"par_type\"/>'), \"<xsl:value-of select=\"@name\" /><xsl:text>\"</xsl:text>\n"
" </xsl:for-each><xsl:if test=\"position() < last()\">,\n"
"</xsl:if>\n"
" </xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:operation\" mode=\"val_params\" >\n"
"<xsl:variable name=\"inmsg\" select=\"wsdl:input/@message\"/>\n"
"<xsl:for-each select=\"/wsdl:definitions/wsdl:message[@name = $inmsg]/part\" >\n"
"<xsl:text> </xsl:text>vector('<xsl:value-of select=\"@name\" />', '<xsl:call-template name=\"par_type\"/>'), \"<xsl:value-of select=\"@name\" />\" <xsl:if test=\"position() < last()\">,\n"
"</xsl:if>\n"
"</xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"wsdl:operation\" mode=\"ret_params\" >\n"
"<xsl:variable name=\"msg\" select=\"wsdl:output/@message\"/>\n"
"<xsl:for-each select=\"/wsdl:definitions/wsdl:message[@name = $msg]/part\" >\n"
" <xsl:text> declare temp any; </xsl:text>\n"
" <xsl:text> temp:= </xsl:text> xpath_eval ('//<xsl:call-template name=\"xpf_elm\"/>', xe, 1); if (temp is NULL) return NULL;\n"
" <xsl:text> </xsl:text>\"<xsl:value-of select=\"@name\" />\" := xml_cut (temp);\n"
" <xsl:if test=\"@type != '' or @element != ''\">\n"
" <xsl:text> </xsl:text>\"<xsl:value-of select=\"@name\" />\" := soap_box_xml_entity_validating (\"<xsl:value-of select=\"@name\" />\", '<xsl:call-template name=\"par_type\"/>', <xsl:call-template name=\"type_mode\"/>);\n"
" </xsl:if>\n"
"</xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"par_type\">\n"
"<xsl:choose>\n"
"<xsl:when test=\"@type\">\n"
"<xsl:value-of select=\"@type\" />\n"
"</xsl:when>\n"
"<xsl:when test=\"@element\">\n"
"<xsl:value-of select=\"@element\" />\n"
"</xsl:when>\n"
"</xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"xpf_elm\">\n"
"<xsl:choose>\n"
"<xsl:when test=\"@type\"><xsl:value-of select=\"@name\" /></xsl:when>\n"
"<xsl:when test=\"@element\"><xsl:value-of select=\"vi:split-name(@element,1)\" /></xsl:when>\n"
"</xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"type_mode\">\n"
"<xsl:choose>\n"
"<xsl:when test=\"@type\">0</xsl:when>\n"
"<xsl:when test=\"@element\">1</xsl:when>\n"
"</xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\"/>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* wsdl2rdf.xsl */
static const char *xsl12[]= {
"<?xml version=\"1.0\" ?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<!DOCTYPE xsl:stylesheet [\n"
"<!ENTITY rdf \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n"
"<!ENTITY rdfs \"http://www.w3.org/2000/01/rdf-schema#\">\n"
"<!ENTITY wsdlr \"http://www.w3.org/ns/wsdl-rdf#\">\n"
"<!ENTITY wsdl \"http://www.w3.org/2006/01/wsdl\">\n"
"<!ENTITY wsoap \"http://www.w3.org/ns/wsdl/soap\">\n"
"]>\n"
"<xsl:stylesheet version=\"1.0\"\n"
" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" xmlns:rdf=\"&rdf;\"\n"
" xmlns:rdfs=\"&rdfs;\"\n"
" xmlns:wsdlr=\"&wsdlr;\"\n"
" xmlns:wsoap=\"&wsoap;\"\n"
" xmlns:wsdl=\"&wsdl;\"\n"
" >\n"
" <xsl:output method=\"xml\" indent=\"yes\" media-type=\"application/rdf+xml\" />\n"
" <xsl:variable name=\"ns\" select=\"/wsdl:description/@targetNamespace\"/>\n"
" <xsl:variable name=\"uc\">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>\n"
" <xsl:variable name=\"lc\">abcdefghijklmnopqrstuvwxyz</xsl:variable>\n"
"\n"
" <xsl:template match=\"wsdl:description\">\n"
" <rdf:RDF>\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"iri\"/></xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;Description\"/>\n"
" <xsl:apply-templates mode=\"inner\"/>\n"
" </rdf:Description>\n"
" <xsl:for-each select=\"wsdl:interface/wsdl:operation/wsdl:*/@element\">\n"
" <xsl:variable name=\"qn\" select=\"expand-qname (0, .)\"/>\n"
" <rdf:Description rdf:about=\"{$qn}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;QName\"/>\n"
" <wsdlr:localName><xsl:value-of select=\"substring-after (., ':')\"/></wsdlr:localName>\n"
" <wsdlr:namespace rdf:resource=\"{substring-before($qn, concat (':', substring-after (., ':')))}\"/>\n"
" </rdf:Description>\n"
" </xsl:for-each>\n"
" <xsl:apply-templates/>\n"
" </rdf:RDF>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:interface\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"iri\"/></xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;Interface\"/>\n"
" <rdfs:label><xsl:value-of select=\"@name\"/></rdfs:label>\n"
" <xsl:apply-templates mode=\"intf-inner\"/>\n"
" </rdf:Description>\n"
" <xsl:apply-templates/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:operation\" mode=\"intf-inner\">\n"
" <wsdlr:interfaceOperation>\n"
" <xsl:attribute name=\"resource\" namespace=\"&rdf;\">\n"
" <xsl:call-template name=\"op-iri\"/>\n"
" </xsl:attribute>\n"
" </wsdlr:interfaceOperation>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:operation[@name]\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"op-iri\"/></xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;InterfaceOperation\"/>\n"
" <rdfs:label><xsl:value-of select=\"@name\"/></rdfs:label>\n"
" <wsdlr:messageExchangePattern rdf:resource=\"{@pattern}\"/>\n"
" <wsdlr:operationStyle rdf:resource=\"{@style}\"/>\n"
" <xsl:apply-templates mode=\"op-inner\"/>\n"
" </rdf:Description>\n"
" <xsl:apply-templates/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:input|wsdl:output\" mode=\"op-inner\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"msg-iri\"/></xsl:variable>\n"
" <wsdlr:interfaceMessageReference rdf:resource=\"{$iri}\"/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:input|wsdl:output\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"msg-iri\"/></xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;InterfaceMessageReference\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"local-name() = 'input'\">\n"
" <rdf:type rdf:resource=\"&wsdlr;InputMessage\"/>\n"
" </xsl:when>\n"
" <xsl:when test=\"local-name() = 'output'\">\n"
" <rdf:type rdf:resource=\"&wsdlr;OutputMessage\"/>\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" <wsdlr:messageLabel rdf:resource=\"{../@pattern}#{@messageLabel}\"/>\n"
" <wsdlr:messageContentModel rdf:resource=\"&wsdlr;ElementContent\"/>\n"
" <wsdlr:elementDeclaration rdf:resource=\"{expand-qname (0, @element)}\"/>\n"
" </rdf:Description>\n"
" </xsl:template>\n"
"\n"
"\n"
" <xsl:template match=\"wsdl:fault\" mode=\"intf-inner\">\n"
" <wsdlr:interfaceFault>\n"
" <xsl:attribute name=\"resource\" namespace=\"&rdf;\">\n"
" <xsl:call-template name=\"op-iri\"/>\n"
" </xsl:attribute>\n"
" </wsdlr:interfaceFault>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:interface|wsdl:binding|wsdl:service\" mode=\"inner\">\n"
" <xsl:element name=\"{local-name(.)}\" namespace=\"&wsdlr;\">\n"
" <xsl:attribute name=\"resource\" namespace=\"&rdf;\">\n"
" <xsl:call-template name=\"iri\"/>\n"
" </xsl:attribute>\n"
" </xsl:element>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:binding\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"iri\"/></xsl:variable>\n"
" <xsl:variable name=\"if-name\" select=\"substring-after (@interface, ':')\"/>\n"
" <xsl:variable name=\"if-iri\">\n"
" <xsl:apply-templates select=\"//wsdl:interface[@name = $if-name]\" mode=\"get-iri\"/>\n"
" </xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;Binding\"/>\n"
" <rdf:type rdf:resource=\"{@type}\"/>\n"
" <rdfs:label><xsl:value-of select=\"@name\"/></rdfs:label>\n"
" <wsdlr:binds rdf:resource=\"{$if-iri}\"/>\n"
" <wsoap:protocol rdf:resource=\"{@wsoap:protocol}\"/>\n"
" <wsoap:version><xsl:value-of select=\"@wsoap:version\"/></wsoap:version>\n"
" <xsl:apply-templates mode=\"bind-inner\" />\n"
" </rdf:Description>\n"
" <xsl:apply-templates/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:operation\" mode=\"bind-inner\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"op-iri\"/></xsl:variable>\n"
" <wsdlr:bindingOperation rdf:resource=\"{$iri}\"/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:operation[@ref]\">\n"
" <xsl:variable name=\"op-name\" select=\"substring-after (@ref, ':')\"/>\n"
" <xsl:variable name=\"op-iri\">\n"
" <xsl:apply-templates select=\"//wsdl:operation[@name = $op-name]\" mode=\"get-iri\"/>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"op-iri\"/></xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;BindingOperation\"/>\n"
" <wsdlr:binds rdf:resource=\"{$op-iri}\"/>\n"
" </rdf:Description>\n"
" <xsl:apply-templates/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:interface\" mode=\"get-iri\">\n"
" <xsl:call-template name=\"iri\"/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:operation\" mode=\"get-iri\">\n"
" <xsl:call-template name=\"op-iri\"/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:binding\" mode=\"get-iri\">\n"
" <xsl:call-template name=\"iri\"/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:service\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"iri\"/></xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;Service\"/>\n"
" <rdfs:label><xsl:value-of select=\"@name\"/></rdfs:label>\n"
" <xsl:apply-templates mode=\"svc-inner\" />\n"
" <xsl:apply-templates select=\"//wsdl:interface\" mode=\"svc-inner\" />\n"
" </rdf:Description>\n"
" <xsl:apply-templates/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:endpoint\" mode=\"svc-inner\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"ep-iri\"/></xsl:variable>\n"
" <wsdlr:endpoint rdf:resource=\"{$iri}\"/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:interface\" mode=\"svc-inner\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"iri\"/></xsl:variable>\n"
" <wsdlr:implements rdf:resource=\"{$iri}\"/>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"wsdl:endpoint\">\n"
" <xsl:variable name=\"iri\"><xsl:call-template name=\"ep-iri\"/></xsl:variable>\n"
" <xsl:variable name=\"bnd-name\" select=\"substring-after (@binding, ':')\"/>\n"
" <xsl:variable name=\"bnd-iri\">\n"
" <xsl:apply-templates select=\"//wsdl:binding[@name = $bnd-name]\" mode=\"get-iri\"/>\n"
" </xsl:variable>\n"
" <rdf:Description rdf:about=\"{$iri}\">\n"
" <rdf:type rdf:resource=\"&wsdlr;Endpoint\"/>\n"
" <rdfs:label><xsl:value-of select=\"@name\"/></rdfs:label>\n"
" <wsdlr:address rdf:resource=\"{@address}\"/>\n"
" <wsdlr:usesBinding rdf:resource=\"{$bnd-iri}\"/>\n"
" </rdf:Description>\n"
" </xsl:template>\n"
"\n"
" <xsl:template name=\"msg-iri\">\n"
" <xsl:value-of select=\"$ns\"/>\n"
" <xsl:text>#wsdl.interfaceMessageReference</xsl:text>\n"
" <xsl:text>(</xsl:text>\n"
" <xsl:value-of select=\"../../@name\"/><xsl:text>/</xsl:text>\n"
" <xsl:value-of select=\"../@name\"/><xsl:text>/</xsl:text>\n"
" <xsl:value-of select=\"@messageLabel\"/>\n"
" <xsl:text>)</xsl:text>\n"
" </xsl:template>\n"
"\n"
" <xsl:template name=\"op-iri\">\n"
" <xsl:value-of select=\"$ns\"/>\n"
" <xsl:text>#wsdl.</xsl:text>\n"
" <xsl:value-of select=\"local-name(parent::*)\"/>\n"
" <xsl:value-of select=\"translate (substring (local-name(.), 1, 1), $lc, $uc)\"/>\n"
" <xsl:value-of select=\"substring (local-name(.), 2)\"/>\n"
" <xsl:text>(</xsl:text>\n"
" <xsl:value-of select=\"../@name\"/><xsl:text>/</xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@name\">\n"
" <xsl:value-of select=\"@name\"/>\n"
" </xsl:when>\n"
" <xsl:when test=\"@ref\">\n"
" <xsl:value-of select=\"substring-after (@ref, ':')\"/>\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" <xsl:text>)</xsl:text>\n"
" </xsl:template>\n"
"\n"
" <xsl:template name=\"ep-iri\">\n"
" <xsl:value-of select=\"$ns\"/>\n"
" <xsl:text>#wsdl.</xsl:text>\n"
" <xsl:value-of select=\"local-name(.)\"/>\n"
" <xsl:text>(</xsl:text>\n"
" <xsl:value-of select=\"../@name\"/><xsl:text>/</xsl:text>\n"
" <xsl:value-of select=\"@name\"/>\n"
" <xsl:text>)</xsl:text>\n"
" </xsl:template>\n"
"\n"
" <xsl:template name=\"iri\">\n"
" <xsl:value-of select=\"$ns\"/>\n"
" <xsl:text>#wsdl.</xsl:text>\n"
" <xsl:value-of select=\"local-name(.)\"/>\n"
" <xsl:text>(</xsl:text>\n"
" <xsl:value-of select=\"@name\"/>\n"
" <xsl:text>)</xsl:text>\n"
" </xsl:template>\n"
"\n"
" <xsl:template match=\"text()\" mode=\"inner\"/>\n"
" <xsl:template match=\"text()\" mode=\"op-inner\"/>\n"
" <xsl:template match=\"text()\" mode=\"intf-inner\"/>\n"
" <xsl:template match=\"text()\" mode=\"bind-inner\"/>\n"
" <xsl:template match=\"text()\" mode=\"svc-inner\"/>\n"
" <xsl:template match=\"text()\"/>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* xmlrpc_soap.xsl */
static const char *xsl13[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\n"
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"\n"
" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"
" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xmlns:vi=\"http://www.openlinksw.com/xmlrpc/\"\n"
" >\n"
"\n"
"<xsl:output method=\"xml\" omit-xml-declaration=\"no\" indent=\"yes\" />\n"
"\n"
"<xsl:param name=\"call\" select=\"''\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
" <SOAP:Envelope SOAP:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n"
" <SOAP:Body>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </SOAP:Body>\n"
" </SOAP:Envelope>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"methodCall\">\n"
"<xsl:element name=\"{methodName}\" namespace=\"\">\n"
" <xsl:apply-templates select=\"*\"><xsl:with-param name=\"method\" select=\"methodName\"/></xsl:apply-templates>\n"
"</xsl:element>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"methodResponse\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"fault\">\n"
" <xsl:apply-templates select=\"*\"><xsl:with-param name=\"method\" select=\"''\"/></xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:copy>\n"
" <xsl:apply-templates select=\"*\"><xsl:with-param name=\"method\" select=\"''\"/></xsl:apply-templates>\n"
" </xsl:copy>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"fault\">\n"
" <SOAP:Fault>\n"
" <faultcode><xsl:apply-templates select=\".//member[name='faultCode']/value\" mode=\"value\"/></faultcode>\n"
" <faultstring><xsl:apply-templates select=\".//member[name='faultString']/value\" mode=\"value\"/></faultstring>\n"
" <detail/>\n"
" </SOAP:Fault>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"params\">\n"
" <xsl:for-each select=\"param\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"$method != ''\">\n"
" <xsl:variable name=\"elname\" select=\"vi:getParamName ($method, position ())\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"elname\" select=\"concat ('Param', position ())\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:element name=\"{$elname}\">\n"
" <xsl:attribute name=\"type\" namespace=\"http://www.w3.org/2001/XMLSchema-instance\">\n"
" <xsl:apply-templates select=\"value\" mode=\"type\" />\n"
" </xsl:attribute>\n"
" <xsl:if test=\"value/array\">\n"
" <xsl:attribute name=\"arrayType\" namespace=\"http://schemas.xmlsoap.org/soap/encoding/\">\n"
" <xsl:apply-templates select=\"value/array/data/*[1]\" mode=\"type\" /><xsl:value-of select=\"concat('[',count(value/array/data/*),']')\" />\n"
" </xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"value\" mode=\"value\" />\n"
" </xsl:element>\n"
" </xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"value\" mode=\"type\">\n"
"<xsl:choose>\n"
"<xsl:when test=\"i4|int\">http://www.w3.org/2001/XMLSchema:int</xsl:when>\n"
"<xsl:when test=\"string\">http://www.w3.org/2001/XMLSchema:string</xsl:when>\n"
"<xsl:when test=\"double\">http://www.w3.org/2001/XMLSchema:double</xsl:when>\n"
"<xsl:when test=\"boolean\">http://www.w3.org/2001/XMLSchema:boolean</xsl:when>\n"
"<xsl:when test=\"local-name(*[1]) = 'dateTime.iso8601'\">http://www.w3.org/2001/XMLSchema:dateTime</xsl:when>\n"
"<xsl:when test=\"base64\">http://www.w3.org/2001/XMLSchema:base64Binary</xsl:when>\n"
"<xsl:when test=\"struct\">http://schemas.xmlsoap.org/soap/encoding/:Struct</xsl:when>\n"
"<xsl:when test=\"array\">http://schemas.xmlsoap.org/soap/encoding/:Array</xsl:when>\n"
"<xsl:otherwise>http://www.w3.org/2001/XMLSchema:string</xsl:otherwise>\n"
"</xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<!--xsl:comment><xsl:value-of select=\"value/i4\" /></xsl:comment-->\n"
"<xsl:template match=\"value\" mode=\"value\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"struct\">\n"
" <xsl:for-each select=\"struct/member\">\n"
" <xsl:variable name=\"mname\" select=\"vi:makeElementName (name)\"/>\n"
" <xsl:element name=\"{$mname}\">\n"
" <xsl:attribute name=\"type\" namespace=\"http://www.w3.org/2001/XMLSchema-instance\">\n"
" <xsl:apply-templates select=\"value\" mode=\"type\" />\n"
" </xsl:attribute>\n"
" <xsl:if test=\"value/array\">\n"
" <xsl:attribute name=\"arrayType\" namespace=\"http://schemas.xmlsoap.org/soap/encoding/\">\n"
" <xsl:apply-templates select=\"value/array/data/*[1]\" mode=\"type\" /><xsl:value-of select=\"concat('[',count(value/array/data/*),']')\" />\n"
" </xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"value\" mode=\"value\" />\n"
" </xsl:element>\n"
" </xsl:for-each>\n"
" </xsl:when>\n"
" <xsl:when test=\"array\">\n"
" <xsl:for-each select=\"array/data/value\">\n"
" <item>\n"
" <xsl:attribute name=\"type\" namespace=\"http://www.w3.org/2001/XMLSchema-instance\">\n"
" <xsl:apply-templates select=\".\" mode=\"type\" />\n"
" </xsl:attribute>\n"
" <xsl:apply-templates select=\".\" mode=\"value\" />\n"
" </item>\n"
" </xsl:for-each>\n"
" </xsl:when>\n"
" <xsl:when test=\"*\">\n"
" <xsl:apply-templates select=\"*\" mode=\"value\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:value-of select=\"text()\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\">\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
"\n"
,
NULL };
/* soap_xmlrpc.xsl */
static const char *xsl14[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\n"
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"\n"
" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"
" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xmlns:vi=\"http://www.openlinksw.com/xmlrpc/\"\n"
" >\n"
"\n"
"<xsl:output method=\"xml\" omit-xml-declaration=\"no\" indent=\"yes\" />\n"
"\n"
"<xsl:param name=\"call\" select=\"''\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"*\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"SOAP:Envelope\">\n"
" <xsl:apply-templates select=\"*\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"SOAP:Body\">\n"
"<xsl:choose>\n"
"<xsl:when test=\"$call != ''\">\n"
" <methodCall>\n"
" <methodName><xsl:value-of select=\"name(*[1])\" /></methodName>\n"
" <params>\n"
" <xsl:for-each select=\"*[1]/*\">\n"
" <param>\n"
" <value>\n"
" <xsl:apply-templates select=\".\" mode=\"value\" />\n"
" </value>\n"
" </param>\n"
" </xsl:for-each>\n"
" </params>\n"
" </methodCall>\n"
"</xsl:when>\n"
"<xsl:otherwise>\n"
" <methodResponse>\n"
" <params>\n"
" <xsl:for-each select=\"*[1]/*\">\n"
" <param>\n"
" <value>\n"
" <xsl:apply-templates select=\".\" mode=\"value\" />\n"
" </value>\n"
" </param>\n"
" </xsl:for-each>\n"
" </params>\n"
" </methodResponse>\n"
"</xsl:otherwise>\n"
"</xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"value\">\n"
"\n"
" <!--xsl:comment><xsl:value-of select=\"count(*)\" /></xsl:comment-->\n"
" <xsl:choose>\n"
" <xsl:when test=\"@xsi:type\">\n"
" <xsl:variable name=\"xsitype\" select=\"@xsi:type\"/>\n"
" </xsl:when>\n"
" <xsl:when test=\"parent::*[@soapenc:arrayType]/@xsi:type\">\n"
" <xsl:variable name=\"xsitype\" select=\"substring-before (parent::*[@soapenc:arrayType]/@xsi:type, '[')\"/>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"xsitype\" select=\"''\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"\n"
" <xsl:choose>\n"
" <xsl:when test=\"@soapenc:arrayType\">\n"
" <xsl:variable name=\"elname\" select=\"'array'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:string'\">\n"
" <xsl:variable name=\"elname\" select=\"'string'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:int'\">\n"
" <xsl:variable name=\"elname\" select=\"'i4'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:double'\">\n"
" <xsl:variable name=\"elname\" select=\"'double'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:decimal'\">\n"
" <xsl:variable name=\"elname\" select=\"'double'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:float'\">\n"
" <xsl:variable name=\"elname\" select=\"'double'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:boolean'\">\n"
" <xsl:variable name=\"elname\" select=\"'boolean'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:dateTime'\">\n"
" <xsl:variable name=\"elname\" select=\"'dateTime.iso8601'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"$xsitype = 'http://www.w3.org/2001/XMLSchema:base64Binary'\">\n"
" <xsl:variable name=\"elname\" select=\"'base64'\" />\n"
" </xsl:when>\n"
" <xsl:when test=\"*\">\n"
" <xsl:variable name=\"elname\" select=\"'struct'\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"elname\" select=\"'string'\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"\n"
" <xsl:element name=\"{$elname}\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"$elname = 'struct'\">\n"
" <xsl:for-each select=\"*\">\n"
" <xsl:if test=\"not boolean(number(@xsi:nil))\">\n"
" <member>\n"
" <name><xsl:value-of select=\"name()\" /></name>\n"
" <value><xsl:apply-templates select=\".\" mode=\"value\" /></value>\n"
" </member>\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
" </xsl:when>\n"
" <xsl:when test=\"$elname = 'array'\">\n"
" <data>\n"
" <xsl:for-each select=\"*\">\n"
" <value><xsl:apply-templates select=\".\" mode=\"value\" /></value>\n"
" </xsl:for-each>\n"
" </data>\n"
" </xsl:when>\n"
" <xsl:when test=\"$elname = 'dateTime.iso8601'\">\n"
" <xsl:variable name=\"dt\" select=\"vi:getGMTtime(.)\" />\n"
" <xsl:value-of select=\"concat (translate (substring-before($dt, 'T'), '-', ''), 'T', substring-after ($dt, 'T'))\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:value-of select=\".\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:element>\n"
"\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\">\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
"\n"
,
NULL };
/* soap12_router.xsl */
static const char *xsl15[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" -\n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" -\n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" -\n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" -\n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" -\n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" -\n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\"\n"
" xmlns:enc=\"http://www.w3.org/2003/05/soap-encoding\"\n"
" xmlns:rpc=\"http://www.w3.org/2003/05/soap-rpc\">\n"
" <xsl:output method=\"xml\" indent=\"yes\" />\n"
" <xsl:param name=\"this\" />\n"
" <xsl:param name=\"next\" select=\"'http://www.w3.org/2003/05/soap-encoding/role/next'\"/>\n"
" <xsl:template match=\"/\">\n"
" <env:Envelope>\n"
" <xsl:apply-templates />\n"
" </env:Envelope>\n"
" </xsl:template>\n"
" <xsl:template match=\"env:Envelope\">\n"
" <xsl:apply-templates />\n"
" </xsl:template>\n"
" <xsl:template match=\"*[@env:role = $this or @env:role = $next]\"/>\n"
" <xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* wsrm_ddl.sql */
static const char *udt0 =
"CREATE TYPE SOAP_CLIENT_REQ AS\n"
"(\n"
"url varchar,\n"
"operation varchar,\n"
"target_namespace varchar default null,\n"
"parameters any default null,\n"
"headers any default null,\n"
"soap_action varchar default \'\',\n"
"attachments any default null,\n"
"ticket any default null,\n"
"passwd varchar default null,\n"
"user_name varchar default null,\n"
"user_password varchar default null,\n"
"auth_type varchar default \'none\',\n"
"security_type varchar default \'sign\',\n"
"debug integer default 0,\n"
"template varchar default null,\n"
"style integer default 1,\n"
"version integer default 11,\n"
"direction integer default 0,\n"
"security_schema any default null\n"
")\n";
static const char *udt1 =
"create type WSA_CLI as\n"
"(\n"
"mid varchar default null,\n"
"\"to\" varchar default null,\n"
"\"from\" varchar default null,\n"
"action varchar default null,\n"
"fault_to varchar default null,\n"
"reply_to varchar default null\n"
")\n"
"constructor method WSA_CLI ()\n";
static const char *other13 =
"create constructor method WSA_CLI () for WSA_CLI\n"
"{\n"
"self.mid := lower (\'uuid:\' || uuid ());\n"
"}\n";
static const char *tbl2 =
"CREATE TABLE SYS_WSRM_IN_MESSAGE_LOG (\n"
"IML_INDENTIFIER varchar,\n"
"IML_MESSAGE_ID int NOT NULL,\n"
"IML_EXPIRE_DATE datetime,\n"
"IML_RECEIVE_DATE timestamp NOT NULL ,\n"
"IML_MESSAGE long varchar NOT NULL,\n"
"IML_EXECUTE_RESP long varchar,\n"
"IML_ADDRES long DB.DBA.WSA_CLI NOT NULL,\n"
"IML_STATE int default 0,\n"
"primary key (IML_INDENTIFIER, IML_MESSAGE_ID)\n"
")\n";
static const char *tbl3 =
"CREATE TABLE SYS_WSRM_IN_SEQUENCES\n"
"(\n"
"WIS_IDENTIFIER varchar,\n"
"WIS_VERSION varchar,\n"
"WIS_DELIVERY_ASSURANCE varchar,\n"
"WIS_SEQUENCE_EXPIRATION datetime,\n"
"WIS_INACTIVITY_TIMEOUT integer,\n"
"WIS_RETRANSMISSION_INTERVAL integer,\n"
"WIS_ACKNOWLEDGEMENT_INTERVAL integer,\n"
"WIS_ACK_SENT int default 0,\n"
"primary key (WIS_IDENTIFIER)\n"
")\n";
static const char *trig4 =
"#line 100 \"[executable]/wsrm_ddl.sql\"\n"
"create trigger SYS_WSRM_IN_SEQUENCES_D after delete on SYS_WSRM_IN_SEQUENCES\n"
"{\n"
"delete from SYS_WSRM_IN_MESSAGE_LOG where IML_INDENTIFIER = WIS_IDENTIFIER;\n"
"}\n"
"--src wsrm_ddl.sql:98\n";
static const char *tbl4 =
"CREATE TABLE SYS_WSRM_OUT_MESSAGE_LOG (\n"
"OML_INDENTIFIER varchar,\n"
"OML_MESSAGE_ID int NOT NULL,\n"
"OML_EXPIRE_DATE datetime,\n"
"OML_SEND_DATE timestamp NOT NULL,\n"
"OML_MESSAGE long DB.DBA.SOAP_CLIENT_REQ NOT NULL,\n"
"OML_ADDRESS long DB.DBA.WSA_CLI NOT NULL,\n"
"OML_STATE int,\n"
"OML_RESPONSE long xml,\n"
"primary key (OML_INDENTIFIER, OML_MESSAGE_ID)\n"
")\n";
static const char *tbl5 =
"CREATE TABLE SYS_WSRM_OUT_SEQUENCES\n"
"(\n"
"WOS_IDENTIFIER varchar,\n"
"WOS_VERSION varchar,\n"
"WOS_DELIVERY_ASSURANCE varchar,\n"
"WOS_SEQUENCE_EXPIRATION datetime,\n"
"WOS_INACTIVITY_TIMEOUT integer,\n"
"WOS_RETRANSMISSION_INTERVAL integer,\n"
"WOS_ACKNOWLEDGEMENT_INTERVAL integer,\n"
"WOS_LAST_SENT integer,\n"
"primary key (WOS_IDENTIFIER)\n"
")\n";
static const char *trig5 =
"#line 141 \"[executable]/wsrm_ddl.sql\"\n"
"create trigger SYS_WSRM_OUT_SEQUENCES_D after delete on SYS_WSRM_OUT_SEQUENCES\n"
"{\n"
"delete from SYS_WSRM_OUT_MESSAGE_LOG where OML_INDENTIFIER = WOS_IDENTIFIER;\n"
"}\n"
"--src wsrm_ddl.sql:139\n";
static const char *udt2 =
"create type soap_parameter as\n"
"(\n"
"s any default null,\n"
"param_type int default 1,\n"
"param_xsd varchar default null,\n"
"ver int default 11\n"
")\n"
"temporary self as ref\n"
"constructor method soap_complex_parameter (),\n"
"constructor method soap_simple_parameter (val any),\n"
"constructor method soap_array_parameter (n int),\n"
"constructor method soap_single_parameter (elm soap_parameter),\n"
"method get_length () returns any,\n"
"method add_member (name varchar, val any) returns any,\n"
"method set_member (name varchar, val any) returns any,\n"
"method set_member (pos int, val any) returns any,\n"
"method get_member (name varchar) returns any,\n"
"method get_member (pos int) returns any,\n"
"method get_value () returns any,\n"
"method set_value (val any) returns any,\n"
"method set_attribute (name varchar, val any) returns any,\n"
"method get_attribute (name varchar) returns any,\n"
"method get_call_param (name varchar) returns any,\n"
"method set_xsd (xsd varchar) returns any,\n"
"method deserialize (xs any, elem varchar) returns any,\n"
"method serialize (tag varchar) returns any,\n"
"method check_struct () returns any,\n"
"method check_simple () returns any,\n"
"method set_struct (s any) returns any\n";
static const char *other14 =
"create method check_struct () for soap_parameter\n"
"{\n"
"if (self.s is not null and self.param_type <> 1)\n"
"signal (\'22023\', \'Not structure\');\n"
"}\n";
static const char *other15 =
"create method check_simple () for soap_parameter\n"
"{\n"
"if (self.s is not null and self.param_type <> 0)\n"
"signal (\'22023\', \'Not simple type\');\n"
"}\n";
static const char *other16 =
"create method set_struct (in s any) for soap_parameter\n"
"{\n"
"self.s := s;\n"
"if (isarray (s) and length (s))\n"
"{\n"
"if (__tag (s[0]) = 255 and length (s) = 3)\n"
"self.param_type := 0;\n"
"else if (__tag (s[0]) = 255 and mod (length (s), 2) = 0)\n"
"self.param_type := 1;\n"
"else\n"
"self.param_type := 2;\n"
"}\n"
"}\n";
static const char *other17 =
"create constructor method soap_complex_parameter () for soap_parameter\n"
"{\n"
"self.s := vector (composite (), \'\');\n"
"}\n";
static const char *other18 =
"create constructor method soap_simple_parameter (in val any) for soap_parameter\n"
"{\n"
"self.s := vector (composite (), \'\', val);\n"
"self.param_type := 0;\n"
"}\n";
static const char *other19 =
"create constructor method soap_array_parameter (in n int) for soap_parameter\n"
"{\n"
"self.s := make_array (n, \'any\');\n"
"self.param_type := 2;\n"
"}\n";
static const char *other20 =
"create constructor method soap_single_parameter (in elm soap_parameter) for soap_parameter\n"
"{\n"
"self.s := vector (elm.s);\n"
"self.param_type := 2;\n"
"}\n";
static const char *other21 =
"create method get_length () for soap_parameter\n"
"{\n"
"if (self.s is null)\n"
"return 0;\n"
"\n"
"if (self.param_type)\n"
"return ((length (self.s) - 2) / 2);\n"
"\n"
"return length (self.s[2]);\n"
"}\n";
static const char *other22 =
"create method add_member (in name varchar, in val any) for soap_parameter\n"
"{\n"
"self.check_struct ();\n"
"if (__tag (val) = 206 and udt_instance_of (val, fix_identifier_case (\'DB.DBA.soap_parameter\')))\n"
"val := (val as soap_parameter).s;\n"
"self.s := vector_concat (self.s, vector (name, val));\n"
"}\n";
static const char *other23 =
"create method set_member (in name varchar, in val any) for soap_parameter\n"
"{\n"
"declare pos int;\n"
"self.check_struct ();\n"
"if (__tag (val) = 206 and udt_instance_of (val, fix_identifier_case (\'DB.DBA.soap_parameter\')))\n"
"val := (val as soap_parameter).s;\n"
"pos := position (name, self.s);\n"
"if (pos)\n"
"{\n"
"declare tmp any;\n"
"tmp := self.s;\n"
"tmp[pos] := val;\n"
"self.s := tmp;\n"
"}\n"
"else\n"
"self.add_member (name, val);\n"
"}\n";
static const char *other24 =
"create method set_member (in pos int, in val any) for soap_parameter\n"
"{\n"
"self.check_struct ();\n"
"if (pos >= self.get_length () or pos < 0)\n"
"signal (\'22023\', \'Bad range\');\n"
"\n"
"if (__tag (val) = 206 and udt_instance_of (val, fix_identifier_case (\'DB.DBA.soap_parameter\')))\n"
"val := (val as soap_parameter).s;\n"
"declare tmp any;\n"
"tmp := self.s;\n"
"tmp[((pos+1)*2)+1] := val;\n"
"self.s := tmp;\n"
"}\n";
static const char *other25 =
"create method get_member (in name varchar) for soap_parameter\n"
"{\n"
"self.check_struct ();\n"
"return get_keyword (name, self.s);\n"
"}\n";
static const char *other26 =
"create method get_member (in pos int) for soap_parameter\n"
"{\n"
"self.check_struct ();\n"
"return self.s[((pos+1)*2)+1];\n"
"}\n";
static const char *other27 =
"create method get_value () for soap_parameter\n"
"{\n"
"self.check_simple ();\n"
"return self.s[2];\n"
"}\n";
static const char *other28 =
"create method set_value (in val any) for soap_parameter\n"
"{\n"
"self.check_simple ();\n"
"declare tmp any;\n"
"tmp := self.s;\n"
"tmp[2] := val;\n"
"self.s := tmp;\n"
"}\n";
static const char *other29 =
"create method set_attribute (in name varchar, in val any) for soap_parameter\n"
"{\n"
"declare tmp, attr any;\n"
"declare pos int;\n"
"\n"
"tmp := self.s;\n"
"attr := tmp[1];\n"
"\n"
"if (not isarray (attr) or isstring (attr))\n"
"attr := vector ();\n"
"\n"
"pos := position (name, attr);\n"
"if (pos)\n"
"attr[pos] := val;\n"
"else\n"
"attr := vector_concat (attr, vector (name, val));\n"
"\n"
"tmp[1] := attr;\n"
"self.s := tmp;\n"
"}\n";
static const char *other30 =
"create method get_attribute (in name varchar) for soap_parameter\n"
"{\n"
"declare tmp, attr any;\n"
"tmp := self.s;\n"
"attr := tmp[1];\n"
"\n"
"if (not isarray (attr) or isstring (attr))\n"
"attr := vector ();\n"
"return get_keyword (name, attr);\n"
"}\n";
static const char *other31 =
"create method set_xsd (in xsd varchar) for soap_parameter\n"
"{\n"
"self.param_xsd := xsd;\n"
"}\n";
static const char *other32 =
"create method deserialize (in xs any, in elem varchar) for soap_parameter\n"
"{\n"
"declare xt, xp, val any;\n"
"xt := xml_tree_doc (xs);\n"
"xp := xpath_eval (\'//\'||elem, xt, 1);\n"
"if (xp is null)\n"
"{\n"
"self.s := vector ();\n"
"return;\n"
"}\n"
"\n"
"if (self.param_xsd is not null)\n"
"val := soap_box_xml_entity_validating (xml_cut(xp), self.param_xsd);\n"
"else\n"
"val := soap_box_xml_entity (xml_cut(xp), self.s, self.ver);\n"
"self.s := val;\n"
"}\n";
static const char *other33 =
"create method serialize (in tag varchar) for soap_parameter\n"
"{\n"
"if (self.param_xsd is not null)\n"
"return soap_print_box_validating (self.s, tag, self.param_xsd, 0, 0);\n"
"else\n"
"return soap_print_box (self.s, tag, self.ver);\n"
"}\n";
static const char *other34 =
"create method get_call_param (in name varchar) for soap_parameter\n"
"{\n"
"if (self.param_xsd is not null)\n"
"return vector (vector (name, self.param_xsd), self.s);\n"
"else\n"
"return vector (name, self.s);\n"
"}\n";
static const char *proc68 =
"#line 404 \"[executable]/wsrm_ddl.sql\"\n"
"create procedure WSRM_ENSURE_SCH ()\n"
"{\n"
"if (registry_get (\'__wsrm_version__\') = \'0.8\')\n"
"return;\n"
"\n"
"SOAP_LOAD_SCH (WSRM_WSRM_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_WSP_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_WSA_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_UTILITY_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_UTILITY200306_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_WSS_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_WSA200403_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_OASIS200401WSSUTILITY_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_ORABPEL_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_WSRM_2005_02_XSD (), null, 0, 0);\n"
"SOAP_LOAD_SCH (WSRM_WSA200408_XSD (), null, 0, 0);\n"
"\n"
"registry_set (\'__wsrm_version__\', \'0.8\');\n"
"}\n"
"--src wsrm_ddl.sql:402\n";
static const char *other35 =
" WSRM_ENSURE_SCH ()\n";
/* wsrm_xsd.sql */
static const char *proc69 =
"#line 8 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSRM_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xsd:schema\\n\', ses);\n"
"http (\' targetNamespace=\"http://schemas.xmlsoap.org/ws/2004/03/rm\"\\n\', ses);\n"
"http (\' xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\"\\n\', ses);\n"
"http (\' xmlns:wsrm=\"http://schemas.xmlsoap.org/ws/2004/03/rm\"\\n\', ses);\n"
"http (\' xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\\n\', ses);\n"
"http (\' xmlns:wssu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"\\n\', ses);\n"
"http (\' elementFormDefault=\"qualified\" attributeFormDefault=\"unqualified\">\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <!-- *** BASE ***\\n\', ses);\n"
"http (\' -->\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SequenceType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Identifier\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"MessageNumber\" type=\"xsd:unsignedLong\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"LastMessage\" type=\"xsd:ENTITY\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wssu:Id\" />\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SequenceTerminate_t\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Identifier\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wssu:Id\" />\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AcknowledgmentRange_t\">\\n\', ses);\n"
"http (\' <xsd:sequence/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Upper\" type=\"xsd:unsignedLong\" use=\"required\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Lower\" type=\"xsd:unsignedLong\" use=\"required\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SequenceAcknowledgment_t\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Identifier\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"AcknowledgmentRange\" type=\"wsrm:AcknowledgmentRange_t\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wssu:Id\" />\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SequenceAcknowledgement_t\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Identifier\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"AcknowledgementRange\" type=\"wsrm:AcknowledgmentRange_t\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wssu:Id\" />\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AckRequestedType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Identifier\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"Sequence\" type=\"wsrm:SequenceType\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"SequenceTerminate\" type=\"wsrm:SequenceTerminate_t\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"SequenceAcknowledgment\" type=\"wsrm:SequenceAcknowledgment_t\" />\\n\', ses);\n"
"http (\' <xsd:element name=\"SequenceAcknowledgement\" type=\"wsrm:SequenceAcknowledgement_t\" />\\n\', ses);\n"
"http (\' <xsd:element name=\"AckRequested\" type=\"wsrm:AckRequestedType\"/>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <!-- *** FAULTS ***\\n\', ses);\n"
"http (\' -->\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"FaultCodes\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:UnknownSequence\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:SequenceTerminated\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:InvalidAcknowledgement\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:MessageNumberRollover\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SequenceFaultType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Identifier\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"FaultCode\" type=\"wsrm:FaultCodes\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"SequenceFault\" type=\"wsrm:SequenceFaultType\"/>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <!-- *** ASSERTATIONS ***\\n\', ses);\n"
"http (\' -->\\n\', ses);\n"
"http (\' <xsd:complexType name=\"InactivityTimeout_t\">\\n\', ses);\n"
"http (\' <xsd:sequence/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Milliseconds\" type=\"xsd:unsignedLong\" use=\"required\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"BaseRetransmissionInterval_t\">\\n\', ses);\n"
"http (\' <xsd:sequence/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Milliseconds\" type=\"xsd:unsignedLong\" use=\"required\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AcknowledgementInterval_t\">\\n\', ses);\n"
"http (\' <xsd:sequence/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Milliseconds\" type=\"xsd:unsignedLong\" use=\"required\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"PolicyAssertionType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:any namespace=\"##other\" processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:anyAttribute namespace=\"##other\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"DeliveryAssuranceEnum\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:AtMostOnce\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:AtLeastOnce\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:ExactlyOnce\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:InOrder\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"DeliveryAssurance_t\">\\n\', ses);\n"
"http (\' <xsd:sequence/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Value\" type=\"xsd:QName\" use=\"required\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"InactivityTimeout\" type=\"wsrm:InactivityTimeout_t\" />\\n\', ses);\n"
"http (\' <xsd:element name=\"BaseRetransmissionInterval\" type=\"wsrm:BaseRetransmissionInterval_t\" />\\n\', ses);\n"
"http (\' <xsd:element name=\"ExponentialBackoff\" type=\"wsrm:PolicyAssertionType\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"AcknowledgementInterval\" type=\"wsrm:AcknowledgementInterval_t\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"DeliveryAssurance\" type=\"wsrm:DeliveryAssurance_t\"/>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <!-- *** Sequence Reference ***\\n\', ses);\n"
"http (\' -->\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SequenceRefType\">\\n\', ses);\n"
"http (\' <xsd:sequence />\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Identifier\" type=\"xsd:anyURI\" use=\"required\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Match\" type=\"wsrm:MatchChoiceType\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"MatchChoiceType\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:Exact\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsrm:Prefix\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\' <xsd:element name=\"SequenceRef\" type=\"wsrm:SequenceRefType\"/>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"CreateSequence\" type=\"wsrm:CreateSequenceType\"/>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"CreateSequenceType\">\\n\', ses);\n"
"http (\' <xsd:sequence />\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wssu:Id\" />\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:element name=\"CreateSequenceResponse\" type=\"wsrm:HandshakeType\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"TerminateSequence\" type=\"wsrm:HandshakeType\"/>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"HandshakeType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Identifier\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:6\n";
static const char *proc70 =
"#line 180 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSP_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xsd:schema\\n\', ses);\n"
"http (\' targetNamespace=\"http://schemas.xmlsoap.org/ws/2002/12/policy\"\\n\', ses);\n"
"http (\' xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\\n\', ses);\n"
"http (\' xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2002/12/policy\"\\n\', ses);\n"
"http (\' xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\"\\n\', ses);\n"
"http (\' xmlns:wsrm=\"http://schemas.xmlsoap.org/ws/2004/03/rm\"\\n\', ses);\n"
"http (\' xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2003/03/addressing\"\\n\', ses);\n"
"http (\' elementFormDefault=\"qualified\" blockDefault=\"#all\">\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"UsageType\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsp:Required\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsp:Optional\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsp:Rejected\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsp:Ignored\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsp:Observed\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SpecVersionAssertion\">\\n\', ses);\n"
"http (\' <xsd:sequence />\\n\', ses);\n"
"http (\' <xsd:attribute name=\"URI\" type=\"xsd:anyURI\" use=\"required\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name =\"Usage\" type=\"xsd:string\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Preference\" type=\"xsd:int\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Id\" type=\"xsd:ID\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"PolicyExpression\">\\n\', ses);\n"
"http (\' <xsd:sequence minOccurs=\"0\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsp:SpecVersion\" />\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsrm:DeliveryAssurance\" />\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Expires\" minOccurs=\"0\" maxOccurs=\"1\"/>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsrm:InactivityTimeout\" />\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsrm:BaseRetransmissionInterval\" />\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsrm:AcknowledgementInterval\" />\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Name\" type=\"xsd:NCName\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"TargetNamespace\" type=\"xsd:anyURI\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Id\" type=\"xsd:ID\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"PolicyAttachmentType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsp:AppliesTo\"/>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsp:Policy\" minOccurs=\"0\" />\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsp:PolicyReference\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AppliesTo\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsrm:SequenceRef\" minOccurs=\"0\" maxOccurs=\"1\"/>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsa:EndpointReference\" minOccurs=\"0\" maxOccurs=\"1\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"PolicyReferenceType\">\\n\', ses);\n"
"http (\' <xsd:sequence />\\n\', ses);\n"
"http (\' <xsd:attribute name=\"URI\" type=\"xsd:anyURI\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Ref\" type=\"xsd:QName\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Digest\" type=\"xsd:base64Binary\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"DigestAlgorithm\" type=\"xsd:QName\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"AppliesTo\" type=\"wsp:AppliesTo\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"SpecVersion\" type=\"wsp:SpecVersionAssertion\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"Policy\" type=\"wsp:PolicyExpression\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"PolicyAttachment\" type=\"wsp:PolicyAttachmentType\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"PolicyReference\" type=\"wsp:PolicyReferenceType\"/>\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:178\n";
static const char *proc71 =
"#line 262 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSA_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\"?>\\n\', ses);\n"
"http (\'<xs:schema targetNamespace=\"http://schemas.xmlsoap.org/ws/2003/03/addressing\" xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2003/03/addressing\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:ora=\"http://schemas.oracle.com/bpel\" elementFormDefault=\"qualified\" blockDefault=\"#all\">\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\"EndpointReference\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"EndpointReferenceType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element name=\"Address\" type=\"xs:anyURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ReferenceProperties\" type=\"wsa:ReferencePropertiesType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"PortType\" type=\"wsa:AttributedQName\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ServiceName\" type=\"wsa:ServiceNameType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wsu:Id\" />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ReferencePropertiesType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ServiceNameType\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:attribute name=\"PortName\" type=\"xs:NCName\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:complexType name=\"AttributedURI\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:anyURI\">\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wsu:Id\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"ora:rootId\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"ora:parentId\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"ora:priority\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\"MessageID\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"RelatesTo\" type=\"wsa:Relationship\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"To\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Action\" type=\"wsa:AttributedURI\" nillable=\"false\" />\\n\', ses);\n"
"http (\' <xs:element name=\"From\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ReplyTo\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"FaultTo\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Recipient\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"Relationship\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:anyURI\">\\n\', ses);\n"
"http (\' <xs:attribute name=\"RelationshipType\" type=\"xs:QName\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wsu:Id\" />\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:simpleType name=\"RelationshipTypeValues\">\\n\', ses);\n"
"http (\' <xs:restriction base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:Response\"/>\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:complexType name=\"AttributedQName\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:QName\">\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'</xs:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:260\n";
static const char *proc72 =
"#line 340 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_UTILITY_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xsd:schema targetNamespace=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" elementFormDefault=\"qualified\" attributeFormDefault=\"unqualified\" version=\"0.1\">\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AttributedURI\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:extension base=\"xsd:anyURI\">\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:extension>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"TimestampType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element name=\"Created\" type=\"wsu:TimestampType_t\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"Expires\" type=\"wsu:TimestampType_t\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"TimestampType_t\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:extension base=\"xsd:dateTime\">\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:extension>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"Timestamp\" type=\"wsu:TimestampType\" />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Id\" type=\"xsd:ID\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"Identifier\" type=\"wsu:AttributedURI\" />\\n\', ses);\n"
"http (\' <xsd:element name=\"Expires\" type=\"wsu:TimestampType_t\" />\\n\', ses);\n"
"http (\' <xsd:element name=\"Created\" type=\"wsu:TimestampType_t\" />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:338\n";
static const char *proc73 =
"#line 383 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_UTILITY200306_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xsd:schema targetNamespace=\"http://schemas.xmlsoap.org/ws/2003/06/utility\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2003/06/utility\" xmlns=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" elementFormDefault=\"qualified\" attributeFormDefault=\"unqualified\" version=\"0.1\">\\n\', ses);\n"
"http (\' <xsd:complexType name=\"TimestampType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Created\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Expires\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute type=\"xsd:ID\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"Timestamp\" type=\"wsu:TimestampType\" />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\"Expires\" type=\"xsd:dateTime\" />\\n\', ses);\n"
"http (\' <xsd:element name=\"Created\" type=\"xsd:dateTime\" />\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:381\n";
static const char *proc74 =
"#line 409 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSS_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xsd:schema \\n\', ses);\n"
"http (\' targetNamespace=\"http://schemas.xmlsoap.org/ws/2003/06/secext\" \\n\', ses);\n"
"http (\' xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \\n\', ses);\n"
"http (\' xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2003/06/utility\" \\n\', ses);\n"
"http (\' xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2003/06/secext\" \\n\', ses);\n"
"http (\' xmlns=\"http://schemas.xmlsoap.org/ws/2003/06/secext\" \\n\', ses);\n"
"http (\' xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" \\n\', ses);\n"
"http (\' elementFormDefault=\"qualified\" attributeFormDefault=\"unqualified\">\\n\', ses);\n"
"http (\' <xsd:element name=\"Security\" type=\"wsse:SecurityHeaderType\" />\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SecurityHeaderType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Timestamp\" minOccurs=\"0\" maxOccurs=\"1\" />\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:407\n";
static const char *proc75 =
"#line 436 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSS0212_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xsd:schema targetNamespace=\"http://schemas.xmlsoap.org/ws/2002/12/secext\" \\n\', ses);\n"
"http (\' xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" \\n\', ses);\n"
"http (\' xmlns=\"http://schemas.xmlsoap.org/ws/2002/12/secext\" \\n\', ses);\n"
"http (\' xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2002/12/secext\" \\n\', ses);\n"
"http (\' xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" \\n\', ses);\n"
"http (\' xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2002/12/policy\"\\n\', ses);\n"
"http (\' xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \\n\', ses);\n"
"http (\' xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2003/03/addressing\"\\n\', ses);\n"
"http (\' xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" \\n\', ses);\n"
"http (\' xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\" \\n\', ses);\n"
"http (\' elementFormDefault=\"qualified\" \\n\', ses);\n"
"http (\' attributeFormDefault=\"unqualified\" \\n\', ses);\n"
"http (\' blockDefault=\"#all\" \\n\', ses);\n"
"http (\' version=\"0.3\">\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:import namespace=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" schemaLocation=\"http://schemas.xmlsoap.org/ws/2002/07/utility\"/>\\n\', ses);\n"
"http (\' <xsd:import namespace=\"http://schemas.xmlsoap.org/ws/2002/12/policy\" schemaLocation=\"http://schemas.xmlsoap.org/ws/2002/12/policy\" />\\n\', ses);\n"
"http (\' <xsd:import namespace=\"http://www.w3.org/XML/1998/namespace\" schemaLocation=\"http://www.w3.org/2001/xml.xsd\"/>\\n\', ses);\n"
"http (\' <xsd:import namespace=\"http://www.w3.org/2000/09/xmldsig#\" schemaLocation=\"http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd\"/>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AttributedString\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\"/>\\n\', ses);\n"
"http (\' <xsd:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"PasswordString\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Type\" type=\"xsd:QName\"/>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"EncodedString\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"EncodingType\" type=\"xsd:QName\"/>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"UsernameTokenType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element name=\"Username\" type=\"wsse:AttributedString\"/>\\n\', ses);\n"
"http (\' <xsd:any processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\"/>\\n\', ses);\n"
"http (\' <xsd:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"BinarySecurityTokenType\">\\n\', ses);\n"
"http (\' <xsd:attribute name=\"ValueType\" type=\"xsd:QName\"/>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"EncodingType\" type=\"xsd:QName\"/>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\"KeyIdentifierType\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"ValueType\" type=\"xsd:QName\"/>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'RefType\\\' type=\\\'xs:QName\\\' />\\n\', ses);\n"
"http (\' <xsd:complexType name=\"ReferenceType\">\\n\', ses);\n"
"http (\' <xsd:attribute name=\"URI\" type=\"xsd:anyURI\"/>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsse:RefType\" use=\"optional\" />\\n\', ses);\n"
"http (\' <xsd:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SecurityTokenReferenceType\">\\n\', ses);\n"
"http (\' <xsd:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http (\' <xsd:any processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xsd:choice>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\"/>\\n\', ses);\n"
"http (\' <xsd:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"SecurityHeaderType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:any processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http (\' </xsd:any>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:element name=\"UsernameToken\" type=\"wsse:UsernameTokenType\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' <xsd:element name=\"BinarySecurityToken\" type=\"wsse:BinarySecurityTokenType\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' <xsd:element name=\"Reference\" type=\"wsse:ReferenceType\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' <xsd:element name=\"KeyIdentifier\" type=\"wsse:KeyIdentifierType\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' <xsd:element name=\"SecurityTokenReference\" type=\"wsse:SecurityTokenReferenceType\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' <xsd:element name=\"Security\" type=\"wsse:SecurityHeaderType\">\\n\', ses);\n"
"http (\' </xsd:element>\\n\', ses);\n"
"http (\' <xsd:element name=\"Password\" type=\"wsse:PasswordString\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"Nonce\" type=\"wsse:EncodedString\"/>\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"PasswordTypeEnum\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:PasswordText\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:PasswordDigest\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"ValueTypeEnum\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:X509v3\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:Kerberosv5TGT\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:Kerberosv5ST\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:PKCS7\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:PKIPath\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"EncodingTypeEnum\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:Base64Binary\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:HexBinary\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"FaultcodeEnum\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:UnsupportedSecurityToken\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:UnsupportedAlgorithm\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:InvalidSecurity\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:InvalidSecurityToken\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:FailedAuthentication\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:FailedCheck\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:SecurityTokenUnavailable\"/>\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:InvalidRequest\" />\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:RequestFailed\" />\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:AuthenticationBadElements\" />\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:BadRequest\" />\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:ExpiredData\" />\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:InvalidTimeRange\" />\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:BadContextToken\" />\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsse:UnknownDerivationSource\" />\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\\\'RequestSecurityTokenType\\\' >\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element name=\\\'TokenType\\\' type=\\\'xsd:string\\\' minOccurs=\"0\" maxOccurs=\"1\" />\\n\', ses);\n"
"http (\' <xsd:element name=\\\'RequestType\\\' type=\\\'xsd:string\\\' minOccurs=\"0\" maxOccurs=\"1\" />\\n\', ses);\n"
"http (\' <xsd:element ref=\\\'wsp:AppliesTo\\\' minOccurs=\"0\" maxOccurs=\"1\" />\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\\\'RequestSecurityToken\\\' type=\\\'wsse:RequestSecurityTokenType\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\\\'RequestedSecurityTokenType\\\' >\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element name=\"BinarySecurityToken\" type=\"wsse:BinarySecurityTokenType\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\\\'RequestSecurityTokenResponseType\\\' >\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element name=\\\'TokenType\\\' type=\\\'xsd:string\\\' minOccurs=\"0\" maxOccurs=\"1\" />\\n\', ses);\n"
"http (\' <xsd:element name=\\\'RequestedSecurityToken\\\' type=\\\'wsse:RequestedSecurityTokenType\\\' minOccurs=\"0\" maxOccurs=\"1\" />\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:element name=\\\'RequestSecurityTokenResponse\\\' type=\\\'wsse:RequestSecurityTokenResponseType\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Challenge\\\' type=\\\'wsse:ChallengeOrIntegrity\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'BinaryNegotiation\\\' type=\\\'wsse:BinarySecurityTokenType\\\' /> \\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestedProofToken\\\' type=\\\'wsse:RequestedSecurityTokenType\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xsd:complexType name=\\\'RequestedSecurityTokenType_h\\\' >\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element name=\"wsa:MessageID\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"wsa:From\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestedProofToken_h\\\' type=\\\'wsse:RequestedSecurityTokenType_h\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'SecurityHeader\\\' type=\\\'wsse:SecurityHeaderPolType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'SecurityHeaderPolType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Usage\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'MustPrepend\\\' type=\\\'xs:boolean\\\' />\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'MustManifestEncryption\\\' type=\\\'xs:boolean\\\' />\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\\\'##any\\\' processContents=\\\'lax\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'MessageAge\\\' type=\\\'wsse:MessageAgeType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'MessageAgeType\\\' >\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Usage\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Preference\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Age\\\' type=\\\'xs:unsignedInt\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\\\'##any\\\' processContents=\\\'lax\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' \\n\', ses);\n"
"http (\' <xs:element name=\\\'MessageParts\\\' type=\\\'wsse:XPathSoap\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'TokenIssuer\\\' type=\\\'xs:string\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Confidentiality\\\' type=\\\'wsse:Confidentiality\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'Confidentiality\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Actor\\\' type=\\\'xs:anyURI\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Preference\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Usage\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Integrity\\\' type=\\\'wsse:ChallengeOrIntegrity\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'ChallengeOrIntegrity\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Preference\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Usage\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Algorithm\\\' type=\\\'wsse:AlgorithmType\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'AlgorithmType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Type\\\' type=\\\'wsse:AlgorithmTypeOpenEnum\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'URI\\\' type=\\\'xs:anyURI\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Preference\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'AlgorithmTypeEnum\\\' >\\n\', ses);\n"
"http (\' <xs:restriction base=\\\'xs:QName\\\' >\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:AlgCanonicalization\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:AlgSignature\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:AlgTransform\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:AlgDigest\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:AlgEncryption\\\' />\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'AlgorithmTypeOpenEnum\\\' >\\n\', ses);\n"
"http (\' <xs:union memberTypes=\\\'wsse:AlgorithmTypeEnum xs:QName\\\' />\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'KeyInfo\\\' type=\\\'wsse:KeyInfoType\\\' /> \\n\', ses);\n"
"http (\' <xs:complexType name=\\\'KeyInfoType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\\\'wsse:SecurityToken\\\' minOccurs=\\\'0\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'SecurityToken\\\' type=\\\'wsse:SecurityTokenType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'SecurityTokenType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' /> \\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Preference\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Usage\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\\\'##other\\\' processContents=\\\'lax\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'TokenTypeEnum\\\' >\\n\', ses);\n"
"http (\' <xs:restriction base=\\\'xs:QName\\\' >\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:X509v3\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:Kerberosv5TGT\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:Kerberosv5ST\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:UserNameToken\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:SAMLAssertion\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:XrMLLicense\\\' />\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'TokenTypeOpenEnum\\\' >\\n\', ses);\n"
"http (\' <xs:union memberTypes=\\\'wsse:TokenTypeEnum xs:QName\\\' />\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Visibility\\\' type=\\\'wsse:VisibilityType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'VisibilityType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Usage\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\\\'##any\\\' processContents=\\\'lax\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'SignerType\\\'>\\n\', ses);\n"
"http (\' <xs:list itemType=\\\'xs:anyURI\\\' />\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'SubjectName\\\' type=\\\'wsse:SubjectNameType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'SubjectNameType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'MatchType\\\' type=\\\'wsse:MatchTypeEnum\\\' use=\\\'optional\\\' /> \\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\\\'X509Extension\\\' type=\\\'wsse:X509ExtensionType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'X509ExtensionType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'MatchType\\\' type=\\\'wsse:MatchTypeEnum\\\' use=\\\'optional\\\' /> \\n\', ses);\n"
"http (\' <xs:attribute name=\\\'OID\\\' type=\\\'xs:string\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Critical\\\' type=\\\'xs:boolean\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\\\'UsePassword\\\' type=\\\'wsse:UsePasswordType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'UsePasswordType\\\' >\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Type\\\' type=\\\'wsse:PasswordTypeEnum\\\' use=\\\'optional\\\' /> \\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsp:Usage\\\' use=\\\'required\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'MatchTypeEnum\\\' >\\n\', ses);\n"
"http (\' <xs:restriction base=\\\'xs:QName\\\' >\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:Exact\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:Prefix\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:Regexp\\\' />\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'ServiceName\\\' type=\\\'xs:string\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'RequestTypeEnum\\\' >\\n\', ses);\n"
"http (\' <xs:restriction base=\\\'xs:QName\\\' >\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:ReqIssue\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:ReqValidate\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:ReqExchange\\\' />\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'RequestTypeOpenEnum\\\' >\\n\', ses);\n"
"http (\' <xs:union memberTypes=\\\'wsse:RequestTypeEnum xs:QName\\\' />\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestType\\\' type=\\\'wsse:RequestTypeOpenEnum\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Base\\\' type=\\\'wsse:SecurityTokenReferenceType\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Supporting\\\' type=\\\'wsse:SecurityTokenReferenceType\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Claims\\\' />\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'KeyEnum\\\' >\\n\', ses);\n"
"http (\' <xs:restriction base=\\\'xs:QName\\\' >\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:PublicKey\\\' />\\n\', ses);\n"
"http (\' <xs:enumeration value=\\\'wsse:SymmetricKey\\\' />\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:simpleType name=\\\'KeyOpenEnum\\\' >\\n\', ses);\n"
"http (\' <xs:union memberTypes=\\\'wsse:KeyEnum xs:QName\\\' />\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:element name=\\\'KeyType\\\' type=\\\'wsse:KeyOpenEnum\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestKeyType\\\' type=\\\'wsse:KeyOpenEnum\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'KeySize\\\' type=\\\'xs:unsignedInt\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestKeySize\\\' type=\\\'xs:unsignedInt\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestSignatureAlgorithm\\\' type=\\\'xs:anyURI\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestEncryption\\\' type=\\\'wsse:SecurityTokenReferenceType\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'RequestProofEncryption\\\' type=\\\'wsse:SecurityTokenReferenceType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'SecurityTokenReferences\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\\\'wsse:SecurityTokenReference\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'UseBase\\\' >\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'UsePublicKey\\\' type=\\\'wsse:UsePublicKeyType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'UsePublicKeyType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\\\'ds:KeyInfo\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Sig\\\' type=\\\'xs:anyURI\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'OnBehalfOf\\\' type=\\\'wsse:TokenOrRef\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'DelegateTo\\\' type=\\\'wsse:TokenOrRef\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'TokenOrRef\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Forwardable\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Delegatable\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Proxiable\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'AllowPostdating\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Renewing\\\' type=\\\'wsse:RenewingType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'RenewingType\\\' >\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Allow\\\' type=\\\'xs:boolean\\\' />\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'OK\\\' type=\\\'xs:boolean\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'LifeTime\\\' type=\\\'wsse:LifeTimeType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'LifeTimeType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\\\'wsu:Created\\\' minOccurs=\\\'0\\\' /> \\n\', ses);\n"
"http (\' <xs:element ref=\\\'wsu:Expires\\\' minOccurs=\\\'0\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'SignChallenge\\\' type=\\\'wsse:SignChallengeType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'SignChallengeType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\\\'##any\\\' processContents=\\\'lax\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\\\'SignChallengeResponse\\\' type=\\\'wsse:SignChallengeResponseType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'SignChallengeResponseType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'SecurityContextToken\\\' type=\\\'wsse:SecurityContextTokenType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'SecurityContextTokenType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsu:Id\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\\\'##other\\\' processContents=\\\'lax\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Keys\\\' type=\\\'wsse:KeysType\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'KeysType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence> \\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'DerivedKeyToken\\\' type=\\\'wsse:Key\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'Key\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\\\'wsse:SecurityTokenReference\\\' minOccurs=\\\'0\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Properties\\\' type=\\\'wsse:PropertiesType\\\' minOccurs=\\\'0\\\' />\\n\', ses);\n"
"http (\' <xs:choice minOccurs=\\\'0\\\' >\\n\', ses);\n"
"http (\' <xs:element name=\\\'Generation\\\' type=\\\'xs:unsignedLong\\\' />\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element name=\\\'Offset\\\' type=\\\'xs:unsignedLong\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Length\\\' type=\\\'xs:unsignedLong\\\' minOccurs=\\\'0\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:choice>\\n\', ses);\n"
"http (\' <xs:element ref=\\\'wsse:Label\\\' minOccurs=\\\'0\\\' />\\n\', ses);\n"
"http (\' <xs:element ref=\\\'wsse:Nonce\\\' minOccurs=\\\'0\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\\\'wsu:Id\\\' />\\n\', ses);\n"
"http (\' <xs:attribute name=\\\'Algorithm\\\' type=\\\'wsse:AlgorithmTypeOpenEnum\\\' form=\\\'qualified\\\' use=\\\'optional\\\' />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'\\n\', ses);\n"
"http (\' <xs:element name=\\\'Label\\\' type=\\\'xs:string\\\' />\\n\', ses);\n"
"http (\' <xs:element name=\\\'Name\\\' type=\\\'xs:anyURI\\\' />\\n\', ses);\n"
"http (\' <xs:complexType name=\\\'PropertiesType\\\' >\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any namespace=\\\'##any\\\' processContents=\\\'lax\\\' minOccurs=\\\'0\\\' maxOccurs=\\\'unbounded\\\' />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:434\n";
static const char *proc76 =
"#line 904 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSA200403_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\"?>\\n\', ses);\n"
"http (\'<xs:schema xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/03/addressing\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"http://schemas.xmlsoap.org/ws/2004/03/addressing\" elementFormDefault=\"qualified\" blockDefault=\"#all\" xmlns:wssu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">\\n\', ses);\n"
"http (\' <xs:element name=\"EndpointReference\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"EndpointReferenceType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element name=\"Address\" type=\"xs:anyURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ReferenceProperties\" type=\"wsa:ReferencePropertiesType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"PortType\" type=\"wsa:AttributedQName\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ServiceName\" type=\"wsa:ServiceNameType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wssu:Id\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ReferencePropertiesType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ServiceNameType\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:attribute name=\"PortName\" type=\"xs:NCName\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"AttributedURI\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:anyURI\">\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wssu:Id\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"MessageID\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"RelatesTo\" type=\"wsa:Relationship\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"To\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Action\" type=\"wsa:AttributedURI\" nillable=\"false\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"From\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ReplyTo\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"FaultTo\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Recipient\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"Relationship\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:anyURI\">\\n\', ses);\n"
"http (\' <xs:attribute name=\"RelationshipType\" type=\"xs:QName\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wssu:Id\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:simpleType name=\"RelationshipTypeValues\">\\n\', ses);\n"
"http (\' <xs:restriction base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:Reply\"/>\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"AttributedQName\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:QName\">\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"ReplyAfter\"/>\\n\', ses);\n"
"http (\' <xs:simpleType name=\"FaultSubcodeValues\">\\n\', ses);\n"
"http (\' <xs:restriction base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:InvalidMessageInformationHeader\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:MessageInformationHeaderRequired\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:DestinationUnreachable\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:ActionNotSupported\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:EndpointUnavailable\"/>\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:attribute name=\"Action\" type=\"xs:anyURI\"/>\\n\', ses);\n"
"http (\'</xs:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:902\n";
static const char *proc77 =
"#line 985 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_OASIS200401WSSUTILITY_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" targetNamespace=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" elementFormDefault=\"qualified\" attributeFormDefault=\"unqualified\" version=\"0.1\">\\n\', ses);\n"
"http (\' <xsd:simpleType name=\"tTimestampFault\">\\n\', ses);\n"
"http (\' <xsd:restriction base=\"xsd:QName\">\\n\', ses);\n"
"http (\' <xsd:enumeration value=\"wsu:MessageExpired\"/>\\n\', ses);\n"
"http (\' </xsd:restriction>\\n\', ses);\n"
"http (\' </xsd:simpleType>\\n\', ses);\n"
"http (\' <xsd:attribute name=\"Id\" type=\"xsd:ID\" />\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AttributedDateTime\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:extension base=\"xsd:string\">\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:extension>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"AttributedURI\">\\n\', ses);\n"
"http (\' <xsd:simpleContent>\\n\', ses);\n"
"http (\' <xsd:extension base=\"xsd:anyURI\">\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:extension>\\n\', ses);\n"
"http (\' </xsd:simpleContent>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:complexType name=\"TimestampType\">\\n\', ses);\n"
"http (\' <xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Created\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xsd:element ref=\"wsu:Expires\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xsd:sequence>\\n\', ses);\n"
"http (\' <xsd:attribute ref=\"wsu:Id\" use=\"optional\"/>\\n\', ses);\n"
"http (\' </xsd:complexType>\\n\', ses);\n"
"http (\' <xsd:element name=\"Timestamp\" type=\"wsu:TimestampType\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"Expires\" type=\"wsu:AttributedDateTime\"/>\\n\', ses);\n"
"http (\' <xsd:element name=\"Created\" type=\"wsu:AttributedDateTime\"/>\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:983\n";
static const char *proc78 =
"#line 1029 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_ORABPEL_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\"?>\\n\', ses);\n"
"http (\'<xsd:schema targetNamespace=\"http://schemas.oracle.com/bpel\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" elementFormDefault=\"qualified\">\\n\', ses);\n"
"http (\' <xsd:attribute name=\"rootId\" type=\"xsd:string\" />\\n\', ses);\n"
"http (\' <xsd:attribute name=\"parentId\" type=\"xsd:string\" />\\n\', ses);\n"
"http (\' <xsd:attribute name=\"priority\" type=\"xsd:string\" />\\n\', ses);\n"
"http (\'</xsd:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:1027\n";
static const char *proc79 =
"#line 1046 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSRM_2005_02_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"\\n\', ses);\n"
"http (\' xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\"\\n\', ses);\n"
"http (\' xmlns:wsrm=\"http://schemas.xmlsoap.org/ws/2005/02/rm\"\\n\', ses);\n"
"http (\' xmlns:wssu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"\\n\', ses);\n"
"http (\' targetNamespace=\"http://schemas.xmlsoap.org/ws/2005/02/rm\"\\n\', ses);\n"
"http (\' elementFormDefault=\"qualified\"\\n\', ses);\n"
"http (\' attributeFormDefault=\"unqualified\">\\n\', ses);\n"
"http (\' <xs:import namespace=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\"\\n\', ses);\n"
"http (\' schemaLocation=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"SequenceType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Identifier\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"MessageNumber\" type=\"xs:unsignedLong\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"LastMessage\" type=\"xs:ENTITY\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wssu:Id\" />\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"Sequence\" type=\"wsrm:SequenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"SequenceAcknowledgement\" type=\"wsrm:SequenceAcknowledgement_t\">\\n\', ses);\n"
"http (\' </xs:element>\\n\', ses);\n"
"http (\' <xs:complexType name=\"SequenceAcknowledgement_t\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Identifier\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"AcknowledgementRange\" maxOccurs=\"unbounded\" type=\"wsrm:AcknowledgementRange_t\" minOccurs=\"0\">\\n\', ses);\n"
"http (\' </xs:element>\\n\', ses);\n"
"http (\' <xs:element name=\"Nack\" type=\"xs:unsignedLong\" maxOccurs=\"unbounded\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"AcknowledgementRange_t\">\\n\', ses);\n"
"http (\' <xs:sequence/>\\n\', ses);\n"
"http (\' <xs:attribute name=\"Upper\" type=\"xs:unsignedLong\" use=\"required\"/>\\n\', ses);\n"
"http (\' <xs:attribute name=\"Lower\" type=\"xs:unsignedLong\" use=\"required\"/>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"AckRequestedType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Identifier\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"AckRequested\" type=\"wsrm:AckRequestedType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Identifier\">\\n\', ses);\n"
"http (\' <xs:complexType>\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:anyURI\">\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' </xs:element>\\n\', ses);\n"
"http (\' <xs:simpleType name=\"FaultCodes\">\\n\', ses);\n"
"http (\' <xs:restriction base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsrm:UnknownSequence\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsrm:SequenceTerminated\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsrm:InvalidAcknowledgement\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsrm:MessageNumberRollover\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsrm:CreateSequenceRefused\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsrm:LastMessageNumberExceeded\"/>\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"SequenceFaultType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element name=\"FaultCode\" type=\"xs:QName\" minOccurs=\"0\" />\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##any\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"SequenceFault\" type=\"wsrm:SequenceFaultType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"CreateSequence\" type=\"wsrm:CreateSequenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"CreateSequenceResponse\" type=\"wsrm:CreateSequenceResponseType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"TerminateSequence\" type=\"wsrm:TerminateSequenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"CreateSequenceType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:AcksTo\"/>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Expires\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Offer\" type=\"wsrm:OfferType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:any namespace=\"##other\" processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http (\' </xs:any>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"CreateSequenceResponseType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Identifier\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Accept\" type=\"wsrm:AcceptType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Expires\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:any namespace=\"##other\" processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"TerminateSequenceType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Identifier\"/>\\n\', ses);\n"
"http (\' <xs:any namespace=\"##other\" processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"AcksTo\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"OfferType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Identifier\"/>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:Expires\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:any namespace=\"##other\" processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"AcceptType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element ref=\"wsrm:AcksTo\"/>\\n\', ses);\n"
"http (\' <xs:any namespace=\"##other\" processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"Expires\">\\n\', ses);\n"
"http (\' <xs:complexType>\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:duration\">\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' </xs:element>\\n\', ses);\n"
"http (\'</xs:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:1044\n";
static const char *proc80 =
"#line 1179 \"[executable]/wsrm_xsd.sql\"\n"
"CREATE PROCEDURE WSRM_WSA200408_XSD ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\"?>\\n\', ses);\n"
"http (\'<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\" targetNamespace=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\" elementFormDefault=\"qualified\" blockDefault=\"#all\"\\n\', ses);\n"
"http (\' xmlns:wssu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">\\n\', ses);\n"
"http (\' <xs:element name=\"EndpointReference\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"EndpointReferenceType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:element name=\"Address\" type=\"xs:anyURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ReferenceProperties\" type=\"wsa:ReferencePropertiesType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ReferenceParameters\" type=\"wsa:ReferenceParametersType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"PortType\" type=\"wsa:AttributedQName\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ServiceName\" type=\"wsa:ServiceNameType\" minOccurs=\"0\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' <xs:attribute ref=\"wssu:Id\"/>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ReferencePropertiesType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ReferenceParametersType\">\\n\', ses);\n"
"http (\' <xs:sequence>\\n\', ses);\n"
"http (\' <xs:any processContents=\"lax\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http (\' </xs:sequence>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ServiceNameType\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:attribute name=\"PortName\" type=\"xs:NCName\"/>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:element name=\"MessageID\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"RelatesTo\" type=\"wsa:Relationship\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"To\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"Action\" type=\"wsa:AttributedURI\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"From\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"ReplyTo\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:element name=\"FaultTo\" type=\"wsa:EndpointReferenceType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"Relationship\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:anyURI\">\\n\', ses);\n"
"http (\' <xs:attribute name=\"RelationshipType\" type=\"xs:QName\" use=\"optional\"/>\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:simpleType name=\"RelationshipTypeValues\">\\n\', ses);\n"
"http (\' <xs:restriction base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:Reply\"/>\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:element name=\"ReplyAfter\" type=\"wsa:ReplyAfterType\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"ReplyAfterType\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:nonNegativeInteger\">\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:simpleType name=\"FaultSubcodeValues\">\\n\', ses);\n"
"http (\' <xs:restriction base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:InvalidMessageInformationHeader\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:MessageInformationHeaderRequired\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:DestinationUnreachable\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:ActionNotSupported\"/>\\n\', ses);\n"
"http (\' <xs:enumeration value=\"wsa:EndpointUnavailable\"/>\\n\', ses);\n"
"http (\' </xs:restriction>\\n\', ses);\n"
"http (\' </xs:simpleType>\\n\', ses);\n"
"http (\' <xs:attribute name=\"Action\" type=\"xs:anyURI\"/>\\n\', ses);\n"
"http (\' <xs:complexType name=\"AttributedQName\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:QName\">\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\' <xs:complexType name=\"AttributedURI\">\\n\', ses);\n"
"http (\' <xs:simpleContent>\\n\', ses);\n"
"http (\' <xs:extension base=\"xs:anyURI\">\\n\', ses);\n"
"http (\' <xs:anyAttribute namespace=\"##other\" processContents=\"lax\"/>\\n\', ses);\n"
"http (\' </xs:extension>\\n\', ses);\n"
"http (\' </xs:simpleContent>\\n\', ses);\n"
"http (\' </xs:complexType>\\n\', ses);\n"
"http (\'</xs:schema>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src wsrm_xsd.sql:1177\n";
/* wsrmcli.sql */
static const char *udt3 =
"create type wsrm_cli as\n"
"(\n"
"url varchar,\n"
"seq varchar,\n"
"msgno int default -1,\n"
"assurance varchar,\n"
"expiry datetime,\n"
"address WSA_CLI,\n"
"i_timeout int,\n"
"resend_intl int,\n"
"ack_intl int,\n"
"dirty int default 0,\n"
"is_last int default 0,\n"
"is_finish int default 0\n"
")\n"
"temporary self as ref\n"
"constructor method wsrm_cli (addr WSA_CLI, url varchar),\n"
"constructor method wsrm_cli (addr WSA_CLI, url varchar, seq varchar),\n"
"method create_sequence () returns any,\n"
"method send_message (req soap_client_req, last int) returns any,\n"
"method send_message (req soap_client_req) returns any,\n"
"method finish (req soap_client_req) returns any,\n"
"method check_state () returns any,\n"
"method cancel () returns any,\n"
"method set_parameter (name varchar, val any) returns any,\n"
"method current_ver () returns varchar,\n"
"method in_seq () returns any\n";
static const char *other36 =
"create method current_ver () for wsrm_cli\n"
"{\n"
"return \'http://schemas.xmlsoap.org/ws/2004/03/rm\';\n"
"}\n";
static const char *other37 =
"create method in_seq () for wsrm_cli\n"
"{\n"
"if (self.seq is null or self.msgno < 0)\n"
"signal (\'42000\', \'No sequence opened\');\n"
"}\n";
static const char *other38 =
"create constructor method wsrm_cli (in addr WSA_CLI, in url varchar) for wsrm_cli\n"
"{\n"
"self.url := url;\n"
"self.dirty := 0;\n"
"self.create_sequence ();\n"
"self.address := addr;\n"
"\n"
"return self;\n"
"}\n";
static const char *other39 =
"create constructor method wsrm_cli (in addr WSA_CLI, in url varchar, in seq varchar) for wsrm_cli\n"
"{\n"
"self.url := url;\n"
"self.seq := seq;\n"
"self.address := addr;\n"
"set isolation=\'committed\';\n"
"whenever not found goto ends;\n"
"\n"
"select WOS_DELIVERY_ASSURANCE, WOS_SEQUENCE_EXPIRATION, WOS_INACTIVITY_TIMEOUT,\n"
"WOS_RETRANSMISSION_INTERVAL,WOS_ACKNOWLEDGEMENT_INTERVAL, WOS_LAST_SENT\n"
"into self.assurance, self.expiry, self.i_timeout, self.resend_intl, self.ack_intl, self.is_last\n"
"from SYS_WSRM_OUT_SEQUENCES where WOS_IDENTIFIER = seq;\n"
"\n"
"if (self.is_last is null)\n"
"self.is_last := 0;\n"
"\n"
"self.msgno := coalesce ((select top 1 OML_MESSAGE_ID from SYS_WSRM_OUT_MESSAGE_LOG\n"
"where OML_INDENTIFIER = seq order by 1 desc), 0);\n"
"\n"
"self.dirty := 0;\n"
"return self;\n"
"\n"
"ends:\n"
"signal (\'22023\', \'Non existing sequence\');\n"
"}\n";
static const char *other40 =
"create method create_sequence () for wsrm_cli\n"
"{\n"
"if (self.seq is not null)\n"
"signal (\'37000\', \'Sequence is alredy created, first cancel or finish\');\n"
"\n"
"self.seq := lower (\'UUID:\'||uuid ());\n"
"self.msgno := 0;\n"
"self.assurance := \'ExactlyOnce\';\n"
"self.expiry := dateadd (\'hour\', 1, now ());\n"
"self.i_timeout := 2000;\n"
"self.resend_intl := 10000;\n"
"self.ack_intl := 2000;\n"
"\n"
"insert into SYS_WSRM_OUT_SEQUENCES (\n"
"WOS_IDENTIFIER, WOS_VERSION, WOS_DELIVERY_ASSURANCE,\n"
"WOS_SEQUENCE_EXPIRATION, WOS_INACTIVITY_TIMEOUT, WOS_RETRANSMISSION_INTERVAL,\n"
"WOS_ACKNOWLEDGEMENT_INTERVAL)\n"
"values (self.seq, self.current_ver (), self.assurance, self.expiry,\n"
"self.i_timeout, self.resend_intl, self.ack_intl);\n"
"return self.seq;\n"
"}\n";
static const char *other41 =
"create method finish (in req soap_client_req)\n"
"for wsrm_cli\n"
"{\n"
"self.send_message (req, 1);\n"
"}\n";
static const char *other42 =
"create method send_message (in req soap_client_req)\n"
"for wsrm_cli\n"
"{\n"
"self.send_message (req, 0);\n"
"}\n";
static const char *other43 =
"create method send_message (in req soap_client_req, in last int)\n"
"for wsrm_cli\n"
"{\n"
"declare cr cursor for select OML_MESSAGE_ID from SYS_WSRM_OUT_MESSAGE_LOG where OML_INDENTIFIER = self.seq\n"
"order by OML_MESSAGE_ID desc;\n"
"\n"
"self.in_seq ();\n"
"whenever not found goto nf;\n"
"open cr (exclusive, prefetch 1);\n"
"fetch cr into self.msgno;\n"
"nf:\n"
"close cr;\n"
"if (self.msgno is null)\n"
"self.msgno := 0;\n"
"self.msgno := self.msgno + 1;\n"
"\n"
"\n"
"\n"
"insert into SYS_WSRM_OUT_MESSAGE_LOG (OML_MESSAGE, OML_ADDRESS, OML_INDENTIFIER, OML_MESSAGE_ID, OML_STATE)\n"
"values (req, self.address, self.seq, self.msgno, -1);\n"
"\n"
"\n"
"\n"
"\n"
"WSRM_CLIENT (self, last, req);\n"
"\n"
"if (last)\n"
"update SYS_WSRM_OUT_SEQUENCES set WOS_LAST_SENT = 1 where WOS_IDENTIFIER = self.seq;\n"
"\n"
"self.dirty := 0;\n"
"return self.msgno;\n"
"}\n";
static const char *other44 =
"create method check_state () for wsrm_cli\n"
"{\n"
"declare stru any;\n"
"declare _all_is_send integer;\n"
"self.in_seq ();\n"
"\n"
"if (self.is_finish)\n"
"return vector (1);\n"
"\n"
"set isolation=\'committed\';\n"
"if (not exists (select 1 from SYS_WSRM_OUT_MESSAGE_LOG where OML_STATE <> 3 and OML_INDENTIFIER = self.seq))\n"
"{\n"
"self.is_finish := 1;\n"
"return vector (1);\n"
"}\n"
"stru := WSRM_CLIENT_ACKREQUESTED (self);\n"
"WSRM_CLIENT_ERROR (stru);\n"
"stru := WSRM_UPDATE_CLIENT_TABLES (stru, self);\n"
"\n"
"if (self.is_last)\n"
"{\n"
"if (not exists (select 1 from SYS_WSRM_OUT_MESSAGE_LOG\n"
"where OML_STATE <> 3 and OML_INDENTIFIER = self.seq))\n"
"{\n"
"self.is_finish := 1;\n"
"return vector (1);\n"
"}\n"
"}\n"
"\n"
"return stru;\n"
"}\n";
static const char *other45 =
"create method cancel () for wsrm_cli\n"
"{\n"
"self.in_seq ();\n"
"\n"
"WSRM_CLIENT_ACKTERMINATE (self);\n"
"\n"
"delete from SYS_WSRM_OUT_SEQUENCES where WOS_IDENTIFIER = self.seq;\n"
"delete from SYS_WSRM_OUT_MESSAGE_LOG where OML_INDENTIFIER = self.seq;\n"
"\n"
"self.seq := null;\n"
"self.msgno := -1;\n"
"self.dirty := 0;\n"
"return;\n"
"}\n";
static const char *other46 =
"create method set_parameter (in name varchar, in val any := null) for wsrm_cli\n"
"{\n"
"self.in_seq ();\n"
"\n"
"if (name = \'Assurance\')\n"
"{\n"
"if (val not in (\'AtMostOnce\',\'AtLeastOnce\',\'ExactlyOnce\',\'InOrder\'))\n"
"signal (\'22023\', \'value must be AtMostOnce, AtLeastOnce, ExactlyOnce or InOrder\');\n"
"self.assurance := val;\n"
"}\n"
"else if (name = \'Expiry\')\n"
"{\n"
"self.expiry := val;\n"
"}\n"
"else if (name = \'Timeout\')\n"
"{\n"
"if (val <= 0) signal (\'22023\', \'Positive integer required\');\n"
"self.i_timeout := val;\n"
"}\n"
"else if (name = \'RetryInterval\')\n"
"{\n"
"if (val <= 0) signal (\'22023\', \'Positive integer required\');\n"
"self.resend_intl := val;\n"
"}\n"
"else if (name = \'AckInterval\')\n"
"{\n"
"if (val <= 0) signal (\'22023\', \'Positive integer required\');\n"
"self.ack_intl := val;\n"
"}\n"
"else\n"
"signal (\'22023\', \'Unknown parameter\');\n"
"\n"
"update SYS_WSRM_OUT_SEQUENCES set\n"
"WOS_DELIVERY_ASSURANCE = self.assurance,\n"
"WOS_SEQUENCE_EXPIRATION = self.expiry,\n"
"WOS_INACTIVITY_TIMEOUT = self.i_timeout,\n"
"WOS_RETRANSMISSION_INTERVAL = self.resend_intl,\n"
"WOS_ACKNOWLEDGEMENT_INTERVAL = self.ack_intl\n"
"where WOS_IDENTIFIER = self.seq;\n"
"\n"
"self.dirty := 1;\n"
"return self;\n"
"}\n";
static const char *proc81 =
"#line 283 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_CLIENT_POLICY (inout state wsrm_cli)\n"
"{\n"
"declare policy, ind, ver, spec_v, del_ass, i_timeout, r_int, a_int soap_parameter;\n"
"\n"
"if (not state.dirty)\n"
"return null;\n"
"\n"
"policy := new soap_parameter ();\n"
"ind := new soap_parameter ();\n"
"ver := new soap_parameter ();\n"
"spec_v := new soap_parameter ();\n"
"r_int := new soap_parameter ();\n"
"a_int := new soap_parameter ();\n"
"del_ass := new soap_parameter ();\n"
"i_timeout := new soap_parameter ();\n"
"\n"
"policy.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/12/policy:PolicyAttachment\');\n"
"\n"
"ind.set_attribute (\'Identifier\', state.seq);\n"
"\n"
"policy.add_member (\'AppliesTo\', new soap_parameter (ind));\n"
"\n"
"ver.set_attribute (\'URI\', \'http://schemas.xmlsoap.org/ws/2004/03/rm\');\n"
"ver.set_attribute (\'Usage\', \'wsp:Required\');\n"
"\n"
"i_timeout.set_attribute (\'Milliseconds\', state.i_timeout);\n"
"\n"
"r_int.set_attribute (\'Milliseconds\', state.resend_intl);\n"
"\n"
"a_int.set_attribute (\'Milliseconds\', state.resend_intl);\n"
"\n"
"del_ass.set_attribute (\'Value\',\'wsrm:\' || state.assurance);\n"
"del_ass.set_attribute (\'Usage\',\'wsp:Required\');\n"
"\n"
"spec_v.add_member (\'SpecVersion\', ver);\n"
"spec_v.add_member (\'DeliveryAssurance\', del_ass);\n"
"spec_v.add_member (\'InactivityTimeout\', i_timeout);\n"
"spec_v.add_member (\'BaseRetransmissionInterval\', r_int);\n"
"spec_v.add_member (\'AcknowledgementInterval\', a_int);\n"
"spec_v.add_member (\'Expires\', state.expiry);\n"
"\n"
"policy.add_member (\'Policy\', spec_v);\n"
"\n"
"spec_v := new soap_parameter ();\n"
"spec_v.set_attribute (\'Ref\', \'http://schemas.xmlsoap.org/ws/2004/03/rm/baseTimingProfile.xml\');\n"
"\n"
"policy.add_member (\'PolicyReference\', spec_v);\n"
"\n"
"return policy;\n"
"}\n"
"--src wsrmcli.sql:281\n";
static const char *proc82 =
"#line 336 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_CLIENT (in state wsrm_cli, in is_last integer, in req SOAP_CLIENT_REQ)\n"
"{\n"
"declare ret, wa, policy any;\n"
"declare st, pa soap_parameter;\n"
"declare identifier varchar;\n"
"declare retr integer;\n"
"declare vhdr any;\n"
"\n"
"if (req.style is null)\n"
"req.style := 1;\n"
"state.is_last := is_last;\n"
"identifier := state.seq;\n"
"retr := 0;\n"
"\n"
"st := new soap_parameter ();\n"
"pa := new soap_parameter ();\n"
"\n"
"st.set_xsd (\'http://schemas.xmlsoap.org/ws/2005/02/rm:Sequence\');\n"
"st.add_member (\'Identifier\', soap_parameter (identifier));\n"
"st.add_member (\'MessageNumber\', state.msgno);\n"
"st.set_attribute (\'Id\', uuid ());\n"
"\n"
"\n"
"\n"
"if (is_last)\n"
"st.add_member (\'LastMessage\', \'\');\n"
"\n"
"\n"
"\n"
"pa := WSRM_CLIENT_POLICY (state);\n"
"if (pa is not null)\n"
"policy := pa.get_call_param (\'\');\n"
"else\n"
"policy := vector ();\n"
"wa := WSA_REQ (state);\n"
"\n"
"vhdr := \'X-Virt-WSRM-ID: \' || registry_get (\'WSRMServerID\') || \';\'\n"
"|| identifier || \';\' || cast(state.msgno as varchar) || \'\\r\\n\';\n"
"\n"
"declare exit handler for sqlstate \'HTCLI\' {\n"
"update SYS_WSRM_OUT_MESSAGE_LOG set OML_STATE = 2\n"
"where OML_INDENTIFIER = identifier and OML_MESSAGE_ID = state.msgno;\n"
"commit work;\n"
"retr := retr + 1;\n"
"if (retr > 3)\n"
"resignal;\n"
"\n"
"};\n"
"\n"
"commit work;\n"
"\n"
"\n"
"ret := SOAP_CLIENT (url=>req.url, operation=>req.operation, style=>(128+64+req.style),\n"
"headers=>vector_concat (wa, st.get_call_param (\'\'), policy, req.headers),\n"
"parameters=>req.parameters, direction=>(1),\n"
"target_namespace=>req.target_namespace,\n"
"soap_action=>req.soap_action,\n"
"attachments=>req.attachments,\n"
"ticket=>req.ticket,\n"
"passwd=>req.passwd,\n"
"user_name=>req.user_name,\n"
"user_password=>req.user_password,\n"
"auth_type=>req.auth_type,\n"
"security_type=>req.security_type,\n"
"template=>req.template,\n"
"version=>req.version,\n"
"security_schema=>req.security_schema,\n"
"http_header=>NULL);\n"
"\n"
"\n"
"whenever SQLSTATE \'*\' default;\n"
"\n"
"update SYS_WSRM_OUT_MESSAGE_LOG set OML_STATE = 1\n"
"where OML_INDENTIFIER = identifier and OML_MESSAGE_ID = state.msgno and OML_STATE <> 3;\n"
"\n"
"\n"
"\n"
"if (ret is not null)\n"
"{\n"
"declare _all_is_send integer;\n"
"\n"
"update SYS_WSRM_OUT_MESSAGE_LOG set OML_RESPONSE = xml_tree_doc (ret)\n"
"where OML_INDENTIFIER = identifier and OML_MESSAGE_ID = state.msgno;\n"
"\n"
"WSRM_CLIENT_ERROR (ret);\n"
"WSRM_UPDATE_CLIENT_TABLES (ret, state);\n"
"if (is_last)\n"
"{\n"
"select count (*) into _all_is_send from SYS_WSRM_OUT_MESSAGE_LOG\n"
"where OML_STATE <> 3 and OML_INDENTIFIER = identifier;\n"
"\n"
"if (_all_is_send = 0)\n"
"state.is_finish := 1;\n"
"}\n"
"}\n"
"\n"
"return 0;\n"
"}\n"
"--src wsrmcli.sql:334\n";
static const char *proc83 =
"#line 436 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_CLIENT_ERROR (in err_vec any)\n"
"{\n"
"declare xt any;\n"
"if (err_vec is not NULL)\n"
"{\n"
"xt := xml_tree_doc (err_vec);\n"
"if (xpath_eval (\'[ xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" ] //env:Fault\', xt, 1) is not null)\n"
"{\n"
"declare error_text varchar;\n"
"error_text :=\n"
"xpath_eval (\'[ xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" ] //env:Fault/faultstring\',\n"
"xt, 1);\n"
"signal (\'WSRMC\', cast (error_text as varchar));\n"
"}\n"
"}\n"
"}\n"
"--src wsrmcli.sql:434\n";
static const char *proc84 =
"#line 454 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_RESENDER (in identifier varchar)\n"
"{\n"
"declare ret, list any;\n"
"declare resend_message SOAP_CLIENT_REQ;\n"
"declare st, pa soap_parameter;\n"
"declare state wsrm_cli;\n"
"declare addr wsa_cli;\n"
"declare idx, len integer;\n"
"\n"
"set isolation=\'committed\';\n"
"list := vector ();\n"
"\n"
"for select OML_MESSAGE_ID, OML_MESSAGE, OML_ADDRESS from SYS_WSRM_OUT_MESSAGE_LOG\n"
"where OML_STATE <> 3 and OML_INDENTIFIER = identifier do\n"
"{\n"
"list := vector_concat (list, vector (vector (OML_MESSAGE_ID, OML_MESSAGE, OML_ADDRESS)));\n"
"}\n"
"\n"
"commit work;\n"
"\n"
"idx := 0;\n"
"len := length (list);\n"
"\n"
"while (idx < len)\n"
"{\n"
"declare policy any;\n"
"resend_message := list[idx][1];\n"
"addr := list[idx][2];\n"
"\n"
"state := new wsrm_cli (addr, addr.\"to\", identifier);\n"
"state.msgno := list[idx][0];\n"
"\n"
"WSRM_CLIENT (state, 0, resend_message);\n"
"\n"
"idx := idx + 1;\n"
"}\n"
"}\n"
"--src wsrmcli.sql:452\n";
static const char *proc85 =
"#line 493 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_ACKNOWLEDGEMENT_PROCESS (in state wsrm_cli, in identifier varchar, in stru any)\n"
"{\n"
"declare my_max, idx, idx2, len2 integer;\n"
"declare list, dummy any;\n"
"declare cr cursor for select OML_MESSAGE_ID from SYS_WSRM_OUT_MESSAGE_LOG\n"
"where OML_INDENTIFIER = identifier;\n"
"list := vector ();\n"
"whenever not found goto ret;\n"
"open cr (exclusive);\n"
"fetch cr into dummy;\n"
"select count (*) into my_max from SYS_WSRM_OUT_MESSAGE_LOG where OML_INDENTIFIER = identifier;\n"
"\n"
"list := make_array (my_max + 1, \'any\');\n"
"idx := 0;\n"
"\n"
"while (idx <= my_max)\n"
"{\n"
"aset (list, idx, 0);\n"
"idx := idx + 1;\n"
"}\n"
"\n"
"aset (list, 0, state.is_finish);\n"
"\n"
"idx := 0;\n"
"\n"
"declare elm any;\n"
"while (elm := adm_next_keyword (\'AcknowledgementRange\', stru, idx))\n"
"{\n"
"\n"
"idx2 := get_keyword (\'Lower\', elm[1], 0);\n"
"len2 := get_keyword (\'Upper\', elm[1], 0);\n"
"\n"
"while (idx2 <= len2)\n"
"{\n"
"aset (list, idx2, 1);\n"
"idx2 := idx2 + 1;\n"
"}\n"
"}\n"
"\n"
"if (elm = 0)\n"
"update SYS_WSRM_OUT_MESSAGE_LOG set OML_STATE = 3\n"
"where OML_INDENTIFIER = identifier;\n"
"\n"
"\n"
"idx := 1;\n"
"\n"
"while (idx <= my_max)\n"
"{\n"
"if (list[idx])\n"
"{\n"
"update SYS_WSRM_OUT_MESSAGE_LOG set OML_STATE = 3\n"
"where OML_INDENTIFIER = identifier and OML_MESSAGE_ID = idx;\n"
"if (row_count () = 0)\n"
"{\n"
"signal (\'42000\', \'Error on WSRM Client. The WSRM Server have unsend message.\');\n"
"}\n"
"}\n"
"idx := idx + 1;\n"
"\n"
"}\n"
"ret:\n"
"close cr;\n"
"return list;\n"
"}\n"
"--src wsrmcli.sql:491\n";
static const char *proc86 =
"#line 559 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_UPDATE_CLIENT_TABLES (in response any, in state wsrm_cli)\n"
"{\n"
"declare xt any;\n"
"declare s soap_parameter;\n"
"declare identifier varchar;\n"
"\n"
"xt := xml_tree_doc (response);\n"
"s := new soap_parameter ();\n"
"s.set_xsd (\'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceAcknowledgement_t\');\n"
"s.deserialize (xt, \'SequenceAcknowledgement[1]\');\n"
"\n"
"identifier := cast (xpath_eval (\'//Identifier\', xt, 1) as varchar);\n"
"\n"
"return WSRM_ACKNOWLEDGEMENT_PROCESS (state, identifier, s.s);\n"
"}\n"
"--src wsrmcli.sql:557\n";
static const char *proc87 =
"#line 577 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_CLIENT_ACKREQUESTED (in req wsrm_cli)\n"
"{\n"
"declare _headers, wa, ack any;\n"
"declare identifier varchar;\n"
"declare n soap_parameter;\n"
"\n"
"identifier := req.seq;\n"
"\n"
"n := new soap_parameter (identifier);\n"
"ack := vector (vector (\'\', \'http://schemas.xmlsoap.org/ws/2005/02/rm:AckRequested\'), vector (n.s));\n"
"wa := WSA_REQ (req);\n"
"_headers := vector_concat (ack, wa);\n"
"\n"
"commit work;\n"
"return SOAP_CLIENT (url=>req.url, operation=>\'WSRMAckRequested\',\n"
"style=>(128+64+1), headers=>_headers, direction=>0);\n"
"}\n"
"--src wsrmcli.sql:575\n";
static const char *proc88 =
"#line 598 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_CLIENT_ACKTERMINATE (in req wsrm_cli)\n"
"{\n"
"declare _headers any;\n"
"declare n soap_parameter;\n"
"declare identifier varchar;\n"
"\n"
"identifier := req.seq;\n"
"n := new soap_parameter (identifier);\n"
"\n"
"_headers := vector (vector (\'\', \'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceTerminate\'), vector (n.s));\n"
"\n"
"SOAP_CLIENT (url=>req.url, operation=>\'WSRMSequenceTerminate\', headers=>_headers, direction=>1);\n"
"}\n"
"--src wsrmcli.sql:596\n";
static const char *other47 =
"insert soft SYS_SCHEDULED_EVENT (SE_NAME, SE_START, SE_SQL, SE_INTERVAL)\n"
"values (\'WSRM Client Scheduled Tasks\', now(), \'DB.DBA.WSRM_CLIENT_SCHEDULED_TASKS ()\', 100)\n";
static const char *proc89 =
"#line 619 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_CLIENT_SCHEDULED_TASKS ()\n"
"{\n"
"\n"
"for (select WOS_IDENTIFIER, WOS_DELIVERY_ASSURANCE, WOS_SEQUENCE_EXPIRATION,\n"
"WOS_INACTIVITY_TIMEOUT, WOS_RETRANSMISSION_INTERVAL, WOS_ACKNOWLEDGEMENT_INTERVAL\n"
"from SYS_WSRM_OUT_SEQUENCES where WOS_IDENTIFIER = \'\') do\n"
"{\n"
"if ((WOS_ACKNOWLEDGEMENT_INTERVAL is not NULL)\n"
"and (datediff (\'seconds\', WOS_ACKNOWLEDGEMENT_INTERVAL, now ()) > 0))\n"
"{\n"
" ;\n"
"}\n"
"\n"
"if ((WOS_RETRANSMISSION_INTERVAL is not NULL)\n"
"and (datediff (\'seconds\', WOS_RETRANSMISSION_INTERVAL, now ()) > 0))\n"
"{\n"
" ;\n"
"}\n"
"}\n"
"\n"
"set isolation=\'committed\';\n"
"\n"
"for (select OML_INDENTIFIER from SYS_WSRM_OUT_MESSAGE_LOG where OML_STATE <> 3) do\n"
"{\n"
"WSRM_RESENDER (OML_INDENTIFIER);\n"
"}\n"
"}\n"
"--src wsrmcli.sql:617\n";
static const char *proc90 =
"#line 648 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSRM_GET_IDENTIFIER (in s any)\n"
"{\n"
"declare ret soap_parameter;\n"
"\n"
"ret := new soap_parameter ();\n"
"ret.set_struct (s);\n"
"return ret.get_value ();\n"
"}\n"
"--src wsrmcli.sql:646\n";
static const char *proc91 =
"#line 659 \"[executable]/wsrmcli.sql\"\n"
"create procedure WSA_REQ (inout state wsrm_cli)\n"
"{\n"
"declare req, mid, mto, mac any;\n"
"declare mfrom, mreply, mfault soap_parameter;\n"
"\n"
"mfrom := new soap_parameter ();\n"
"mreply := new soap_parameter ();\n"
"mfault := new soap_parameter ();\n"
"\n"
"req := vector ();\n"
"mfrom.set_xsd (\'http://schemas.xmlsoap.org/ws/2004/08/addressing:From\');\n"
"if (state.address.\"from\" is not null)\n"
"mfrom.add_member (\'Address\', state.address.\"from\");\n"
"else\n"
"mfrom.add_member (\'Address\', \'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous\');\n"
"mfrom.set_attribute (\'Id\', uuid ());\n"
"req := vector_concat (mfrom.get_call_param (\'\'));\n"
"\n"
"if (state.address.mid is not null)\n"
"{\n"
"mid := vector (vector (\'\', \'http://schemas.xmlsoap.org/ws/2004/08/addressing:MessageID\'),\n"
"vector (composite (), vector (\'Id\', uuid ()), state.address.mid));\n"
"req := vector_concat (req, mid);\n"
"}\n"
"\n"
"if (state.address.\"to\" is not null)\n"
"{\n"
"mto := vector (vector (\'\', \'http://schemas.xmlsoap.org/ws/2004/08/addressing:To\'),\n"
"vector (composite (), vector (\'Id\', uuid ()), state.address.\"to\"));\n"
"req := vector_concat (req, mto);\n"
"}\n"
"\n"
"if (state.address.action is not null)\n"
"{\n"
"mac := vector (vector (\'\', \'http://schemas.xmlsoap.org/ws/2004/08/addressing:Action\'),\n"
"vector (composite (), vector (\'Id\', uuid ()), state.address.action));\n"
"req := vector_concat (req, mac);\n"
"}\n"
"\n"
"if (state.address.reply_to is not null)\n"
"{\n"
"mreply.set_xsd (\'http://schemas.xmlsoap.org/ws/2004/08/addressing:ReplyTo\');\n"
"mreply.add_member (\'Address\', state.address.reply_to);\n"
"mreply.set_attribute (\'Id\', uuid ());\n"
"req := vector_concat (req, mreply.get_call_param (\'\'));\n"
"}\n"
"\n"
"if (state.address.fault_to is not null)\n"
"{\n"
"mfault.set_xsd (\'http://schemas.xmlsoap.org/ws/2004/08/addressing:FaultTo\');\n"
"mfault.add_member (\'Address\', state.address.fault_to);\n"
"mfault.set_attribute (\'Id\', uuid ());\n"
"req := vector_concat (req, mfault.get_call_param (\'\'));\n"
"}\n"
"\n"
"return req;\n"
"}\n"
"--src wsrmcli.sql:657\n";
/* wsrmsrv.sql */
static const char *proc92 =
"#line 23 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_INIT ()\n"
"{\n"
"if (not isstring (registry_get (\'WSRMServerID\')))\n"
"registry_set (\'WSRMServerID\', uuid ());\n"
"}\n"
"--src wsrmsrv.sql:21\n";
static const char *other48 =
" WSRM_INIT ()\n";
static const char *proc93 =
"#line 35 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRMSequence\n"
"(\n"
"in Sequence any __soap_header \'http://schemas.xmlsoap.org/ws/2005/02/rm:Sequence\',\n"
"in PolicyAttachment any := null __soap_header \'http://schemas.xmlsoap.org/ws/2002/12/policy:PolicyAttachment\',\n"
"in MessageID any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:MessageID\',\n"
"inout \"To\" any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:To\',\n"
"inout Action any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:Action\',\n"
"inout \"From\" any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:From\',\n"
"in ReplyTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:ReplyTo\',\n"
"in FaultTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:FaultTo\',\n"
"in Security any := null __soap_header \'http://schemas.xmlsoap.org/ws/2003/06/secext:Security\',\n"
"out RelatesTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:RelatesTo\',\n"
"out Acknowledgement any __soap_header \'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceAcknowledgement\',\n"
"out SequenceFault any __soap_fault \'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceFault\',\n"
"in ws_soap_request any\n"
")\n"
"__soap_options (__soap_doc := \'__VOID__\', \"DefaultOperation\" := 1)\n"
"{\n"
"\n"
"declare _message_num, is_final, is_sync integer;\n"
"declare identifier, mto varchar;\n"
"declare _message, acknowled, res any;\n"
"declare s soap_parameter;\n"
"declare _from soap_parameter;\n"
"declare address WSA_CLI;\n"
"declare _addr varchar;\n"
"declare lines, pret, tmp any;\n"
"\n"
"\n"
"pret := null;\n"
"is_sync := 0;\n"
"\n"
"declare exit handler for sqlstate \'WSRM*\' {\n"
"\"From\" := null; \"To\" := null; Action := null;\n"
"SequenceFault := WSRM_SERVER_ERROR (__SQL_STATE, identifier);\n"
"connection_set (\'SOAPFault\', vector (\'300\', __SQL_MESSAGE));\n"
"return;\n"
"};\n"
"\n"
"lines := http_request_header ();\n"
"res := null; _addr := null;\n"
"s := new soap_parameter ();\n"
"_from := new soap_parameter ();\n"
"\n"
"if (\"From\" is not null)\n"
"{\n"
"_from.s := \"From\";\n"
"_addr := cast (_from.get_member (\'Address\') as varchar);\n"
"}\n"
"\n"
"\n"
"address := new wsa_cli ();\n"
"\n"
"s.s := Sequence;\n"
"identifier := WSRM_GET_IDENTIFIER (s.get_member (\'Identifier\'));\n"
"insert soft SYS_WSRM_IN_SEQUENCES (WIS_IDENTIFIER) values (identifier);\n"
"\n"
"\n"
"if ((MessageID is not NULL) and (Action is not NULL) and (\"From\" is not NULL) and (\"To\" is not NULL))\n"
"{\n"
"address.mid := MessageID;\n"
"address.action := Action;\n"
"address.\"from\" := _addr;\n"
"address.\"to\" := \"To\";\n"
"address.reply_to := ReplyTo;\n"
"address.fault_to := FaultTo;\n"
"\n"
"s.s := ReplyTo;\n"
"}\n"
"else\n"
"{\n"
"signal (\'WSRM1\', concat (\'The Sequence is terminated or address is not complete.\'));\n"
"}\n"
"\n"
"\n"
"\n"
"\n"
"if (PolicyAttachment is not NULL)\n"
"{\n"
"declare bri, i_timeout, acli, exp, del_ass, spec_ver any;\n"
"declare apl, pol soap_parameter;\n"
"\n"
"s := new soap_parameter();\n"
"s.s := PolicyAttachment;\n"
"apl := new soap_parameter ();\n"
"apl.s := s.get_member (\'AppliesTo\')[0];\n"
"pol := new soap_parameter ();\n"
"\n"
"identifier := apl.get_attribute(\'Identifier\');\n"
"\n"
"pol.s := s.get_member (\'Policy\');\n"
"i_timeout := pol.get_member(\'BaseRetransmissionInterval\')[1][1];\n"
"bri := pol.get_member(\'BaseRetransmissionInterval\')[1][1];\n"
"acli := pol.get_member(\'AcknowledgementInterval\')[1][1];\n"
"exp := pol.get_member(\'Expires\');\n"
"del_ass := pol.get_member(\'DeliveryAssurance\')[1][1];\n"
"spec_ver := pol.get_member(\'SpecVersion\')[1][1];\n"
"\n"
"update SYS_WSRM_IN_SEQUENCES set\n"
"WIS_VERSION = spec_ver,\n"
"WIS_DELIVERY_ASSURANCE = del_ass,\n"
"WIS_SEQUENCE_EXPIRATION = exp,\n"
"WIS_INACTIVITY_TIMEOUT = i_timeout,\n"
"WIS_RETRANSMISSION_INTERVAL = bri,\n"
"WIS_ACKNOWLEDGEMENT_INTERVAL = acli\n"
"where WIS_IDENTIFIER = identifier;\n"
"\n"
"}\n"
"\n"
"if (Sequence is not NULL)\n"
"{\n"
"declare opts any;\n"
"s.s := Sequence;\n"
"identifier := WSRM_GET_IDENTIFIER (s.get_member (\'Identifier\'));\n"
"_message_num := s.get_member (\'MessageNumber\');\n"
"is_final := s.get_member (\'LastMessage\');\n"
"\n"
"WSRM_CHECK_POLICY (identifier);\n"
"\n"
"_message := xml_tree_doc (ws_soap_request);\n"
"\n"
"if (is_final is null) is_final := -1;\n"
"\n"
"if ((is_final <> -1 and _addr is null) or\n"
"_addr = \'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous\')\n"
"{\n"
"is_sync := 1;\n"
"}\n"
"else\n"
"{\n"
"http_rewrite ();\n"
"http_request_status (\'HTTP/1.1 202 Accepted\');\n"
"http_flush ();\n"
"}\n"
"\n"
"insert soft SYS_WSRM_IN_MESSAGE_LOG (IML_INDENTIFIER, IML_MESSAGE_ID, IML_MESSAGE, IML_ADDRES, IML_STATE)\n"
"values (identifier, _message_num, _message, address, is_final);\n"
"\n"
"opts := http_map_get (\'soap_opts\');\n"
"if (isarray (opts))\n"
"{\n"
"declare pname varchar;\n"
"declare nmsg any;\n"
"pname := get_keyword (\'WSRM-Callback\', opts);\n"
"if (length (pname) and __proc_exists (pname))\n"
"{\n"
"nmsg := xslt (\'http://local.virt/wsrmcall\', _message);\n"
"pret := call (pname) (nmsg, identifier, _message_num);\n"
"}\n"
"}\n"
"\n"
"commit work;\n"
"}\n"
"\n"
"\n"
"if (is_sync)\n"
"{\n"
"\n"
"\n"
"res := WSRM_ACKNOWLEDGEMENT (identifier);\n"
"\n"
"\n"
"if (res is not NULL)\n"
"{\n"
"Acknowledgement := res;\n"
"if (pret is not null and MessageID is not null)\n"
"{\n"
"declare _to, _from_addr any;\n"
"if (\"To\" is not null and \"From\" is not null)\n"
"{\n"
"_to := \"To\"[2];\n"
"_from_addr := get_keyword (\'Address\', \"From\");\n"
"\"To\" := vector (composite(), \'\', _from_addr); \"From\" := soap_box_structure (\'Address\', _to);\n"
"}\n"
"RelatesTo := vector (composite(), vector (\'RelationshipType\',\'wsa:Response\'), MessageID[2]);\n"
"}\n"
"else\n"
"{\n"
"\"From\" := vector (composite (), vector (\'Id\', \'Id-\'||uuid()), \'Address\', _addr);\n"
"\"To\" := vector (composite(), vector (\'Id\', \'Id-\'||uuid()), \'\');\n"
"}\n"
"return pret;\n"
"}\n"
"}\n"
"else\n"
"{\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"goto flushit;\n"
"};\n"
"WSRM_ASYNC_PROCESS (identifier);\n"
"flushit:;\n"
"}\n"
"}\n"
"--src wsrmsrv.sql:33\n";
static const char *proc94 =
"#line 232 \"[executable]/wsrmsrv.sql\"\n"
"create procedure\n"
"WSRMSequenceTerminate\n"
"(\n"
"in SequenceTerminate any __soap_header \'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceTerminate\'\n"
")\n"
"__soap_options (__soap_doc := \'__VOID__\', DefaultOperation := 0)\n"
"{\n"
"declare identifier varchar;\n"
"\n"
"if (SequenceTerminate is not NULL)\n"
"{\n"
"identifier := cast (SequenceTerminate[0][2] as varchar);\n"
"\n"
"delete from SYS_WSRM_IN_MESSAGE_LOG where IML_INDENTIFIER = identifier;\n"
"delete from SYS_WSRM_IN_SEQUENCES where WIS_IDENTIFIER = identifier;\n"
"\n"
"commit work;\n"
"http_request_status (\'HTTP/1.1 202 Accepted\');\n"
"http_flush ();\n"
"http_request_status (\'reply sent\');\n"
"}\n"
"\n"
"return;\n"
"}\n"
"--src wsrmsrv.sql:230\n";
static const char *proc95 =
"#line 258 \"[executable]/wsrmsrv.sql\"\n"
"create procedure\n"
"WSRMAckRequested\n"
"(\n"
"in AckRequested any __soap_header \'http://schemas.xmlsoap.org/ws/2005/02/rm:AckRequested\',\n"
"in ws_soap_request any,\n"
"out SequenceFault any __soap_fault \'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceFault\',\n"
"out Acknowledgement any __soap_header \'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceAcknowledgement\'\n"
")\n"
"__soap_options (__soap_doc := \'__VOID__\', DefaultOperation := 0)\n"
"{\n"
"declare identifier varchar;\n"
"\n"
"declare exit handler for sqlstate \'WSRM*\' {\n"
"SequenceFault := WSRM_SERVER_ERROR (__SQL_STATE, identifier);\n"
"connection_set (\'SOAPFault\', vector (\'300\', __SQL_MESSAGE));\n"
"return;\n"
"};\n"
"\n"
"if (AckRequested is not NULL)\n"
"{\n"
"identifier := cast (AckRequested [0][2] as varchar);\n"
"WSRM_CHECK_POLICY (identifier);\n"
"Acknowledgement := WSRM_ACKNOWLEDGEMENT (identifier);\n"
"}\n"
"return;\n"
"}\n"
"--src wsrmsrv.sql:256\n";
static const char *proc96 =
"#line 286 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_ACKNOWLEDGEMENT (in identifier varchar)\n"
"{\n"
"declare idx, max_exist, upper, lower, flag integer;\n"
"declare s, r soap_parameter;\n"
"declare _headers any;\n"
"\n"
"s := new soap_parameter ();\n"
"r := new soap_parameter ();\n"
"\n"
"s.add_member (\'Identifier\', soap_parameter (identifier));\n"
"\n"
"\n"
"idx := 1; lower := -1; flag := 0;\n"
"\n"
"select max (IML_MESSAGE_ID) into max_exist from SYS_WSRM_IN_MESSAGE_LOG where IML_INDENTIFIER = identifier;\n"
"\n"
"if (max_exist is NULL)\n"
"{\n"
"max_exist := 0;\n"
"lower := 0;\n"
"idx := 0;\n"
"}\n"
"\n"
"while (idx <= max_exist)\n"
"{\n"
"if (exists (select 1 from SYS_WSRM_IN_MESSAGE_LOG where\n"
"IML_INDENTIFIER = identifier and IML_MESSAGE_ID = idx))\n"
"{\n"
"if (flag <> 2)\n"
"lower := idx;\n"
"\n"
"upper := idx;\n"
"flag := 2;\n"
"}\n"
"else\n"
"flag := 1;\n"
"\n"
"if ((flag = 1 and lower > 0) or (idx = max_exist))\n"
"{\n"
"r := new soap_parameter ();\n"
"r.set_attribute (\'Upper\', upper);\n"
"r.set_attribute (\'Lower\', lower);\n"
"s.add_member (\'AcknowledgementRange\', r);\n"
"flag := 0; lower := -1;\n"
"}\n"
"\n"
"idx := idx + 1;\n"
"}\n"
"\n"
"\n"
"return s.s;\n"
"}\n"
"--src wsrmsrv.sql:284\n";
static const char *proc97 =
"#line 340 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_SERVER_ERROR (in _state varchar, in identifier varchar)\n"
"{\n"
"declare f, ack soap_parameter;\n"
"f := soap_parameter ();\n"
"f.add_member (\'Identifier\', soap_parameter (identifier));\n"
"\n"
"if (_state = \'WSRM1\')\n"
"f.add_member (\'FaultCode\', soap_parameter (\'wsrm:SequenceTerminated\'));\n"
"else if (_state = \'WSRM2\')\n"
"f.add_member (\'FaultCode\', soap_parameter (\'wsrm:UnknownSequence\'));\n"
"else if (_state = \'WSRM5\')\n"
"f.add_member (\'FaultCode\', soap_parameter (\'wsrm:LastMessageNumberExceeded\'));\n"
"else\n"
"f.add_member (\'FaultCode\', soap_parameter (\'wsrm:SequenceRefused\'));\n"
"\n"
"if (0)\n"
"{\n"
"ack := soap_parameter ();\n"
"ack.set_attribute (\'Upper\', 1);\n"
"ack.set_attribute (\'Lower\', 10);\n"
"f.add_member (\'AcknowledgementRange\', ack);\n"
"}\n"
"return f.s;\n"
"\n"
"}\n"
"--src wsrmsrv.sql:338\n";
static const char *proc98 =
"#line 367 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_CHECK_POLICY (in identifier varchar)\n"
"{\n"
"if (exists (select 1 from SYS_WSRM_IN_MESSAGE_LOG where IML_INDENTIFIER = identifier and\n"
"IML_STATE = 5))\n"
"{\n"
"signal (\'WSRM1\', concat (\'The Sequence is terminated (\',\n"
"cast (identifier as varchar), \')\'));\n"
"}\n"
"\n"
"if (exists (select 1 from SYS_WSRM_IN_MESSAGE_LOG where IML_INDENTIFIER = identifier and\n"
"IML_STATE = 1))\n"
"{\n"
"update SYS_WSRM_IN_MESSAGE_LOG set IML_STATE = 2 where IML_INDENTIFIER = identifier;\n"
"commit work;\n"
"signal (\'WSRM5\', concat (\'Last message number exceeded (\',\n"
"cast (identifier as varchar), \')\'));\n"
"}\n"
"\n"
"\n"
"if (not exists (select 1 from SYS_WSRM_IN_SEQUENCES where WIS_IDENTIFIER = identifier))\n"
"{\n"
"signal (\'WSRM2\', concat (\'The sequence not exists (\',\n"
"cast (identifier as varchar), \')\'));\n"
"}\n"
"}\n"
"--src wsrmsrv.sql:365\n";
static const char *proc99 =
"#line 394 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_MAKE_RANGES (in arr any)\n"
"{\n"
"declare res, elm any;\n"
"declare i, l int;\n"
"res := vector ();\n"
"elm := vector (0, 0);\n"
"i := 0; l := length (arr);\n"
"while (i < l)\n"
"{\n"
"if (elm[0] = 0)\n"
"elm[0] := arr[i];\n"
"if (elm[1]+1 <> arr[i])\n"
"{\n"
"res := vector_concat (res, vector (elm));\n"
"elm := vector (arr[i], arr[i]);\n"
"}\n"
"elm[1] := arr[i];\n"
"\n"
"i := i + 1;\n"
"}\n"
"if (l = 1)\n"
"res := vector (elm);\n"
"else if (elm[0] <> 0)\n"
"res := vector_concat (res, vector (elm));\n"
"return res;\n"
"}\n"
"--src wsrmsrv.sql:392\n";
static const char *proc100 =
"#line 422 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_ASYNC_ACK_SEND (in seq varchar, in address varchar, in range any)\n"
"{\n"
"\n"
"declare n, ack, ra soap_parameter;\n"
"declare req wsrm_cli;\n"
"declare addr wsa_cli;\n"
"declare i, l, retr int;\n"
"declare wa, ranges any;\n"
"declare vhdr any;\n"
"\n"
"\n"
"vhdr := \'X-Virt-WSRM-ID: \' || registry_get (\'WSRMServerID\') || \';\' || cast (seq as varchar) || \';\' ;\n"
"n := new soap_parameter (seq);\n"
"ack := new soap_parameter ();\n"
"\n"
"ack.add_member (\'Identifier\', n);\n"
"ack.set_xsd (\'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceAcknowledgement\');\n"
"\n"
"ranges := WSRM_MAKE_RANGES (range);\n"
"\n"
"i := 0; l := length (ranges); retr := 0;\n"
"\n"
"if (l = 0)\n"
"return;\n"
"\n"
"while (i < l)\n"
"{\n"
"ra := new soap_parameter ();\n"
"ra.set_attribute (\'Upper\', ranges[i][1]);\n"
"ra.set_attribute (\'Lower\', ranges[i][0]);\n"
"ack.add_member (\'AcknowledgementRange\', ra);\n"
"vhdr := vhdr || sprintf(\'%d-%d;\', ranges[i][0], ranges[i][1]);\n"
"i := i + 1;\n"
"}\n"
"\n"
"req := wsrm_cli ();\n"
"addr := wsa_cli ();\n"
"addr.\"from\" := \'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous\';\n"
"addr.\"to\" := \'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous\';\n"
"addr.action := \'http://schemas.xmlsoap.org/ws/2004/03/rm#SequenceAcknowledgement\';\n"
"req.address := addr;\n"
"\n"
"wa := WSA_REQ (req);\n"
"\n"
"vhdr := vhdr || \'\\r\\n\';\n"
"\n"
"declare exit handler for sqlstate \'HTCLI\' {\n"
"retr := retr + 1;\n"
"if (retr > 3)\n"
"resignal;\n"
"};\n"
"\n"
"commit work;\n"
"SOAP_CLIENT (url=>address, operation=>\'AcknowledgementRange\', style=>(128+64+1), direction=>1,\n"
"headers=>vector_concat (wa, ack.get_call_param(\'\')), http_header=>null);\n"
"}\n"
"--src wsrmsrv.sql:420\n";
static const char *proc101 =
"#line 481 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_ASYNC_PROCESS (in seq varchar)\n"
"{\n"
"declare range varchar;\n"
"declare addr varchar;\n"
"\n"
"range := vector ();\n"
"addr := null;\n"
"\n"
"for select IML_MESSAGE_ID, IML_STATE, IML_ADDRES from SYS_WSRM_IN_MESSAGE_LOG where IML_INDENTIFIER = seq\n"
"do\n"
"{\n"
"if (IML_ADDRES is not null)\n"
"addr := (IML_ADDRES as wsa_cli).\"from\";\n"
"range := vector_concat (range, vector (IML_MESSAGE_ID));\n"
"}\n"
"\n"
"\n"
"\n"
"if (addr is not null)\n"
"WSRM_ASYNC_ACK_SEND (seq, addr, range);\n"
"\n"
"update SYS_WSRM_IN_SEQUENCES set WIS_ACK_SENT = 1 where WIS_IDENTIFIER = seq;\n"
"return;\n"
"}\n"
"--src wsrmsrv.sql:479\n";
static const char *other49 =
"insert soft SYS_SCHEDULED_EVENT (SE_NAME, SE_START, SE_SQL, SE_INTERVAL)\n"
"values (\'WSRM Server Scheduled Tasks\', now(), \'DB.DBA.WSRM_SERVER_SCHEDULED_TASKS ()\', 100)\n";
static const char *proc102 =
"#line 512 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRM_SERVER_SCHEDULED_TASKS ()\n"
"{\n"
"\n"
"declare idn varchar;\n"
"\n"
"\n"
"\n"
"declare cr1 cursor for select WIS_IDENTIFIER\n"
"from SYS_WSRM_IN_SEQUENCES where WIS_SEQUENCE_EXPIRATION < now ();\n"
"\n"
"whenever not found goto nf1;\n"
"open cr1 (prefetch 1);\n"
"\n"
"while (1)\n"
"{\n"
"fetch cr1 into idn;\n"
"delete from SYS_WSRM_IN_MESSAGE_LOG where IML_INDENTIFIER = idn;\n"
"delete from SYS_WSRM_IN_SEQUENCES where current of cr1;\n"
"}\n"
"\n"
"nf1:\n"
"close cr1;\n"
"\n"
"\n"
"\n"
"declare cr2 cursor for select IML_INDENTIFIER\n"
"from SYS_WSRM_IN_MESSAGE_LOG where IML_STATE = 6;\n"
"\n"
"whenever not found goto nf2;\n"
"open cr2 (prefetch 1);\n"
"\n"
"while (1)\n"
"{\n"
"fetch cr2 into idn;\n"
"delete from SYS_WSRM_IN_SEQUENCES where WIS_IDENTIFIER = idn;\n"
"delete from SYS_WSRM_IN_MESSAGE_LOG where current of cr1;\n"
"}\n"
"\n"
"nf2:\n"
"close cr2;\n"
"\n"
"}\n"
"--src wsrmsrv.sql:510\n";
static const char *proc103 =
"#line 557 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRMSequenceAcknowledgement (\n"
"in SequenceAcknowledgement any __soap_header \'http://schemas.xmlsoap.org/ws/2005/02/rm:SequenceAcknowledgement\',\n"
"in MessageID any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:MessageID\',\n"
"in \"To\" any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:To\',\n"
"in Action any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:Action\',\n"
"in \"From\" any __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:From\',\n"
"in ReplyTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:ReplyTo\',\n"
"in FaultTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:FaultTo\',\n"
"in Security any := null __soap_header \'http://schemas.xmlsoap.org/ws/2003/06/secext:Security\',\n"
"in ws_soap_request any\n"
")\n"
"__soap_options (__soap_doc := \'__VOID__\', DefaultOperation := 1)\n"
"{\n"
"declare s soap_parameter;\n"
"declare identifier varchar;\n"
"declare cli wsrm_cli;\n"
"declare lines any;\n"
"\n"
"lines := http_request_header ();\n"
"s := new soap_parameter ();\n"
"s.s := SequenceAcknowledgement;\n"
"identifier := cast (WSRM_GET_IDENTIFIER (s.get_member (\'Identifier\')) as varchar);\n"
"\n"
"\n"
"cli := new wsrm_cli (WSA_CLI(), \'\', identifier);\n"
"\n"
"WSRM_ACKNOWLEDGEMENT_PROCESS (cli, identifier, s.s);\n"
"\n"
"\n"
"\n"
"http_request_status (\'HTTP/1.1 202 Accepted\');\n"
"http_flush ();\n"
"http_request_status (\'reply sent\');\n"
"}\n"
"--src wsrmsrv.sql:555\n";
static const char *proc104 =
"#line 594 \"[executable]/wsrmsrv.sql\"\n"
"create procedure WSRMCreateSequence\n"
"(\n"
"in CreateSequence any __soap_type \'http://schemas.xmlsoap.org/ws/2005/02/rm:CreateSequence\',\n"
"in MessageID any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:MessageID\',\n"
"in \"To\" any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:To\',\n"
"in Action any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:Action\',\n"
"in \"From\" any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:From\',\n"
"in ReplyTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:ReplyTo\',\n"
"in FaultTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:FaultTo\'\n"
")\n"
"__soap_doc \'http://schemas.xmlsoap.org/ws/2005/02/rm:CreateSequenceResponse\'\n"
"{\n"
"declare identifier any;\n"
"identifier := \'uuid:\' || lower (uuid ());\n"
"insert soft SYS_WSRM_IN_SEQUENCES (WIS_IDENTIFIER) values (identifier);\n"
"return soap_box_structure (\'Identifier\', vector (composite (), \'\', identifier));\n"
"}\n"
"--src wsrmsrv.sql:592\n";
static const char *proc105 =
"#line 614 \"[executable]/wsrmsrv.sql\"\n"
"create procedure TerminateSequence\n"
"(\n"
"in TerminateSequence any __soap_type \'http://schemas.xmlsoap.org/ws/2005/02/rm:TerminateSequence\',\n"
"in MessageID any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:MessageID\',\n"
"in \"To\" any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:To\',\n"
"in Action any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:Action\',\n"
"in \"From\" any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:From\',\n"
"in ReplyTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:ReplyTo\',\n"
"in FaultTo any := null __soap_header \'http://schemas.xmlsoap.org/ws/2004/08/addressing:FaultTo\'\n"
")\n"
"__soap_doc \'__VOID__\'\n"
"{\n"
"delete from SYS_WSRM_IN_SEQUENCES where WIS_IDENTIFIER = TerminateSequence[0][2];\n"
"http_request_status (\'HTTP/1.1 202 Accepted\');\n"
"http_flush ();\n"
"http_request_status (\'reply sent\');\n"
"return;\n"
"}\n"
"--src wsrmsrv.sql:612\n";
/* wstr_ddl.sql */
static const char *udt4 =
"create type POLICY_STRUCT as\n"
"(\n"
"usage varchar,\n"
"token_type varchar,\n"
"token_issuer varchar,\n"
"user_name varchar,\n"
"user_pass varchar,\n"
"debug integer default 0,\n"
"token varchar\n"
")\n";
static const char *tbl6 =
"create table WST_SERVER_ISSUER_TOKENS\n"
"(\n"
"WSK_TOKEN_TYPE varchar,\n"
"WSK_REQUEST_TYPE varchar,\n"
"WSK_APPLIES_TO varchar,\n"
"WSK_FROM varchar,\n"
"WSK_SERVICE_NAME varchar,\n"
"WSK_PORT_TYPE varchar,\n"
"WSK_TOKEN varchar,\n"
"PRIMARY KEY (WSK_TOKEN_TYPE, WSK_FROM, WSK_TOKEN)\n"
")\n";
/* wstrcli.sql */
static const char *proc106 =
"#line 23 \"[executable]/wstrcli.sql\"\n"
"create procedure WST_CLI (in req SOAP_CLIENT_REQ, in policy POLICY_STRUCT)\n"
"{\n"
"declare ret any;\n"
"\n"
"ret := WST_GETRST (req, policy);\n"
"\n"
"if (policy.debug = 1)\n"
"return ret;\n"
"\n"
"policy.token := ret;\n"
"\n"
"ret := WS_TRUST_REQ (req, policy);\n"
"\n"
"return ret;\n"
"}\n"
"--src wstrcli.sql:21\n";
static const char *proc107 =
"#line 40 \"[executable]/wstrcli.sql\"\n"
"create procedure WST_GETRST (in req SOAP_CLIENT_REQ, in policy POLICY_STRUCT)\n"
"{\n"
"declare ret any;\n"
"declare headers, param any;\n"
"declare wsa_from, wsu_time, par, created, expr, m_id, a_to, act soap_parameter;\n"
"declare rst SOAP_CLIENT_REQ;\n"
"declare style integer;\n"
"\n"
"rst := new SOAP_CLIENT_REQ ();\n"
"\n"
"rst.url := policy.token_issuer;\n"
"rst.operation := \'RequestSecurityToken\';\n"
"\n"
"wsa_from := new soap_parameter ();\n"
"wsa_from.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:From\');\n"
"wsa_from.add_member (\'Address\', \'http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous\');\n"
"wsa_from.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"created := new soap_parameter (dt_set_tz (now (), 0));\n"
"created.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Created\');\n"
"created.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"expr := new soap_parameter (dt_set_tz (dateadd (\'minute\', 5, now ()), 0));\n"
"expr.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Expires\');\n"
"expr.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"wsu_time := new soap_parameter ();\n"
"wsu_time.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Timestamp\');\n"
"wsu_time.add_member (\'Created\', created);\n"
"wsu_time.add_member (\'Expires\', expr);\n"
"\n"
"m_id := new soap_parameter (lower (\'UUID:\'||uuid ()));\n"
"m_id.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:MessageID\');\n"
"m_id.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"a_to := new soap_parameter (rst.url);\n"
"a_to.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:To\');\n"
"a_to.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"act := new soap_parameter (\'http://schemas.xmlsoap.org/security/RequestSecurityToken\');\n"
"act.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:Action\');\n"
"act.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"headers := vector_concat (act.get_call_param (\'\'), wsa_from.get_call_param (\'\'), m_id.get_call_param (\'\'),\n"
"a_to.get_call_param (\'\'), wsu_time.get_call_param (\'\'));\n"
"\n"
"connection_set (\'__soap_ws_trust_user\', policy.user_name);\n"
"connection_set (\'__soap_ws_trust_pass\', policy.user_pass);\n"
"\n"
"if (policy.debug = 1)\n"
"style := 1 + 2 + 16;\n"
"else\n"
"style := 1 + 16;\n"
"\n"
"param := vector (vector (\n"
"\'RequestSecurityToken\', \'http://schemas.xmlsoap.org/ws/2002/12/secext:RequestSecurityToken\'),\n"
"soap_box_structure (\'TokenType\', \'wsse:\' || policy.token_type,\n"
"\'RequestType\', \'wsse:\' || policy.usage));\n"
"\n"
"ret := SOAP_CLIENT (url=>rst.url, operation=>rst.operation, headers=>headers,\n"
"style=>style,\n"
"parameters=>param,\n"
"auth_type=>\'key\',\n"
"soap_action=>\'http://schemas.xmlsoap.org/security/RequestSecurityToken\',\n"
"template=>\'[func:DB.DBA.SOAP_WS_TRUST_XENC_TEMPLATE]\',\n"
"\n"
"security_type=>\'sign\');\n"
"\n"
"if (policy.debug = 1)\n"
"return ret;\n"
"\n"
"return cast(xpath_eval (\'/RequestSecurityTokenResponse/RequestedSecurityToken/BinarySecurityToken/text()\'\n"
", xml_tree_doc (ret)) as varchar);\n"
"}\n"
"--src wstrcli.sql:38\n";
static const char *proc108 =
"#line 117 \"[executable]/wstrcli.sql\"\n"
"create procedure WS_TRUST_REQ (in rst SOAP_CLIENT_REQ, in policy POLICY_STRUCT)\n"
"{\n"
"declare headers, ret, cli_cert_name any;\n"
"declare wsa_from, wsu_time, par, created, expr, m_id, a_to, act soap_parameter;\n"
"declare style integer;\n"
"\n"
"wsa_from := new soap_parameter ();\n"
"wsa_from.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:From\');\n"
"wsa_from.add_member (\'Address\', \'http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous\');\n"
"wsa_from.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"created := new soap_parameter (dt_set_tz (now (), 0));\n"
"created.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Created\');\n"
"created.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"expr := new soap_parameter (dt_set_tz (dateadd (\'minute\', 500, now ()), 0));\n"
"expr.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Expires\');\n"
"expr.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"wsu_time := new soap_parameter ();\n"
"wsu_time.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Timestamp\');\n"
"wsu_time.add_member (\'Created\', created);\n"
"wsu_time.add_member (\'Expires\', expr);\n"
"\n"
"m_id := new soap_parameter (lower (\'UUID:\'||uuid ()));\n"
"m_id.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:MessageID\');\n"
"m_id.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"a_to := new soap_parameter (rst.url);\n"
"a_to.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:To\');\n"
"a_to.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"act := new soap_parameter (\'http://weblogs.contoso.com/wse/samples/2003/07/AddEntry\');\n"
"act.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:Action\');\n"
"act.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"if (policy.debug = 2)\n"
"style := 1 + 2 + 16;\n"
"else\n"
"style := 1 + 16;\n"
"\n"
"cli_cert_name := get_certificate_info (8, decode_base64 (policy.token), 1);\n"
"\n"
"if (cli_cert_name is null)\n"
"signal (\'42000\', \'Cannot resolve issued security token.\');\n"
"\n"
"headers := vector_concat (act.get_call_param (\'\'), wsa_from.get_call_param (\'\'), m_id.get_call_param (\'\'),\n"
"a_to.get_call_param (\'\'), wsu_time.get_call_param (\'\'));\n"
"\n"
"return SOAP_CLIENT (url=>rst.url, operation=>rst.operation, headers=>headers, style=>style, security_type=>\'sign\',\n"
"parameters=>rst.parameters, auth_type=>\'key\', template=>\'[\' || cli_cert_name || \']\');\n"
"}\n"
"--src wstrcli.sql:115\n";
/* wstrsrv.sql */
static const char *proc109 =
"#line 24 \"[executable]/wstrsrv.sql\"\n"
"create procedure WS.SOAP.RequestSecurityToken\n"
"(\n"
"in \"RequestSecurityToken\" any := null __soap_type \'http://schemas.xmlsoap.org/ws/2002/12/secext:RequestSecurityToken\',\n"
"out RequestSecurityTokenResponse any __soap_type \'http://schemas.xmlsoap.org/ws/2002/12/secext:RequestSecurityTokenResponse\',\n"
"inout \"From\" any __soap_header \'http://schemas.xmlsoap.org/ws/2003/03/addressing:From\',\n"
"inout \"MessageID\" any __soap_header \'http://schemas.xmlsoap.org/ws/2003/03/addressing:MessageID\',\n"
"out \"RelatesTo\" any __soap_header \'http://schemas.xmlsoap.org/ws/2003/03/addressing:RelatesTo\',\n"
"out \"Timestamp\" any __soap_header \'http://schemas.xmlsoap.org/ws/2002/07/utility:Timestamp\',\n"
"inout \"To\" any __soap_header \'http://schemas.xmlsoap.org/ws/2003/03/addressing:To\'\n"
") __soap_doc \'__VOID__\'\n"
"\n"
"{\n"
"declare ret any;\n"
"declare in_m_id any;\n"
"declare param any;\n"
"declare mid, bsc_any any;\n"
"declare wsa_from, wsu_time, par, created, expr, m_id, a_to, releates_to, bsc, resp, headers soap_parameter;\n"
"\n"
"bsc_any := ws_trust_token_gen (\"From\", \"MessageID\", \"RequestSecurityToken\", \"Timestamp\", \"To\");\n"
"in_m_id := cast (\"MessageID\"[1][1] as varchar);\n"
"\n"
"wsa_from := new soap_parameter ();\n"
"wsa_from.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:From\');\n"
"wsa_from.add_member (\'Address\', \'http://\' || sys_connected_server_address () || http_map_get (\'domain\'));\n"
"wsa_from.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"created := new soap_parameter (dt_set_tz (now (), 0));\n"
"created.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Created\');\n"
"created.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"expr := new soap_parameter (dt_set_tz (dateadd (\'minute\', 500, now ()), 0));\n"
"expr.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Expires\');\n"
"expr.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"wsu_time := new soap_parameter ();\n"
"wsu_time.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/07/utility:Timestamp\');\n"
"wsu_time.add_member (\'Created\', created);\n"
"wsu_time.add_member (\'Expires\', expr);\n"
"\n"
"m_id := new soap_parameter (lower (\'UUID:\'||uuid ()));\n"
"m_id.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:MessageID\');\n"
"m_id.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"a_to := new soap_parameter (\'http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous\');\n"
"a_to.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:To\');\n"
"a_to.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"releates_to := new soap_parameter (in_m_id);\n"
"releates_to.set_xsd (\'http://schemas.xmlsoap.org/ws/2003/03/addressing:RelatesTo\');\n"
"releates_to.set_attribute (\'RelationshipType\', \'wsa:Response\' || uuid());\n"
"releates_to.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"bsc := new soap_parameter (bsc_any);\n"
"bsc.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/12/secext:BinarySecurityTokenType\');\n"
"bsc.set_attribute (\'ValueType\', \'wsse:X509v3\');\n"
"bsc.set_attribute (\'EncodingType\', \'wsse:Base64Binary\');\n"
"bsc.set_attribute (\'Id\', \'Id-\' || uuid());\n"
"\n"
"resp := new soap_parameter ();\n"
"resp.set_xsd (\'http://schemas.xmlsoap.org/ws/2002/12/secext:RequestSecurityTokenResponse\');\n"
"resp.add_member (\'TokenType\', \'wsse:X509v3\');\n"
"resp.add_member (\'RequestedSecurityToken\', vector (bsc.s));\n"
"\n"
"RequestSecurityTokenResponse := resp.s;\n"
"\"From\" := wsa_from.s;\n"
"\"MessageID\" := m_id.s;\n"
"\"Timestamp\" := wsu_time.s;\n"
"\"RelatesTo\" := releates_to.s;\n"
"\"To\" := a_to.s;\n"
"}\n"
"--src wstrsrv.sql:22\n";
static const char *other50 =
"SOAP_LOAD_SCH (WSRM_WSS0212_XSD (), null, 0, 0)\n";
static const char *proc110 =
"#line 99 \"[executable]/wstrsrv.sql\"\n"
"create procedure DB.DBA.WS_TRUST_TOKEN_GEN (in \"From\" any, in \"MessageID\" any, in \"RequestSecurityToken\" any,\n"
"in \"Timestamp\" any, in \"To\" any)\n"
"{\n"
"declare ret any;\n"
"declare t_type, r_type, l_from varchar;\n"
"\n"
"if (__proc_exists (\'DB.DBA.WST_GET_SECURITY_TOKEN\'))\n"
"{\n"
"ret := call (\'DB.DBA.WST_GET_SECURITY_TOKEN\') (\"From\", \"MessageID\", \"RequestSecurityToken\", \"Timestamp\", \"To\");\n"
"return ret;\n"
"}\n"
"\n"
"t_type := cast (\"RequestSecurityToken\"[3] as varchar);\n"
"r_type := cast (\"RequestSecurityToken\"[5] as varchar);\n"
"l_from := cast (\"From\"[3] as varchar);\n"
"\n"
"select WSK_TOKEN into ret from WST_SERVER_ISSUER_TOKENS\n"
"where WSK_TOKEN_TYPE = t_type and WSK_REQUEST_TYPE = r_type and WSK_FROM = l_from;\n"
"\n"
"return ret;\n"
"}\n"
"--src wstrsrv.sql:97\n";
/* wsrmcall.xsl */
static const char *xsl23[]= {
"<?xml version=\"1.0\"?>\n"
"<!--\n"
" - \n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<!DOCTYPE xsl:stylesheet [\n"
"<!ENTITY soapencuri \"http://schemas.xmlsoap.org/soap/encoding/\">\n"
"<!ENTITY soapenv \"http://schemas.xmlsoap.org/soap/envelope/\">\n"
"<!ENTITY xsiuri \"http://www.w3.org/2001/XMLSchema-instance\">\n"
"<!ENTITY xsduri \"http://www.w3.org/2001/XMLSchema\">\n"
"<!ENTITY wsa \"http://schemas.xmlsoap.org/ws/2003/03/addressing\">\n"
"<!ENTITY wsa1 \"http://schemas.xmlsoap.org/ws/2004/03/addressing\">\n"
"<!ENTITY wsa2 \"http://schemas.xmlsoap.org/ws/2004/08/addressing\">\n"
"<!ENTITY wsu \"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">\n"
"<!ENTITY wsse \"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">\n"
"<!ENTITY ds \"http://www.w3.org/2000/09/xmldsig#\">\n"
"<!ENTITY xenc \"http://www.w3.org/2001/04/xmlenc#\">\n"
"]>\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
" xmlns:wsrm=\"http://schemas.xmlsoap.org/ws/2005/02/rm\"\n"
" xmlns:soapenc=\"&soapencuri;\"\n"
" xmlns:SOAP=\"&soapenv;\"\n"
" xmlns:wsa=\"&wsa;\"\n"
" xmlns:wsa1=\"&wsa1;\"\n"
" xmlns:wsa2=\"&wsa2;\"\n"
" xmlns:xsd=\"&xsduri;\"\n"
" xmlns:xsi=\"&xsiuri;\"\n"
" xmlns:wsu=\"&wsu;\"\n"
" xmlns:wsse=\"&wsse;\"\n"
" xmlns:ds=\"&ds;\"\n"
" xmlns:xenc=\"&xenc;\"\n"
" >\n"
"<xsl:output method=\"xml\" indent=\"yes\" omit-xml-declaration=\"yes\"/>\n"
" <xsl:template match=\"/\">\n"
" <xsl:apply-templates />\n"
" </xsl:template>\n"
" <xsl:template match=\"wsrm:*\" />\n"
" <xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates />\n"
" </xsl:copy>\n"
" </xsl:template>\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* rdf_net.sql */
static const char *other51 =
"DB.DBA.VHOST_REMOVE (lpath=>\'/rdf_net\')\n";
static const char *other52 =
"DB.DBA.VHOST_DEFINE (lpath=>\'/rdf_net\', ppath=>\'/rdf_net\')\n";
static const char *proc111 =
"#line 36 \"[executable]/rdf_net.sql\"\n"
"create procedure rdf_net () __SOAP_HTTP \'text/html\'\n"
"{\n"
" ;\n"
"}\n"
"--src rdf_net.sql:34\n";
static const char *other53 =
"grant execute on DB.DBA.rdf_net to public\n";
static const char *proc112 =
"#line 45 \"[executable]/rdf_net.sql\"\n"
"create procedure DB.DBA.HTTP_RDF_NET (in _q any)\n"
"{\n"
"declare res, mdta, dta any;\n"
"declare state, msg, _check any;\n"
"declare ses any;\n"
"\n"
"_q := trim (_q);\n"
"\n"
"if (_q= \'\') return;\n"
"\n"
"_check := sql_parse (_q);\n"
"if (_check [0] <> 100)\n"
"signal (\'rdf_net\', \'Error in query.\');\n"
"\n"
"res := exec (_q, state, msg, vector (), 0, mdta, dta);\n"
"\n"
"DB.DBA.rdf_net_make_struct (mdta, dta);\n"
"\n"
"return mdta;\n"
"}\n"
"--src rdf_net.sql:43\n";
static const char *proc113 =
"#line 68 \"[executable]/rdf_net.sql\"\n"
"create procedure\n"
"rdf_net_format_mdta (inout mdta any)\n"
"{\n"
"declare idx, _line, _name, temp any;\n"
"\n"
"temp := mdta[0];\n"
"\n"
"for (idx := 0; idx < length (temp); idx := idx + 1)\n"
"{\n"
"_line := temp[idx];\n"
"_name := temp[idx][0];\n"
"_name := replace (_name, \' \', \'_\');\n"
"aset (_line, 0, _name);\n"
"aset (temp, idx, _line);\n"
"}\n"
"\n"
"aset (mdta, 0, temp);\n"
"}\n"
"--src rdf_net.sql:66\n";
static const char *proc114 =
"#line 90 \"[executable]/rdf_net.sql\"\n"
"create procedure\n"
"rdf_net_make_xml (inout dta any, inout mdta any)\n"
"{\n"
"declare i, l, idx int;\n"
"declare ses any;\n"
"declare xsd varchar;\n"
"\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" ?>\\n\', ses);\n"
"http (\'<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:vcard=\"http://www.w3.org/2001/vcard-rdf/3.0#\" xmlns=\"http://example.org/book/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:ns=\"http://example.org/ns#\">\\n\', ses);\n"
"i := 0; l := length (dta);\n"
"while (i < l)\n"
"{\n"
"declare _name, _row, _line varchar;\n"
"declare _type, _type_name, nill int;\n"
"_row := dta[i];\n"
"for (idx := 2; idx < length (_row); idx := idx + 2)\n"
"{\n"
"_type := _row[idx];\n"
"_name := _row[idx + 1];\n"
"_type := cast (_type as varchar);\n"
"_name := cast (_name as varchar);\n"
"\n"
"http (sprintf (\'<rdf:Description>\\n\'), ses);\n"
"http (sprintf (\'<%s>%s</%s>\\n\', _type, _name, _type), ses);\n"
"http (\'</rdf:Description>\\n\', ses);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"http (\'</rdf:RDF>\', ses);\n"
"xsd := string_output_string (ses);\n"
"mdta := xsd;\n"
"return;\n"
"}\n"
"--src rdf_net.sql:88\n";
static const char *proc115 =
"#line 127 \"[executable]/rdf_net.sql\"\n"
"create procedure\n"
"rdf_net_make_element (in mdta any, in dta any)\n"
"{\n"
"declare res any;\n"
"declare i, l, i1, i2 int;\n"
"i := 0; l := length (mdta); i1 := 2; i2 := 3;\n"
"res := make_array (2 + (l*2), \'any\');\n"
"while (i < l)\n"
"{\n"
"aset (res, i1, mdta[i][0]);\n"
"if (mdta[i][1] = 131 and not isblob(dta[i]))\n"
"aset (res, i2, cast (dta[i] as varbinary));\n"
"else\n"
"aset (res, i2, dta[i]);\n"
"i := i + 1;\n"
"i1 := i1 + 2;\n"
"i2 := i1 + 1;\n"
"}\n"
"return res;\n"
"}\n"
"--src rdf_net.sql:125\n";
static const char *proc116 =
"#line 150 \"[executable]/rdf_net.sql\"\n"
"create procedure rdf_net_make_struct (inout mdta any, inout dta any)\n"
"{\n"
"declare res any;\n"
"declare i, l int;\n"
"mdta := mdta[0];\n"
"i := 0; l := length (dta);\n"
"res := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"aset (res, i, rdf_net_make_element (mdta, dta[i]));\n"
"i := i + 1;\n"
"}\n"
"dta := res;\n"
"rdf_net_make_xml (dta, mdta);\n"
"}\n"
"--src rdf_net.sql:148\n";
static const char *other54 =
"grant execute on DB.DBA.HTTP_RDF_NET to public\n";
/* simile.sql */
static const char *proc117 =
"#line 26 \"[executable]/simile.sql\"\n"
"create procedure\n"
"DB.DBA.SIMILE_INIT ()\n"
"{\n"
"if (exists (select 1 from \"DB\".\"DBA\".\"SYS_USERS\" where U_NAME = \'SIMILE\'))\n"
"return;\n"
"DB.DBA.USER_CREATE (\'SIMILE\', uuid(), vector (\'DISABLED\', 1, \'LOGIN_QUALIFIER\', \'SIMILE\'));\n"
"}\n"
"--src simile.sql:24\n";
static const char *other55 =
" DB.DBA.SIMILE_INIT ()\n";
static const char *other56 =
"DB.DBA.VHOST_REMOVE (lpath=>\'/bank\')\n";
static const char *other57 =
"DB.DBA.VHOST_DEFINE (lpath=>\'/bank\', ppath=>\'/SOAP/Http/simile\', soap_user=>\'SIMILE\')\n";
static const char *proc118 =
"#line 48 \"[executable]/simile.sql\"\n"
"create procedure simile_iri (in s varchar)\n"
"{\n"
"return concat (\'http://simile.org/piggybank/\', s);\n"
"}\n"
"--src simile.sql:46\n";
static const char *proc119 =
"#line 55 \"[executable]/simile.sql\"\n"
"create procedure SIMILE.SIMILE.simile () __SOAP_HTTP \'text/html\'\n"
"{\n"
"declare lines, ppath, path, pars, command, _rdf, _user, graph_iri, iri any;\n"
"\n"
"lines := http_request_header ();\n"
"pars := http_param ();\n"
"ppath := http_physical_path ();\n"
"path := split_and_decode (ppath, 0, \'\\0\\0/\');\n"
"_user := path[4];\n"
"\n"
"command := trim (ucase (get_keyword (\'command\', pars, \'\')));\n"
"_rdf := get_keyword (\'content\', pars, \'\');\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"if (command = \'UPLOAD\')\n"
"upload (_rdf, _user);\n"
"else if (command = \'CREATE\')\n"
"create_u (_user, lines);\n"
"else if (command = \'REMOVE\')\n"
"remove_u (_user);\n"
"else if (command = \'SAVE\')\n"
"upload (_rdf, _user);\n"
"else if (command = \'PUBLISH\')\n"
"upload (_rdf, _user);\n"
"else if (command = \'PERSIST\')\n"
"persist (_user);\n"
"else\n"
"http_request_status (\'HTTP/1.1 405 Method Not Allowed\');\n"
"\n"
"\n"
"}\n"
"--src simile.sql:53\n";
static const char *proc120 =
"#line 94 \"[executable]/simile.sql\"\n"
"create procedure SIMILE.SIMILE.upload (in _rdf any, in _user varchar)\n"
"{\n"
"set_user_id (\'dba\');\n"
"DB.DBA.RDF_LOAD_RDFXML (_rdf, simile_iri (\'simile\'), simile_iri (_user));\n"
"}\n"
"--src simile.sql:92\n";
static const char *proc121 =
"#line 101 \"[executable]/simile.sql\"\n"
"create procedure SIMILE.SIMILE.\"create_u\" (in _user varchar, in lines any)\n"
"{\n"
"declare _pass any;\n"
"_pass := WS.WS.FINDPARAM (lines, \'x-sembank-password-hash:\');\n"
"\n"
"if (exists (select 1 from WS.WS.SYS_DAV_USER where U_NAME = _user and pwd_magic_calc (U_NAME, U_PWD, 1) = _pass\n"
"and U_ACCOUNT_DISABLED = 0))\n"
"http_request_status (\'HTTP/1.1 201 Created\');\n"
"else\n"
"http_request_status (\'HTTP/1.1 403 Forbidden\');\n"
"}\n"
"--src simile.sql:99\n";
static const char *proc122 =
"#line 114 \"[executable]/simile.sql\"\n"
"create procedure SIMILE.SIMILE.\"remove_u\" (in _item varchar)\n"
"{\n"
"return;\n"
"}\n"
"--src simile.sql:112\n";
static const char *proc123 =
"#line 120 \"[executable]/simile.sql\"\n"
"create procedure SIMILE.SIMILE.\"persist\" (in _obj_uri varchar)\n"
"{\n"
"return;\n"
"}\n"
"--src simile.sql:118\n";
static const char *other58 =
"grant execute on simile to public\n";
/* xrd2json.xsl */
static const char *xsl26[]= {
"<?xml version=\"1.0\" ?>\n"
"<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n"
" <xsl:output method=\"text\" media-type=\"application/json\"/>\n"
" <xsl:variable name=\"uc\">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>\n"
" <xsl:variable name=\"lc\">abcdefghijklmnopqrstuvwxyz</xsl:variable>\n"
" <xsl:template match=\"XRD\">\n"
"{\n"
" <xsl:apply-templates select=\"Subject|Host|Alias\"/>\n"
" \"link\": \n"
" [\n"
" <xsl:for-each select=\"Link\">\n"
" {\n"
" <xsl:for-each select=\"@*\">\"<xsl:value-of select=\"local-name(.)\"/>\": \"<xsl:value-of select=\".\"/>\"<xsl:if test=\"position () != last ()\">,\n"
" </xsl:if></xsl:for-each>\n"
" }<xsl:if test=\"position () != last ()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" ]\n"
"}\n"
" </xsl:template>\n"
" <xsl:template match=\"Subject|Host|Alias\">\"<xsl:value-of select=\"translate (local-name(.), $uc, $lc)\"/>\": \"<xsl:value-of select=\".\"/>\",</xsl:template>\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* http_auth.sql */
static const char *proc124 =
"#line 26 \"[executable]/http_auth.sql\"\n"
"create procedure\n"
"DB.DBA.HP_AUTH_SQL_USER (in realm varchar)\n"
"{\n"
"declare _u_name, _u_password varchar;\n"
"declare _u_group, _u_id, allow_basic integer;\n"
"\n"
"declare sec, lev varchar;\n"
"declare _user varchar;\n"
"declare ses_dta, lines, auth any;\n"
"\n"
"lines := http_request_header ();\n"
"sec := http_map_get (\'security_level\');\n"
"if (isstring (sec))\n"
"sec := ucase (sec);\n"
"if (sec = \'DIGEST\')\n"
"allow_basic := 0;\n"
"else\n"
"allow_basic := 1;\n"
"\n"
"auth := DB.DBA.vsp_auth_vec (lines);\n"
"if (0 <> auth)\n"
"{\n"
"\n"
"lev := get_keyword (\'authtype\', auth, \'\');\n"
"if (allow_basic = 0 and \'basic\' = lev)\n"
"goto nf;\n"
"_user := get_keyword (\'username\', auth, \'\');\n"
"\n"
"if (\'\' = _user)\n"
"return 0;\n"
"\n"
"whenever not found goto nf;\n"
"\n"
"select U_NAME, U_PASSWORD, U_GROUP, U_ID\n"
"into _u_name, _u_password, _u_group, _u_id from DB.DBA.SYS_USERS\n"
"where U_NAME = _user and U_ACCOUNT_DISABLED = 0 and U_SQL_ENABLE = 1 and U_IS_ROLE = 0;\n"
"\n"
"if (1 = DB.DBA.vsp_auth_verify_pass (auth, _u_name,\n"
"get_keyword (\'realm\', auth, \'\'),\n"
"get_keyword (\'uri\', auth, \'\'),\n"
"get_keyword (\'nonce\', auth, \'\'),\n"
"get_keyword (\'nc\', auth, \'\'),\n"
"get_keyword (\'cnonce\', auth, \'\'),\n"
"get_keyword (\'qop\', auth, \'\'),\n"
"_u_password))\n"
"{\n"
"connection_set (\'SPARQLUserId\', _u_name);\n"
"if (http_map_get (\'persist_ses_vars\'))\n"
"{\n"
"declare vars any;\n"
"declare sid varchar;\n"
"vars := null;\n"
"sid := http_param (\'sid\');\n"
"vars := coalesce ((select deserialize (ASES_VARS) from DB.DBA.ADMIN_SESSION where ASES_ID = sid),\n"
"null);\n"
"if (sid is not null and vars is null or isarray (vars))\n"
"connection_vars_set (vars);\n"
"if (sid is not null and connection_get (\'sid\') is null)\n"
"{\n"
"connection_set (\'sid\', sid);\n"
"}\n"
"}\n"
"return 1;\n"
"}\n"
"}\n"
"nf:\n"
"DB.DBA.vsp_auth_get (realm, http_path (),\n"
"md5 (datestring (now ())),\n"
"md5 (\'eEsSlLAaf\'),\n"
"\'false\', lines, allow_basic);\n"
"return 0;\n"
"}\n"
"--src http_auth.sql:24\n";
static const char *proc125 =
"#line 102 \"[executable]/http_auth.sql\"\n"
"create procedure\n"
"DB.DBA.HP_AUTH_DAV_ADMIN (in realm varchar)\n"
"{\n"
"declare _u_name, _u_pwd varchar;\n"
"declare _u_group, _u_id, allow_basic integer;\n"
"\n"
"declare sec, lev varchar;\n"
"declare _user varchar;\n"
"declare ses_dta, lines, auth any;\n"
"\n"
"\n"
"lines := http_request_header ();\n"
"sec := http_map_get (\'security_level\');\n"
"if (isstring (sec))\n"
"sec := ucase (sec);\n"
"if (sec = \'DIGEST\')\n"
"allow_basic := 0;\n"
"else\n"
"allow_basic := 1;\n"
"auth := DB.DBA.vsp_auth_vec (lines);\n"
"\n"
"if (0 <> auth)\n"
"{\n"
"\n"
"lev := get_keyword (\'authtype\', auth, \'\');\n"
"if (allow_basic = 0 and \'basic\' = lev)\n"
"goto nf;\n"
"_user := get_keyword (\'username\', auth, \'\');\n"
"\n"
"if (\'\' = _user)\n"
"return 0;\n"
"\n"
"whenever not found goto nf;\n"
"\n"
"select U_NAME, pwd_magic_calc (U_NAME, U_PWD, 1), U_GROUP, U_ID\n"
"into _u_name, _u_pwd, _u_group, _u_id from WS.WS.SYS_DAV_USER\n"
"where U_NAME = _user and U_ACCOUNT_DISABLED = 0;\n"
"\n"
"if (DB.DBA.vsp_auth_verify_pass (auth, _u_name,\n"
"get_keyword (\'realm\', auth, \'\'),\n"
"get_keyword (\'uri\', auth, \'\'),\n"
"get_keyword (\'nonce\', auth, \'\'),\n"
"get_keyword (\'nc\', auth, \'\'),\n"
"get_keyword (\'cnonce\', auth, \'\'),\n"
"get_keyword (\'qop\', auth, \'\'),\n"
"_u_pwd))\n"
"{\n"
"if (http_map_get (\'persist_ses_vars\'))\n"
"{\n"
"declare vars any;\n"
"declare sid varchar;\n"
"vars := null;\n"
"sid := http_param (\'sid\');\n"
"vars := coalesce ((select deserialize (ASES_VARS) from DB.DBA.ADMIN_SESSION where ASES_ID = sid),\n"
"null);\n"
"if (vars is null or isarray (vars))\n"
"connection_vars_set (vars);\n"
"if (connection_get (\'sid\') is null)\n"
"{\n"
"connection_set (\'sid\', sid);\n"
"}\n"
"}\n"
"return (_u_id);\n"
"}\n"
"}\n"
"nf:\n"
"DB.DBA.vsp_auth_get (realm, \'/admin/admin_dav\',\n"
"md5 (datestring (now ())),\n"
"md5 (\'vVAadAnIimMDdaNnimda\'),\n"
"\'false\', lines, allow_basic);\n"
"return 0;\n"
"}\n"
"--src http_auth.sql:100\n";
static const char *proc126 =
"#line 177 \"[executable]/http_auth.sql\"\n"
"create procedure\n"
"DB.DBA.HP_AUTH_DAV_PROTOCOL (in realm varchar)\n"
"{\n"
"declare _u_name, _u_password, _perms varchar;\n"
"declare _u_id, _u_group, req_user, req_group, what integer;\n"
"declare auth any;\n"
"declare _user, lev varchar;\n"
"declare our_auth_vec, lines, sec, path, req_perms, req_meth, cmp_perms, def_page varchar;\n"
"declare _method, allow_basic, authenticated integer;\n"
"\n"
"declare c cursor for select 1, COL_OWNER, COL_GROUP, COL_PERMS\n"
"from WS.WS.SYS_DAV_COL where WS.WS.COL_PATH (COL_ID) = path;\n"
"declare r cursor for select 2, RES_OWNER, RES_GROUP, RES_PERMS\n"
"from WS.WS.SYS_DAV_RES where RES_FULL_PATH = path;\n"
"\n"
"authenticated := 0;\n"
"\n"
"lines := http_request_header ();\n"
"path := http_physical_path ();\n"
"\n"
"if (isarray (lines))\n"
"{\n"
"req_meth := aref (lines, 0);\n"
"if (strchr (req_meth, \' \') is not null)\n"
"req_meth := lower (substring (req_meth, 1, strchr (req_meth, \' \')));\n"
"}\n"
"\n"
"\n"
"if (req_meth = \'get\' or\n"
"req_meth = \'post\' or\n"
"req_meth = \'options\' or\n"
"req_meth = \'propfind\' or\n"
"req_meth = \'head\' or\n"
"req_meth = \'trace\' or\n"
"req_meth = \'copy\')\n"
"cmp_perms := \'1__\';\n"
"else if (req_meth = \'mkcol\' or req_meth = \'put\')\n"
"{\n"
"if (length (path) > 1 and strrchr (substring (path, 1, length(path) - 1), \'/\') is not null)\n"
"path := substring (path, 1, strrchr (substring (path, 1, length(path) - 1), \'/\') + 1);\n"
"cmp_perms := \'11_\';\n"
"}\n"
"else\n"
"cmp_perms := \'11_\';\n"
"\n"
"\n"
"what := 0;\n"
"whenever not found goto fr;\n"
"open c (prefetch 1);\n"
"fetch c into what, req_user, req_group, req_perms;\n"
"def_page := http_map_get (\'default_page\');\n"
"if (isstring (def_page))\n"
"{\n"
"path := concat (path, def_page);\n"
"what := 0;\n"
"}\n"
"fr:\n"
"close c;\n"
"\n"
"if (not what)\n"
"{\n"
"whenever not found goto fe;\n"
"open r (prefetch 1);\n"
"fetch r into what, req_user, req_group, req_perms;\n"
"fe:\n"
"close r;\n"
"}\n"
"\n"
"\n"
"sec := http_map_get (\'security_level\');\n"
"if (isstring (sec))\n"
"sec := ucase (sec);\n"
"if (sec = \'DIGEST\')\n"
"allow_basic := 0;\n"
"else\n"
"allow_basic := 1;\n"
"\n"
"auth := DB.DBA.vsp_auth_vec (lines);\n"
"\n"
"if (0 <> auth)\n"
"{\n"
"lev := get_keyword (\'authtype\', auth, \'\');\n"
"if (allow_basic = 0 and \'basic\' = lev)\n"
"goto nf;\n"
"\n"
"_user := get_keyword (\'username\', auth);\n"
"\n"
"if (_user = \'\' or isnull (_user))\n"
"{\n"
"goto nf;\n"
"}\n"
"\n"
"whenever not found goto nf;\n"
"\n"
"select U_NAME, pwd_magic_calc (U_NAME, U_PWD, 1), U_GROUP, U_ID, U_METHODS, U_DEF_PERMS\n"
"into _u_name, _u_password, _u_group, _u_id, _method, _perms from WS.WS.SYS_DAV_USER\n"
"where U_NAME = _user and U_ACCOUNT_DISABLED = 0 with (exclusive, prefetch 1);\n"
"if (_u_password is null)\n"
"goto nf;\n"
"if (DB.DBA.vsp_auth_verify_pass (auth, _u_name,\n"
"coalesce(get_keyword (\'realm\', auth), \'\'),\n"
"coalesce(get_keyword (\'uri\', auth), \'\'),\n"
"coalesce(get_keyword (\'nonce\', auth), \'\'),\n"
"coalesce(get_keyword (\'nc\', auth),\'\'),\n"
"coalesce(get_keyword (\'cnonce\', auth), \'\'),\n"
"coalesce(get_keyword (\'qop\', auth), \'\'),\n"
"_u_password))\n"
"{\n"
"update WS.WS.SYS_DAV_USER set U_LOGIN_TIME = now () where U_NAME = _user;\n"
"if (http_map_get (\'persist_ses_vars\'))\n"
"{\n"
"declare vars any;\n"
"declare sid varchar;\n"
"vars := null;\n"
"sid := http_param (\'sid\');\n"
"vars := coalesce ((select deserialize (ASES_VARS) from DB.DBA.ADMIN_SESSION where ASES_ID = sid),\n"
"null);\n"
"if (vars is null or isarray (vars))\n"
"connection_vars_set (vars);\n"
"if (connection_get (\'sid\') is null)\n"
"{\n"
"connection_set (\'sid\', sid);\n"
"}\n"
"}\n"
"if (connection_get (\'DAVUserID\') <> _u_id)\n"
"connection_set (\'DAVUserID\', _u_id);\n"
"authenticated := 1;\n"
"}\n"
"}\n"
"\n"
"\n"
"if (authenticated and _u_id = 1)\n"
"return 1;\n"
"else if (not authenticated and req_perms like concat (\'______\', cmp_perms, \'%\'))\n"
"return -1;\n"
"else if (authenticated and\n"
"((_u_id = req_user and req_perms like concat (cmp_perms, \'%\')) or\n"
"(req_group = _u_group and req_perms like concat (\'___\', cmp_perms, \'%\')) or\n"
"(req_perms like concat (\'______\', cmp_perms, \'%\'))))\n"
"return (_u_id);\n"
"else if (authenticated)\n"
"{\n"
"http_request_status (\'HTTP/1.1 403 Forbidden\');\n"
"http ( concat (\'<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\',\n"
"\'<HTML><HEAD>\',\n"
"\'<TITLE>403 Forbidden</TITLE>\',\n"
"\'</HEAD><BODY><H1>Forbidden</H1>\',\n"
"\'Access to the resource is forbidden.</BODY></HTML>\'));\n"
"return 0;\n"
"}\n"
"\n"
"\n"
"nf:\n"
"DB.DBA.vsp_auth_get (realm, \'/DAV\',\n"
"md5 (datestring(now())),\n"
"md5 (\'opaakki\'),\n"
"\'false\', lines, allow_basic);\n"
"return 0;\n"
"}\n"
"--src http_auth.sql:175\n";
static const char *proc127 =
"#line 339 \"[executable]/http_auth.sql\"\n"
"create procedure\n"
"DB.DBA.HP_SES_VARS_STORE ()\n"
"{\n"
"declare vars any;\n"
"declare sid varchar;\n"
"if (http_map_get (\'persist_ses_vars\') and connection_is_dirty ())\n"
"{\n"
"vars := connection_vars ();\n"
"connection_vars_set (null);\n"
"sid := get_keyword (\'sid\', vars, null);\n"
"if (sid is not null)\n"
"update DB.DBA.ADMIN_SESSION set ASES_VARS = serialize (vars) where ASES_ID = sid;\n"
"}\n"
"}\n"
"--src http_auth.sql:337\n";
static const char *other59 =
"grant execute on DB.DBA.HP_SES_VARS_STORE to public\n";
static const char *proc128 =
"#line 359 \"[executable]/http_auth.sql\"\n"
"create procedure WS.WS.VSP_DEFINE (in path varchar, in _uid varchar)\n"
"{\n"
"declare x, y, stat, msg, st varchar;\n"
"declare str varchar;\n"
"if (strstr (path, \'..\'))\n"
"signal (\'22023\', \'Path contains ..\', \'HT051\');\n"
"str := string_output ();\n"
"\n"
"http (\'create procedure WS.WS.\"\', str);\n"
"http (path, str);\n"
"http (\'\" (in path varchar, in params varchar, in lines varchar) { ?>\', str);\n"
"st := NULL;\n"
"DB.DBA.expand_includes (path, str, 0, NULL, st);\n"
"\n"
"http (\'<?vsp }\', str);\n"
"stat := \'00000\';\n"
"str := string_output_string (str);\n"
"__set_user_id (_uid);\n"
"exec (str, stat, msg, vector (), 0, x, y);\n"
"if (stat <> \'00000\')\n"
"signal (stat, msg);\n"
"registry_set (path, file_stat (concat (http_root (), path)));\n"
"__pop_user_id ();\n"
"return 1;\n"
"}\n"
"--src http_auth.sql:357\n";
static const char *tbl7 =
"CREATE TABLE WS.WS.SESSION (\n"
"S_ID varchar,\n"
"S_EXPIRE datetime,\n"
"S_VARS long varchar,\n"
"S_REQUEST_UNDER_RELOGIN long varchar,\n"
"S_REALM varchar,\n"
"S_IS_DIGEST integer,\n"
"S_DOMAIN varchar,\n"
"S_NONCE varchar,\n"
"S_OPAQUE varchar,\n"
"S_STALE varchar,\n"
"S_QOP varchar,\n"
"S_ALGORITHM varchar,\n"
"S_NC integer,\n"
"primary key (S_REALM, S_ID)\n"
")\n";
static const char *proc129 =
"#line 412 \"[executable]/http_auth.sql\"\n"
" CREATE PROCEDURE WS.WS.SESSION_SAVE ()\n"
"{\n"
"declare sid varchar;\n"
"declare vars any;\n"
"\n"
"\n"
"vars := connection_vars ();\n"
"\n"
"if (http_map_get (\'persist_ses_vars\') and connection_is_dirty ())\n"
"{\n"
"\n"
"sid := get_keyword (\'sid\', vars, null);\n"
"\n"
"if (sid is not null)\n"
"update WS.WS.SESSION set S_VARS = serialize (vars) where S_ID = sid;\n"
"}\n"
"\n"
"connection_vars_set (NULL);\n"
"}\n"
"--src http_auth.sql:410\n";
static const char *proc130 =
"#line 435 \"[executable]/http_auth.sql\"\n"
" CREATE PROCEDURE WS.WS.SESSION_TERMINATE (in url varchar)\n"
"{\n"
"\n"
"delete from WS.WS.SESSION where S_ID = connection_get (\'sid\');\n"
"\n"
"http_request_status (\'HTTP/1.1 302 Found\');\n"
"http_header (sprintf (\'Location: %s\\r\\n\', url));\n"
"}\n"
"--src http_auth.sql:433\n";
static const char *proc131 =
"#line 449 \"[executable]/http_auth.sql\"\n"
" CREATE PROCEDURE WS.WS.DIGEST_AUTH (in realm varchar)\n"
"{\n"
"declare auth_vec, lines, vars, server_nc any;\n"
"declare passwd, sid, old_sid varchar;\n"
"declare client_nc, nonce varchar;\n"
"declare user_check varchar;\n"
"declare opts, public_pages, req_path any;\n"
"\n"
"opts := http_map_get (\'auth_opts\');\n"
"if (isarray (opts))\n"
"{\n"
"declare i, l integer;\n"
"public_pages := split_and_decode (get_keyword (\'public_pages\', opts, \'\'), 0, \',=,\');\n"
"req_path := split_and_decode (http_path (), 0, \'\\0\\0/\');\n"
"l := length (public_pages); i := 0;\n"
"while (i < l)\n"
"{\n"
"if (trim(public_pages[i]) = req_path [length (req_path) - 1] or req_path [length (req_path) - 1] = \'\')\n"
"return 1;\n"
"i := i + 1;\n"
"}\n"
"}\n"
"\n"
"lines := http_request_header();\n"
"auth_vec := DB.DBA.vsp_auth_vec (lines);\n"
"old_sid := null;\n"
"if (0 <> auth_vec)\n"
"{\n"
"declare usp any;\n"
"if (\'digest\' <> lower (get_keyword (\'authtype\' , auth_vec, \'\'))\n"
"or \'\' = get_keyword (\'username\' , auth_vec, \'\'))\n"
"goto nf;\n"
"\n"
"sid := get_keyword (\'opaque\', auth_vec, \'\');\n"
"if (sid = \'\')\n"
"sid := get_keyword (\'nonce\', auth_vec, \'\');\n"
"server_nc := coalesce ((select S_NC from WS.WS.SESSION where S_ID = sid), 0);\n"
"server_nc := sprintf (\'%08x\', server_nc);\n"
"client_nc := lower (get_keyword (\'nc\', auth_vec, \'0\'));\n"
"usp := http_map_get (\'auth_opts\');\n"
"if (not isarray(usp))\n"
"signal (\'22023\', \'The authentication hook needs a authentication option \"users_proc\" to be set to the function for user account checking.\', \'HT055\');\n"
"user_check := get_keyword (\'users_proc\', usp, null);\n"
"if (user_check is null)\n"
"goto nf;\n"
"call (user_check) (get_keyword (\'username\' , auth_vec), passwd);\n"
"if (passwd is null)\n"
"goto nf;\n"
"if (server_nc = client_nc and 1 = DB.DBA.vsp_auth_verify_pass (auth_vec,\n"
"get_keyword (\'username\' , auth_vec),\n"
"get_keyword (\'realm\', auth_vec, \'\'),\n"
"get_keyword (\'uri\', auth_vec, \'\'),\n"
"get_keyword (\'nonce\', auth_vec, \'\'),\n"
"get_keyword (\'nc\', auth_vec, \'\'),\n"
"get_keyword (\'cnonce\', auth_vec, \'\'),\n"
"get_keyword (\'qop\', auth_vec, \'\'),\n"
"passwd))\n"
"{\n"
"vars := coalesce ((select deserialize (S_VARS) from WS.WS.SESSION where S_ID = sid), NULL);\n"
"connection_vars_set (vars);\n"
"if (exists (select 1 from WS.WS.SESSION where S_ID = sid and S_EXPIRE <= now ()))\n"
"{\n"
"delete from WS.WS.SESSION where S_ID = sid and S_EXPIRE <= now ();\n"
"old_sid := sid;\n"
"goto nf;\n"
"}\n"
"update WS.WS.SESSION set S_EXPIRE = dateadd (\'minute\', 10, now ()), S_NC = S_NC + 1 where S_ID = sid;\n"
"return 1;\n"
"}\n"
"}\n"
"nf:\n"
"sid := md5 (concat (datestring (now ()), http_client_ip (), http_path ()));\n"
"nonce := sid;\n"
"vars := vector (\'sid\', sid);\n"
"if (old_sid is not null)\n"
"{\n"
"connection_set (\'sid\', sid);\n"
"vars := connection_vars ();\n"
"connection_vars_set (NULL);\n"
"}\n"
"insert into WS.WS.SESSION (S_REALM, S_ID, S_EXPIRE, S_VARS,\n"
"S_DOMAIN, S_NC, S_OPAQUE, S_NONCE, S_STALE, S_ALGORITHM)\n"
"values (http_path (), sid, dateadd (\'minute\', 10, now ()), serialize (vars),\n"
"http_path (), 1, sid, nonce, \'false\', \'MD5\');\n"
"DB.DBA.vsp_auth_get (realm, http_map_get (\'domain\'), nonce, sid, \'false\', lines, 0);\n"
"http (\'<HTML><BODY><p>Authorization failed (401)</p></BODY></HTML>\');\n"
"return 0;\n"
"}\n"
"--src http_auth.sql:447\n";
static const char *proc132 =
"#line 539 \"[executable]/http_auth.sql\"\n"
"create procedure\n"
"DB.DBA.HP_AUTH_SPARQL_USER (in realm varchar)\n"
"{\n"
"declare _u_name, _u_password varchar;\n"
"declare allow_basic integer;\n"
"declare sec, lev varchar;\n"
"declare _user varchar;\n"
"declare lines, auth any;\n"
"\n"
"lines := http_request_header ();\n"
"sec := http_map_get (\'security_level\');\n"
"if (isstring (sec))\n"
"sec := lower (sec);\n"
"if (sec = \'digest\')\n"
"allow_basic := 0;\n"
"else\n"
"allow_basic := 1;\n"
"\n"
"auth := DB.DBA.vsp_auth_vec (lines);\n"
"if (0 <> auth)\n"
"{\n"
"\n"
"lev := get_keyword (\'authtype\', auth, \'\');\n"
"if (allow_basic = 0 and \'basic\' = lev)\n"
"goto nf;\n"
"_user := get_keyword (\'username\', auth, \'\');\n"
"\n"
"if (\'\' = _user)\n"
"return 0;\n"
"\n"
"whenever not found goto nf;\n"
"\n"
"select U_NAME, U_PASSWORD\n"
"into _u_name, _u_password from DB.DBA.SYS_USERS\n"
"where U_NAME = _user and U_IS_ROLE = 0 and U_SQL_ENABLE = 1 with (prefetch 1);\n"
"\n"
"if (1 = DB.DBA.vsp_auth_verify_pass (auth, _u_name,\n"
"get_keyword (\'realm\', auth, \'\'),\n"
"get_keyword (\'uri\', auth, \'\'),\n"
"get_keyword (\'nonce\', auth, \'\'),\n"
"get_keyword (\'nc\', auth, \'\'),\n"
"get_keyword (\'cnonce\', auth, \'\'),\n"
"get_keyword (\'qop\', auth, \'\'),\n"
"_u_password))\n"
"{\n"
"connection_set (\'SPARQLUserId\', _u_name);\n"
"commit work;\n"
"return 1;\n"
"}\n"
"}\n"
"nf:\n"
"DB.DBA.vsp_auth_get (realm, http_path (),\n"
"md5 (datestring (now ())),\n"
"md5 (\'secret\'),\n"
"\'false\', lines, allow_basic);\n"
"return 0;\n"
"}\n"
"--src http_auth.sql:537\n";
/* xmla.sql */
static const char *udt5 =
"create type xmla_discover as\n"
"(\n"
"request_type varchar,\n"
"restrictions any,\n"
"properties any,\n"
"metadata any\n"
")\n"
"constructor method xmla_discover (request_type varchar, restrictions any, properties any),\n"
"method xmla_discover_datasources () returns any,\n"
"method xmla_discover_properties () returns any,\n"
"method xmla_discover_schema_rowsets () returns any,\n"
"method xmla_discover_enumerators () returns any,\n"
"method xmla_discover_keywords () returns any,\n"
"method xmla_discover_literals () returns any,\n"
"method xmla_dbschema_catalogs () returns any,\n"
"method xmla_dbschema_columns () returns any,\n"
"method xmla_dbschema_foreign_keys () returns any,\n"
"method xmla_dbschema_primary_keys () returns any,\n"
"method xmla_dbschema_provider_types () returns any,\n"
"method xmla_dbschema_tables () returns any,\n"
"method xmla_dbschema_tables_info () returns any,\n"
"method xmla_get_restriction (pname varchar, deflt any) returns any,\n"
"method xmla_get_property (pname varchar, deflt any) returns any,\n"
"method xmla_command () returns any\n";
static const char *other60 =
"create constructor method\n"
"xmla_discover (in request_type varchar, in restrictions any, in properties any) for xmla_discover\n"
"{\n"
"self.request_type := request_type;\n"
"self.restrictions := restrictions;\n"
"self.properties := properties;\n"
"}\n";
static const char *other61 =
"create method\n"
"xmla_command () for xmla_discover\n"
"{\n"
"declare h any;\n"
"declare res any;\n"
"h := udt_implements_method (self, fix_identifier_case (\'xmla_\' || lcase (self.request_type)));\n"
"if (h)\n"
"{\n"
"res := call (h) (self);\n"
"return res;\n"
"}\n"
"signal (\'22023\', \'Not supported request : \' || self.request_type, \'XMLA0\');\n"
"}\n";
static const char *other62 =
"create method\n"
"xmla_get_restriction (in pname varchar, in deflt any) for xmla_discover\n"
"{\n"
"declare restr_list any;\n"
"if (self.restrictions is not null)\n"
"{\n"
"restr_list := get_keyword (\'RestrictionList\', self.restrictions);\n"
"if (restr_list is null)\n"
"restr_list := get_keyword (\'urn:schemas-microsoft-com:xml-analysis:RestrictionList\', self.restrictions);\n"
"if (restr_list is not null)\n"
"{\n"
"declare val any;\n"
"val := get_keyword (pname, restr_list);\n"
"if (val is null)\n"
"val := get_keyword (\'urn:schemas-microsoft-com:xml-analysis:\'||pname, restr_list, deflt);\n"
"return val;\n"
"}\n"
"}\n"
"return deflt;\n"
"}\n";
static const char *other63 =
"create method\n"
"xmla_get_property (in pname varchar, in deflt any) for xmla_discover\n"
"{\n"
"return xmla_get_property (self.properties , pname, deflt);\n"
"}\n";
static const char *proc133 =
"#line 114 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_property (inout properties any, in pname varchar, in deflt any)\n"
"{\n"
"declare prop_list, ses_prop, val any;\n"
"declare i, l int;\n"
"val := null;\n"
"if (properties is not null)\n"
"{\n"
"prop_list := get_keyword (\'PropertyList\', properties, NULL);\n"
"if (prop_list is null)\n"
"prop_list := get_keyword (\'urn:schemas-microsoft-com:xml-analysis:PropertyList\', properties, NULL);\n"
"if (prop_list is not null)\n"
"{\n"
"val := get_keyword (pname, prop_list);\n"
"if (val is null)\n"
"val := get_keyword (\'urn:schemas-microsoft-com:xml-analysis:\'||pname, prop_list);\n"
"}\n"
"if (val is not null)\n"
"return val;\n"
"}\n"
"ses_prop := connection_get (\'XMLA_Properties\');\n"
"i := 0; l := length (ses_prop);\n"
"while (i < l)\n"
"{\n"
"declare elm any;\n"
"elm := ses_prop[i];\n"
"if (elm[0] = pname)\n"
"return elm[5];\n"
"i := i + 1;\n"
"}\n"
"return deflt;\n"
"}\n"
"--src xmla.sql:112\n";
static const char *proc134 =
"#line 149 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_result_xsd (in name varchar, in typ varchar, in typ_name varchar)\n"
"{\n"
"return xslt (\'http://local.virt/soap_sch\',\n"
"xml_tree_doc (\'<complexType name=\"\' || name ||\n"
"\'\" xmlns=\"http://www.w3.org/2001/XMLSchema\"\' ||\n"
"\' xmlns:tns=\"urn:schemas-microsoft-com:xml-analysis:rowset\" targetNamespace=\"urn:schemas-microsoft-com:xml-analysis\">\' ||\n"
"\'<all><element name=\"\' || typ_name || \'\" type=\"tns:\' || typ || \'\" /></all></complexType>\'));\n"
"}\n"
"--src xmla.sql:147\n";
static const char *proc135 =
"#line 160 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_session (in begin_session any, in end_session any, inout _session any, in properties any)\n"
"{\n"
"declare sid varchar;\n"
"if (_session is not null)\n"
"{\n"
"declare copy_ses, saved_props any;\n"
"copy_ses := _session;\n"
"_session := null;\n"
"sid := xpath_eval (\'/Session/@SessionID\', xml_tree_doc (copy_ses), 1);\n"
"saved_props :=\n"
"(select deserialize (S_VARS) from WS.WS.SESSION where S_ID = cast (sid as varchar) and S_REALM = \'XMLA\');\n"
"connection_set (\'XMLA_Properties\', saved_props);\n"
"properties := xmla_set_props (properties);\n"
"update WS.WS.SESSION set S_VARS = serialize (properties), S_EXPIRE = dateadd (\'minute\', 10, now ())\n"
"where S_ID = cast (sid as varchar) and S_REALM = \'XMLA\';\n"
"connection_set (\'XMLA_Properties\', properties);\n"
"commit work;\n"
"}\n"
"else if (begin_session is not null)\n"
"{\n"
"sid := md5 (cast (now() as varchar) || \'XMLA\');\n"
"properties := xmla_set_props (properties);\n"
"insert into WS.WS.SESSION (S_ID, S_EXPIRE, S_VARS, S_REALM)\n"
"values (sid, dateadd (\'minute\', 10, now ()), serialize (properties), \'XMLA\');\n"
"_session := xml_tree_doc (\n"
"\'<XA:Session xmlns:XA=\"urn:schemas-microsoft-com:xml-analysis\"\'\n"
"|| \' mustUnderstand=\"1\" SessionID=\"\' || sid || \'\"/>\'\n"
");\n"
"connection_set (\'XMLA_Properties\', properties);\n"
"commit work;\n"
"}\n"
"else if (end_session is not null)\n"
"{\n"
"sid := xpath_eval (\'/EndSession/@SessionID\', xml_tree_doc (end_session), 1);\n"
"delete from WS.WS.SESSION where S_ID = cast (sid as varchar) and S_REALM = \'XMLA\';\n"
"commit work;\n"
"}\n"
"}\n"
"--src xmla.sql:158\n";
static const char *proc136 =
"#line 201 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_make_codes (in code varchar) returns varchar\n"
"{\n"
"declare i, l int;\n"
"declare res varchar;\n"
"res := \'\';\n"
"i := 0; l := length (code);\n"
"while (i < l)\n"
"{\n"
"if (code[i] >= ascii (\'0\') and code[i] <= ascii (\'9\'))\n"
"res := res || chr (code[i]);\n"
"else\n"
"res := res || sprintf (\'%d\', code[i]);\n"
"i := i + 1;\n"
"}\n"
"return res;\n"
"}\n"
"--src xmla.sql:199\n";
static const char *proc137 =
"#line 220 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"\"Discover\" (in \"RequestType\" varchar,\n"
"in \"Restrictions\" any := NULL\n"
"\n"
", in \"Properties\" any\n"
"\n"
", in \"BeginSession\" any __soap_header \'__XML__\'\n"
", in \"EndSession\" any __soap_header \'__XML__\'\n"
", inout \"Session\" any __soap_header \'__XML__\'\n"
", out \"Error\" any __soap_fault \'__XML__\'\n"
", out \"ws_xmla_xsd\" any\n"
")\n"
"__soap_options (__soap_type:=\'__ANY__\',\n"
"\"soapAction\":=\'urn:schemas-microsoft-com:xml-analysis:Discover\',\n"
"\"RequestNamespace\":=\'urn:schemas-microsoft-com:xml-analysis\',\n"
"\"ResponseNamespace\":=\'urn:schemas-microsoft-com:xml-analysis\',\n"
"\"PartName\":=\'return\'\n"
")\n"
"{\n"
"declare res, mdta any;\n"
"declare discover xmla_discover;\n"
"declare res_xsd any;\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"declare xcode int;\n"
"xcode := atoi (xmla_make_codes (__SQL_STATE));\n"
"\"Error\" :=\n"
"xml_tree_doc (sprintf (\n"
"\'<Error ErrorCode=\"%d\" Description=\"[%s] %V\" Source=\"XML for Analysis Provider\" HelpFile=\"\" />\',\n"
"xcode, __SQL_STATE, __SQL_MESSAGE));\n"
"http_request_status (\'HTTP/1.1 500 Internal Server Error\');\n"
"connection_set (\'SOAPFault\', vector (sprintf (\'XMLAnalysisError.0x%08x\', xcode),\n"
"\'The XML for Analysis provider encountered an error\'));\n"
"return;\n"
"};\n"
"xmla_session (\"BeginSession\", \"EndSession\", \"Session\", \"Properties\");\n"
"discover := new xmla_discover (\"RequestType\", \"Restrictions\", \"Properties\");\n"
"res := discover.xmla_command ();\n"
"\n"
"mdta := discover.metadata;\n"
"\"ws_xmla_xsd\" := vector_concat (vector (xmla_result_xsd (\'return\', \'root\', \'root\')) , DB.DBA.SOAP_LOAD_SCH (mdta, NULL, 1));\n"
"return soap_box_structure (\'root\', vector_concat (vector (discover.metadata), res));\n"
"}\n"
"--src xmla.sql:218\n";
static const char *proc138 =
"#line 265 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"\"Execute\" (in \"Command\" varchar\n"
"\n"
", in \"Properties\" any\n"
"\n"
", in \"BeginSession\" any __soap_header \'__XML__\'\n"
", in \"EndSession\" any __soap_header \'__XML__\'\n"
", inout \"Session\" any __soap_header \'__XML__\'\n"
", out \"Error\" any __soap_fault \'__XML__\'\n"
", out \"ws_xmla_xsd\" any\n"
")\n"
"__soap_options ( __soap_type:=\'__ANY__\',\n"
"\"soapAction\":=\'urn:schemas-microsoft-com:xml-analysis:Execute\',\n"
"\"RequestNamespace\":=\'urn:schemas-microsoft-com:xml-analysis\',\n"
"\"ResponseNamespace\":=\'urn:schemas-microsoft-com:xml-analysis\',\n"
"\"PartName\":=\'return\'\n"
")\n"
"{\n"
"declare res, mdta, dta any;\n"
"declare cat, fmt, axis_fmt, what, dsn, state, msg, stmt, tree, blob_limit, stmt_is_ddl any;\n"
"declare uname, passwd varchar;\n"
"\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"declare xcode int;\n"
"xcode := atoi (xmla_make_codes (__SQL_STATE));\n"
"\"Error\" :=\n"
"xml_tree_doc (sprintf (\n"
"\'<Error ErrorCode=\"%d\" Description=\"[%s] %V\" Source=\"XML for Analysis Provider\" HelpFile=\"\" />\',\n"
"xcode, __SQL_STATE, __SQL_MESSAGE));\n"
"http_request_status (\'HTTP/1.1 500 Internal Server Error\');\n"
"connection_set (\'SOAPFault\', vector (sprintf (\'XMLAnalysisError.0x%08x\', xcode),\n"
"\'The XML for Analysis provider encountered an error\'));\n"
"return;\n"
"};\n"
"xmla_session (\"BeginSession\", \"EndSession\", \"Session\", \"Properties\");\n"
"dsn := xmla_get_property (\"Properties\", \'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"\n"
"uname := xmla_get_property (\"Properties\", \'UserName\', null);\n"
"passwd := xmla_get_property (\"Properties\", \'Password\', null);\n"
"\n"
"\n"
"if (stmt is null and (\"BeginSession\" is not null or \"EndSession\" is not null))\n"
"return xml_tree_doc (\'<root xmlns=\"urn:schemas-microsoft-com:xml-analysis:empty\" />\');\n"
"\n"
"if (uname is null or passwd is null)\n"
"signal (\'00002\', \'Unable to process the request, because the UserName property is not set or incorrect\');\n"
"\n"
"state := \'00000\';\n"
"stmt := get_keyword (\'Statement\', \"Command\");\n"
"if (stmt is null)\n"
"stmt := get_keyword (\'urn:schemas-microsoft-com:xml-analysis:Statement\', \"Command\");\n"
"\n"
"xmla_cursor_stmt_change (\"Properties\", stmt);\n"
"\n"
"cat := xmla_get_property (\"Properties\", \'Catalog\', \'DB\');\n"
"fmt := xmla_get_property (\"Properties\", \'Format\', \'Tabular\');\n"
"axis_fmt := xmla_get_property (\"Properties\", \'AxisFormat\', \'TupleFormat\');\n"
"\n"
"\n"
"if (fmt not in (\'Tabular\') or axis_fmt not in (\'TupleFormat\'))\n"
"signal (\'00003\', \'Unable to process the request, because the Format or AxisFormat property is not supported\');\n"
"\n"
"what := xmla_get_property (\"Properties\", \'Content\', \'SchemaData\');\n"
"\n"
"set_user_id (uname, 1, passwd);\n"
"set_qualifier (cat);\n"
"\n"
"dta := vector ();\n"
"stmt_is_ddl := 0;\n"
"if (not xmla_not_local_dsn (dsn))\n"
"{\n"
"\n"
"tree := sql_parse (stmt);\n"
"if (tree [0] = 609)\n"
"{\n"
"stmt := sprintf (\'SELECT CAST (%s as VARCHAR)\', stmt);\n"
"tree := sql_parse (stmt);\n"
"}\n"
"if (tree [0] <> 100 and tree[0] <> 113)\n"
"{\n"
"if (registry_get (\'XMLA-DML\') = \'1\')\n"
"{\n"
"exec_metadata (\'select 1 as res\', null, null, mdta);\n"
"stmt_is_ddl := 1;\n"
"}\n"
"else\n"
"signal (\'00004\', \'Only select statements are supported via XML for Analysis provider\');\n"
"}\n"
"res := exec (stmt, state, msg, vector (), 0, mdta, dta);\n"
"if (isinteger (dta))\n"
"dta := vector (vector (dta));\n"
"if ((1 = length (dta)) and (1 = length (dta[0])) and (214 = __tag (dta[0][0])))\n"
"{\n"
"declare triples, inx any;\n"
"triples := dict_list_keys (dta[0][0], 1);\n"
"for (inx := 0; inx < length (triples); inx := inx + 1)\n"
"{\n"
"declare trip any;\n"
"trip := triples [inx];\n"
"trip [0] := __ro2sq (trip[0]);\n"
"trip [1] := __ro2sq (trip[1]);\n"
"trip [2] := __ro2sq (trip[2]);\n"
"triples [inx] := trip;\n"
"}\n"
"dta := triples;\n"
"exec_metadata (\'select \\\'\\\' as S, \\\'\\\' as P, \\\'\\\' as O any\', state, msg, mdta);\n"
"}\n"
"\n"
"\n"
"blob_limit := atoi (xmla_get_property (\"Properties\", \'BLOBLimit\', \'0\'));\n"
"if (blob_limit > 0)\n"
"connection_set (\'SOAPBlobLimit\', blob_limit);\n"
"}\n"
"else\n"
"{\n"
"\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"rexecute (dsn, stmt, state, msg, vector (), 0, mdta, dta);\n"
"}\n"
"\n"
"if (state <> \'00000\')\n"
"signal (state, msg);\n"
"\n"
"\n"
"xmla_format_mdta (mdta);\n"
"if (not stmt_is_ddl)\n"
"xmla_make_cursors_state (\"Properties\", dta, stmt);\n"
"xmla_sparql_result (mdta, dta, stmt);\n"
"xmla_make_struct (mdta, dta);\n"
"\"ws_xmla_xsd\" := vector_concat (vector (xmla_result_xsd (\'return\', \'root\', \'root\')) , DB.DBA.SOAP_LOAD_SCH (mdta, NULL, 1));\n"
"return soap_box_structure (\'root\', case what when \'Data\' then dta\n"
"when \'Schema\' then vector (mdta)\n"
"else vector_concat (vector(mdta), dta) end);\n"
"}\n"
"--src xmla.sql:263\n";
static const char *proc139 =
"#line 404 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_not_local_dsn (in dsn varchar)\n"
"{\n"
"declare nfo varchar;\n"
"if (dsn is null)\n"
"return 1;\n"
"nfo := split_and_decode (dsn,0,\'\\0\\0=\');\n"
"if (nfo[0] = xmla_service_name ())\n"
"return 0;\n"
"return 1;\n"
"}\n"
"--src xmla.sql:402\n";
static const char *proc140 =
"#line 417 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_make_meta (in dta any)\n"
"{\n"
"declare i, l, i1 int;\n"
"declare res any;\n"
"i := 0; l := length (dta);\n"
"if (not isarray(dta) or l < 1)\n"
"return NULL;\n"
"dta := dta[0];\n"
"l := length (dta);\n"
"if (__tag(dta[0]) <> 255 or mod(l,2) <> 0 or l < 2)\n"
"return NULL;\n"
"res := make_array ((l/2) - 1, \'any\'); i1 := 0; i := 2;\n"
"while (i < l)\n"
"{\n"
"declare dtp any;\n"
"dtp := __tag (dta[i+1]);\n"
"aset (res, i1, vector (dta[i],\n"
"case when dtp = 193 and length(dta[i+1]) = 2 then \'boolean\' else dtp end\n"
"));\n"
"i1 := i1 + 1;\n"
"i := i + 2;\n"
"}\n"
"return res;\n"
"}\n"
"--src xmla.sql:415\n";
static const char *other64 =
"create method\n"
"xmla_discover_datasources () returns any for xmla_discover\n"
"{\n"
"declare dta, mdta, _all any;\n"
"declare idx, has_vdb int;\n"
"\n"
"has_vdb := sys_stat (\'st_has_vdb\');\n"
"if (has_vdb)\n"
"_all := sql_data_sources (1);\n"
"else\n"
"_all := vector ();\n"
"\n"
"dta := vector (\n"
"soap_box_structure (\n"
"\'DataSourceName\', \'Local Server\',\n"
"\'DataSourceDescription\', \'Virtuoso Server\',\n"
"\'URL\', soap_current_url (),\n"
"\'DataSourceInfo\', \'DSN=\' || xmla_service_name(),\n"
"\'ProviderName\', \'Virtuoso XML for Analysis\',\n"
"\'ProviderType\', soap_box_structure (\n"
"\'TDP\', \'\'\n"
"\n"
"\n"
"),\n"
"\'AuthenticationMode\', \'Authenticated\'\n"
"));\n"
"\n"
"for (idx := 0; idx < length (_all); idx := idx + 1)\n"
"{\n"
"if (exists (select 1 from DB.DBA.SYS_DATA_SOURCE where DS_DSN = _all[idx][0]))\n"
"{\n"
"dta := vector_concat (dta, vector (soap_box_structure (\n"
"\'DataSourceName\', _all[idx][0],\n"
"\'DataSourceDescription\', _all[idx][1],\n"
"\'URL\', soap_current_url (),\n"
"\'DataSourceInfo\', \'DSN=\' || _all[idx][0],\n"
"\'ProviderName\', \'Virtuoso XML for Analysis\',\n"
"\'ProviderType\', soap_box_structure (\n"
"\'TDP\', \'\'\n"
"),\n"
"\'AuthenticationMode\', \'Authenticated\'\n"
")));\n"
"}\n"
"};\n"
"\n"
"mdta := xmla_make_meta (dta);\n"
"xmla_make_xsd (mdta);\n"
"self.metadata := mdta;\n"
"return dta;\n"
"}\n";
static const char *other65 =
"create method\n"
"xmla_discover_properties () returns any for xmla_discover\n"
"{\n"
"declare res, props, _dsn any;\n"
"declare i, l int;\n"
"\n"
"_dsn := self.xmla_get_property (\'DataSourceInfo\', null);\n"
"\n"
"props := xmla_get_props (_dsn);\n"
"l := length (props);\n"
"i := 0;\n"
"res := make_array (l, \'any\');\n"
"\n"
"while (i < l)\n"
"{\n"
"declare prop any;\n"
"prop := props[i];\n"
"aset (res, i,\n"
"soap_box_structure (\'PropertyName\', prop[0],\n"
"\'PropertyDescription\', prop[1],\n"
"\'PropertyType\', prop[2],\n"
"\'PropertyAccessType\', case prop[3] when \'R\' then \'Read\' when \'W\' then \'Write\' else \'ReadWrite\' end,\n"
"\'IsRequired\', soap_boolean(prop[4]),\n"
"\'Value\', prop[5])\n"
");\n"
"i := i + 1;\n"
"}\n"
"declare mdta any;\n"
"mdta := xmla_make_meta (res);\n"
"xmla_make_xsd (mdta);\n"
"self.metadata := mdta;\n"
"return res;\n"
"}\n";
static const char *other66 =
"create method\n"
"xmla_discover_schema_rowsets () returns any for xmla_discover\n"
"{\n"
"declare res, schs any;\n"
"declare i, l int;\n"
"\n"
"schs := xmla_get_schs ();\n"
"l := length (schs);\n"
"i := 0;\n"
"res := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"declare sch any;\n"
"sch := schs[i];\n"
"aset (res, i,\n"
"soap_box_structure (\'SchemaName\', sch[0],\n"
"\'Restrictions\', sch[1],\n"
"\'Description\', sch[2])\n"
");\n"
"i := i + 1;\n"
"}\n"
"declare mdta any;\n"
"mdta := xmla_make_meta (res);\n"
"xmla_make_xsd (mdta);\n"
"self.metadata := mdta;\n"
"return res;\n"
"}\n";
static const char *other67 =
"create method\n"
"xmla_discover_enumerators () returns any for xmla_discover\n"
"{\n"
"declare res, enums any;\n"
"declare i, l int;\n"
"\n"
"enums := xmla_get_enums ();\n"
"l := length (enums);\n"
"i := 0;\n"
"res := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"declare enum any;\n"
"enum := enums[i];\n"
"aset (res, i,\n"
"soap_box_structure (\'EnumName\', enum[0],\n"
"\'EnumDescription\', enum[1],\n"
"\'EnumType\', enum[2],\n"
"\'ElementName\', enum[3],\n"
"\'ElementDescription\', enum[4],\n"
"\'EnumValue\', enum[5])\n"
");\n"
"i := i + 1;\n"
"}\n"
"declare mdta any;\n"
"mdta := xmla_make_meta (res);\n"
"xmla_make_xsd (mdta);\n"
"self.metadata := mdta;\n"
"return res;\n"
"}\n";
static const char *other68 =
"create method\n"
"xmla_discover_keywords () returns any for xmla_discover\n"
"{\n"
"declare kwds, res any;\n"
"declare i, l int;\n"
"declare dsn any;\n"
"\n"
"dsn := self.xmla_get_property (\'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"\n"
"if (not xmla_not_local_dsn (dsn))\n"
"kwds := xmla_get_kwds ();\n"
"else\n"
"{\n"
"declare _all any;\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"_all := get_keyword (89, vdd_dsn_info(dsn), \'\');\n"
"kwds := split_and_decode (_all, 0, \'\\0\\0,\');\n"
"}\n"
"\n"
"l := length (kwds);\n"
"i := 0;\n"
"res := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"aset (res, i,\n"
"soap_box_structure (\'Keyword\', kwds[i])\n"
");\n"
"i := i + 1;\n"
"}\n"
"declare mdta any;\n"
"mdta := xmla_make_meta (res);\n"
"xmla_make_xsd (mdta);\n"
"self.metadata := mdta;\n"
"return res;\n"
"}\n";
static const char *other69 =
"create method\n"
"xmla_discover_literals () returns any for xmla_discover\n"
"{\n"
"declare res, lits any;\n"
"declare i, l int;\n"
"\n"
"lits := xmla_get_literals ();\n"
"l := length (lits);\n"
"i := 0;\n"
"res := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"declare lit any;\n"
"lit := lits[i];\n"
"aset (res, i,\n"
"soap_box_structure (\'LiteralName\', lit[0],\n"
"\'LiteralValue\', lit[1],\n"
"\'LiteralInvalidChars\', lit[2],\n"
"\'LiteralInvalidStartingChars\', lit[3],\n"
"\'LiteralMaxLength\', lit[4]\n"
")\n"
");\n"
"i := i + 1;\n"
"}\n"
"declare mdta any;\n"
"mdta := xmla_make_meta (res);\n"
"xmla_make_xsd (mdta);\n"
"self.metadata := mdta;\n"
"return res;\n"
"}\n";
static const char *other70 =
"create method\n"
"xmla_dbschema_catalogs () for xmla_discover\n"
"{\n"
"declare dta, mdta, cat any;\n"
"declare dsn any;\n"
"\n"
"dsn := self.xmla_get_property (\'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"cat := self.xmla_get_restriction (\'CATALOG_NAME\', \'%\');\n"
"if (cat is null)\n"
"cat := \'%\';\n"
"\n"
"if (not xmla_not_local_dsn (dsn))\n"
"{\n"
"exec (\'select distinct name_part(KEY_TABLE,0) as CATALOG_NAME,\n"
"NULL as DESCRIPTION\n"
"from DB.DBA.SYS_KEYS where name_part(KEY_TABLE,0) like ?\', null, null,\n"
"vector (cat), 0, mdta, dta);\n"
"}\n"
"else\n"
"{\n"
"declare tables, temp, _last any;\n"
"declare idx int;\n"
"\n"
"tables := sql_tables (dsn, NULL, NULL, NULL, \'TABLE\');\n"
"temp := make_array (length (tables), \'any\');\n"
"for (idx := 0; idx < length (tables); idx := idx + 1)\n"
"if (tables[idx][0] is NULL)\n"
"aset (temp, idx, tables[idx][1]);\n"
"else\n"
"aset (temp, idx, tables[idx][0]);\n"
"temp := __vector_sort (temp);\n"
"if (length (temp) > 0)\n"
"_last := temp [0];\n"
"dta := vector (_last, NULL, NULL);\n"
"for (idx := 0; idx < length (temp); idx := idx + 1)\n"
"{\n"
"if (_last <> temp[idx])\n"
"{\n"
"_last := temp [idx];\n"
"dta := vector_concat (dta, vector (_last, NULL, NULL));\n"
"}\n"
"}\n"
"exec (\'select distinct name_part(KEY_TABLE,0) as CATALOG_NAME,\n"
"NULL as DESCRIPTION\n"
"from DB.DBA.SYS_KEYS where name_part(KEY_TABLE,0) like ?\', null, null,\n"
"vector (cat), 0, mdta);\n"
"dta := vector (dta);\n"
"}\n"
"\n"
"\n"
"xmla_make_struct (mdta, dta);\n"
"self.metadata := mdta;\n"
"return dta;\n"
"}\n";
static const char *proc141 =
"#line 724 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_make_xsd (inout mdta any)\n"
"{\n"
"declare i, l int;\n"
"declare ses any;\n"
"declare xsd varchar;\n"
"ses := string_output ();\n"
"http (\'<schema xmlns=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:schemas-microsoft-com:xml-analysis:rowset\" elementFormDefault=\"qualified\" xmlns:sql=\"urn:schemas-microsoft-com:xml-sql\" xmlns:tns=\"urn:schemas-microsoft-com:xml-analysis:rowset\">\\n\', ses);\n"
"http (\'<element name=\"root\" type=\"tns:root\" />\\n\', ses);\n"
"http (\'<complexType name=\"root\">\\n\', ses);\n"
"http ( \'<sequence minOccurs=\"0\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http ( \'<element name=\"row\" type=\"tns:row\" />\\n\', ses);\n"
"http ( \'</sequence>\\n\', ses);\n"
"http (\'</complexType>\\n\', ses);\n"
"http (\'<complexType name=\"row\">\\n\', ses);\n"
"http ( \'<choice maxOccurs=\"unbounded\" minOccurs=\"0\" >\\n\', ses);\n"
"i := 0; l := length (mdta);\n"
"while (i < l)\n"
"{\n"
"declare _name varchar;\n"
"declare _type, _type_name, nill int;\n"
"_name := mdta[i][0];\n"
"_type := mdta[i][1];\n"
"if (length (mdta[i]) > 4)\n"
"nill := mdta[i][4];\n"
"else\n"
"nill := 0;\n"
"if (_type <> 193)\n"
"{\n"
"if (isstring (_type))\n"
"_type_name := _type;\n"
"else\n"
"_type_name := dv_to_soap_type (_type);\n"
"http (sprintf (\'<element name=\"%V\" type=\"%s\" sql:field=\"%s\" nillable=\"%d\" />\\n\', _name, _type_name, _name, nill), ses);\n"
"}\n"
"else\n"
"{\n"
"http (sprintf (\'<element name=\"%V\" sql:field=\"%s\">\\n\', _name, _name), ses);\n"
"http (\'<complexType>\\n\', ses);\n"
"http ( \'<sequence minOccurs=\"0\" maxOccurs=\"unbounded\">\\n\', ses);\n"
"http ( \'<any processContents=\"lax\" maxOccurs=\"unbounded\"/>\\n\', ses);\n"
"http ( \'</sequence>\\n\', ses);\n"
"http (\'</complexType>\\n\', ses);\n"
"http (\'</element>\\n\', ses);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"http ( \'</choice>\\n\', ses);\n"
"http (\'</complexType>\\n\', ses);\n"
"http (\'</schema>\', ses);\n"
"xsd := string_output_string (ses);\n"
"mdta := xml_tree_doc (xsd);\n"
"return;\n"
"}\n"
"--src xmla.sql:722\n";
static const char *proc142 =
"#line 780 \"[executable]/xmla.sql\"\n"
"create procedure xmla_make_struct (inout mdta any, inout dta any)\n"
"{\n"
"declare res any;\n"
"declare i, l int;\n"
"mdta := mdta[0];\n"
"i := 0; l := length (dta);\n"
"res := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"aset (res, i, xmla_make_element (mdta, dta[i]));\n"
"i := i + 1;\n"
"}\n"
"dta := res;\n"
"xmla_make_xsd (mdta);\n"
"}\n"
"--src xmla.sql:778\n";
static const char *proc143 =
"#line 797 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_make_element (in mdta any, in dta any)\n"
"{\n"
"declare res any;\n"
"declare i, l, i1, i2 int;\n"
"i := 0; l := length (mdta); i1 := 2; i2 := 3;\n"
"res := make_array (2 + (l*2), \'any\');\n"
"aset (res, 0, composite ());\n"
"aset (res, 1, \'<structure>\');\n"
"while (i < l)\n"
"{\n"
"aset (res, i1, mdta[i][0]);\n"
"if (mdta[i][1] = 131 and not isblob(dta[i]))\n"
"aset (res, i2, cast (dta[i] as varbinary));\n"
"else if (mdta[i][1] = 219 and 219 <> __tag (dta[i]))\n"
"aset (res, i2, cast (dta[i] as decimal));\n"
"else\n"
"aset (res, i2, dta[i]);\n"
"i := i + 1;\n"
"i1 := i1 + 2;\n"
"i2 := i1 + 1;\n"
"}\n"
"return res;\n"
"}\n"
"--src xmla.sql:795\n";
static const char *other71 =
"create method xmla_dbschema_columns () for xmla_discover\n"
"{\n"
"declare dta, mdta any;\n"
"declare dsn, cat, tb, col, sch any;\n"
"\n"
"dsn := self.xmla_get_property (\'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"cat := self.xmla_get_restriction (\'TABLE_CATALOG\', \'%\');\n"
"sch := self.xmla_get_restriction (\'TABLE_SCHEMA\', \'%\');\n"
"tb := self.xmla_get_restriction (\'TABLE_NAME\', \'%\');\n"
"col := self.xmla_get_restriction (\'COLUMN_NAME\', \'%\');\n"
"if (cat is null)\n"
"cat := \'%\';\n"
"if (sch is null)\n"
"sch := \'%\';\n"
"if (tb is null)\n"
"tb := \'%\';\n"
"if (col is null)\n"
"col := \'%\';\n"
"\n"
"if (not xmla_not_local_dsn (dsn))\n"
"{\n"
"declare uname, passwd varchar;\n"
"uname := self.xmla_get_property (\'UserName\', null);\n"
"passwd := self.xmla_get_property (\'Password\', null);\n"
"if (uname is null or passwd is null)\n"
"signal (\'00002\', \'Unable to process the request, because the UserName property is not set or incorrect\');\n"
"set_user_id (uname, 1, passwd);\n"
"exec(\'select\n"
"name_part(KEY_TABLE, 0) as TABLE_CATALOG,\n"
"name_part(KEY_TABLE, 1) as TABLE_SCHEMA,\n"
"name_part(KEY_TABLE, 2) as TABLE_NAME,\n"
"\"COLUMN\" as COLUMN_NAME,\n"
"NULL as COLUMN_GUID,\n"
"NULL as COLUMN_PROPID INTEGER,\n"
"(select count(*) from DB.DBA.SYS_COLS where \"TABLE\" = KEY_TABLE and COL_ID <= c.COL_ID and \"COLUMN\" <> \'\'_IDN\'\') as ORDINAL_POSITION INTEGER,\n"
"case when deserialize(COL_DEFAULT) is null then 0 else -1 end as COLUMN_HASDEFAULT SMALLINT,\n"
"cast (deserialize(COL_DEFAULT) as NVARCHAR) as COLUMN_DEFAULT NVARCHAR(254),\n"
"cast (DB.DBA.oledb_dbflags(COL_DTP, COL_NULLABLE) as integer) as COLUMN_FLAGS INTEGER,\n"
"case COL_NULLABLE when 1 then -1 else 0 end as IS_NULLABLE SMALLINT,\n"
"cast (DB.DBA.oledb_dbtype(COL_DTP) as integer) as DATA_TYPE SMALLINT,\n"
"NULL as TYPE_GUID,\n"
"cast (DB.DBA.oledb_char_max_len(COL_DTP, COL_PREC) as integer) as CHARACTER_MAXIMUM_LENGTH INTEGER,\n"
"cast (DB.DBA.oledb_char_oct_len(COL_DTP, COL_PREC) as integer) as CHARACTER_OCTET_LENGTH INTEGER,\n"
"cast (DB.DBA.oledb_num_prec(COL_DTP, COL_PREC) as smallint) as NUMERIC_PRECISION SMALLINT,\n"
"cast (DB.DBA.oledb_num_scale(COL_DTP, COL_SCALE) as smallint) as NUMERIC_SCALE SMALLINT,\n"
"cast (DB.DBA.oledb_datetime_prec(COL_DTP, COL_PREC) as integer) as DATETIME_PRECISION INTEGER,\n"
"NULL as CHARACTER_SET_CATALOG NVARCHAR(1),\n"
"NULL as CHARACTER_SET_SCHEMA NVARCHAR(1),\n"
"NULL as CHARACTER_SET_NAME NVARCHAR(1),\n"
"NULL as COLLATION_CATALOG NVARCHAR(1),\n"
"NULL as COLLATION_SCHEMA NVARCHAR(1),\n"
"NULL as COLLATION_NAME NVARCHAR(1),\n"
"NULL as DOMAIN_CATALOG NVARCHAR(1),\n"
"NULL as DOMAIN_SCHEMA NVARCHAR(1),\n"
"NULL as DOMAIN_NAME NVARCHAR(1),\n"
"NULL as DESCRIPTION NVARCHAR(1)\n"
"from DB.DBA.SYS_KEYS, DB.DBA.SYS_KEY_PARTS, DB.DBA.SYS_COLS c\n"
"where\n"
"__any_grants(KEY_TABLE) and\n"
"name_part(KEY_TABLE, 0) = ? and\n"
"name_part(KEY_TABLE, 1) like ? and\n"
"name_part(KEY_TABLE, 2) like ? and\n"
"\"COLUMN\" like ? and\n"
"\"COLUMN\" <> \'\'_IDN\'\' and\n"
"KEY_IS_MAIN = 1 and\n"
"KEY_MIGRATE_TO is null and\n"
"KP_KEY_ID = KEY_ID and\n"
"COL_ID = KP_COL order by KEY_TABLE, 7\'\n"
", null, null,\n"
"vector (cat, sch, tb, col), 0, mdta, dta);\n"
"}\n"
"else\n"
"{\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"\n"
"exec (\'select TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, COLUMN_GUID, COLUMN_PROPID,\' ||\n"
"\'ORDINAL_POSITION, COLUMN_HASDEFAULT, COLUMN_DEFAULT, IS_NULLABLE, DATA_TYPE,\' ||\n"
"\'TYPE_GUID, CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION, NUMERIC_SCALE,\' ||\n"
"\'DATETIME_PRECISION, CHARACTER_SET_CATALOG, CHARACTER_SET_SCHEMA, CHARACTER_SET_NAME,\' ||\n"
"\'COLLATION_CATALOG, COLLATION_SCHEMA, COLLATION_NAME, DOMAIN_CATALOG, DOMAIN_SCHEMA,\' ||\n"
"\'DOMAIN_NAME, DESCRIPTION \' ||\n"
"\'from DB.DBA.XMLA_VDD_DBSCHEMA_COLUMNS where cat = ? and tb = ? and col = ? and dsn = ?\'\n"
", null, null, vector (cat, tb, col, dsn), 0, mdta, dta);\n"
"}\n"
"\n"
"xmla_make_struct (mdta, dta);\n"
"self.metadata := mdta;\n"
"return dta;\n"
"}\n";
static const char *other72 =
"create method xmla_dbschema_foreign_keys () for xmla_discover\n"
"{\n"
"declare dta, mdta, stmt, state, msg any;\n"
"declare dsn any;\n"
"declare p_cat, p_tbl, p_sch any;\n"
"declare f_cat, f_tbl, f_sch any;\n"
"declare _ptbl, _ftbl varchar;\n"
"\n"
"dsn := self.xmla_get_property (\'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"\n"
"p_cat := self.xmla_get_restriction (\'PK_TABLE_CATALOG\', \'%\');\n"
"p_sch := self.xmla_get_restriction (\'PK_TABLE_SCHEMA\', \'%\');\n"
"p_tbl := self.xmla_get_restriction (\'PK_TABLE_NAME\', \'%\');\n"
"f_cat := self.xmla_get_restriction (\'FK_TABLE_CATALOG\', \'%\');\n"
"f_sch := self.xmla_get_restriction (\'FK_TABLE_SCHEMA\', \'%\');\n"
"f_tbl := self.xmla_get_restriction (\'FK_TABLE_NAME\', \'%\');\n"
"\n"
"if (p_cat is null) \n"
"{\n"
"if (f_cat is not null)\n"
"p_cat := f_cat;\n"
"else\n"
"p_cat := \'%\';\n"
"}\n"
"\n"
"if (f_cat is null)\n"
"{ \n"
"if (p_cat is not null)\n"
"f_cat := p_cat;\n"
"else\n"
"f_cat := \'%\';\n"
"}\n"
"\n"
"if (p_sch is null)\n"
"p_sch := \'%\';\n"
"if (p_tbl is null)\n"
"p_tbl := \'%\';\n"
"if (f_sch is null)\n"
"f_sch := \'%\';\n"
"if (f_tbl is null)\n"
"f_tbl := \'%\';\n"
"\n"
"p_cat := trim (p_cat, \'\"\');\n"
"p_sch := trim (p_sch, \'\"\');\n"
"p_tbl := trim (p_tbl, \'\"\');\n"
"f_cat := trim (f_cat, \'\"\');\n"
"f_sch := trim (f_sch, \'\"\');\n"
"f_tbl := trim (f_tbl, \'\"\');\n"
"_ptbl := p_cat || \'.\' || p_sch || \'.\' || p_tbl;\n"
"_ftbl := f_cat || \'.\' || f_sch || \'.\' || f_tbl;\n"
"\n"
"if (not xmla_not_local_dsn (dsn))\n"
"{\n"
"declare uname, passwd varchar;\n"
"uname := self.xmla_get_property (\'UserName\', null);\n"
"passwd := self.xmla_get_property (\'Password\', null);\n"
"if (uname is null or passwd is null)\n"
"signal (\'00002\', \'Unable to process the request, because the UserName property is not set or incorrect\');\n"
"set_user_id (uname, 1, passwd);\n"
"exec(\'select\n"
"name_part (PK_TABLE, 0) as PK_TABLE_CATALOG varchar (128),\n"
"name_part (PK_TABLE, 1) as PK_TABLE_SCHEMA varchar (128),\n"
"name_part (PK_TABLE, 2) as PK_TABLE_NAME varchar (128),\n"
"PKCOLUMN_NAME as PK_COLUMN_NAME,\n"
"NULL as PK_COLUMN_GUID,\n"
"NULL as PK_COLUMN_PROPID INTEGER,\n"
"name_part (FK_TABLE, 0) as FK_TABLE_CATALOG varchar (128),\n"
"name_part (FK_TABLE, 1) as FK_TABLE_SCHEMA varchar (128),\n"
"name_part (FK_TABLE, 2) as FK_TABLE_NAME varchar (128),\n"
"FKCOLUMN_NAME as FK_COLUMN_NAME,\n"
"NULL as FK_COLUMN_GUID,\n"
"NULL as FK_COLUMN_PROPID INTEGER,\n"
"(KEY_SEQ + 1) as ORDINAL INTEGER,\n"
"(case UPDATE_RULE when 0 then \'\'NO ACTION\'\' when 1 then \'\'CASCADE\'\' when 2 then \'\'SET NULL\'\' when 3 then \'\'SET DEFAULT\'\' else NULL end) as UPDATE_RULE varchar(20),\n"
"(case DELETE_RULE when 0 then \'\'NO ACTION\'\' when 1 then \'\'CASCADE\'\' when 2 then \'\'SET NULL\'\' when 3 then \'\'SET DEFAULT\'\' else NULL end) as DELETE_RULE varchar(20),\n"
"PK_NAME, \n"
"FK_NAME,\n"
"3 as DEFERRABILITY SMALLINT\n"
"from DB.DBA.SYS_FOREIGN_KEYS SYS_FOREIGN_KEYS\n"
"where name_part (PK_TABLE, 0) like ?\n"
"and name_part (PK_TABLE, 1) like ?\n"
"and name_part (PK_TABLE, 2) like ?\n"
"and name_part (FK_TABLE, 0) like ?\n"
"and name_part (FK_TABLE, 1) like ?\n"
"and name_part (FK_TABLE, 2) like ?\n"
"order by 1, 2, 3, 7, 8, 9, 13 \'\n"
", null, null,\n"
"vector(p_cat, p_sch, p_tbl, f_cat, f_sch, f_tbl), 0, mdta, dta);\n"
"}\n"
"else\n"
"{\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"stmt := \'SELECT * FROM DB.DBA.SYS_FOREIGN_KEYS_VIEW WHERE PK_TABLE = \'\'\' \n"
"|| _ptbl || \'\'\' AND FK_TABLE = \'\'\' || _ftbl\n"
"|| \'\'\' AND DSN = \'\'\' || dsn || \'\'\'\';\n"
"exec (stmt, state, msg, vector (), 0, mdta, dta);\n"
"}\n"
"\n"
"xmla_make_struct (mdta, dta);\n"
"self.metadata := mdta;\n"
"return dta;\n"
"}\n";
static const char *other73 =
"create method xmla_dbschema_primary_keys () for xmla_discover\n"
"{\n"
"declare state, msg, dta, mdta, stmt any;\n"
"declare dsn, cat, tb, col, sch any;\n"
"declare _tbl varchar;\n"
"\n"
"dsn := self.xmla_get_property (\'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"cat := self.xmla_get_restriction (\'TABLE_CATALOG\', \'%\');\n"
"sch := self.xmla_get_restriction (\'TABLE_SCHEMA\', \'%\');\n"
"tb := self.xmla_get_restriction (\'TABLE_NAME\', \'%\');\n"
"\n"
"if (cat is null)\n"
"cat := \'%\';\n"
"if (sch is null)\n"
"sch := \'%\';\n"
"if (tb is null)\n"
"tb := \'%\';\n"
"\n"
"cat := trim (cat, \'\"\');\n"
"sch := trim (sch, \'\"\');\n"
"tb := trim (tb, \'\"\');\n"
"_tbl := cat || \'.\' || sch || \'.\' || tb;\n"
"\n"
"if (not xmla_not_local_dsn (dsn))\n"
"{\n"
"declare uname, passwd varchar;\n"
"uname := self.xmla_get_property (\'UserName\', null);\n"
"passwd := self.xmla_get_property (\'Password\', null);\n"
"if (uname is null or passwd is null)\n"
"signal (\'00002\', \'Unable to process the request, because the UserName property is not set or incorrect\');\n"
"set_user_id (uname, 1, passwd);\n"
"exec(\'select\n"
"name_part(KEY_TABLE, 0) AS TABLE_CATALOG NVARCHAR(128),\n"
"name_part(KEY_TABLE, 1) AS TABLE_SCHEMA NVARCHAR(128),\n"
"name_part(KEY_TABLE, 2) AS TABLE_NAME NVARCHAR(128),\n"
"\"COLUMN\" as COLUMN_NAME NVARCHAR(128),\n"
"NULL as COLUMN_GUID,\n"
"NULL as COLUMN_POPID INTEGER,\n"
"(KP_NTH + 1) as ORDINAL,\n"
"name_part(KEY_NAME, 2) as PK_NAME\n"
"from DB.DBA.SYS_KEYS, DB.DBA.SYS_KEY_PARTS, DB.DBA.SYS_COLS\n"
"where\n"
"__any_grants(KEY_TABLE) and\n"
"name_part(KEY_TABLE, 0) LIKE ? and\n"
"name_part(KEY_TABLE, 1) LIKE ? and\n"
"name_part(KEY_TABLE, 2) LIKE ? and\n"
"KEY_IS_MAIN = 1 and\n"
"KEY_MIGRATE_TO is null and\n"
"KP_KEY_ID = KEY_ID and\n"
"KP_NTH < KEY_DECL_PARTS and\n"
"COL_ID = KP_COL and\n"
"\"COLUMN\" <> \'\'_IDN\'\'\n"
"order by KEY_TABLE\'\n"
", null, null,\n"
"vector(cat, sch, tb), 0, mdta, dta);\n"
"}\n"
"else\n"
"{\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"stmt := \'SELECT * FROM DB.DBA.SYS_PRIMARY_KEYS_VIEW WHERE PK_TABLE = \'\'\' || _tbl || \'\'\' AND DSN = \'\'\' || dsn || \'\'\'\';\n"
"exec (stmt, state, msg, vector (), 0, mdta, dta);\n"
"}\n"
"\n"
"xmla_make_struct (mdta, dta);\n"
"self.metadata := mdta;\n"
"return dta;\n"
"}\n";
static const char *other74 =
"create method xmla_dbschema_provider_types () for xmla_discover\n"
"{\n"
"declare dta, mdta any;\n"
"declare dsn any;\n"
"declare t, m int;\n"
"\n"
"dsn := self.xmla_get_property (\'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"\n"
"t := self.xmla_get_restriction (\'DATA_TYPE\', NULL);\n"
"m := self.xmla_get_restriction (\'BEST_MATCH\', NULL);\n"
"if (not xmla_not_local_dsn (dsn))\n"
"{\n"
"exec (\'select\n"
"gt.TYPE_NAME,\n"
"gt.DATA_TYPE,\n"
"gt.COLUMN_SIZE,\n"
"gt.LITERAL_PREFIX,\n"
"gt.LITERAL_SUFFIX,\n"
"gt.CREATE_PARAMS,\n"
"gt.IS_NULLABLE,\n"
"gt.CASE_SENSITIVE,\n"
"gt.SEARCHABLE,\n"
"gt.UNSIGNED_ATTRIBUTE,\n"
"gt.FIXED_PREC_SCALE,\n"
"gt.AUTO_UNIQUE_VALUE,\n"
"gt.LOCAL_TYPE_NAME,\n"
"gt.MINIMUM_SCALE,\n"
"gt.MAXIMUM_SCALE,\n"
"gt.GUID,\n"
"gt.TYPELIB,\n"
"gt.VERSION,\n"
"gt.IS_LONG,\n"
"gt.BEST_MATCH,\n"
"gt.IS_FIXEDLENGTH\n"
"from DB.DBA.oledb_get_types(t, m)\n"
"(\n"
"TYPE_NAME NVARCHAR(32),\n"
"DATA_TYPE SMALLINT,\n"
"COLUMN_SIZE INTEGER,\n"
"LITERAL_PREFIX NVARCHAR(5),\n"
"LITERAL_SUFFIX NVARCHAR(5),\n"
"CREATE_PARAMS NVARCHAR(64),\n"
"IS_NULLABLE SMALLINT,\n"
"CASE_SENSITIVE SMALLINT,\n"
"SEARCHABLE INTEGER,\n"
"UNSIGNED_ATTRIBUTE SMALLINT,\n"
"FIXED_PREC_SCALE SMALLINT,\n"
"AUTO_UNIQUE_VALUE SMALLINT,\n"
"LOCAL_TYPE_NAME NVARCHAR(32),\n"
"MINIMUM_SCALE SMALLINT,\n"
"MAXIMUM_SCALE SMALLINT,\n"
"GUID NVARCHAR,\n"
"TYPELIB NVARCHAR,\n"
"VERSION NVARCHAR(32),\n"
"IS_LONG SMALLINT,\n"
"BEST_MATCH SMALLINT,\n"
"IS_FIXEDLENGTH SMALLINT\n"
") gt\n"
"where\n"
"t = ? and m = ?\' , null, null,\n"
"vector (t, m), 0, mdta, dta);\n"
"}\n"
"else\n"
"{\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"\n"
"exec (\'select TYPE_NAME, DATA_TYPE, COLUMN_SIZE, LITERAL_PREFIX, LITERAL_SUFFIX,\n"
"CREATE_PARAMS, IS_NULLABLE, CASE_SENSITIVE, SEARCHABLE, UNSIGNED_ATTRIBUTE,\n"
"FIXED_PREC_SCALE, AUTO_UNIQUE_VALUE, LOCAL_TYPE_NAME, MINIMUM_SCALE, MAXIMUM_SCALE,\n"
"GUID, TYPELIB, VERSION, IS_LONG, BEST_MATCH, IS_FIXEDLENGTH\n"
"from DB..XMLA_VDD_DBSCHEMA_PROVIDER_TYPES where tb = ? and cat = ? and dsn = ? \',\n"
"null, null, vector (t, m, dsn), 0, mdta, dta);\n"
"}\n"
"xmla_make_struct (mdta, dta);\n"
"self.metadata := mdta;\n"
"return dta;\n"
"}\n";
static const char *other75 =
"create method xmla_dbschema_tables () for xmla_discover\n"
"{\n"
"declare dta, mdta any;\n"
"declare dsn, cat, sch, tb any;\n"
"\n"
"dsn := self.xmla_get_property (\'DataSourceInfo\', xmla_service_name ());\n"
"dsn := xmla_get_dsn_name (dsn);\n"
"cat := self.xmla_get_restriction (\'TABLE_CATALOG\', \'DB\');\n"
"sch := self.xmla_get_restriction (\'TABLE_SCHEMA\', \'%\');\n"
"tb := self.xmla_get_restriction (\'TABLE_NAME\', \'%\');\n"
"\n"
"if (cat is null)\n"
"cat := \'DB\';\n"
"if (sch is null)\n"
"sch := \'%\';\n"
"if (tb is null)\n"
"tb := \'%\';\n"
"\n"
"if (not xmla_not_local_dsn (dsn))\n"
"{\n"
"declare uname, passwd varchar;\n"
"uname := self.xmla_get_property (\'UserName\', null);\n"
"passwd := self.xmla_get_property (\'Password\', null);\n"
"if (uname is null or passwd is null)\n"
"signal (\'00002\', \'Unable to process the request, because the UserName property is not set or incorrect\');\n"
"set_user_id (uname, 1, passwd);\n"
"exec (\'select name_part(KEY_TABLE, 0) as TABLE_CATALOG,\n"
"name_part(KEY_TABLE, 1) as TABLE_SCHEMA,\n"
"name_part(KEY_TABLE, 2) as TABLE_NAME,\n"
"table_type(KEY_TABLE) as TABLE_TYPE,\n"
"NULL as TABLE_GUID,\n"
"NULL as DESCRIPTION NVARCHAR,\n"
"NULL as TABLE_PROPID INTEGER,\n"
"NULL as DATE_CREATED DATE,\n"
"NULL as DATE_MODIFIED DATE\n"
"from DB.DBA.SYS_KEYS where\n"
"__any_grants(KEY_TABLE) and\n"
"name_part(KEY_TABLE, 0) like ? and \n"
"name_part(KEY_TABLE, 1) like ? and\n"
"name_part(KEY_TABLE, 2) like ?\n"
"and KEY_IS_MAIN = 1 and \n"
"KEY_MIGRATE_TO is null\', null, null,\n"
"vector (cat, sch, tb), 0, mdta, dta);\n"
"}\n"
"else\n"
"{\n"
"exec (\'select TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE, TABLE_GUID,\n"
"DESCRIPTION, TABLE_PROPID, DATE_CREATED, DATE_MODIFIED\n"
"from DB.DBA.XMLA_VDD_DBSCHEMA_TABLES where\n"
"tb = ? and cat = ? and dsn = ? \', null, null,\n"
"vector (tb, cat, dsn), 0, mdta, dta);\n"
"}\n"
"\n"
"xmla_make_struct (mdta, dta);\n"
"self.metadata := mdta;\n"
"return dta;\n"
"}\n";
static const char *other76 =
"create method xmla_dbschema_tables_info () for xmla_discover\n"
"{\n"
"return self.xmla_dbschema_tables();\n"
"}\n";
static const char *proc144 =
"#line 1240 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_schs ()\n"
"{\n"
"return vector (\n"
"vector (\'DBSCHEMA_CATALOGS\', soap_box_structure (\'CATALOG_NAME\', \'\'),\'\'),\n"
"vector (\'DBSCHEMA_TABLES\',\n"
"soap_box_structure (\'TABLE_CATALOG\', \'\', \'TABLE_SCHEMA\', \'\', \'TABLE_NAME\', \'\', \'TABLE_TYPE\', \'\')\n"
",\'\'),\n"
"vector (\'DBSCHEMA_TABLES_INFO\',\n"
"soap_box_structure (\'TABLE_CATALOG\', \'\', \'TABLE_SCHEMA\', \'\', \'TABLE_NAME\', \'\', \'TABLE_TYPE\', \'\')\n"
",\'\'),\n"
"vector (\'DBSCHEMA_COLUMNS\',\n"
"soap_box_structure (\'TABLE_CATALOG\', \'\', \'TABLE_SCHEMA\', \'\', \'TABLE_NAME\', \'\', \'TABLE_TYPE\', \'\', \'COLUMN_NAME\', \'\')\n"
",\'\'),\n"
"vector (\'DBSCHEMA_PRIMARY_KEYS\',\n"
"soap_box_structure (\'TABLE_CATALOG\', \'\', \'TABLE_SCHEMA\', \'\', \'TABLE_NAME\', \'\')\n"
",\'\'),\n"
"vector (\'DBSCHEMA_FOREIGN_KEYS\',\n"
"soap_box_structure (\'PK_TABLE_CATALOG\', \'\', \'PK_TABLE_SCHEMA\', \'\', \'PK_TABLE_NAME\', \'\',\n"
"\'FK_TABLE_CATALOG\', \'\', \'FK_TABLE_SCHEMA\', \'\', \'FK_TABLE_NAME\', \'\')\n"
",\'\'),\n"
"vector (\'DBSCHEMA_PROVIDER_TYPES\',\n"
"soap_box_structure (\'DATA_TYPE\', \'\', \'BEST_MATCH\', \'\')\n"
",\'\'),\n"
"vector (\'DISCOVER_DATASOURCES\',\n"
"soap_box_structure (\'DataSourceName\', \'\', \'URL\', \'\', \'ProviderName\', \'\', \'ProviderType\', \'\', \'AuthenticationMode\', \'\')\n"
",\'\'),\n"
"vector (\'DISCOVER_PROPERTIES\',\n"
"soap_box_structure (\'PropertyName\', \'\')\n"
",\'\'),\n"
"vector (\'DISCOVER_SCHEMA_ROWSETS\',\n"
"soap_box_structure (\'SchemaName\', \'\')\n"
",\'\'),\n"
"vector (\'DISCOVER_ENUMERATORS\',\n"
"soap_box_structure (\'EnumName\', \'\')\n"
",\'\'),\n"
"vector (\'DISCOVER_KEYWORDS\',\n"
"soap_box_structure (\'Keyword\', \'\')\n"
",\'\'),\n"
"vector (\'DISCOVER_LITERALS\',\n"
"soap_box_structure (\'LiteralName\', \'\')\n"
",\'\')\n"
");\n"
"}\n"
"--src xmla.sql:1238\n";
static const char *proc145 =
"#line 1287 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_props (in _dsn varchar := NULL)\n"
"{\n"
"declare ses_props, _vdd_dsn_info any;\n"
"declare dbms_name, dbms_ver varchar;\n"
"\n"
"ses_props := connection_get (\'XMLA_Properties\');\n"
"if (isarray (ses_props))\n"
"return ses_props;\n"
"\n"
"dbms_name := sys_stat (\'st_dbms_name\');\n"
"dbms_ver := sys_stat (\'st_dbms_ver\');\n"
"_dsn := xmla_get_dsn_name (_dsn);\n"
"\n"
"if (not xmla_is_local_service (_dsn))\n"
"{\n"
"_vdd_dsn_info := vdd_dsn_info(_dsn);\n"
"dbms_name := get_keyword (17, _vdd_dsn_info, \'\');\n"
"dbms_ver := get_keyword (18, _vdd_dsn_info, \'\');\n"
"}\n"
"\n"
"return vector (\n"
"vector (\'AxisFormat\' , \'\', \'string\', \'W\', 0, \'TupleFormat\'),\n"
"vector (\'BeginRange\' , \'\', \'int\', \'W\', 0, \'-1\'),\n"
"vector (\'Catalog\' , \'\', \'string\', \'R/W\', 0, \'DB\'),\n"
"vector (\'Content\' , \'\', \'string\', \'W\', 0, \'\'),\n"
"vector (\'DataSourceInfo\', \'\', \'string\', \'R/W\', 0, \'\'),\n"
"vector (\'EndRange\' , \'\', \'int\', \'W\', 0, \'-1\'),\n"
"vector (\'Format\' , \'\', \'string\', \'W\', 0, \'Tabular\'),\n"
"vector (\'LocaleIdentifier\',\'\',\'int\', \'R/W\', 0, NULL),\n"
"vector (\'MDXSupport\' , \'\', \'string\', \'R\', 0, \'None\'),\n"
"vector (\'Password\' , \'\', \'string\', \'W\', 0, \'\'),\n"
"vector (\'ProviderName\' , \'\', \'string\', \'R\', 0, dbms_name),\n"
"vector (\'ProviderVersion\',\'\', \'string\', \'R\', 0, dbms_ver),\n"
"vector (\'StateSupport\' , \'\', \'string\', \'R\', 0, \'Sessions\'),\n"
"vector (\'Timeout\' , \'\', \'int\', \'R/W\', 0, NULL),\n"
"vector (\'BLOBLimit\' , \'\', \'int\', \'R/W\', 0, NULL),\n"
"vector (\'UserName\' , \'\', \'string\', \'R/W\', 0, \'\')\n"
");\n"
"}\n"
"--src xmla.sql:1285\n";
static const char *proc146 =
"#line 1329 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_dsn_name (in _dsn varchar)\n"
"{\n"
"return replace (_dsn, \'DSN=\', \'\');\n"
"return _dsn;\n"
"}\n"
"--src xmla.sql:1327\n";
static const char *proc147 =
"#line 1337 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_is_local_service (in _dsn varchar)\n"
"{\n"
"if (_dsn <> xmla_service_name())\n"
"return 0;\n"
"return 1;\n"
"}\n"
"--src xmla.sql:1335\n";
static const char *proc148 =
"#line 1346 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_set_props (in properties any)\n"
"{\n"
"declare prop_list, def_prop any;\n"
"declare i, l int;\n"
"def_prop := xmla_get_props ();\n"
"l := length (def_prop); i := 0;\n"
"while (i < l)\n"
"{\n"
"declare elm, val any;\n"
"elm := def_prop[i];\n"
"if (elm[3] in (\'R/W\', \'W\'))\n"
"{\n"
"val := xmla_get_property (properties, elm[0], elm[5]);\n"
"aset (elm, 5, val);\n"
"}\n"
"aset (def_prop, i, elm);\n"
"i := i + 1;\n"
"}\n"
"return def_prop;\n"
"}\n"
"--src xmla.sql:1344\n";
static const char *proc149 =
"#line 1369 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_enums ()\n"
"{\n"
"return vector (\n"
"vector(\'ProviderType\',\'\',\'string\',\'TDP\',\'\',1),\n"
"\n"
"\n"
"\n"
"vector(\'AuthenticationMode\',\'\',\'string\',\'Unauthenticated\',\'\',5),\n"
"vector(\'AuthenticationMode\',\'\',\'string\',\'Authenticated\',\'\',6),\n"
"\n"
"vector(\'PropertyAccessType\',\'\',\'string\',\'Read\',\'\',8),\n"
"vector(\'PropertyAccessType\',\'\',\'string\',\'Write\',\'\',9),\n"
"vector(\'PropertyAccessType\',\'\',\'string\',\'ReadWrite\',\'\',10),\n"
"vector(\'StateSupport\',\'\',\'string\',\'None\',\'\',11),\n"
"\n"
"\n"
"\n"
"\n"
"vector(\'ResultsetFormat\',\'\',\'string\',\'Tabular\',\'\',16),\n"
"\n"
"vector(\'ResultsetAxisFormat\',\'\',\'string\',\'TupleFormat\',\'\',18),\n"
"\n"
"\n"
"vector(\'ResultsetContents\',\'\',\'string\',\'None\',\'\',21),\n"
"vector(\'ResultsetContents\',\'\',\'string\',\'Schema\',\'\',22),\n"
"vector(\'ResultsetContents\',\'\',\'string\',\'Data\',\'\',23),\n"
"vector(\'ResultsetContents\',\'\',\'string\',\'SchemaData\',\'\',24),\n"
"vector(\'MDXSupportLevel\',\'\',\'string\',\'None\',\'\',25)\n"
");\n"
"}\n"
"--src xmla.sql:1367\n";
static const char *proc150 =
"#line 1402 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_literals ()\n"
"{\n"
"return vector (\n"
"vector (\'DBLITERAL_CATALOG_NAME\', \'\', \'.\', \'0123456789 \', 100),\n"
"vector (\'DBLITERAL_CATALOG_SEPARATOR\', \'.\', \'\', \'\', 0),\n"
"vector (\'DBLITERAL_COLUMN_ALIAS\', \'\', \'\\\'\"[]\', \'0123456789 \', 100),\n"
"vector (\'DBLITERAL_COLUMN_NAME\', \'\', \'.\', \'0123456789 \', 100),\n"
"vector (\'DBLITERAL_CORRELATION_NAME\', \'\', \'\\\'\"[]\', \'0123456789 \', 100),\n"
"vector (\'DBLITERAL_PROCEDURE_NAME\', \'\', \'.\', \'0123456789 \', 100),\n"
"vector (\'DBLITERAL_TABLE_NAME\', \'\', \'.\', \'0123456789 \', 100),\n"
"vector (\'DBLITERAL_TEXT_COMMAND\', \'\', \'\', \'\', 0),\n"
"vector (\'DBLITERAL_USER_NAME\', \'\', \'\', \'\', 0),\n"
"vector (\'DBLITERAL_QUOTE\', \'\"\', \'\', \'\', 0),\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"vector (\'DBLITERAL_PROPERTY_NAME\', \'\', \'.\', \'0123456789 \', 100),\n"
"vector (\'DBLITERAL_QUOTE_SUFFIX\', \'\"\', \'\', \'\', 0)\n"
");\n"
"}\n"
"--src xmla.sql:1400\n";
static const char *proc151 =
"#line 1428 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_service_name ()\n"
"{\n"
"return \'Local_Instance\';\n"
"}\n"
"--src xmla.sql:1426\n";
static const char *proc152 =
"#line 1436 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_kwds ()\n"
"{\n"
"return vector (\n"
"\'__SOAP_DOC\', \'__SOAP_DOCW\', \'__SOAP_HEADER\', \'__SOAP_HTTP\', \'__SOAP_NAME\', \'__SOAP_TYPE\',\n"
"\'__SOAP_XML_TYPE\', \'__SOAP_FAULT\', \'__SOAP_DIME_ENC\', \'__SOAP_MIME_ENC\', \'__SOAP_OPTIONS\',\n"
"\'ADA\', \'ADD\', \'ADMIN\', \'AFTER\', \'AGGREGATE\', \'ALL\', \'ALTER\', \'AND\', \'ANY\', \'ARE\', \'AS\',\n"
"\'ASC\', \'ATTACH\', \'ATTRIBUTE\', \'AUTHORIZATION\', \'BACKUP\', \'BEFORE\', \'BEGIN\', \'BEST\',\n"
"\'BETWEEN\', \'BINARY\', \'BY\', \'C\', \'CALL\', \'CALLED\', \'CASCADE\', \'CASE\', \'CAST\', \'CHAR\',\n"
"\'CHARACTER\', \'CHECK\', \'CHECKED\', \'CHECKPOINT\', \'CLOSE\', \'CLUSTERED\', \'CLR\', \'COALESCE\',\n"
"\'COBOL\', \'COLLATE\', \'COLUMN\', \'COMMIT\', \'CONSTRAINT\', \'CONSTRUCTOR\', \'CONTAINS\', \'CONTINUE\',\n"
"\'CONVERT\', \'CORRESPONDING\', \'CREATE\', \'CROSS\', \'CURRENT\', \'CURRENT_DATE\', \'CURRENT_TIME\',\n"
"\'CURRENT_TIMESTAMP\', \'CURSOR\', \'DATA\', \'DATE\', \'DATETIME\', \'DECIMAL\', \'DECLARE\', \'DEFAULT\',\n"
"\'DELETE\', \'DESC\', \'DETERMINISTIC\', \'DISCONNECT\', \'DISTINCT\', \'DO\', \'DOUBLE\', \'DROP\', \'DTD\',\n"
"\'DYNAMIC\', \'ELSE\', \'ELSEIF\', \'ENCODING\', \'END\', \'ESCAPE\', \'EXCEPT\', \'EXCLUSIVE\', \'EXECUTE\',\n"
"\'EXISTS\', \'EXTERNAL\', \'EXTRACT\', \'EXIT\', \'FETCH\', \'FINAL\', \'FLOAT\', \'FOR\', \'FOREIGN\',\n"
"\'FORTRAN\', \'FOUND\', \'FROM\', \'FULL\', \'FUNCTION\', \'GENERAL\', \'GENERATED\', \'GO\', \'GOTO\',\n"
"\'GRANT\', \'GROUP\', \'HANDLER\', \'HAVING\', \'HASH\', \'IDENTITY\', \'IDENTIFIED\', \'IF\', \'IN\',\n"
"\'INCREMENTAL\', \'INDEX\', \'INDICATOR\', \'INNER\', \'INOUT\', \'INPUT\', \'INSERT\', \'INSTANCE\',\n"
"\'INSTEAD\', \'INT\', \'INTEGER\', \'INTERSECT\', \'INTERNAL\', \'INTERVAL\', \'INTO\', \'IS\',\n"
"\'JAVA\', \'JOIN\', \'KEY\', \'KEYSET\', \'LANGUAGE\', \'LEFT\', \'LIKE\', \'LOCATOR\', \'LOG\', \'LONG\',\n"
"\'LOOP\', \'METHOD\', \'MODIFY\', \'MODIFIES\', \'MODULE\', \'MUMPS\', \'NAME\', \'NATURAL\', \'NCHAR\',\n"
"\'NEW\', \'NONINCREMENTAL\', \'NOT\', \'NO\', \'NULL\', \'NULLIF\', \'NUMERIC\', \'NVARCHAR\', \'OBJECT_ID\',\n"
"\'OF\', \'OFF\', \'OLD\', \'ON\', \'OPEN\', \'OPTION\', \'OR\', \'ORDER\', \'OUT\', \'OUTER\', \'OVERRIDING\',\n"
"\'PASCAL\', \'PASSWORD\', \'PERCENT\', \'PERSISTENT\', \'PLI\', \'PRECISION\', \'PREFETCH\', \'PRIMARY\',\n"
"\'PRIVILEGES\', \'PROCEDURE\', \'PUBLIC\', \'PURGE\', \'READS\', \'REAL\', \'REF\', \'REFERENCES\', \'REFERENCING\',\n"
"\'REMOTE\', \'RENAME\', \'REPLACING\', \'REPLICATION\', \'RESIGNAL\', \'RESTRICT\', \'RESULT\', \'RETURN\',\n"
"\'RETURNS\', \'REVOKE\', \'RIGHT\', \'ROLLBACK\', \'ROLE\', \'SCHEMA\', \'SELECT\', \'SELF\', \'SET\',\n"
"\'SHUTDOWN\', \'SMALLINT\', \'SNAPSHOT\', \'SOFT\', \'SOME\', \'SOURCE\', \'SPECIFIC\', \'SQL\',\n"
"\'SQLCODE\', \'SQLEXCEPTION\', \'SQLSTATE\', \'SQLWARNING\', \'STATIC\', \'STYLE\', \'SYNC\', \'SYSTEM\',\n"
"\'TABLE\', \'TEMPORARY\', \'TEXT\', \'THEN\', \'TIES\', \'TIME\', \'TIMESTAMP\', \'TO\', \'TOP\', \'TYPE\',\n"
"\'TRIGGER\', \'UNDER\',\n"
"\'UNION\', \'UNIQUE\', \'UPDATE\', \'USE\', \'USER\', \'USING\', \'VALUE\', \'VALUES\',\n"
"\'VARBINARY\', \'VARCHAR\', \'VARIABLE\', \'VIEW\', \'WHEN\', \'WHENEVER\', \'WHERE\', \'WHILE\', \'WITH\', \'WORK\', \'XML\', \'XPATH\'\n"
");\n"
"}\n"
"--src xmla.sql:1434\n";
static const char *proc153 =
"#line 1475 \"[executable]/xmla.sql\"\n"
"create procedure DB.DBA.xmla_vdd_dbschema_tables_rpoc (in tb varchar, in cat varchar, in dsn varchar)\n"
"{\n"
"declare _all, temp any;\n"
"declare TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE, TABLE_GUID varchar;\n"
"declare DESCRIPTION nvarchar;\n"
"declare TABLE_PROPID, idx int;\n"
"declare DATE_CREATED, DATE_MODIFIED date;\n"
"\n"
"_all := sql_tables (dsn, NULL, NULL, NULL, \'TABLE\');\n"
"temp := sql_tables (dsn, NULL, NULL, NULL, \'VIEW\');\n"
"_all := vector_concat (_all, temp);\n"
"temp := sql_tables (dsn, NULL, NULL, NULL, \'SYSTEM TABLE\');\n"
"_all := vector_concat (_all, temp);\n"
"\n"
"result_names (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE, TABLE_GUID, DESCRIPTION,\n"
"TABLE_PROPID, DATE_CREATED, DATE_MODIFIED);\n"
"\n"
"for (idx := 0; idx < length (_all); idx := idx + 1)\n"
"{\n"
"declare _line any;\n"
"_line := _all[idx];\n"
"result (_line[0], _line[1], _line[2], \'TABLE\', NULL, NULL, NULL, NULL, NULL);\n"
"}\n"
"\n"
"}\n"
"--src xmla.sql:1473\n";
static const char *proc154 =
"#line 1502 \"[executable]/xmla.sql\"\n"
"create procedure DB.DBA.xmla_vdd_dbschema_columns_rpoc (in tb varchar, in cat varchar, in col varchar, in dsn varchar)\n"
"{\n"
"declare _all any;\n"
"declare TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, COLUMN_GUID, TYPE_GUID varchar;\n"
"declare COLUMN_DEFAULT, CHARACTER_SET_CATALOG, CHARACTER_SET_SCHEMA, CHARACTER_SET_NAME, COLLATION_CATALOG nvarchar;\n"
"declare idx, COLUMN_PROPID, ORDINAL_POSITION, COLUMN_HASDEFAULT, COLUMN_FLAGS, IS_NULLABLE, DATA_TYPE int;\n"
"declare CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION, NUMERIC_SCALE, DATETIME_PRECISION int;\n"
"declare COLLATION_SCHEMA, COLLATION_NAME, DOMAIN_CATALOG, DOMAIN_SCHEMA, DOMAIN_NAME, DESCRIPTION nvarchar;\n"
"\n"
"\n"
"_all := DB.DBA.sql_columns (dsn, tb, NULL, cat, NULL);\n"
"\n"
"if (_all = vector ())\n"
"_all := DB.DBA.sql_columns (dsn, NULL, NULL, cat, NULL);\n"
"\n"
"result_names (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, COLUMN_GUID, COLUMN_PROPID,\n"
"ORDINAL_POSITION, COLUMN_HASDEFAULT, COLUMN_DEFAULT, COLUMN_FLAGS, IS_NULLABLE,\n"
"DATA_TYPE, TYPE_GUID, CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION,\n"
"NUMERIC_SCALE, DATETIME_PRECISION, CHARACTER_SET_CATALOG, CHARACTER_SET_SCHEMA,\n"
"CHARACTER_SET_NAME, COLLATION_CATALOG, COLLATION_SCHEMA, COLLATION_NAME, DOMAIN_CATALOG,\n"
"DOMAIN_SCHEMA, DOMAIN_NAME, DESCRIPTION);\n"
"\n"
"for (idx := 0; idx < length (_all); idx := idx + 1)\n"
"{\n"
"declare _line any;\n"
"declare _is_null any;\n"
"_line := _all[idx];\n"
"_is_null := 0;\n"
"if (_line[17] = \'YES\') _is_null := 1;\n"
"result (_line[0], _line[1], _line[2], _line[3], NULL, NULL, _line[16], NULL, cast (_line[12] as nvarchar), NULL, _is_null,\n"
"_line[4], NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,\n"
"cast (_line[11] as nvarchar));\n"
"}\n"
"}\n"
"--src xmla.sql:1500\n";
static const char *view0 =
"create procedure view XMLA_VDD_DBSCHEMA_COLUMNS as DB.DBA.xmla_vdd_dbschema_columns_rpoc (cat, tb, col, dsn)\n"
"(TABLE_CATALOG varchar, TABLE_SCHEMA varchar, TABLE_NAME varchar, COLUMN_NAME varchar, COLUMN_GUID varchar,\n"
"COLUMN_PROPID int, ORDINAL_POSITION int, COLUMN_HASDEFAULT int, COLUMN_DEFAULT nvarchar, COLUMN_FLAGS int,\n"
"IS_NULLABLE int, DATA_TYPE int, TYPE_GUID varchar, CHARACTER_MAXIMUM_LENGTH int, CHARACTER_OCTET_LENGTH int,\n"
"NUMERIC_PRECISION int, NUMERIC_SCALE int, DATETIME_PRECISION int, CHARACTER_SET_CATALOG NVARCHAR(1),\n"
"CHARACTER_SET_SCHEMA NVARCHAR(1), CHARACTER_SET_NAME NVARCHAR(1), COLLATION_CATALOG NVARCHAR(1),\n"
"COLLATION_SCHEMA NVARCHAR(1), COLLATION_NAME NVARCHAR(1), DOMAIN_CATALOG NVARCHAR(1), DOMAIN_SCHEMA NVARCHAR(1),\n"
"DOMAIN_NAME NVARCHAR(1), DESCRIPTION NVARCHAR(1))\n";
static const char *view1 =
"create procedure view XMLA_VDD_DBSCHEMA_TABLES as DB.DBA.xmla_vdd_dbschema_tables_rpoc (tb, cat, dsn)\n"
"(TABLE_CATALOG varchar, TABLE_SCHEMA varchar, TABLE_NAME varchar, TABLE_TYPE varchar, TABLE_GUID varchar,\n"
"DESCRIPTION nvarchar, TABLE_PROPID int, DATE_CREATED date, DATE_MODIFIED date)\n";
static const char *view2 =
"create procedure view XMLA_VDD_DBSCHEMA_PROVIDER_TYPES as DB.DBA.xmla_vdd_dbschema_provider_types_rpoc (tb, cat, dsn)\n"
"(TYPE_NAME varchar, DATA_TYPE int, COLUMN_SIZE int, LITERAL_PREFIX varchar, LITERAL_SUFFIX varchar,\n"
"CREATE_PARAMS varchar, IS_NULLABLE int, CASE_SENSITIVE int, SEARCHABLE int, UNSIGNED_ATTRIBUTE int,\n"
"FIXED_PREC_SCALE int, AUTO_UNIQUE_VALUE int, LOCAL_TYPE_NAME varchar, MINIMUM_SCALE int, MAXIMUM_SCALE int,\n"
"GUID varchar, TYPELIB varchar, VERSION varchar, IS_LONG int, BEST_MATCH int, IS_FIXEDLENGTH int)\n";
static const char *proc155 =
"#line 1566 \"[executable]/xmla.sql\"\n"
"create procedure xmla_vdd_dbschema_provider_types_rpoc (in tb int, in cat int, in dsn varchar)\n"
"{\n"
"declare _all any;\n"
"declare idx int;\n"
"\n"
"declare TYPE_NAME, LITERAL_PREFIX, LITERAL_SUFFIX, CREATE_PARAMS, GUID, TYPELIB, VERSION, LOCAL_TYPE_NAME varchar;\n"
"declare IS_NULLABLE, CASE_SENSITIVE, SEARCHABLE, UNSIGNED_ATTRIBUTE int;\n"
"declare FIXED_PREC_SCALE, AUTO_UNIQUE_VALUE, MINIMUM_SCALE, MAXIMUM_SCALE int;\n"
"declare IS_LONG, BEST_MATCH, IS_FIXEDLENGTH int;\n"
"declare DATA_TYPE, COLUMN_SIZE int;\n"
"\n"
"\n"
"_all := vdd_dsn_info(dsn)[1];\n"
"result_names (TYPE_NAME, DATA_TYPE, COLUMN_SIZE, LITERAL_PREFIX, LITERAL_SUFFIX,\n"
"CREATE_PARAMS, IS_NULLABLE, CASE_SENSITIVE, SEARCHABLE, UNSIGNED_ATTRIBUTE,\n"
"FIXED_PREC_SCALE, AUTO_UNIQUE_VALUE, LOCAL_TYPE_NAME, MINIMUM_SCALE, MAXIMUM_SCALE,\n"
"GUID, TYPELIB, VERSION, IS_LONG, BEST_MATCH, IS_FIXEDLENGTH);\n"
"\n"
"for (idx := 0; idx < length (_all); idx := idx + 1)\n"
"{\n"
"declare _line any;\n"
"\n"
"_line := _all[idx];\n"
"result (_line[0], _line[1], _line[2], _line[3], _line[4], _line[5], _line[6], _line[7],\n"
"_line[8], _line[9], _line[10], _line[11], _line[12], _line[13], _line[14], NULL,\n"
"NULL, NULL, NULL, NULL, NULL);\n"
"}\n"
"}\n"
"--src xmla.sql:1564\n";
static const char *proc156 =
"#line 1597 \"[executable]/xmla.sql\"\n"
"create procedure mxla_fk_pk_check (in dsn varchar, inout stmt varchar, inout mdta any, inout dta any)\n"
"{\n"
"declare state, msg any;\n"
"declare _new any;\n"
"\n"
"_new := split_and_decode (stmt, 0, \'\\0\\0\'\'\');\n"
"\n"
"if (strstr (stmt, \'DB.DBA.SYS_FOREIGN_KEYS\'))\n"
"{\n"
"stmt := \'SELECT * FROM DB.DBA.SYS_FOREIGN_KEYS_VIEW WHERE PK_TABLE = \'\'\' || _new[1] || \'\'\' AND FK_TABLE = \'\'\' || _new[3]\n"
"|| \'\'\' AND DSN = \'\'\' || dsn || \'\'\'\';\n"
"}\n"
"\n"
"if (strstr (stmt, \'XMLA_VIRTUOSO_DUMMY_PK\'))\n"
"{\n"
"stmt := \'SELECT * FROM DB.DBA.SYS_PRIMARY_KEYS_VIEW WHERE PK_TABLE = \'\'\' || _new[1] || \'\'\' AND DSN = \'\'\' || dsn || \'\'\'\';\n"
"}\n"
"\n"
"exec (stmt, state, msg, vector (), 0, mdta, dta);\n"
"}\n"
"--src xmla.sql:1595\n";
static const char *proc157 =
"#line 1620 \"[executable]/xmla.sql\"\n"
"create procedure mxla_fk_pk_check_local (inout stmt varchar, inout mdta any, inout dta any)\n"
"{\n"
"declare _new, l_name, _schema, _catalog, _name, idx, _line any;\n"
"\n"
"if (strstr (stmt, \'XMLA_VIRTUOSO_DUMMY_PK\'))\n"
"{\n"
"_new := split_and_decode (stmt, 0, \'\\0\\0\'\'\');\n"
"_new := _new[1];\n"
"\n"
"_catalog := name_part (_new, 0);\n"
"_schema := name_part (_new, 1);\n"
"_name := name_part (_new, 2);\n"
"_catalog := trim (_catalog, \'\"\');\n"
"_schema := trim (_schema, \'\"\');\n"
"_name := trim (_name, \'\"\');\n"
"stmt := sprintf (\'SELECT COLUMN_NAME FROM %s.INFORMATION_SCHEMA.TABLE_CONSTRAINTS LEFT JOIN %s.INFORMATION_SCHEMA.KEY_COLUMN_USAGE ON %s.INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_NAME = %s.INFORMATION_SCHEMA.KEY_COLUMN_USAGE.CONSTRAINT_NAME WHERE CONSTRAINT_TYPE = \'\'PRIMARY KEY\'\' AND %s.INFORMATION_SCHEMA.TABLE_CONSTRAINTS.TABLE_NAME=\'\'%s\'\' AND %s.INFORMATION_SCHEMA.TABLE_CONSTRAINTS.TABLE_SCHEMA=\'\'%s\'\' AND %s.INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_SCHEMA=\'\'%s\'\' AND %s.INFORMATION_SCHEMA.KEY_COLUMN_USAGE.TABLE_SCHEMA=\'\'%s\'\' AND %s.INFORMATION_SCHEMA.KEY_COLUMN_USAGE.CONSTRAINT_SCHEMA=\'\'%s\'\'\', _catalog, _catalog, _catalog, _catalog, _catalog, _name, _catalog, _schema, _catalog, _schema, _catalog, _schema, _catalog, _schema);\n"
"}\n"
"\n"
"if (strstr (stmt, \'FROM DB.DBA.SYS_FOREIGN_KEYS\'))\n"
"{\n"
"declare _dsn, r_name, fk_tables any;\n"
"declare state, msg any;\n"
"\n"
"_new := split_and_decode (stmt, 0, \'\\0\\0\'\'\');\n"
"_new := _new[1];\n"
"_new := replace (_new, \'\"\', \'\');\n"
"\n"
"if (exists (select 1 from DB.DBA.SYS_REMOTE_TABLE where RT_NAME = _new))\n"
"select RT_DSN, RT_REMOTE_NAME into _dsn, r_name from DB.DBA.SYS_REMOTE_TABLE where RT_NAME = _new;\n"
"else\n"
"{\n"
"stmt := replace (stmt, \'\"\', \'\');\n"
"return;\n"
"}\n"
"\n"
"stmt := \'SELECT * FROM DB.DBA.SYS_FOREIGN_KEYS_VIEW WHERE PK_TABLE = \'\'\' || r_name || \'\'\' AND FK_TABLE = \'\'\' || _new\n"
"|| \'\'\' AND DSN = \'\'\' || _dsn || \'\'\'\';\n"
"\n"
"exec (stmt, state, msg, vector (), 0, mdta, dta);\n"
"\n"
"for (idx := 0; idx < length (dta); idx := idx + 1)\n"
"{\n"
"_line := dta[idx];\n"
"\n"
"if (exists (select 1 from DB.DBA.SYS_REMOTE_TABLE where _line[0] like \'%\' || RT_REMOTE_NAME))\n"
"{\n"
"select RT_NAME into l_name from DB.DBA.SYS_REMOTE_TABLE where _line[0] like \'%\' || RT_REMOTE_NAME;\n"
"\n"
"aset (_line, 2, _new);\n"
"aset (_line, 0, l_name);\n"
"}\n"
"aset (dta, idx, _line);\n"
"}\n"
"\n"
"}\n"
"}\n"
"--src xmla.sql:1618\n";
static const char *view3 =
"create procedure view DB.DBA.SYS_FOREIGN_KEYS_VIEW as DB.DBA.\"XMLA_GET_FK\" (PK_TABLE, FK_TABLE, DSN)\n"
"(PK_TABLE_SCHEMA VARCHAR,\n"
"PK_TABLE_NAME VARCHAR,\n"
"PK_COLUMN_NAME VARCHAR,\n"
"FK_TABLE_SCHEMA VARCHAR,\n"
"FK_TABLE_NAME VARCHAR,\n"
"FK_COLUMN_NAME VARCHAR,\n"
"KEY_SEQ SMALLINT,\n"
"UPDATE_RULE SMALLINT,\n"
"DELETE_RULE SMALLINT,\n"
"FK_NAME VARCHAR)\n";
static const char *view4 =
"create procedure view DB.DBA.SYS_PRIMARY_KEYS_VIEW as DB.DBA.\"XMLA_GET_PK\" (PK_TABLE, DSN)\n"
"(COLUMN_NAME VARCHAR)\n";
static const char *proc158 =
"#line 1701 \"[executable]/xmla.sql\"\n"
"create procedure DB.DBA.\"XMLA_GET_PK\" (in _pk_table varchar, in dsn varchar)\n"
"{\n"
"declare COLUMN_NAME VARCHAR;\n"
"declare pk_tables, _pk_tables, idx any;\n"
"\n"
"declare exit handler for sqlstate \'VD052\'\n"
"{\n"
"return;\n"
"};\n"
"\n"
"result_names (COLUMN_NAME);\n"
"\n"
"pk_tables := DB.DBA.sql_primary_keys (dsn, name_part (_pk_table, 0, null),\n"
"name_part (_pk_table, 1, null),\n"
"name_part (_pk_table, 2, null));\n"
"\n"
"for (idx := 0; idx < length (pk_tables); idx := idx + 1)\n"
"{\n"
"_pk_tables := pk_tables [idx];\n"
"\n"
"result (_pk_tables[3]);\n"
"}\n"
"}\n"
"--src xmla.sql:1699\n";
static const char *proc159 =
"#line 1726 \"[executable]/xmla.sql\"\n"
"create procedure DB.DBA.\"XMLA_GET_FK\" (in _pk_table varchar, in _fk_table varchar, in dsn varchar)\n"
"{\n"
"declare PK_TABLE_SCHEMA VARCHAR;\n"
"declare PK_TABLE_NAME VARCHAR;\n"
"declare PK_COLUMN_NAME VARCHAR;\n"
"declare FK_TABLE_SCHEMA VARCHAR;\n"
"declare FK_TABLE_NAME VARCHAR;\n"
"declare FK_COLUMN_NAME VARCHAR;\n"
"declare KEY_SEQ SMALLINT;\n"
"declare UPDATE_RULE SMALLINT;\n"
"declare DELETE_RULE SMALLINT;\n"
"declare FK_NAME VARCHAR;\n"
"\n"
"declare fk_tables, _fk_tables, idx, _n1, _n2, _n3, _dsn any;\n"
"\n"
"declare exit handler for sqlstate \'*VD052\'\n"
"{\n"
"fk_tables := sql_foreign_keys (dsn, NULL, NULL, NULL, name_part (_pk_table, 0, null),\n"
"name_part (_pk_table, 1, null),\n"
"name_part (_pk_table, 2, null));\n"
"for (idx := 0; idx < length (fk_tables); idx := idx + 1)\n"
"{\n"
"_fk_tables := fk_tables [idx];\n"
"result (_fk_tables [0] || \'.\' || _fk_tables[1] || \'.\' || _fk_tables [2], _fk_tables[3], _pk_table, _fk_tables[7],\n"
"_fk_tables[8], _fk_tables[9], _fk_tables[10], _fk_tables[11], _fk_tables[12]);\n"
"}\n"
"return;\n"
"};\n"
"\n"
"declare exit handler for sqlstate \'VD052\'\n"
"{\n"
"return;\n"
"};\n"
"\n"
"result_names (PK_TABLE_SCHEMA, PK_TABLE_NAME, PK_COLUMN_NAME, FK_TABLE_SCHEMA, FK_TABLE_NAME, FK_COLUMN_NAME,\n"
"KEY_SEQ, UPDATE_RULE, DELETE_RULE, FK_NAME);\n"
"\n"
"_n1 := name_part (_pk_table, 0, null);\n"
"_n2 := name_part (_pk_table, 1, null);\n"
"_n3 := name_part (_pk_table, 2, null);\n"
"_dsn := dsn;\n"
"fk_tables := vector ();\n"
"\n"
"for (select TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, DSN as LOC_DSN from DB.DBA.XMLA_VDD_DBSCHEMA_TABLES\n"
"where tb = _n3 and cat = _n1 and dsn = _dsn) do\n"
"{\n"
"fk_tables := vector_concat (fk_tables, sql_foreign_keys\n"
"(_dsn, NULL, NULL, NULL, TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME));\n"
"}\n"
"\n"
"for (idx := 0; idx < length (fk_tables); idx := idx + 1)\n"
"{\n"
"_fk_tables := fk_tables [idx];\n"
"if (_pk_table <> _fk_table)\n"
"result (name_part (_fk_table, 1, null), _fk_tables[2], _fk_tables[3],\n"
"name_part (_fk_table, 1, null), _fk_tables[6], _fk_tables[7],\n"
"_fk_tables[8], _fk_tables[9], _fk_tables[10], _fk_tables[11]);\n"
"else\n"
"result (_fk_tables[1], _fk_tables[2], _fk_tables[3],\n"
"_fk_tables[5], _fk_tables[6], _fk_tables[7],\n"
"_fk_tables[8], _fk_tables[9], _fk_tables[10], _fk_tables[11]);\n"
"}\n"
"}\n"
"--src xmla.sql:1724\n";
static const char *proc160 =
"#line 1791 \"[executable]/xmla.sql\"\n"
"create procedure XMLA_USER_INIT ()\n"
"{\n"
"if (exists (select 1 from \"DB\".\"DBA\".\"SYS_USERS\" where U_NAME = \'XMLA\'))\n"
"return;\n"
"DB.DBA.USER_CREATE (\'XMLA\', uuid(), vector (\'DISABLED\', 1, \'LOGIN_QUALIFIER\', \'XMLA\'));\n"
"}\n"
"--src xmla.sql:1789\n";
static const char *other77 =
"XMLA_USER_INIT ()\n";
static const char *other78 =
"DB.DBA.VHOST_REMOVE (lpath=>\'/XMLA\')\n";
static const char *other79 =
"DB.DBA.VHOST_DEFINE (lpath=>\'/XMLA\', ppath=>\'/SOAP/\', soap_user=>\'XMLA\',\n"
"soap_opts => vector (\'ServiceName\', \'XMLAnalysis\', \'elementFormDefault\', \'qualified\'))\n";
static const char *other80 =
"grant execute on DB..\"Discover\" to \"XMLA\"\n";
static const char *other81 =
"grant execute on DB..\"Execute\" to \"XMLA\"\n";
static const char *other82 =
"grant execute on DB.DBA.\"xmla_vdd_dbschema_columns_rpoc\" to \"XMLA\"\n";
static const char *other83 =
"grant execute on DB.DBA.\"XMLA_VDD_DBSCHEMA_COLUMNS\" to \"XMLA\"\n";
static const char *other84 =
"grant all privileges on DB.DBA.\"XMLA_VDD_DBSCHEMA_COLUMNS\" to \"XMLA\"\n";
static const char *other85 =
"grant execute on DB.DBA.\"xmla_vdd_dbschema_tables_rpoc\" to \"XMLA\"\n";
static const char *other86 =
"grant execute on DB.DBA.\"XMLA_VDD_DBSCHEMA_TABLES\" to \"XMLA\"\n";
static const char *other87 =
"grant all privileges on DB.DBA.\"XMLA_VDD_DBSCHEMA_TABLES\" to \"XMLA\"\n";
static const char *other88 =
"grant all privileges on DB.DBA.\"XMLA_VDD_DBSCHEMA_PROVIDER_TYPES\" to \"XMLA\"\n";
static const char *other89 =
"grant execute on DB.DBA.\"xmla_vdd_dbschema_provider_types_rpoc\" to \"XMLA\"\n";
static const char *other90 =
"grant execute on DB.DBA.\"XMLA_GET_FK\" to \"XMLA\"\n";
static const char *other91 =
"grant execute on DB.DBA.\"XMLA_GET_PK\" to \"XMLA\"\n";
static const char *other92 =
"grant all privileges on DB.DBA.\"SYS_FOREIGN_KEYS_VIEW\" to \"XMLA\"\n";
static const char *other93 =
"grant all privileges on DB.DBA.\"SYS_PRIMARY_KEYS_VIEW\" to \"XMLA\"\n";
static const char *proc161 =
"#line 1852 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_cursor_stmt_change (in _props any, inout _stmt varchar)\n"
"{\n"
"declare _direction, new_stmpt, _left_str, _left_str_u varchar;\n"
"declare _skip, _n_rows, _return_bookmark, _bookmark_from, _return_row_count integer;\n"
"\n"
"_left_str := \'\';\n"
"\n"
"_direction := xmla_get_property (_props, \'direction\', \'forward\');\n"
"_bookmark_from := xmla_get_property (_props, \'bookmark-from\', NULL);\n"
"_skip := xmla_get_property (_props, \'skip\', 0);\n"
"_skip := xmla_make_skip (_bookmark_from, _skip, 1);\n"
"\n"
"_n_rows := xmla_get_property (_props, \'n-rows\', null);\n"
"_return_bookmark := xmla_get_property (_props, \'return-bookmark\', 0);\n"
"_return_row_count := xmla_get_property (_props, \'retrieve-row-count\', 0);\n"
"\n"
"new_stmpt := \'select \';\n"
"\n"
"if (_direction = \'forward\')\n"
"{\n"
"if (_skip)\n"
"{\n"
"_skip := cast (_skip as varchar);\n"
"if (_n_rows is null)\n"
"new_stmpt := new_stmpt || \'top \' || _skip || \' \';\n"
"else\n"
"new_stmpt := new_stmpt || \'top \' || _skip || \', \' || cast (_n_rows as varchar) || \' \';\n"
"}\n"
"else if (_n_rows > 0)\n"
"new_stmpt := new_stmpt || \'top \' || cast (_n_rows as varchar) || \' \';\n"
"}\n"
"\n"
"if (_return_bookmark)\n"
"new_stmpt := new_stmpt || \'\'\'_dummy_\'\' AS BOOKMARK, \';\n"
"\n"
"if (_return_row_count)\n"
"new_stmpt := new_stmpt || \'1 AS ROWCOUNT, \';\n"
"\n"
"_stmt := trim (_stmt);\n"
"\n"
"if (length (_stmt) > 6)\n"
"_left_str := \"LEFT\" (_stmt, 6);\n"
"\n"
"_left_str_u := ucase (_left_str, 6);\n"
"\n"
"if (_left_str_u = \'SELECT\')\n"
"_stmt := new_stmpt || \' * FROM (\' || _stmt || \') __xml_dt0\' ;\n"
"\n"
"\n"
"\n"
"}\n"
"--src xmla.sql:1850\n";
static const char *proc162 =
"#line 1906 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_make_cursors_state (in _props any, inout _dta any, in stmt any)\n"
"{\n"
"declare _direction varchar;\n"
"declare _return_bookmark, _return_row_count, _skip, idx, idx2, len, _direc_save, _n_rows integer;\n"
"declare line, temp, _bookmark_from any;\n"
"\n"
"_return_bookmark := xmla_get_property (_props, \'return-bookmark\', 0);\n"
"_skip := xmla_get_property (_props, \'skip\', 0);\n"
"_n_rows := xmla_get_property (_props, \'n-rows\', null);\n"
"\n"
"_direction := xmla_get_property (_props, \'direction\', \'forward\');\n"
"_bookmark_from := xmla_get_property (_props, \'bookmark-from\', NULL);\n"
"_return_row_count := xmla_get_property (_props, \'retrieve-row-count\', 0);\n"
"\n"
"len := length (_dta);\n"
"\n"
"if (_return_row_count)\n"
"{\n"
"declare _rows any;\n"
"\n"
"_rows := xmla_get_rows_from_stmt (stmt);\n"
"\n"
"for (idx := 0; idx < len; idx := idx + 1)\n"
"{\n"
"line := _dta[idx];\n"
"aset (line, 1, _rows);\n"
"aset (_dta, idx, line);\n"
"}\n"
"}\n"
"\n"
"_direc_save := 0;\n"
"if (_direction = \'backward\')\n"
"_direc_save := len;\n"
"\n"
"if (_direction = \'backward\')\n"
"{\n"
"for (idx := 0; idx < len / 2 + 1; idx := idx + 1)\n"
"{\n"
"line := _dta[idx];\n"
"temp := _dta[len - idx - 1];\n"
"aset (_dta, idx, temp);\n"
"aset (_dta, len - idx - 1, line);\n"
"}\n"
"}\n"
"\n"
"if (_return_bookmark)\n"
"{\n"
"for (idx := 0; idx < len; idx := idx + 1)\n"
"{\n"
"line := _dta[idx];\n"
"if (_direction = \'backward\')\n"
"aset (line, 0, encode_base64 (serialize (vector(0, len - idx - 1, _direc_save))));\n"
"else\n"
"aset (line, 0, encode_base64 (serialize (vector(_skip, idx, _direc_save))));\n"
"aset (_dta, idx, line);\n"
"}\n"
"}\n"
"\n"
"\n"
"if (_direction = \'backward\')\n"
"{\n"
"declare _new_dta, _end any;\n"
"\n"
"_skip := xmla_make_skip (_bookmark_from, _skip, 0);\n"
"_new_dta := vector ();\n"
"idx2 := 0;\n"
"_end := _n_rows + _skip;\n"
"\n"
"if (_end > len)\n"
"_end := len;\n"
"\n"
"for (idx := _skip; idx < _end; idx := idx + 1)\n"
"{\n"
"line := _dta[idx];\n"
"_new_dta := vector_concat (_new_dta, vector (line));\n"
"idx2 := idx2 + 1;\n"
"}\n"
"\n"
"_dta := _new_dta;\n"
"}\n"
"}\n"
"--src xmla.sql:1904\n";
static const char *proc163 =
"#line 1991 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_make_skip (in _skip any, in _add int, in _dir int)\n"
"{\n"
"declare pos_vec, ret any;\n"
"\n"
"ret := _add;\n"
"\n"
"if (_skip is NULL)\n"
"return ret;\n"
"\n"
"if (_skip <> \'\')\n"
"{\n"
"pos_vec := deserialize (decode_base64 (_skip));\n"
"\n"
"if (not isarray (pos_vec))\n"
"signal (\'00006\', \'Unable to process the bookmark, because the \"bookmark-from\" property is incorrect\');\n"
"if (_dir)\n"
"ret := pos_vec[0] + pos_vec[1] + _add;\n"
"else\n"
"ret := pos_vec[2] - pos_vec[1] + _add - 1;\n"
"}\n"
"else\n"
"signal (\'00007\', \'Unable to process the bookmark, because the \"bookmark-from\" property is not set or incorrect\');\n"
"\n"
"return ret;\n"
"}\n"
"--src xmla.sql:1989\n";
static const char *proc164 =
"#line 2019 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_version ()\n"
"{\n"
"return \'1.01\';\n"
"}\n"
"--src xmla.sql:2017\n";
static const char *proc165 =
"#line 2027 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_format_mdta (inout mdta any)\n"
"{\n"
"declare idx, _line, _name, temp any;\n"
"\n"
"temp := mdta[0];\n"
"\n"
"for (idx := 0; idx < length (temp); idx := idx + 1)\n"
"{\n"
"_line := temp[idx];\n"
"_name := temp[idx][0];\n"
"_name := replace (_name, \' \', \'_\');\n"
"aset (_line, 0, _name);\n"
"aset (temp, idx, _line);\n"
"}\n"
"\n"
"aset (mdta, 0, temp);\n"
"}\n"
"--src xmla.sql:2025\n";
static const char *proc166 =
"#line 2048 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_get_rows_from_stmt (in stmt any)\n"
"{\n"
"declare res, mdta, dta, state, msg any;\n"
"declare new_stmpt, tmp varchar;\n"
"declare pos integer;\n"
"\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"return -1;\n"
"};\n"
"\n"
"new_stmpt := \'SELECT count(*) \';\n"
"stmt := trim (stmt);\n"
"tmp := ucase (stmt);\n"
"pos := strstr (tmp, \'FROM\');\n"
"tmp := \"LEFT\" (stmt, pos);\n"
"\n"
"stmt := replace (stmt, tmp, new_stmpt, 1);\n"
"\n"
"res := exec (stmt, state, msg, vector (), 0, mdta, dta);\n"
"\n"
"return dta[0][0];\n"
"}\n"
"--src xmla.sql:2046\n";
static const char *proc167 =
"#line 2075 \"[executable]/xmla.sql\"\n"
"create procedure\n"
"xmla_sparql_result (inout mdta any, inout dta any, in stmt any)\n"
"{\n"
"declare idx, idx2, tmdta any;\n"
"\n"
"stmt := ucase (trim (stmt));\n"
"\n"
"if (\"LEFT\" (stmt, 6) <> \'SPARQL\')\n"
"return;\n"
"\n"
"tmdta := mdta[0];\n"
"\n"
"for (idx := 0; idx < length (tmdta); idx := idx + 1)\n"
"{\n"
"declare temp, line any;\n"
"\n"
"if (mdta[0][idx][1] = 242)\n"
"{\n"
"for (idx2 := 0; idx2 < length (dta); idx2 := idx2 + 1)\n"
"{\n"
"line := dta[idx2];\n"
"temp := line[idx];\n"
"temp := cast (temp as varchar);\n"
"aset (line, idx, temp);\n"
"aset (dta, idx2, line);\n"
"}\n"
"}\n"
"}\n"
"}\n"
"--src xmla.sql:2073\n";
/* openxml.sql */
static const char *proc168 =
"#line 33 \"[executable]/openxml.sql\"\n"
"create procedure\n"
"DB.DBA.OPENXML_DEFINE (in vname varchar, in tb varchar, in data varchar, in xp varchar, in meta any)\n"
"{\n"
"declare _vname, pname, vdef, pdef, msg, stat, n0, n1, n2, cols, defs, rnames1, tcols varchar;\n"
"declare mod, i, l integer;\n"
"declare xps, rnames, elm any;\n"
"mod := 0;\n"
"\n"
"if (tb is null)\n"
"tb := vname;\n"
"\n"
"tb := complete_table_name (tb, 1);\n"
"vname := complete_table_name (vname, 1);\n"
"\n"
"if (tb is not null and exists (select 1 from DB.DBA.SYS_KEYS where KEY_TABLE = tb))\n"
"{\n"
"if (not exists (select 1 from SYS_COLS where \\TABLE = tb and \\COLUMN = data))\n"
"signal (\'42S22\', \'The data column does not exist\', \'XV005\');\n"
"mod := 1;\n"
"}\n"
"\n"
"if (exists (select 1 from DB.DBA.SYS_VIEWS where V_NAME = vname))\n"
"signal (\'42S01\', \'The XML procedure view already exists\', \'XV004\');\n"
"\n"
"\n"
"if (not mod and xml_tree (data, 0) is null)\n"
"signal (\'22023\', \'The table does not exist and data is not valid XML\', \'XV001\');\n"
"\n"
"if (not isarray (meta))\n"
"signal (\'22023\', \'The metadata is not supplied\', \'XV002\');\n"
"\n"
"n0 := name_part (tb, 0);\n"
"n1 := name_part (tb, 1);\n"
"n2 := name_part (tb, 2);\n"
"\n"
"xps := vector(); rnames := vector (); defs := \'\'; cols := \'(\'; rnames1 := \'\'; tcols := \'\';\n"
"i := 0; l := length (meta);\n"
"while (i < l)\n"
"{\n"
"elm := meta[i];\n"
"if (not isarray (elm) or length (elm) < 1)\n"
"signal (\'22023\', \'The metadata is not valid\', \'XV003\');\n"
"if (length (elm) >= 2)\n"
"{\n"
"if (length (elm) = 2)\n"
"xps := vector_concat (xps, vector (elm[0]));\n"
"else\n"
"xps := vector_concat (xps, vector (elm[2]));\n"
"rnames := vector_concat (rnames, vector (elm[0]));\n"
"}\n"
"rnames1 := concat (rnames1, elm[0], \',\');\n"
"if (length (elm) > 1)\n"
"{\n"
"cols := concat (cols, sprintf (\'%s %s,\', elm[0], elm[1]));\n"
"defs := concat (defs, sprintf (\'declare %s %s;\\n\', elm [0], elm [1]));\n"
"}\n"
"else\n"
"{\n"
"declare ctype varchar;\n"
"if (tb is not null and not exists (select 1 from SYS_COLS where \\TABLE = tb and \\COLUMN = elm[0]))\n"
"signal (\'42S22\', \'The column does not exist\', \'XV005\');\n"
"select dv_type_title (COL_DTP) into ctype from SYS_COLS where \\TABLE = tb and \\COLUMN = elm[0];\n"
"cols := concat (cols, sprintf (\'%s %s,\', elm[0], ctype));\n"
"tcols := concat (tcols, elm [0], \',\');\n"
"}\n"
"i := i + 1;\n"
"}\n"
"aset (cols, length(cols) - 1, ascii(\')\'));\n"
"aset (rnames1, length(rnames1) - 1, ascii(\' \'));\n"
"vname := sprintf (\'\"%I\".\"%I\".\"%I\"\', n0, n1, name_part (vname, 2));\n"
"pname := sprintf (\'\"%I\".\"%I\".\"%s_OPENXML_PROC__\"\', n0, n1, DB.DBA.SYS_ALFANUM_NAME(name_part (vname, 2)));\n"
"vdef := sprintf (\'CREATE PROCEDURE VIEW %s AS %s() %s\', vname, pname, cols);\n"
"if (not mod)\n"
"{\n"
"pdef := sprintf (\'CREATE PROCEDURE %s ()\\n{ declare idoc, res any;\\ndeclare i, l integer;\\n%s\\n\',\n"
"pname, defs);\n"
"pdef := concat (pdef, sprintf (\'idoc := xml_tree_doc (\'\'%s\'\');\\n\', data));\n"
"pdef := concat (pdef, sprintf (\'res := xpath_eval (\'\'%s\'\', idoc, 0);\\n\', xp));\n"
"\n"
"pdef := concat (pdef, \'i:=0; l:=length(res);\\n\');\n"
"pdef := concat (pdef, \'while (i < l) {\\n\');\n"
"i := 0; l := length (xps);\n"
"while (i < l)\n"
"{\n"
"pdef := concat (pdef, sprintf (\'%s := xpath_eval (\'\'%s\'\', res[i], 1);\\n\',rnames[i],xps[i]));\n"
"i := i + 1;\n"
"}\n"
"pdef := concat (pdef, sprintf (\'i := i + 1;\\nresult (%s);\\n}\\n\', rnames1));\n"
"pdef := concat (pdef, \'\\n}\\n\');\n"
"}\n"
"else\n"
"{\n"
"pdef := sprintf (\'CREATE PROCEDURE %s ()\\n{ %s\\n\', pname, defs);\n"
"\n"
"pdef := concat (pdef,\n"
"sprintf (\'for select %s res from \"%I\".\"%I\".\"%I\" where xpath_contains (\"%I\", \'\'%s\'\', res) do {\\n\',\n"
"tcols, n0, n1, n2, data, xp));\n"
"i := 0; l := length (xps);\n"
"while (i < l)\n"
"{\n"
"pdef := concat (pdef, sprintf (\'%s := xpath_eval (\'\'%s\'\', res, 1);\\n\',rnames[i],xps[i]));\n"
"i := i + 1;\n"
"}\n"
"pdef := concat (pdef, sprintf (\'result (%s);\\n}\\n\', rnames1));\n"
"pdef := concat (pdef, \'\\n}\\n\');\n"
"}\n"
"\n"
"stat := \'00000\';\n"
"exec (pdef, stat, msg);\n"
"if (stat <> \'00000\')\n"
"signal (\'22023\', \'Bad datatype in metadata\', \'XV006\');\n"
"stat := \'00000\';\n"
"exec (vdef, stat, msg);\n"
"if (stat <> \'00000\')\n"
"signal (stat, msg);\n"
"}\n"
"--src openxml.sql:31\n";
/* vspx.sql */
static const char *tbl8 =
"create table DB.DBA.VSPX_SESSION\n"
"(VS_REALM varchar,\n"
"VS_SID varchar,\n"
"VS_UID varchar,\n"
"VS_STATE long varchar,\n"
"VS_EXPIRY datetime,\n"
"primary key (VS_REALM, VS_SID))\n";
static const char *tbl9 =
"create table WS.WS.HTTP_SES_TRAP_DISABLE\n"
"(\n"
"EXT varchar,\n"
"primary key (EXT)\n"
")\n";
static const char *trig6 =
"#line 55 \"[executable]/vspx.sql\"\n"
"create trigger VSPX_SESSION_INSERT_AFTER after insert on DB.DBA.VSPX_SESSION {\n"
"declare v_sql any;\n"
"declare result, name, content, reg any;\n"
"declare pwd any;\n"
"declare _state varchar;\n"
"\n"
"if (not is_http_ctx ())\n"
"return;\n"
"\n"
"if(registry_get(\'__block_http_history\') = http_path()) {\n"
"\n"
"return;\n"
"}\n"
"\n"
"select pwd_magic_calc(\'dav\', U_PASSWORD, 1) into pwd from DB.DBA.SYS_USERS where U_NAME=\'dav\' and U_IS_ROLE=0;\n"
"reg := registry_get(\'__save_http_history\');\n"
"\n"
"if(isstring (reg) and reg <> \'\' and http_path() like concat(reg, \'/%\')) {\n"
"if(VS_STATE is NULL) {\n"
"_state := \'NULL\';\n"
"}\n"
"else {\n"
"_state := WS.WS.STR_SQL_APOS(VS_STATE);\n"
"}\n"
"v_sql := sprintf(\'insert replacing DB.DBA.VSPX_SESSION values(\\\'%s\\\', \\\'%s\\\', \\\'%s\\\', %s, now());\\n\', VS_REALM, VS_SID, VS_UID, _state);\n"
"v_sql := concat(\'SET TRIGGERS OFF;\\n\',\n"
"v_sql,\n"
"\'update DB.DBA.VSPX_SESSION set VS_STATE = coalesce ((select top 1 VS_STATE from DB.DBA.VSPX_SESSION where VS_STATE is not NULL), serialize (vector (\'\'vspx_user\'\', \'\'dba\'\'))) where VS_STATE is NULL;\');\n"
"name := sprintf(\'%06d_sql_exec\', sequence_next(\'sys_http_recording\'));\n"
"name := concat(\'/DAV/sys_http_recording/\', name);\n"
"\n"
"result := cast(DB.DBA.DAV_SEARCH_ID(\'/DAV/sys_http_recording/\', \'c\') as integer);\n"
"if(result < 0) {\n"
"\n"
"result := cast(DB.DBA.DAV_COL_CREATE(\'/DAV/sys_http_recording/\', \'110110110R\', \'dav\', \'dav\', \'dav\', pwd) as integer);\n"
"if(result < 0) {\n"
"return;\n"
"}\n"
"}\n"
"result := cast(DB.DBA.DAV_RES_UPLOAD(name, v_sql,\'text/html\',\'110110110R\',\'dav\',\'dav\',\'dav\', pwd) as INTEGER);\n"
"}\n"
"}\n"
"--src vspx.sql:53\n";
static const char *udt6 =
"create type vspx_event\n"
"as (\n"
"ve_params any,\n"
"ve_lines any,\n"
"ve_path any,\n"
"ve_button vspx_control,\n"
"ve_initiator vspx_control,\n"
"ve_is_post int default 0\n"
") temporary self as ref\n";
static const char *udt7 =
"create type vspx_control\n"
"as (\n"
"vc_parent vspx_control default null,\n"
"vc_name varchar,\n"
"vc_instance_name varchar,\n"
"vc_enabled int default 1,\n"
"vc_error_message varchar default null,\n"
"vc_page vspx_page,\n"
"vc_focus int default 0,\n"
"vc_handlers any default null,\n"
"vc_attributes any,\n"
"vc_data_bound int default 0,\n"
"vc_inside_form int default 0,\n"
"vc_inx int default null,\n"
"vc_level int default null,\n"
"vc_instantiate int default -1,\n"
"vc_top_form vspx_form,\n"
"vc_repeater vspx_control,\n"
"vc_control_state int default null,\n"
"vc_have_state int default 0,\n"
"vc_children any default null\n"
") temporary self as ref\n"
"method vc_data_bind (e vspx_event) returns any,\n"
"method vc_disable_child (ct_name varchar) returns any,\n"
"method vc_enable_child (ct_name varchar) returns any,\n"
"method vc_error_summary () returns any,\n"
"method vc_error_summary (esc_mode int) returns any,\n"
"method vc_error_summary (esc_mode int, pattern varchar) returns any,\n"
"method vc_find_control (name varchar) returns vspx_control,\n"
"method vc_find_descendant_control (name varchar) returns vspx_control,\n"
"method vc_find_parent_by_name (control vspx_control, name varchar) returns vspx_control,\n"
"method vc_find_parent (control vspx_control, udt_name varchar) returns vspx_control,\n"
"method vc_find_parent_form (control vspx_control) returns vspx_control,\n"
"method vc_find_rpt_control (name varchar) returns vspx_control,\n"
"method vc_sibling_value (name varchar) returns any,\n"
"method vc_get_focus (e vspx_event) returns any,\n"
"method vc_set_childs_focus (flag any, e vspx_event) returns any,\n"
"method vc_post (e vspx_event) returns any,\n"
"method vc_user_post (e vspx_event) returns any,\n"
"method vc_action (e vspx_event) returns any,\n"
"method vc_pre_render (stream any, n int) returns any,\n"
"method vc_render () returns any,\n"
"method vc_xrender () returns any,\n"
"method vc_render (ct_name varchar) returns any,\n"
"method vc_set_view_state (e vspx_event) returns any,\n"
"method vc_view_state (stream any, n int) returns any,\n"
"method vc_attribute (name varchar) returns vspx_attribute,\n"
"method vc_set_attribute (name varchar, value any) returns any,\n"
"method vc_add_attribute (name varchar, value any) returns any,\n"
"method vc_get_attribute (name varchar) returns any,\n"
"method vc_handle_error (state any, message any, deadl any) returns any,\n"
"method vc_init (name varchar, parent vspx_control) returns any,\n"
"method vc_get_name () returns any,\n"
"method vc_set_model () returns any,\n"
"method vc_add_handler (name varchar, method_name varchar) returns any,\n"
"method vc_invoke_handlers (name varchar) returns any,\n"
"method vc_debug_log (rectype varchar, txt varchar, more_data any) returns any,\n"
"method vc_debug_log_endgroup (begin_id integer, rectype varchar, txt varchar, more_data any) returns any,\n"
"method vc_push_in_state (stream any, state any) returns any,\n"
"method vc_push_in_stream (stream any, state any, n int) returns any,\n"
"method vc_get_control_state (def any) returns any,\n"
"method vc_set_control_state (state any) returns any,\n"
"constructor method vspx_control (name varchar, parent vspx_control)\n";
static const char *udt8 =
"create type vspx_attribute as\n"
"(\n"
"va_name varchar,\n"
"va_value varchar,\n"
"va_parent vspx_control\n"
") temporary self as ref\n"
"method vc_render () returns any,\n"
"constructor method vspx_attribute (name varchar, parent vspx_control)\n";
static const char *udt9 =
"create type vspx_page under vspx_control\n"
"as (\n"
"vc_view_state any,\n"
"vc_is_postback int default 0,\n"
"vc_persisted_vars any,\n"
"vc_event vspx_event,\n"
"vc_is_valid int default 1,\n"
"vc_authenticated int default 0,\n"
"vc_current_id int default 0,\n"
"vc_browser_caps any default 0,\n"
"vc_authentication_mode int default 1,\n"
"vc_debug_log_acc any default null\n"
") temporary self as ref\n"
"method vc_state_deserialize (stream any, n int) returns any,\n"
"method vc_get_debug_log (title varchar) returns any\n";
static const char *other94 =
"create constructor method vspx_attribute (in name varchar, inout parent vspx_control) for vspx_attribute\n"
"{\n"
"\n"
"self.va_name := name;\n"
"self.va_parent := parent;\n"
"}\n";
static const char *other95 =
"create method vc_render () for vspx_attribute\n"
"{\n"
"if(self.va_value=\'@@hidden@@\') return;\n"
"http (\' \' || self.va_name || \'=\"\');\n"
"http_value (self.va_value);\n"
"http (\'\"\');\n"
"}\n";
static const char *other96 =
"create method vc_attribute (in name varchar) returns vspx_attribute for vspx_control\n"
"{\n"
"declare i, l int;\n"
"i := 0; l := length (self.vc_attributes);\n"
"\n"
"while (i < l)\n"
"{\n"
"declare attr vspx_attribute;\n"
"attr := self.vc_attributes[i];\n"
"if (attr is not null and attr.va_name = name)\n"
"return attr;\n"
"i := i + 1;\n"
"}\n"
"return null;\n"
"}\n";
static const char *other97 =
"create method vc_set_attribute (in name varchar, in value any) for vspx_control\n"
"{\n"
"declare i, l int;\n"
"i := 0; l := length (self.vc_attributes);\n"
"\n"
"while(i < l) {\n"
"declare attr vspx_attribute;\n"
"attr := self.vc_attributes[i];\n"
"if (attr is not null and attr.va_name = name) {\n"
"attr.va_value := value;\n"
"aset(self.vc_attributes, i, attr);\n"
"return attr;\n"
"}\n"
"i := i + 1;\n"
"}\n"
"return null;\n"
"}\n";
static const char *other98 =
"create method vc_add_attribute (in name varchar, in value any) for vspx_control\n"
"{\n"
"\n"
"declare attrs any;\n"
"declare attr vspx_attribute;\n"
"\n"
"attr := self.vc_set_attribute (name, value);\n"
"if (attr is not null)\n"
"return attr;\n"
"attr := vspx_attribute (name, self);\n"
"attr.va_value := value;\n"
"attrs := self.vc_attributes;\n"
"attrs := vector_concat (attrs, vector (attr));\n"
"self.vc_attributes := attrs;\n"
"return attr;\n"
"}\n";
static const char *other99 =
"create method vc_get_attribute (in name varchar) for vspx_control\n"
"{\n"
"declare i, l int;\n"
"i := 0; l := length (self.vc_attributes);\n"
"while (i < l)\n"
"{\n"
"declare attr vspx_attribute;\n"
"attr := self.vc_attributes[i];\n"
"if (attr is not null and attr.va_name = name)\n"
"{\n"
"return attr.va_value;\n"
"}\n"
"i := i + 1;\n"
"}\n"
"return null;\n"
"}\n";
static const char *other100 =
"create method vc_add_handler (in name varchar, in method_name varchar) for vspx_control\n"
"{\n"
"declare pos, arr, hdl int;\n"
"declare meth any;\n"
"if (self.vc_handlers is null)\n"
"{\n"
"self.vc_handlers := vector (\n"
"\'on-init\', null,\n"
"\'before-data-bind\', null,\n"
"\'after-data-bind\', null,\n"
"\'on-post\', null,\n"
"\'before-render\', null\n"
");\n"
"}\n"
"\n"
"arr := self.vc_handlers;\n"
"pos := position (name, arr);\n"
"if (pos < 1)\n"
"signal (\'22023\', \'Invalid handler type, must be one of following: on-init, before-data-bind, after-data-bind, on-post or before-render\');\n"
"\n"
"hdl := arr [pos];\n"
"if (hdl is null)\n"
"hdl := vector ();\n"
"\n"
"meth := udt_implements_method (self.vc_page, fix_identifier_case (method_name));\n"
"if (meth)\n"
"{\n"
"hdl := vector_concat (hdl, vector (method_name));\n"
"}\n"
"else\n"
"{\n"
"signal (\'22023\', \'Not existing page method: \"\'||method_name||\'\".\');\n"
"}\n"
"\n"
"arr[pos] := hdl;\n"
"self.vc_handlers := arr;\n"
"}\n";
static const char *other101 =
"create method vc_invoke_handlers (in name varchar) for vspx_control\n"
"{\n"
"declare meth, arr, hdl any;\n"
"declare i, l int;\n"
"if (self.vc_handlers is null)\n"
"return;\n"
"arr := self.vc_handlers;\n"
"hdl := get_keyword (name, arr);\n"
"if (hdl is null)\n"
"return;\n"
"l := length (hdl); i := 0;\n"
"while (i < l)\n"
"{\n"
"meth := udt_implements_method (self.vc_page, fix_identifier_case (hdl[i]));\n"
"call (meth) (self.vc_page, self);\n"
"i := i + 1;\n"
"}\n"
"}\n";
static const char *other102 =
"create method vc_init (in name varchar, inout parent vspx_control) for vspx_control\n"
"{\n"
"declare id int;\n"
"\n"
"if (not isstring (name))\n"
"{\n"
"signal (\'22023\', \'Missing control name\');\n"
"}\n"
"\n"
"self.vc_name := name;\n"
"self.vc_parent := parent;\n"
"self.vc_page := parent.vc_page;\n"
"\n"
"if (self.vc_inx is null and parent.vc_inx is not null)\n"
"self.vc_inx := parent.vc_inx;\n"
"if (self.vc_level is null and parent.vc_level is not null)\n"
"self.vc_level := parent.vc_level;\n"
"\n"
"if (parent.vc_repeater is null and self.vc_inx is not null and parent.vc_inx is not null)\n"
"{\n"
"self.vc_repeater := parent;\n"
"}\n"
"else if (parent.vc_repeater is not null)\n"
"{\n"
"self.vc_repeater := parent.vc_repeater;\n"
"}\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"if (self.vc_inx is not null\n"
"\n"
")\n"
"{\n"
"if (self.vc_repeater is null)\n"
"self.vc_instance_name := sprintf (\'%s$%d\', self.vc_name, self.vc_inx);\n"
"else\n"
"self.vc_instance_name := sprintf (\'%s:%s$%d\',\n"
"self.vc_repeater.vc_instance_name, self.vc_name, self.vc_inx);\n"
"}\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"if (self.vc_inside_form or parent.vc_inside_form or\n"
"udt_instance_of (parent, fix_identifier_case (\'vspx_form\')))\n"
"self.vc_inside_form := 1;\n"
"\n"
"if (udt_instance_of (self, fix_identifier_case (\'vspx_form\')) and not self.vc_inside_form)\n"
"{\n"
"self.vc_top_form := self;\n"
"}\n"
"else if (parent.vc_top_form is not null)\n"
"{\n"
"self.vc_top_form := parent.vc_top_form;\n"
"}\n"
"}\n";
static const char *other103 =
"create method vc_get_name () for vspx_control\n"
"{\n"
"if (self.vc_instance_name is null)\n"
"return self.vc_name;\n"
"return self.vc_instance_name;\n"
"}\n";
static const char *other104 =
"create method vc_debug_log (in rectype varchar, in txt varchar, in more_data any) returns any for vspx_control\n"
"{\n"
"declare acc any;\n"
"declare head any;\n"
"declare id any;\n"
"if (self is null or self.vc_page is null)\n"
"return 0;\n"
"acc := self.vc_page.vc_debug_log_acc;\n"
"if (acc is null)\n"
"xte_nodebld_init (acc);\n"
"id := sequence_next(\'vspx_vc_debug_log\');\n"
"head := xte_head (rectype, \'text\', txt, \'control-name\', self.vc_name, \'instance-name\', self.vc_instance_name, \'id\', cast (id as varchar));\n"
"if (more_data is null)\n"
"xte_nodebld_acc (acc, xte_node (head));\n"
"else if (isentity (more_data))\n"
"xte_nodebld_acc (acc, xte_node (head, more_data));\n"
"else\n"
"xte_nodebld_acc (acc, xte_node (head, cast (more_data as varchar)));\n"
"self.vc_page.vc_debug_log_acc := acc;\n"
"return id;\n"
"}\n";
static const char *other105 =
"create method vc_debug_log_endgroup (in begin_id integer, in rectype varchar, in txt varchar, in more_data any) returns any for vspx_control\n"
"{\n"
"declare acc any;\n"
"declare head any;\n"
"declare id any;\n"
"if (self is null or self.vc_page is null)\n"
"return 0;\n"
"acc := self.vc_page.vc_debug_log_acc;\n"
"if (acc is null)\n"
"xte_nodebld_init (acc);\n"
"id := sequence_next(\'vspx_vc_debug_log\');\n"
"head := xte_head (rectype, \'text\', txt, \'control-name\', self.vc_name, \'instance-name\', self.vc_instance_name, \'id\', cast (id as varchar), \'begin-id\', cast (begin_id as varchar));\n"
"if (more_data is null)\n"
"xte_nodebld_acc (acc, xte_node (head));\n"
"else if (isentity (more_data))\n"
"xte_nodebld_acc (acc, xte_node (head, more_data));\n"
"else\n"
"xte_nodebld_acc (acc, xte_node (head, cast (more_data as varchar)));\n"
"self.vc_page.vc_debug_log_acc := acc;\n"
"return id;\n"
"}\n";
static const char *other106 =
"create method vc_state_deserialize (inout stream any, inout n int) returns any for vspx_page\n"
"{\n"
"declare ss any;\n"
"declare h any;\n"
"declare inx, len int;\n"
"h := udt_implements_method (self.vc_page, fix_identifier_case (concat (\'vc_view_state_\', self.vc_name)));\n"
"if (h <> 0)\n"
"{\n"
"call (h) (self.vc_page, self, stream, n);\n"
"}\n"
"ss := string_output ();\n"
"http (chr (193), ss);\n"
"http (serialize (n), ss);\n"
"http (string_output_string (stream), ss);\n"
"stream := null;\n"
"self.vc_view_state := deserialize (string_output_string (ss));\n"
"\n"
"}\n";
static const char *other107 =
"create method vc_get_debug_log (in title varchar) returns any for vspx_page\n"
"{\n"
"declare acc any;\n"
"acc := self.vc_debug_log_acc;\n"
"if (acc is null)\n"
"return xml_tree_doc (xte_node (xte_head(title)));\n"
"xte_nodebld_final(acc, xte_head(title));\n"
"self.vc_debug_log_acc := null;\n"
"return xml_tree_doc (acc);\n"
"}\n";
static const char *udt10 =
"create type vspx_row_template under vspx_control\n"
"as (\n"
"te_rowset any,\n"
"te_ctr int default 0,\n"
"te_editable int default 0\n"
") temporary self as ref\n"
"constructor method vspx_row_template (name varchar,rowset any, parent vspx_control, ctr int),\n"
"constructor method vspx_row_template_fast (name varchar,rowset any, parent vspx_control, ctr int, nth int),\n"
"method te_column_value (name varchar) returns any\n";
static const char *udt11 =
"create type vspx_form under vspx_control\n"
"as\n"
"(\n"
"uf_action varchar default \'\',\n"
"uf_method varchar default \'post\',\n"
"\n"
"uf_validators any,\n"
"uf_xmodel any default null,\n"
"uf_xsubmit any default null,\n"
"uf_xschema any default null\n"
") temporary self as ref\n"
"constructor method vspx_form (name varchar, parent vspx_control),\n"
"method prologue_render (sid varchar, realm varchar, nonce varchar) returns any,\n"
"method epilogue_render () returns any,\n"
"overriding method vc_set_model () returns any\n";
static const char *udt12 =
"create type vspx_tab under vspx_form\n"
"as\n"
"(\n"
"tb_active vspx_template,\n"
"tb_is_input int default 0,\n"
"tb_style varchar\n"
")\n"
"temporary self as ref\n"
"constructor method vspx_tab (name varchar, parent vspx_control),\n"
"\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any\n";
static const char *udt13 =
"create type vspx_template under vspx_control\n"
"temporary self as ref\n"
"constructor method vspx_template (name varchar, parent vspx_control)\n";
static const char *udt14 =
"create type vspx_update_form under vspx_form\n"
"as (\n"
"uf_keys any,\n"
"uf_fields any,\n"
"uf_row any,\n"
"uf_columns any,\n"
"uf_table varchar,\n"
"uf_if_not_exists int,\n"
"uf_concurrency int default 0\n"
") temporary self as ref\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"constructor method vspx_update_form (name varchar, parent vspx_control),\n"
"method uf_column_value (name varchar) returns any\n";
static const char *udt15 =
"create type vspx_login_form under vspx_form\n"
"as\n"
"(\n"
"vlf_title varchar,\n"
"vlf_user_title varchar,\n"
"vlf_password_title varchar,\n"
"vlf_submit_title varchar,\n"
"vlf_login vspx_login\n"
") temporary self as ref\n"
"constructor method vspx_login_form (name varchar, parent vspx_control),\n"
"constructor method vspx_login_form (name varchar, title varchar, user_title varchar, password_title varchar, submit_tile varchar, login vspx_login),\n"
"overriding method vc_render () returns any\n";
static const char *udt16 =
"create type vspx_field_value under vspx_control\n"
"as\n"
"(\n"
"ufl_value any default null,\n"
"ufl_element_value any default null,\n"
"ufl_element_place any default null,\n"
"ufl_element_path any default null,\n"
"ufl_element_params any default null,\n"
"ufl_element_update_path any default null,\n"
"ufl_element_update_params any default null,\n"
"ufl_true_value any default 1,\n"
"ufl_false_value any default 0,\n"
"ufl_null_value any default null,\n"
"ufl_selected int default 0,\n"
"ufl_is_boolean int default 0\n"
")\n"
"temporary self as ref\n"
"constructor method vspx_field_value (name varchar, parent vspx_control),\n"
"method vc_get_from_element () returns any,\n"
"method vc_put_to_element (val any) returns any,\n"
"method vc_get_value_from_element () returns any,\n"
"method vc_put_value_to_element () returns any,\n"
"method vc_get_selected_from_value () returns any\n";
static const char *udt17 =
"create type vspx_field under vspx_field_value\n"
"as\n"
"(\n"
"ufl_fmt_fn varchar default null,\n"
"ufl_cvt_fn varchar default null,\n"
"ufl_validators any,\n"
"ufl_column varchar default null,\n"
"ufl_error varchar default null,\n"
"ufl_error_glyph varchar default null,\n"
"ufl_failed int default 0,\n"
"ufl_group varchar default \'\',\n"
"ufl_name_suffix varchar default \'\',\n"
"ufl_active int default 1,\n"
"ufl_client_validate int default 0,\n"
"ufl_auto_submit int default 0\n"
")\n"
"temporary self as ref\n"
"constructor method vspx_field (name varchar, parent vspx_control),\n"
"method ufl_schema (sch any, name varchar) returns any,\n"
"method vc_validate () returns any\n";
static const char *udt18 =
"create type vspx_column under vspx_field\n"
"as\n"
"(\n"
"ufl_col_label varchar,\n"
"ufl_col_offs int,\n"
"ufl_col_meta any,\n"
"ufl_table varchar default null,\n"
"ufl_is_key int default 0\n"
")\n"
"temporary self as ref\n"
"constructor method vspx_column (col varchar, label varchar, infmt varchar, outfmt varchar, parent vspx_control)\n";
static const char *udt19 =
"create type vspx_update_field under vspx_text\n"
"temporary self as ref\n"
"constructor method vspx_update_field (name varchar, parent vspx_control),\n"
"overriding method vc_render () returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any\n";
static const char *udt20 =
"create type vspx_isql under vspx_form\n"
"as\n"
"(\n"
"\n"
"isql_custom_exec integer default 0,\n"
"isql_explain integer default 0,\n"
"isql_maxrows integer default 20,\n"
"isql_chunked integer default 0,\n"
"isql_current_stmt varchar default null,\n"
"isql_current_state any default null,\n"
"isql_current_meta any default null,\n"
"isql_current_pos int default 0,\n"
"isql_current_row int default 0,\n"
"isql_rows_fetched int default 0,\n"
"isql_user varchar default null,\n"
"isql_password varchar default null,\n"
"isql_isolation varchar default \'committed\',\n"
"isql_timeout integer default 60,\n"
"isql_text varchar default \'\',\n"
"\n"
"\n"
"isql_mtd any default null,\n"
"isql_res any default null,\n"
"isql_stmts any default null\n"
")\n"
"temporary self as ref\n"
"constructor method vspx_isql (name varchar, parent vspx_control),\n"
"method isql_exec () returns any\n";
static const char *udt21 =
"create type vspx_text under vspx_field\n"
"as\n"
"(\n"
"tf_default varchar default \'\',\n"
"tf_style any default 0\n"
")\n"
"temporary self as ref\n"
"overriding method vc_render () returns any,\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"overriding method vc_set_model () returns any,\n"
"overriding method vc_xrender () returns any,\n"
"constructor method vspx_text (name varchar, parent vspx_control)\n";
static const char *udt22 =
"create type vspx_textarea under vspx_text temporary self as ref\n"
"constructor method vspx_textarea (name varchar, parent vspx_control),\n"
"overriding method vc_xrender () returns any,\n"
"overriding method vc_render () returns any\n";
static const char *udt23 =
"create type vspx_label under vspx_field\n"
"as\n"
"(\n"
"vl_format varchar default \'%s\'\n"
") temporary self as ref\n"
"constructor method vspx_label (name varchar, parent vspx_control),\n"
"overriding method vc_render () returns any\n";
static const char *udt24 =
"create type vspx_check_box under vspx_field\n"
"temporary self as ref\n"
"constructor method vspx_check_box (name varchar, parent vspx_control),\n"
"overriding method vc_render () returns any,\n"
"overriding method vc_xrender () returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"overriding method vc_set_model () returns any\n";
static const char *udt25 =
"create type vspx_radio_button under vspx_field\n"
"temporary self as ref\n"
"constructor method vspx_radio_button (name varchar, parent vspx_control),\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"overriding method vc_render () returns any,\n"
"overriding method vc_xrender () returns any,\n"
"overriding method vc_set_model () returns any\n";
static const char *udt26 =
"create type vspx_radio_group under vspx_field\n"
"temporary self as ref\n"
"constructor method vspx_radio_group (name varchar, parent vspx_control),\n"
"method vc_choose_selected () returns any,\n"
"overriding method vc_xrender () returns any,\n"
"overriding method vc_set_model () returns any\n";
static const char *udt27 =
"create type vspx_url under vspx_field\n"
"as\n"
"(\n"
"vu_format varchar default \'%s\',\n"
"vu_url varchar default \'\',\n"
"vu_l_pars varchar default \'\',\n"
"vu_is_local int default 0\n"
")\n"
"temporary self as ref\n"
"overriding method vc_render () returns any,\n"
"constructor method vspx_url (name varchar, parent vspx_control)\n";
static const char *udt28 =
"create type vspx_button under vspx_field as\n"
"(\n"
"bt_pressed int default 0,\n"
"bt_style varchar default \'submit\',\n"
"bt_close_img varchar,\n"
"bt_open_img varchar,\n"
"bt_url varchar default \'\',\n"
"bt_l_pars varchar default \'\',\n"
"bt_text varchar default \'\',\n"
"bt_anchor int default 0\n"
") temporary self as ref\n"
"overriding method vc_render () returns any,\n"
"overriding method vc_xrender () returns any,\n"
"overriding method vc_set_model () returns any,\n"
"constructor method vspx_button (name varchar, parent vspx_control)\n";
static const char *udt29 =
"create type vspx_submit under vspx_button\n"
"temporary self as ref\n"
"constructor method vspx_submit (name varchar, parent vspx_control)\n";
static const char *udt30 =
"create type vspx_logout_button under vspx_button\n"
"temporary self as ref\n"
"constructor method vspx_logout_button (name varchar, parent vspx_control)\n";
static const char *udt31 =
"create type vspx_return_button under vspx_button\n"
"temporary self as ref\n"
"overriding method vc_render () returns any,\n"
"constructor method vspx_return_button (name varchar, parent vspx_control)\n";
static const char *udt32 =
"create type vspx_delete_button under vspx_button as\n"
"(\n"
"btd_table varchar,\n"
"btd_key varchar\n"
") temporary self as ref\n"
"constructor method vspx_delete_button (name varchar, parent vspx_control)\n";
static const char *udt33 =
"create type vspx_calendar under vspx_control as\n"
"(\n"
"cal_date date,\n"
"cal_meta any,\n"
"cal_selected datetime,\n"
"cal_current_row vspx_row_template\n"
") temporary self as ref\n"
"method vc_get_date_array () returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"constructor method vspx_calendar (name varchar, parent vspx_control)\n";
static const char *udt34 =
"create type vspx_validator\n"
"as\n"
"(\n"
"vv_format varchar,\n"
"vv_test varchar,\n"
"vv_expr varchar,\n"
"vv_message varchar,\n"
"vv_empty_allowed int default 0\n"
") temporary self as ref\n";
static const char *udt35 =
"create type vspx_range_validator under vspx_validator\n"
"as\n"
"(\n"
"vr_min any,\n"
"vr_max any\n"
") temporary self as ref\n"
"method vv_validate (control vspx_control) returns any\n";
static const char *udt36 =
"create type vspx_data_set under vspx_form\n"
"as (\n"
"ds_nrows int,\n"
"ds_scrollable int,\n"
"ds_editable int default 1,\n"
"ds_row_meta any,\n"
"ds_row_data any,\n"
"ds_current_row vspx_row_template,\n"
"ds_rowno_edit int default null,\n"
"ds_rows_fetched int default 0,\n"
"ds_rows_total int default 0,\n"
"ds_rows_offs int default 0,\n"
"ds_rows_offs_saved int default 0,\n"
"ds_scrolled int default 0,\n"
"ds_has_next_page int default 0,\n"
"ds_prev_bookmark any default null,\n"
"ds_last_bookmark any default null,\n"
"ds_rows_cache any,\n"
"ds_data_source vspx_data_source default null\n"
") temporary self as ref\n"
"method vc_templates_clean () returns any,\n"
"method vc_reset () returns any,\n"
"method ds_column_offset (name varchar) returns any,\n"
"method ds_iterate_rows (inx int) returns any,\n"
"constructor method vspx_data_set (name varchar, parent vspx_control),\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any\n";
static const char *udt37 =
"create type vspx_data_source under vspx_control\n"
"as (\n"
"ds_row_meta any,\n"
"ds_row_data any,\n"
"ds_array_data any,\n"
"ds_rows_fetched int default 0,\n"
"ds_rows_offs int default 0,\n"
"ds_nrows int,\n"
"ds_total_pages int default 0,\n"
"ds_current_page int default 0,\n"
"ds_current_pager_idx int default 0,\n"
"ds_npages int default 10,\n"
"ds_first_page int default 0,\n"
"ds_last_page int default 0,\n"
"ds_total_rows int default 0,\n"
"ds_prev_bookmark any default null,\n"
"ds_next_bookmark any default null,\n"
"ds_parameters any default null,\n"
"ds_columns any default null,\n"
"ds_sql varchar default null,\n"
"ds_sql_type varchar default \'sql\',\n"
"ds_current_inx int default 0,\n"
"ds_update_inx int default -1,\n"
"ds_tables any default null,\n"
"ds_insert any default null,\n"
"ds_update any default null,\n"
"ds_delete any default null,\n"
"ds_rb_data any default null,\n"
"ds_have_more any default null\n"
")\n"
"temporary self as ref\n"
"method set_parameter (num any, value any) returns any,\n"
"method get_parameter (num any) returns any,\n"
"method add_parameter (value any) returns any,\n"
"method delete_parameter (num any) returns any,\n"
"method get_column_name (num any) returns any,\n"
"method set_column_label (num any, value any) returns any,\n"
"method get_column_label (num any) returns any,\n"
"method get_column_label (col varchar) returns any,\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"method set_item_value (row any, col any, value any) returns any,\n"
"method set_item_value (col varchar, value any) returns any,\n"
"method get_item_value (row any, col any) returns any,\n"
"method get_rb_item_value (row any, col any) returns any,\n"
"method get_item_value (col any) returns any,\n"
"method get_item_value (col varchar) returns any,\n"
"method set_expression (expression varchar) returns any,\n"
"method get_expression () returns varchar,\n"
"method set_expression_type (type varchar) returns any,\n"
"method get_expression_type () returns varchar,\n"
"method reset () returns any,\n"
"method ds_data_bind (e vspx_event) returns any,\n"
"method ds_make_statistic () returns any,\n"
"method ds_insert (e vspx_event) returns any,\n"
"method ds_update (e vspx_event) returns any,\n"
"method ds_delete (e vspx_event) returns any,\n"
"method ds_key_params (tbl varchar) returns any,\n"
"method ds_tbl_params (tbl varchar) returns any,\n"
"method get_current_row () returns any,\n"
"constructor method vspx_data_source (name varchar, parent vspx_control)\n";
static const char *other108 =
"create method reset () for vspx_data_source\n"
"{\n"
"self.ds_prev_bookmark := null;\n"
"self.ds_last_bookmark := null;\n"
"}\n";
static const char *other109 =
"create method ds_key_params (in tbl varchar) for vspx_data_source\n"
"{\n"
"declare i, l, r int;\n"
"declare pars any;\n"
"pars := vector ();\n"
"i := 0; l := length (self.ds_columns);\n"
"r := self.ds_update_inx;\n"
"while (i < l)\n"
"{\n"
"declare col vspx_column;\n"
"col := self.ds_columns[i];\n"
"if (col.ufl_table = tbl and col.ufl_is_key)\n"
"{\n"
"declare par any;\n"
"if (self.ds_rb_data is not null)\n"
"par := self.get_rb_item_value (r,i);\n"
"else\n"
"par := self.get_item_value (r,i);\n"
"pars := vector_concat (pars, vector (par));\n"
"}\n"
"i := i + 1;\n"
"}\n"
"return pars;\n"
"}\n";
static const char *other110 =
"create method ds_tbl_params (in tbl varchar) for vspx_data_source\n"
"{\n"
"declare i, l, r int;\n"
"declare pars any;\n"
"pars := vector ();\n"
"i := 0; l := length (self.ds_columns);\n"
"r := self.ds_update_inx;\n"
"while (i < l)\n"
"{\n"
"declare col vspx_column;\n"
"col := self.ds_columns[i];\n"
"if (col.ufl_table = tbl)\n"
"{\n"
"declare par any;\n"
"par := self.get_item_value (r,i);\n"
"pars := vector_concat (pars, vector (par));\n"
"}\n"
"i := i + 1;\n"
"}\n"
"return pars;\n"
"}\n";
static const char *other111 =
"create method ds_insert (inout e vspx_event) for vspx_data_source\n"
"{\n"
"declare stat, msg, pars any;\n"
"declare pos, ia any;\n"
"declare stmt varchar;\n"
"declare i, l int;\n"
"\n"
"ia := self.ds_insert;\n"
"i := 0;\n"
"l := length (ia);\n"
"while (i < l)\n"
"{\n"
"declare k, p any;\n"
"declare tbl varchar;\n"
"declare npars any;\n"
"\n"
"tbl := self.ds_tables[i];\n"
"p := self.ds_tbl_params (tbl);\n"
"stmt := ia[i];\n"
"npars := p;\n"
"stat := \'00000\';\n"
"exec (stmt, stat, msg, npars);\n"
"\n"
"if (stat <> \'00000\')\n"
"{\n"
"rollback work;\n"
"signal (stat, msg);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"\n"
"}\n";
static const char *other112 =
"create method ds_update (inout e vspx_event) for vspx_data_source\n"
"{\n"
"declare stat, msg, pars any;\n"
"declare pos any;\n"
"declare stmt varchar;\n"
"declare i, l int;\n"
"declare ua, ia any;\n"
"\n"
"ua := self.ds_update;\n"
"i := 0;\n"
"l := length (ua);\n"
"while (i < l)\n"
"{\n"
"declare k, p any;\n"
"declare tbl varchar;\n"
"declare npars any;\n"
"\n"
"tbl := self.ds_tables[i];\n"
"k := self.ds_key_params (tbl);\n"
"p := self.ds_tbl_params (tbl);\n"
"stmt := ua[i];\n"
"npars := vector_concat (p, k);\n"
"stat := \'00000\';\n"
"exec (stmt, stat, msg, npars);\n"
"\n"
"if (stat <> \'00000\')\n"
"{\n"
"rollback work;\n"
"signal (stat, msg);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"}\n";
static const char *other113 =
"create method ds_delete (inout e vspx_event) for vspx_data_source\n"
"{\n"
"declare stat, msg, pars any;\n"
"declare pos any;\n"
"declare stmt varchar;\n"
"declare i, l int;\n"
"declare da any;\n"
"\n"
"da := self.ds_delete;\n"
"i := 0;\n"
"l := length (da);\n"
"while (i < l)\n"
"{\n"
"declare k, p any;\n"
"declare tbl varchar;\n"
"declare npars any;\n"
"\n"
"tbl := self.ds_tables[i];\n"
"k := self.ds_key_params (tbl);\n"
"stmt := da[i];\n"
"npars := k;\n"
"stat := \'00000\';\n"
"exec (stmt, stat, msg, npars);\n"
"\n"
"if (stat <> \'00000\')\n"
"{\n"
"rollback work;\n"
"signal (stat, msg);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"\n"
"}\n";
static const char *other114 =
"create method ds_make_statistic () for vspx_data_source\n"
"{\n"
"declare stat, msg, data, meta any;\n"
"declare pos any;\n"
"declare stmt varchar;\n"
"declare i, l int;\n"
"declare j, k int;\n"
"\n"
"stat := \'00000\';\n"
"if(self.ds_sql_type = \'sql\') {\n"
"stmt := sprintf(\'select count(*) from (%s) %s\', self.ds_sql, self.vc_name);\n"
"}\n"
"else if(self.ds_sql_type = \'procedure\') {\n"
"return 0;\n"
"}\n"
"else if(self.ds_sql_type = \'array\') {\n"
"self.ds_total_rows := length(self.ds_array_data);\n"
"goto skip_sql;\n"
"}\n"
"else if(self.ds_sql_type = \'table\') {\n"
"stmt := sprintf(\'select count(*) from %s\', self.ds_sql);\n"
"}\n"
"exec(stmt, stat, msg, self.ds_parameters, 1, meta, data);\n"
"if(stat <> \'00000\') {\n"
"rollback work;\n"
"signal (stat, msg);\n"
"}\n"
"self.ds_total_rows := data[0][0];\n"
"skip_sql:\n"
"self.ds_total_pages := self.ds_total_rows / self.ds_nrows;\n"
"self.ds_current_page := self.ds_rows_offs / self.ds_nrows + 1;\n"
"if(mod(self.ds_current_page, self.ds_npages + 1) = 0) {\n"
"self.ds_first_page := self.ds_current_page;\n"
"}\n"
"else {\n"
"self.ds_first_page := self.ds_current_page - mod(self.ds_current_page, self.ds_npages + 1);\n"
"}\n"
"if(self.ds_first_page < 1) {\n"
"self.ds_first_page := 1;\n"
"}\n"
"self.ds_last_page := self.ds_first_page + self.ds_npages - 1;\n"
"if(self.ds_last_page > self.ds_total_pages + 1) {\n"
"self.ds_last_page := self.ds_total_pages + 1;\n"
"}\n"
"}\n";
static const char *other115 =
"create method ds_data_bind (inout e vspx_event) for vspx_data_source\n"
"{\n"
"declare stat, msg, data, meta any;\n"
"declare pos any;\n"
"declare stmt varchar;\n"
"declare i, l int;\n"
"declare j, k int;\n"
"\n"
"stat := \'00000\';\n"
"stmt := self.ds_sql;\n"
"\n"
"if (self.ds_sql_type = \'sql\')\n"
"{\n"
"stmt := sprintf (\'select top %d,%d * from (\', self.ds_rows_offs, self.ds_nrows + 1)\n"
"|| stmt || \') \"\' || self.vc_name || \'\"\';\n"
"}\n"
"else if (self.ds_sql_type = \'procedure\')\n"
"{\n"
" ;\n"
"}\n"
"else if (self.ds_sql_type = \'array\')\n"
"{\n"
"self.ds_rows_fetched := length(self.ds_array_data) - self.ds_rows_offs;\n"
"if(self.ds_rows_fetched > self.ds_nrows) self.ds_rows_fetched := self.ds_nrows;\n"
"self.ds_row_data := subseq(self.ds_array_data, self.ds_rows_offs, self.ds_rows_offs + self.ds_rows_fetched);\n"
"return;\n"
"}\n"
"else if (self.ds_sql_type = \'table\')\n"
"{\n"
"stmt := sprintf (\'select top %d,%d * from %s\', self.ds_rows_offs, self.ds_nrows + 1, self.ds_sql);\n"
"}\n"
"\n"
"\n"
"exec (stmt, stat, msg, self.ds_parameters, self.ds_nrows + 1, meta, data);\n"
"if (stat <> \'00000\')\n"
"{\n"
"rollback work;\n"
"signal (stat, msg);\n"
"}\n"
"\n"
"if (isarray (data) and length (data) > self.ds_nrows)\n"
"{\n"
"self.ds_have_more := 1;\n"
"data := subseq (data, 0, self.ds_nrows);\n"
"}\n"
"else\n"
"{\n"
"self.ds_have_more := 0;\n"
"}\n"
"\n"
"\n"
"meta := meta [0];\n"
"l := length (self.ds_columns);\n"
"j := 0; k := length (meta);\n"
"while (i < l)\n"
"{\n"
"declare col vspx_column;\n"
"col := self.ds_columns[i];\n"
"j := 0;\n"
"while (j < k)\n"
"{\n"
"declare colname varchar;\n"
"if (isstring (meta[j][8]))\n"
"colname := meta[j][8];\n"
"else\n"
"colname := meta[j][0];\n"
"if (colname = col.ufl_column)\n"
"{\n"
"declare cmeta any;\n"
"cmeta := meta[j];\n"
"if (not isstring (meta[j][8]))\n"
"aset (cmeta, 8, colname);\n"
"col.ufl_col_offs := j;\n"
"col.ufl_col_meta := cmeta;\n"
"j := k;\n"
"}\n"
"j := j + 1;\n"
"}\n"
"i := i + 1;\n"
"}\n"
"\n"
"declare tables any;\n"
"i := 0; l := length (self.ds_columns);\n"
"tables := vector ();\n"
"while (i < l)\n"
"{\n"
"declare col vspx_column;\n"
"declare tblname varchar;\n"
"col := self.ds_columns[i];\n"
"if (isstring (col.ufl_col_meta[10])\n"
"and isstring (col.ufl_col_meta[9])\n"
"and isstring (col.ufl_col_meta[7])\n"
")\n"
"{\n"
"tblname := sprintf (\'\"%I\".\"%I\".\"%I\"\', col.ufl_col_meta[7], col.ufl_col_meta[9], col.ufl_col_meta[10]);\n"
"col.ufl_table := tblname;\n"
"if (not position (tblname, tables))\n"
"tables := vector_concat (tables, vector (tblname));\n"
"}\n"
"i := i + 1;\n"
"}\n"
"\n"
"declare ins, upd, del, whe, cols, vals varchar;\n"
"declare ua, ia, da any;\n"
"i := 0; l := length (tables);\n"
"j := 0; k := length (self.ds_columns);\n"
"ua := make_array (l, \'any\');\n"
"ia := make_array (l, \'any\');\n"
"da := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"j := 0;\n"
"ins := \'insert into \' || tables[i] || \' \';\n"
"upd := \'update \' || tables[i] || \' set \';\n"
"del := \'delete from \' || tables[i] || \' \';\n"
"whe := \' where \';\n"
"cols := \'\'; vals := \'\';\n"
"while (j < k)\n"
"{\n"
"declare col vspx_column;\n"
"declare tblname varchar;\n"
"col := self.ds_columns[j];\n"
"if (tables[i] = col.ufl_table)\n"
"{\n"
"upd := upd || col.ufl_col_meta[8] || \' = ?, \';\n"
"if (not col.ufl_col_meta[4] and col.ufl_col_meta[6])\n"
"{\n"
"whe := whe || col.ufl_col_meta[8] || \' = ? and \';\n"
"col.ufl_is_key := 1;\n"
"}\n"
"cols := cols || col.ufl_col_meta[8] || \', \';\n"
"vals := vals || \'?, \';\n"
"}\n"
"j := j + 1;\n"
"}\n"
"upd := rtrim (upd,\', \'); whe := whe || \'1\';\n"
"cols := rtrim (cols,\', \'); vals := rtrim (vals,\', \');\n"
"upd := upd || whe;\n"
"del := del || whe;\n"
"ins := ins || \' (\' || cols || \') values (\' || vals ||\')\';\n"
"aset (ua, i, upd);\n"
"aset (ia, i, ins);\n"
"aset (da, i, del);\n"
"i := i + 1;\n"
"}\n"
"\n"
"self.ds_tables := tables;\n"
"self.ds_insert := ia;\n"
"self.ds_update := ua;\n"
"self.ds_delete := da;\n"
"\n"
"self.ds_rows_fetched := length (data);\n"
"self.ds_row_data := data;\n"
"self.ds_row_meta := meta;\n"
"\n"
"}\n";
static const char *other116 =
"create method get_current_row () for vspx_data_source\n"
"{\n"
"return self.ds_current_inx;\n"
"}\n";
static const char *other117 =
"create method set_parameter (in num any, in value any) for vspx_data_source\n"
"{\n"
"declare pars any;\n"
"if (length (self.ds_parameters) > num)\n"
"{\n"
"pars := self.ds_parameters;\n"
"aset (pars, num, value);\n"
"self.ds_parameters := pars;\n"
"}\n"
"}\n";
static const char *other118 =
"create method get_parameter (in num any) for vspx_data_source\n"
"{\n"
"declare exit handler for sqlstate \'22003\' { return \'out-of-index\'; };\n"
"return self.ds_parameters[num];\n"
"}\n";
static const char *other119 =
"create method add_parameter (in value any) for vspx_data_source\n"
"{\n"
"declare pars any;\n"
"pars := self.ds_parameters;\n"
"if (pars is null)\n"
"pars := vector ();\n"
"pars := vector_concat (pars, vector (value));\n"
"self.ds_parameters := pars;\n"
"}\n";
static const char *other120 =
"create method delete_parameter (in num any) for vspx_data_source\n"
"{\n"
"declare pars any;\n"
"if (length (self.ds_parameters) > num)\n"
"{\n"
"declare i,j, l int;\n"
"pars := make_array(length(self.ds_parameters) - 1, \'any\');\n"
"i := 0; l := length (self.ds_parameters); j := 0;\n"
"while (i < l)\n"
"{\n"
"if (i <> num)\n"
"{\n"
"aset (pars, j, self.ds_parameters[i]);\n"
"j := j + 1;\n"
"}\n"
"i := i + 1;\n"
"}\n"
"self.ds_parameters := pars;\n"
"}\n"
"}\n";
static const char *other121 =
"create method set_column_label (in num any, in value any) for vspx_data_source\n"
"{\n"
"declare cols any;\n"
"if (length (self.ds_columns) > num)\n"
"{\n"
"declare col vspx_column;\n"
"cols := self.ds_columns;\n"
"col := cols[num];\n"
"col.ufl_col_label := value;\n"
"aset (cols, num, col);\n"
"self.ds_columns := cols;\n"
"}\n"
"}\n";
static const char *other122 =
"create method get_column_label (in num any) for vspx_data_source\n"
"{\n"
"declare exit handler for sqlstate \'*\' { return \'out-of-index\'; };\n"
"return (self.ds_columns[num] as vspx_column).ufl_col_label;\n"
"}\n";
static const char *other123 =
"create method get_column_name (in num any) for vspx_data_source\n"
"{\n"
"\n"
"return (self.ds_columns[num] as vspx_column).ufl_column;\n"
"}\n";
static const char *other124 =
"create method get_column_label (in col varchar) for vspx_data_source\n"
"{\n"
"declare colum vspx_column;\n"
"declare i, l int;\n"
"declare exit handler for sqlstate \'*\' { return \'out-of-index\'; };\n"
"i := 0; l := length (self.ds_columns);\n"
"while (i < l)\n"
"{\n"
"colum := self.ds_columns[i];\n"
"if (colum.ufl_column = col)\n"
"goto endf;\n"
"i := i + 1;\n"
"}\n"
"signal (\'22003\', \'Non-existing column\');\n"
"endf:;\n"
"return colum.ufl_col_label;\n"
"}\n";
static const char *other125 =
"create method set_item_value (in row any, in col any, in value any) for vspx_data_source\n"
"{\n"
"declare data, drow any;\n"
"declare cols any;\n"
"declare colum vspx_column;\n"
"if (length (self.ds_row_data) <= row)\n"
"return;\n"
"data := self.ds_row_data;\n"
"drow := data[row];\n"
"cols := self.ds_columns;\n"
"if (length (cols) <= col)\n"
"return;\n"
"colum := cols[col];\n"
"aset (drow, colum.ufl_col_offs, value);\n"
"aset (data, row, drow);\n"
"if (self.ds_rb_data is null) self.ds_rb_data := self.ds_row_data;\n"
"self.ds_row_data := data;\n"
"}\n";
static const char *other126 =
"create method set_item_value (in col varchar, in value any) for vspx_data_source\n"
"{\n"
"declare row int;\n"
"declare data, drow any;\n"
"declare colum vspx_column;\n"
"declare i, l int;\n"
"\n"
"row := self.ds_update_inx;\n"
"i := 0; l := length (self.ds_columns);\n"
"while (i < l)\n"
"{\n"
"colum := self.ds_columns[i];\n"
"if (colum.ufl_column = col)\n"
"goto endf;\n"
"i := i + 1;\n"
"}\n"
"signal (\'22003\', \'Non-existing column\');\n"
"endf:;\n"
"data := self.ds_row_data;\n"
"drow := data[row];\n"
"aset (drow, colum.ufl_col_offs, value);\n"
"aset (data, row, drow);\n"
"if (self.ds_rb_data is null) self.ds_rb_data := self.ds_row_data;\n"
"self.ds_row_data := data;\n"
"}\n";
static const char *other127 =
"create method get_item_value (in row any, in col any) for vspx_data_source\n"
"{\n"
"declare colum vspx_column;\n"
"declare exit handler for sqlstate \'22003\' { return \'out-of-index\'; };\n"
"colum := self.ds_columns[col];\n"
"return self.ds_row_data[row][colum.ufl_col_offs];\n"
"}\n";
static const char *other128 =
"create method get_rb_item_value (in row any, in col any) for vspx_data_source\n"
"{\n"
"declare colum vspx_column;\n"
"if (self.ds_rb_data is null)\n"
"return null;\n"
"declare exit handler for sqlstate \'22003\' { return \'out-of-index\'; };\n"
"colum := self.ds_columns[col];\n"
"return self.ds_rb_data[row][colum.ufl_col_offs];\n"
"}\n";
static const char *other129 =
"create method get_item_value (in col any) for vspx_data_source\n"
"{\n"
"declare colum vspx_column;\n"
"declare exit handler for sqlstate \'22003\' { return \'\'; };\n"
"colum := self.ds_columns[col];\n"
"return self.ds_row_data[self.get_current_row ()][colum.ufl_col_offs];\n"
"}\n";
static const char *other130 =
"create method get_item_value (in col varchar) for vspx_data_source\n"
"{\n"
"declare colum vspx_column;\n"
"declare i, l int;\n"
"declare exit handler for sqlstate \'22003\' { return \'\'; };\n"
"i := 0; l := length (self.ds_columns);\n"
"while (i < l)\n"
"{\n"
"colum := self.ds_columns[i];\n"
"if (colum.ufl_column = col)\n"
"goto endf;\n"
"i := i + 1;\n"
"}\n"
"signal (\'22003\', \'Non-existing column\');\n"
"endf:;\n"
"return self.ds_row_data[self.get_current_row ()][colum.ufl_col_offs];\n"
"}\n";
static const char *other131 =
"create method set_expression (in expression varchar) for vspx_data_source\n"
"{\n"
"self.ds_sql := expression;\n"
"}\n";
static const char *other132 =
"create method get_expression () for vspx_data_source\n"
"{\n"
"return self.ds_sql;\n"
"}\n";
static const char *other133 =
"create method set_expression_type (in type varchar) for vspx_data_source\n"
"{\n"
"if (lower(type) not in (\'sql\', \'procedure\', \'table\'))\n"
"signal (\'22023\', \'Bad type of sql expression fo data-source\');\n"
"self.ds_sql_type := lower(type);\n"
"}\n";
static const char *other134 =
"create method get_expression_type () for vspx_data_source\n"
"{\n"
"return self.ds_sql_type;\n"
"}\n";
static const char *other135 =
"create method vc_templates_clean () for vspx_data_set\n"
"{\n"
"declare i, l int;\n"
"declare chils any;\n"
"chils := self.vc_children;\n"
"i := 0; l := length (chils);\n"
"while (i < l)\n"
"{\n"
"declare chil any;\n"
"chil := chils[i];\n"
"if (chil is not null and udt_instance_of (chil, fix_identifier_case (\'vspx_row_template\')))\n"
"{\n"
"\n"
"aset (chils, i, NULL);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"self.vc_children := chils;\n"
"}\n";
static const char *other136 =
"create method vc_reset () for vspx_data_set\n"
"{\n"
"self.ds_prev_bookmark := null;\n"
"self.ds_last_bookmark := null;\n"
"self.ds_rows_offs := 0;\n"
"}\n";
static const char *other137 =
"create method ds_column_offset (in name varchar) for vspx_data_set\n"
"{\n"
"if (self.ds_data_source is null)\n"
"return (position (name, self.ds_row_meta) - 1);\n"
"else\n"
"{\n"
"declare i, l int;\n"
"i := 0; l := length (self.ds_row_meta);\n"
"while (i < l)\n"
"{\n"
"declare elm any;\n"
"elm := self.ds_row_meta[i];\n"
"if (isarray (elm) and length (elm) and elm[0] = name)\n"
"return i;\n"
"i := i + 1;\n"
"}\n"
"}\n"
"}\n";
static const char *other138 =
"create method ds_iterate_rows (inout inx int) for vspx_data_set\n"
"{\n"
"declare i, l int;\n"
"declare chil vspx_control;\n"
"declare c any;\n"
"i := inx;\n"
"c := self.vc_children;\n"
"l := length (c);\n"
"chil := null;\n"
"while (i < l)\n"
"{\n"
"chil := c[i];\n"
"if (chil is not null and udt_instance_of (chil, fix_identifier_case (\'vspx_row_template\')))\n"
"{\n"
"inx := i + 1;\n"
"return chil;\n"
"}\n"
"else\n"
"chil := null;\n"
"i := i + 1;\n"
"}\n"
"inx := l;\n"
"return chil;\n"
"}\n";
static const char *other139 =
"create method vc_choose_selected () for vspx_radio_group\n"
"{\n"
"declare i, l int;\n"
"i := 0; l := length (self.vc_children);\n"
"while (i < l)\n"
"{\n"
"declare chil any;\n"
"chil := self.vc_children[i];\n"
"if (chil is not null and udt_instance_of (chil, fix_identifier_case (\'vspx_radio_button\')))\n"
"{\n"
"if ((chil as vspx_field).ufl_value = self.ufl_value)\n"
"(chil as vspx_field).ufl_selected := 1;\n"
"else\n"
"(chil as vspx_field).ufl_selected := 0;\n"
"}\n"
"i := i + 1;\n"
"}\n"
"}\n";
static const char *other140 =
"create method vc_push_in_state (inout stream any, inout state any) for vspx_control\n"
"{\n"
"declare nam varchar;\n"
"nam := self.vc_get_name ();\n"
"if (not position (nam, stream))\n"
"stream := vector_concat (stream, vector (nam, null));\n"
"aset (stream, position (nam, stream), case when isblob (state) then blob_to_string (state) else state end);\n"
"return;\n"
"}\n";
static const char *other141 =
"create method vc_push_in_stream (inout stream any, inout state any, inout n int) for vspx_control\n"
"{\n"
"declare nam varchar;\n"
"nam := self.vc_get_name ();\n"
"http (serialize (nam), stream);\n"
"http (serialize (case when isblob (state) then blob_to_string (state) else state end), stream);\n"
"n := n + 2;\n"
"return;\n"
"}\n";
static const char *other142 =
"create method vc_get_control_state (in def any) for vspx_control\n"
"{\n"
"declare stream, nam any;\n"
"nam := self.vc_get_name ();\n"
"stream := coalesce (self.vc_page.vc_view_state, vector ());\n"
"return get_keyword (nam, stream, def);\n"
"}\n";
static const char *other143 =
"create method vc_set_control_state (inout state any) for vspx_control\n"
"{\n"
"declare stream any;\n"
"stream := self.vc_page.vc_view_state;\n"
"self.vc_push_in_state (stream, state);\n"
"self.vc_page.vc_view_state := stream;\n"
"}\n";
static const char *other144 =
"create method vc_view_state (inout stream any, inout n int) for vspx_data_set\n"
"{\n"
"declare state, flds any;\n"
"flds := vector (serialize(self.ds_last_bookmark), serialize (self.ds_prev_bookmark), self.ds_rows_fetched, self.ds_rowno_edit, self.vc_enabled, self.ds_editable, self.ds_rows_offs);\n"
"self.vc_push_in_stream (stream, flds, n);\n"
"return;\n"
"}\n";
static const char *udt38 =
"create type vspx_data_grid under vspx_form\n"
"as (\n"
"dg_nrows int default -1,\n"
"dg_scrollable int default 0,\n"
"dg_editable int default 1,\n"
"dg_row_meta any,\n"
"dg_row_data any,\n"
"dg_current_row vspx_row_template,\n"
"dg_rowno_edit int default null,\n"
"dg_rows_fetched int default 0,\n"
"dg_prev_bookmark any default null,\n"
"dg_last_bookmark any default null\n"
") temporary self as ref\n"
"method vc_templates_clean () returns any,\n"
"constructor method vspx_data_grid (name varchar, parent vspx_control),\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any\n";
static const char *udt39 =
"create type vspx_select_list under vspx_field\n"
"as (\n"
"vsl_items any,\n"
"vsl_item_values any,\n"
"vsl_selected_inx any default null,\n"
"vsl_change_script int default 0,\n"
"vsl_list_document any default null,\n"
"vsl_list_match varchar default null,\n"
"vsl_list_key_path varchar default null,\n"
"vsl_list_value_path varchar default null,\n"
"vsl_multiple int default 0\n"
")\n"
"temporary self as ref\n"
"overriding method vc_render () returns any,\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"overriding method vc_set_model () returns any,\n"
"overriding method vc_xrender () returns any,\n"
"method vs_set_selected () returns any,\n"
"constructor method vspx_select_list (name varchar, parent vspx_control)\n";
static const char *udt40 =
"create type vspx_data_list under vspx_select_list temporary self as ref\n"
"constructor method vspx_data_list (name varchar, parent vspx_control)\n";
static const char *udt41 =
"create type vspx_login under vspx_form\n"
"as (\n"
"vl_realm varchar,\n"
"vl_mode varchar,\n"
"vl_pwd_get varchar,\n"
"vl_usr_check varchar,\n"
"vl_authenticated int default 0,\n"
"vl_user varchar,\n"
"vl_sid varchar,\n"
"vl_no_login_redirect varchar,\n"
"vl_logout_in_progress int default 0\n"
")\n"
"temporary self as ref\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"overriding method vc_set_view_state (e vspx_event) returns any,\n"
"constructor method vspx_login (name varchar, parent vspx_control)\n";
static const char *udt42 =
"create type vspx_browse_button under vspx_button\n"
"as\n"
"(\n"
"vcb_selector varchar,\n"
"vcb_chil_options varchar default \'\',\n"
"vcb_browser_options varchar default \'\',\n"
"vcb_fields any,\n"
"vcb_ref_fields any,\n"
"vcb_params any default null,\n"
"vcb_browser_mode varchar default \'RES\',\n"
"vcb_list_mode integer default \'1\',\n"
"vcb_system varchar default \'\',\n"
"vcb_xfer varchar default \'DOM\',\n"
"vcb_current integer default 0,\n"
"vcb_filter varchar default \'*\'\n"
")\n"
"temporary self as ref\n"
"constructor method vspx_browse_button (name varchar, parent vspx_control),\n"
"overriding method vc_render () returns any\n";
static const char *udt43 =
"create type vspx_tree under vspx_control\n"
"as\n"
"(\n"
"vt_current_node int default -1,\n"
"vt_node any default null,\n"
"vt_open_at varchar default null,\n"
"vt_xpath_id varchar default null\n"
")\n"
"temporary self as ref\n"
"overriding method vc_view_state (stream any, n int) returns any,\n"
"method vc_get_state () returns any,\n"
"method vc_open_at (path varchar) returns any,\n"
"constructor method vspx_tree (name varchar, parent vspx_control)\n";
static const char *udt44 =
"create type vspx_tree_node under vspx_control\n"
"as\n"
"(\n"
"tn_tree vspx_tree default null,\n"
"tn_open int default 0,\n"
"tn_value varchar,\n"
"tn_element any default null,\n"
"tn_level int default 0,\n"
"tn_position int default 0,\n"
"tn_is_leaf int default 0\n"
")\n"
"temporary self as ref\n"
"method vc_close_all_childs () returns any,\n"
"method vc_get_state (stream any) returns any,\n"
"constructor method vspx_tree_node (name varchar, parent vspx_control, leaf int, ctr int, lev int)\n";
static const char *udt45 =
"create type vspx_vscx under vspx_form\n"
"self as ref temporary\n"
"constructor method vspx_vscx (name varchar, parent vspx_control, uri varchar),\n"
"overriding method vc_pre_render (stream any, n int) returns any\n";
static const char *other145 =
"create method vc_pre_render (inout stream any, inout n int) for vspx_vscx\n"
"{\n"
"declare tmp, ss, icnt any;\n"
"declare page vspx_page;\n"
"declare id varchar;\n"
"\n"
"id := self.vc_get_name ();\n"
"\n"
"page := self.vc_children[0];\n"
"ss := string_output ();\n"
"icnt := 0;\n"
"page.vc_pre_render (ss, icnt);\n"
"page.vc_state_deserialize (ss, icnt);\n"
"\n"
"self.vc_push_in_stream (stream, vspx_state_serialize (vspx_do_compact (page.vc_view_state)), n);\n"
"\n"
"return;\n"
"}\n";
static const char *proc169 =
"#line 1853 \"[executable]/vspx.sql\"\n"
" create procedure vspx_state_serialize (inout state any)\n"
"{\n"
"return encode_base64 (serialize (state));\n"
"\n"
"}\n"
"--src vspx.sql:1851\n";
static const char *proc170 =
"#line 1861 \"[executable]/vspx.sql\"\n"
" create procedure vspx_state_deserialize (inout state any)\n"
"{\n"
"return deserialize (decode_base64 (state));\n"
"\n"
"\n"
"\n"
"\n"
"}\n"
"--src vspx.sql:1859\n";
static const char *other146 =
"create constructor method vspx_vscx (in name varchar, in parent vspx_control, in uri varchar)\n"
"for vspx_vscx\n"
"{\n"
"declare h, vx any;\n"
"declare thispage, page vspx_page;\n"
"declare resource_name, vspxm_name, sql_name, signature,\n"
"vspx_dbname, vspx_user, class_name, full_class_name, q_full_class_name, stat, msg varchar;\n"
"declare unlink int;\n"
"declare path, params, lines, inner_state, enc_inner any;\n"
"declare id varchar;\n"
"\n"
"uri := WS.WS.EXPAND_URL (http_physical_path (), uri);\n"
"\n"
"\n"
"\n"
"vspx_get_user_info (vspx_dbname, vspx_user);\n"
"resource_name := uri;\n"
"\n"
"class_name := vspx_get_class_name (resource_name);\n"
"full_class_name := concat (vspx_dbname, \'.\', vspx_user, \'.\', class_name);\n"
"q_full_class_name := concat (\'\"\',vspx_dbname, \'\".\"\', vspx_user, \'\".\', class_name);\n"
"signature := vspx_get_signature (vspx_dbname, vspx_user, resource_name);\n"
"\n"
"if (not udt_is_available (full_class_name) or (registry_get (resource_name) <> signature))\n"
"{\n"
"stat := \'00000\'; msg := \'\';\n"
"exec (concat (\'drop type \', q_full_class_name), stat, msg);\n"
"unlink := vspx_make_temp_names (resource_name, vspxm_name, sql_name);\n"
"vspx_make_sql (vspx_dbname, vspx_user, resource_name, vspxm_name, sql_name, class_name);\n"
"vspx_load_sql (vspx_dbname, vspx_user, resource_name, sql_name);\n"
"registry_set (resource_name, signature);\n"
"if (unlink)\n"
"{\n"
"file_delete (vspxm_name, 1);\n"
"file_delete (vspxm_name||\'0\', 1);\n"
"file_delete (sql_name, 1);\n"
"}\n"
"log_enable (0, 1);\n"
"exec (sprintf (\'grant execute on %s to \"%s\"\', q_full_class_name, vspx_user));\n"
"commit work;\n"
"log_enable (1, 1);\n"
"}\n"
"\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"id := self.vc_get_name ();\n"
"\n"
"thispage := parent.vc_page;\n"
"path := thispage.vc_event.ve_path;\n"
"params := thispage.vc_event.ve_params;\n"
"lines := thispage.vc_event.ve_lines;\n"
"inner_state := get_keyword (id, thispage.vc_view_state);\n"
"enc_inner := vector (concat (class_name, \'_view_state\'), inner_state);\n"
"params := vector_concat (params, enc_inner);\n"
"\n"
"page := __udt_instantiate_class (full_class_name, 0);\n"
"page.vc_inside_form := 1;\n"
"\n"
"\n"
"if (self.vc_inx is null)\n"
"{\n"
"thispage.vc_current_id := thispage.vc_current_id + 1;\n"
"page.vc_inx := thispage.vc_current_id;\n"
"}\n"
"else\n"
"page.vc_inx := self.vc_inx;\n"
"page.vc_parent := self;\n"
"page.vc_instance_name := id;\n"
"\n"
"self.vc_children := vector (page);\n"
"vx := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (vx)\n"
"{\n"
"call (vx) (parent.vc_page, self, parent);\n"
"}\n"
"\n"
"h := udt_implements_method (page, class_name, 1);\n"
"call (h) (page, path, params, lines);\n"
"}\n";
static const char *other147 =
"create constructor method vspx_tree_node (in name varchar, inout parent vspx_control, in leaf int, in ctr int, in lev int) for vspx_tree_node\n"
"{\n"
"\n"
"self.tn_is_leaf := leaf;\n"
"self.tn_level := lev;\n"
"self.tn_position := ctr;\n"
"self.vc_inx := ctr;\n"
"self.vc_level := lev;\n"
"self.vc_init (name, parent);\n"
"self.vc_repeater := self;\n"
"if (parent is not null and udt_instance_of (parent, fix_identifier_case (\'vspx_tree\')))\n"
"self.tn_tree := parent;\n"
"else if (parent is not null and udt_instance_of (parent, fix_identifier_case (\'vspx_tree_node\')))\n"
"self.tn_tree := (parent as vspx_tree_node).tn_tree;\n"
"}\n";
static const char *other148 =
"create constructor method vspx_row_template (in name varchar, inout rowset any, inout parent vspx_control, inout ctr int) for vspx_row_template\n"
"{\n"
"declare childs any;\n"
"self.vc_inx := ctr;\n"
"self.vc_init (name, parent);\n"
"self.te_ctr := ctr;\n"
"self.te_rowset := rowset;\n"
"\n"
"childs := parent.vc_children;\n"
"if (childs is not null)\n"
"childs := vector_concat (childs, vector (self));\n"
"else\n"
"childs := vector (self);\n"
"parent.vc_children := childs;\n"
"}\n";
static const char *other149 =
"create constructor method vspx_row_template_fast (in name varchar, inout rowset any, inout parent vspx_control, inout ctr int, in nth int) for vspx_row_template\n"
"{\n"
"declare childs any;\n"
"self.vc_inx := ctr;\n"
"self.vc_init (name, parent);\n"
"self.te_ctr := ctr;\n"
"self.te_rowset := rowset;\n"
"}\n";
static const char *other150 =
"create method te_column_value (in name varchar) for vspx_row_template\n"
"{\n"
"declare ds vspx_data_set;\n"
"declare i int;\n"
"ds := self.vc_parent;\n"
"i := ds.ds_column_offset (name);\n"
"if (i >= 0 and i < length (self.te_rowset))\n"
"return self.te_rowset [i];\n"
"else\n"
"return null;\n"
"}\n";
static const char *other151 =
"create constructor method vspx_control (in name varchar, inout parent vspx_control) for vspx_control\n"
"{\n"
"declare childs any;\n"
"self.vc_init (name, parent);\n"
"}\n";
static const char *other152 =
"create constructor method vspx_tree (in name varchar, inout parent vspx_control) for vspx_tree\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other153 =
"create constructor method vspx_radio_group (in name varchar, inout parent vspx_control) for vspx_radio_group\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other154 =
"create constructor method vspx_isql (in name varchar, inout parent vspx_control) for vspx_isql\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"\n"
"}\n";
static const char *other155 =
"create method isql_exec () for vspx_isql\n"
"{\n"
"declare err_sqlstate, commit_err_sqlstate, err_msg, commit_err_msg varchar;\n"
"declare m_dta, result any;\n"
"declare _maxres, stmt_text varchar;\n"
"declare parsed_text any;\n"
"\n"
"self.vc_error_message := vector();\n"
"self.isql_mtd := vector();\n"
"self.isql_res := vector();\n"
"\n"
"_maxres := self.isql_maxrows;\n"
"stmt_text := self.isql_text;\n"
"\n"
"if( length(stmt_text) = 0 )\n"
"return;\n"
"\n"
"commit_err_sqlstate := \'00000\';\n"
"\n"
"commit work;\n"
"\n"
"whenever sqlstate \'*\' goto text_split_error;\n"
"\n"
"parsed_text := sql_split_text (self.isql_text);\n"
"goto text_split_complete;\n"
"\n"
"text_split_error:\n"
"self.vc_error_message := vector_concat( self.vc_error_message, vector(vector(__SQL_STATE, __SQL_MESSAGE)) );\n"
"self.isql_mtd := vector_concat( self.isql_mtd, vector(0) );\n"
"self.isql_res := vector_concat( self.isql_res, vector(vector()) );\n"
"self.isql_stmts := vector_concat(self.isql_stmts, vector (self.isql_text));\n"
"return;\n"
"\n"
"text_split_complete:\n"
"whenever not found goto run_error;\n"
"whenever sqlstate \'*\' goto run_error;\n"
"\n"
"set isolation=self.isql_isolation;\n"
"\n"
"if (exists (select 1 from db.dba.sys_users where u_name = self.isql_user and u_sql_enable = 1))\n"
"{\n"
"if (exists( select 1 from db.dba.sys_users where U_NAME = connection_get (\'vspx_user\') and\n"
"(U_ID = 0 or U_GROUP = 0) ) )\n"
"__set_user_id (self.isql_user, 1);\n"
"else\n"
"__set_user_id (self.isql_user, 1, coalesce (self.isql_password, \'\'));\n"
"\n"
"}\n"
"else\n"
"{\n"
"__set_user_id (connection_get (\'vspx_user\'), 1);\n"
"\n"
"}\n"
"\n"
"declare i int;\n"
"i := 0;\n"
"while( i < length(parsed_text) ) {\n"
"\n"
"err_sqlstate := \'00000\'; err_msg := \'\';\n"
"\n"
"result := null;\n"
"if( self.isql_explain )\n"
"exec ( \'explain(?)\', err_sqlstate, err_msg, vector(parsed_text[i]), _maxres, m_dta, result);\n"
"else\n"
"{\n"
"commit work;\n"
"m_dta := 0;\n"
"if (self.isql_chunked)\n"
"{\n"
"exec_metadata (parsed_text[i], err_sqlstate, err_msg, m_dta);\n"
"if (err_sqlstate = \'00000\' and\n"
"regexp_match (\'^([[:space:]]*)[Uu][Ss][Ee]([[:space:]]*)([[:alnum:]]*)\', parsed_text[i]) is not null)\n"
"exec (parsed_text[i], err_sqlstate, err_msg);\n"
"}\n"
"else\n"
"exec ( parsed_text[i], err_sqlstate, err_msg, vector(), _maxres, m_dta, result);\n"
"}\n"
"if( err_sqlstate <> \'00000\' )\n"
"{\n"
"err_msg := err_msg || \'\\n\' || parsed_text[i];\n"
"rollback work;\n"
"}\n"
"self.vc_error_message := vector_concat( self.vc_error_message, vector(vector(err_sqlstate,err_msg)) );\n"
"self.isql_mtd := vector_concat( self.isql_mtd, vector(m_dta) );\n"
"self.isql_res := vector_concat( self.isql_res, vector(result) );\n"
"\n"
"if (self.isql_chunked)\n"
"{\n"
"declare stmt any;\n"
"stmt := parsed_text[i];\n"
"if (self.isql_explain)\n"
"{\n"
"stmt := concat (\'explain(\', WS.WS.STR_SQL_APOS(stmt), \')\');\n"
"}\n"
"self.isql_stmts := vector_concat(self.isql_stmts, vector (stmt));\n"
"}\n"
"i := i+1;\n"
"}\n"
"exec (\'commit work\', commit_err_sqlstate, commit_err_msg);\n"
"set isolation=\'committed\';\n"
"return;\n"
"\n"
"run_error:\n"
"self.vc_error_message := vector_concat( self.vc_error_message, vector(vector(__sql_state,__sql_message)) );\n"
"self.isql_mtd := vector_concat( self.isql_mtd, vector(0) );\n"
"self.isql_res := vector_concat( self.isql_res, vector(vector()) );\n"
"self.isql_stmts := vector_concat(self.isql_stmts, vector (self.isql_text));\n"
"set isolation=\'committed\';\n"
"rollback work;\n"
"return;\n"
"}\n";
static const char *proc171 =
"#line 2175 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"vspx_unqualify (in name varchar)\n"
"{\n"
"declare name_str varchar;\n"
"\n"
"if (not isstring (name))\n"
"{\n"
"name_str := cast (name as varchar);\n"
"}\n"
"else\n"
"{\n"
"name_str := name;\n"
"}\n"
"return (subseq (name_str, coalesce (strrchr (name_str, \'.\') + 1, 0)));\n"
"}\n"
"--src vspx.sql:2173\n";
static const char *proc172 =
"#line 2192 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"vspx_result_tbl_hdrs (in m_dta any)\n"
"{\n"
"\n"
"declare m_dta_col varchar;\n"
"declare inx, n_cols integer;\n"
"declare col_names varchar;\n"
"\n"
"if (not isarray (m_dta[0]))\n"
"return;\n"
"\n"
"n_cols := length (m_dta[0]);\n"
"\n"
"while (inx < n_cols)\n"
"{\n"
"m_dta_col := m_dta[0][inx];\n"
"\n"
"http (\'<td class=\"resheader\"><SPAN class=\"rescolname\">\');\n"
"col_names := m_dta_col[0];\n"
"\n"
"http_value (vspx_unqualify (col_names));\n"
"\n"
"http (\'</span><br/><span class=\"rescoltype\">\');\n"
"http (dv_type_title (m_dta_col[1]));\n"
"http (\'</span></td>\\n\');\n"
"\n"
"inx := inx + 1;\n"
"}\n"
"}\n"
"--src vspx.sql:2190\n";
static const char *proc173 =
"#line 2224 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"vspx_result_row_render (in result any, in m_dta any, in inx int := 0, in cset varchar := \'UTF-8\')\n"
"{\n"
"declare jnx integer;\n"
"declare res_row varchar;\n"
"declare res_col varchar;\n"
"declare res_cols, n_cols integer;\n"
"declare res_len integer;\n"
"declare dt_nfo any;\n"
"declare col_type integer;\n"
"\n"
"n_cols := length (aref (m_dta, 0));\n"
"dt_nfo := aref(m_dta, 0);\n"
"\n"
"http (sprintf (\'<tr class=\"%s\">\', case when mod(inx, 2) then \'resrowodd\' else \'resroweven\' end));\n"
"\n"
"res_row := result;\n"
"res_cols := length (res_row);\n"
"\n"
"jnx := 0;\n"
"\n"
"\n"
"while (jnx < res_cols)\n"
"{\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"http (\'Can\\\'t display result\');\n"
"goto next;\n"
"};\n"
"http (\'<td class=\"resdata\"> \');\n"
"res_col := aref (res_row, jnx);\n"
"col_type := aref (aref (dt_nfo, jnx), 1);\n"
"again:\n"
"if (__tag (res_col) = 193)\n"
"http_value (concat (\'(\', vector_print (res_col), \')\'));\n"
"else if (__tag (res_col) = 230 and res_col is not null)\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http_value (res_col, NULL, ses);\n"
"http_value (string_output_string (ses));\n"
"}\n"
"else if (__tag (res_col) = 246 and res_col is not null)\n"
"{\n"
"declare dat any;\n"
"dat := __rdf_sqlval_of_obj (res_col, 1);\n"
"res_col := dat;\n"
"goto again;\n"
"}\n"
"else\n"
"{\n"
"declare res any; \n"
"res := 0;\n"
"if (__tag (res_col) = 182 and cset is not null)\n"
"res := charset_recode (res_col, cset, \'_WIDE_\');\n"
"if (res <> 0)\n"
"res_col := res; \n"
"http_value (coalesce (res_col, \'<DB NULL>\'));\n"
"}\n"
"next:\n"
"http (\'</td>\');\n"
"jnx := jnx + 1;\n"
"}\n"
"http (\'</tr>\\n\');\n"
"}\n"
"--src vspx.sql:2222\n";
static const char *other156 =
"create constructor method vspx_field_value (in name varchar, inout parent vspx_control) for vspx_field_value\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other157 =
"create constructor method vspx_field (in name varchar, inout parent vspx_control) for vspx_field\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other158 =
"create constructor method vspx_column (in col varchar, in label varchar, in infmt varchar, in outfmt varchar, inout parent vspx_control) for vspx_column\n"
"{\n"
"self.vc_init (parent.vc_name || \'_\' || col, parent);\n"
"self.ufl_column := col;\n"
"self.ufl_fmt_fn := outfmt;\n"
"self.ufl_cvt_fn := infmt;\n"
"self.ufl_col_label := label;\n"
"}\n";
static const char *other159 =
"create constructor method vspx_calendar (in name varchar, inout parent vspx_control) for vspx_calendar\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other160 =
"create method vc_view_state (inout stream any, inout n int) for vspx_calendar\n"
"{\n"
"declare state any;\n"
"self.vc_push_in_stream (stream, self.cal_date, n);\n"
"return;\n"
"}\n";
static const char *other161 =
"create method\n"
"vc_get_date_array () for vspx_calendar\n"
"{\n"
"declare i, l int;\n"
"declare m, y, w, d int;\n"
"declare dw int;\n"
"declare arr, res any;\n"
"declare dt date;\n"
"\n"
"dt := self.cal_date;\n"
"\n"
"arr := vector (\'\',\'\',\'\',\'\',\'\',\'\',\'\');\n"
"i := 0;\n"
"m := month (dt);\n"
"y := year (dt);\n"
"\n"
"res := vector ();\n"
"for (i := 1; i < 32; i := i + 1)\n"
"{\n"
"declare tmp date;\n"
"whenever sqlstate \'*\' goto next;\n"
"tmp := stringdate (sprintf (\'%d-%d-%d\', y, m, i));\n"
"if (i > 1 and dayofmonth (tmp) = 1)\n"
"goto endd;\n"
"dw := dayofweek(tmp);\n"
"aset (arr, dw - 1, cast (i as varchar));\n"
"if (0 = mod (dw, 7))\n"
"{\n"
"res := vector_concat (res, vector (arr));\n"
"arr := vector (\'\',\'\',\'\',\'\',\'\',\'\',\'\');\n"
"}\n"
"next:;\n"
"}\n"
"endd:\n"
"res := vector_concat (res, vector (arr));\n"
"return res;\n"
"}\n";
static const char *other162 =
"create constructor method vspx_update_field (in name varchar, inout parent vspx_control) for vspx_update_field\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other163 =
"create constructor method vspx_tab (in name varchar, inout parent vspx_control) for vspx_tab\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other164 =
"create constructor method vspx_login (in name varchar, inout parent vspx_control) for vspx_login\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other165 =
"create constructor method vspx_update_form (in name varchar, inout parent vspx_control) for vspx_update_form\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other166 =
"create constructor method vspx_form (in name varchar, inout parent vspx_control) for vspx_form\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other167 =
"create constructor method vspx_template (in name varchar, inout parent vspx_control) for vspx_template\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other168 =
"create constructor method vspx_text (in name varchar, inout parent vspx_control) for vspx_text\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other169 =
"create constructor method vspx_textarea (in name varchar, inout parent vspx_control) for vspx_textarea\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other170 =
"create constructor method vspx_button (in name varchar, inout parent vspx_control) for vspx_button\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other171 =
"create constructor method vspx_radio_button (in name varchar, inout parent vspx_control) for vspx_radio_button\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other172 =
"create constructor method vspx_submit (in name varchar, inout parent vspx_control) for vspx_submit\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other173 =
"create constructor method vspx_delete_button (in name varchar, in parent vspx_control) for vspx_delete_button\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other174 =
"create constructor method vspx_return_button (in name varchar, in parent vspx_control) for vspx_return_button\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other175 =
"create constructor method vspx_browse_button (in name varchar, in parent vspx_control) for vspx_browse_button\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other176 =
"create constructor method vspx_data_grid (in name varchar, inout parent vspx_control) for vspx_data_grid\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other177 =
"create constructor method vspx_data_set (in name varchar, inout parent vspx_control) for vspx_data_set\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other178 =
"create constructor method vspx_data_source (in name varchar, inout parent vspx_control) for vspx_data_source\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other179 =
"create constructor method vspx_label (in name varchar, inout parent vspx_control) for vspx_label\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other180 =
"create constructor method vspx_check_box (in name varchar, inout parent vspx_control) for vspx_check_box\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other181 =
"create constructor method vspx_url (in name varchar, inout parent vspx_control) for vspx_url\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other182 =
"create constructor method vspx_select_list (in name varchar, inout parent vspx_control) for vspx_select_list\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other183 =
"create constructor method vspx_data_list (in name varchar, inout parent vspx_control) for vspx_data_list\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"self.vc_have_state := 1;\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other184 =
"create constructor method vspx_logout_button (in name varchar, inout parent vspx_control) for vspx_logout_button\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other185 =
"create constructor method vspx_login_form (in name varchar, inout parent vspx_control) for vspx_login_form\n"
"{\n"
"declare h any;\n"
"self.vc_init (name, parent);\n"
"h := udt_implements_method (parent.vc_page, fix_identifier_case (concat (\'vc_init_\', name)));\n"
"if (h)\n"
"{\n"
"call (h) (parent.vc_page, self, parent);\n"
"return;\n"
"}\n"
"}\n";
static const char *other186 =
"create constructor method vspx_login_form (in name varchar, in title varchar, in user_title varchar, in password_title varchar, in submit_tile varchar, in login vspx_login) for vspx_login_form\n"
"{\n"
"\n"
"declare usr, pwd vspx_text;\n"
"declare loginb vspx_button;\n"
"\n"
"self.vc_init (name, login);\n"
"\n"
"self.vlf_title := title;\n"
"self.vlf_user_title := user_title;\n"
"self.vlf_password_title := password_title;\n"
"self.vlf_submit_title := submit_tile;\n"
"self.vlf_login := login;\n"
"\n"
"self.vc_inside_form := 1;\n"
"\n"
"usr := vspx_text (\'username\', self);\n"
"pwd := vspx_text (\'password\', self);\n"
"pwd.tf_style := 1;\n"
"loginb := vspx_button (\'login\', self);\n"
"loginb.ufl_value := submit_tile;\n"
"\n"
"self.vc_children := vector (usr, pwd, loginb);\n"
"}\n";
static const char *other187 =
"create method prologue_render (in sid varchar, in realm varchar, in nonce varchar) for vspx_form\n"
"{\n"
"if (self.vc_page.vc_browser_caps and self.uf_xmodel is not null)\n"
"{\n"
"declare model, submit, sch any;\n"
"declare inst, fmodel any;\n"
"declare xslt_text varchar;\n"
"\n"
"model := self.uf_xmodel;\n"
"fmodel := self.uf_xsubmit;\n"
"sch := self.uf_xschema;\n"
"\n"
"xte_nodebld_init (inst);\n"
"xte_nodebld_acc (model, xte_node (xte_head (\'sid\'), coalesce (sid, \'\')));\n"
"xte_nodebld_acc (model, xte_node (xte_head (\'realm\'), coalesce (realm, \'\')));\n"
"xte_nodebld_acc (model, xte_node (xte_head (sprintf (\'%s_view_state\', self.vc_page.vc_name)),\n"
"vspx_state_serialize (self.vc_page.vc_view_state)));\n"
"xte_nodebld_acc (model, xte_node (xte_head (\'event__target\'), \'\'));\n"
"xte_nodebld_final (model, xte_head (\'post\', \'xmlns\', \'http://www.openlinksw.com/vspx/xforms/\'));\n"
"if (sch is not null)\n"
"{\n"
"xte_nodebld_final (sch, xte_head (\'schema\', \'xmlns\', \'http://www.w3.org/2001/XMLSchema\',\n"
"\'targetNamespace\', \'http://www.openlinksw.com/virtuoso/vspx/xforms/types\'\n"
"\n"
"));\n"
"xte_nodebld_acc (fmodel, sch);\n"
"}\n"
"\n"
"xte_nodebld_acc (inst, model);\n"
"\n"
"xte_nodebld_final (inst, xte_head (\'instance\'));\n"
"xte_nodebld_acc (fmodel, inst);\n"
"\n"
"if (0 and sch is not null)\n"
"{\n"
"xte_nodebld_final (fmodel,\n"
"xte_head (\'model\', \'xmlns\', \'http://www.w3.org/2002/xforms\', \'id\',\n"
"self.vc_get_name (), \'schema\', \'#\' || self.vc_get_name () || \'_sch\'));\n"
"}\n"
"else\n"
"{\n"
"xte_nodebld_final (fmodel,\n"
"xte_head (\'model\', \'xmlns\', \'http://www.w3.org/2002/xforms\', \'id\', self.vc_get_name ()));\n"
"}\n"
"\n"
"fmodel := xte_expand_xmlns (fmodel);\n"
"fmodel := xml_tree_doc (fmodel);\n"
"\n"
"\n"
"\n"
"if (not xslt_is_sheet (\'__xforms_model\'))\n"
"{\n"
"xslt_text :=\n"
"\'<?xml version=\'\'1.0\'\'?>\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"\n"
"xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n"
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
"xmlns:vxf=\"http://www.openlinksw.com/vspx/xforms/\"\n"
"xmlns:vxt=\"http://www.openlinksw.com/virtuoso/vspx/xforms/types\"\n"
">\n"
"<xsl:output method=\"xml\" omit-xml-declaration=\"yes\" indent=\"yes\" />\n"
"<xsl:template match=\"/\">\n"
"<xsl:apply-templates />\n"
"</xsl:template>\n"
"<xsl:template match=\"@*|node()\" priority=\"0\">\n"
"<xsl:copy>\n"
"<xsl:apply-templates />\n"
"</xsl:copy>\n"
"</xsl:template>\n"
"</xsl:stylesheet>\';\n"
"xslt_sheet (\'__xforms_model\', xtree_doc (xslt_text, 0));\n"
"}\n"
"\n"
"fmodel := xslt (\'__xforms_model\', fmodel);\n"
"\n"
"\n"
"\n"
"http_value (fmodel);\n"
"}\n"
"\n"
"if (self.uf_action = \'\')\n"
"self.uf_action := http_path ();\n"
"if (not self.vc_inside_form)\n"
"{\n"
"if (self.vc_page.vc_browser_caps)\n"
"{\n"
"return;\n"
"}\n"
"http (sprintf (\'<form name=\"%s\" method=\"%s\" action=\"%s\"\',\n"
"self.vc_name, self.uf_method, self.uf_action));\n"
"vspx_print_html_attrs (self); http (\'>\\n\');\n"
"\n"
"http (sprintf (\'<input type=\"hidden\" name=\"%s_view_state\" value=\"%s\" />\\n\',\n"
"self.vc_page.vc_name, vspx_state_serialize (self.vc_page.vc_view_state)));\n"
"if (self.vc_page.vc_authentication_mode)\n"
"{\n"
"if (length (sid) > 0)\n"
"{\n"
"http (sprintf (\'<input type=\"hidden\" name=\"sid\" value=\"%s\" />\\n\', sid));\n"
"http (sprintf (\'<input type=\"hidden\" name=\"realm\" value=\"%s\" />\\n\', realm));\n"
"}\n"
"else\n"
"{\n"
"http (sprintf (\'<input type=\"hidden\" name=\"nonce\" value=\"%s\" />\\n\', nonce));\n"
"}\n"
"}\n"
"http (\'<input type=\"hidden\" name=\"__submit_func\" value=\"\" />\\n\');\n"
"http (\'<input type=\"hidden\" name=\"__event_target\" value=\"\" />\\n\');\n"
"http (\'<input type=\"hidden\" name=\"__event_initiator\" value=\"\" />\\n\');\n"
"}\n"
"}\n";
static const char *proc174 =
"#line 2862 \"[executable]/vspx.sql\"\n"
"create procedure vspx_xtext_node (in val any)\n"
"{\n"
"if (val is null)\n"
"return \'\';\n"
"else if (isstring (val))\n"
"return val;\n"
"else\n"
"return cast (val as varchar);\n"
"}\n"
"--src vspx.sql:2860\n";
static const char *other188 =
"create method epilogue_render () for vspx_form\n"
"{\n"
"if (self.vc_page.vc_browser_caps)\n"
"return;\n"
"if (not self.vc_inside_form)\n"
"http (\'</form>\\n\');\n"
"}\n";
static const char *other189 =
"create method vc_set_model () for vspx_form\n"
"{\n"
"declare model, submit any;\n"
"if (self.uf_action = \'\')\n"
"self.uf_action := http_path ();\n"
"xte_nodebld_init (model);\n"
"xte_nodebld_init (submit);\n"
"self.uf_xmodel := model;\n"
"self.uf_xsubmit := submit;\n"
"return;\n"
"}\n";
static const char *other190 =
"create method vc_set_model () for vspx_text\n"
"{\n"
"if (self.vc_top_form is null or self.vc_top_form.uf_xmodel is null)\n"
"return;\n"
"\n"
"declare model, val, sch any;\n"
"\n"
"model := self.vc_top_form.uf_xmodel;\n"
"\n"
"val := self.ufl_value;\n"
"if (val is null)\n"
"val := self.vc_get_control_state (null);\n"
"if (val is null)\n"
"val := self.tf_default;\n"
"\n"
"if (length (self.ufl_validators))\n"
"{\n"
"declare nam varchar;\n"
"nam := self.vc_name || \'_t\';\n"
"sch := self.vc_top_form.uf_xschema;\n"
"self.ufl_schema (sch, nam);\n"
"self.vc_top_form.uf_xschema := sch;\n"
"xte_nodebld_acc (model,\n"
"xte_node (xte_head (self.vc_get_name (), \'http://www.w3.org/2001/XMLSchema-instance:type\',\n"
"\'http://www.openlinksw.com/virtuoso/vspx/xforms/types:\' || nam), vspx_xtext_node(val)));\n"
"}\n"
"else\n"
"{\n"
"xte_nodebld_acc (model,\n"
"xte_node (xte_head (self.vc_get_name ()), vspx_xtext_node (val)));\n"
"}\n"
"\n"
"self.vc_top_form.uf_xmodel := model;\n"
"\n"
"return;\n"
"}\n";
static const char *other191 =
"create method vc_set_model () for vspx_select_list\n"
"{\n"
"if (self.vc_top_form is null or self.vc_top_form.uf_xmodel is null)\n"
"return;\n"
"\n"
"declare model, val any;\n"
"model := self.vc_top_form.uf_xmodel;\n"
"\n"
"if (not self.vsl_multiple)\n"
"val := self.ufl_value;\n"
"else\n"
"{\n"
"declare i, l int;\n"
"if (isarray (self.ufl_value))\n"
"{\n"
"i := 0; l := length (self.ufl_value);\n"
"val := \'\';\n"
"while (i < l)\n"
"{\n"
"val := val || self.ufl_value[i] || \' \';\n"
"i := i + 1;\n"
"}\n"
"}\n"
"else\n"
"{\n"
"val := \'\';\n"
"}\n"
"}\n"
"\n"
"xte_nodebld_acc (model,\n"
"xte_node (xte_head (self.vc_get_name ()), vspx_xtext_node (val))\n"
");\n"
"\n"
"self.vc_top_form.uf_xmodel := model;\n"
"\n"
"return;\n"
"}\n";
static const char *other192 =
"create method vc_set_model () for vspx_check_box\n"
"{\n"
"if (self.vc_top_form is null or self.vc_top_form.uf_xmodel is null)\n"
"return;\n"
"\n"
"declare model any;\n"
"model := self.vc_top_form.uf_xmodel;\n"
"\n"
"xte_nodebld_acc (model,\n"
"xte_node (xte_head (self.vc_get_name (), \'http://www.w3.org/2001/XMLSchema-instance:type\',\n"
"\'http://www.w3.org/2001/XMLSchema:boolean\'), vspx_xtext_node (self.ufl_value))\n"
");\n"
"\n"
"self.vc_top_form.uf_xmodel := model;\n"
"\n"
"return;\n"
"}\n";
static const char *other193 =
"create method vc_set_model () for vspx_radio_button\n"
"{\n"
"if (self.vc_top_form is null or self.vc_top_form.uf_xmodel is null)\n"
"return;\n"
"\n"
"declare model any;\n"
"model := self.vc_top_form.uf_xmodel;\n"
"\n"
"xte_nodebld_acc (model,\n"
"xte_node (xte_head (self.vc_get_name ()), vspx_xtext_node (self.ufl_value))\n"
");\n"
"\n"
"self.vc_top_form.uf_xmodel := model;\n"
"\n"
"return;\n"
"}\n";
static const char *other194 =
"create method vc_set_model () for vspx_radio_group\n"
"{\n"
"if (self.vc_top_form is null or self.vc_top_form.uf_xmodel is null)\n"
"return;\n"
"\n"
"declare model any;\n"
"model := self.vc_top_form.uf_xmodel;\n"
"\n"
"xte_nodebld_acc (model,\n"
"xte_node (xte_head (self.vc_get_name ()), vspx_xtext_node (self.ufl_value))\n"
");\n"
"\n"
"self.vc_top_form.uf_xmodel := model;\n"
"\n"
"return;\n"
"}\n";
static const char *other195 =
"create method vc_set_model () for vspx_button\n"
"{\n"
"if (self.vc_top_form is null or self.vc_top_form.uf_xsubmit is null)\n"
"return;\n"
"\n"
"declare submit any;\n"
"\n"
"submit := self.vc_top_form.uf_xsubmit;\n"
"\n"
"xte_nodebld_acc (submit,\n"
"xte_node (xte_head (\'submission\', \'id\', self.vc_get_name (),\n"
"\'action\', self.vc_top_form.uf_action, \'method\', self.vc_top_form.uf_method,\n"
"\'mediatype\', \'application/xml\'))\n"
");\n"
"\n"
"self.vc_top_form.uf_xsubmit := submit;\n"
"\n"
"return;\n"
"}\n";
static const char *other196 =
"create method vc_render () for vspx_label\n"
"{\n"
"if (not self.vc_enabled)\n"
"return;\n"
"if (self.ufl_value is not null)\n"
"http (sprintf (self.vl_format, self.ufl_value));\n"
"else if (self.ufl_null_value is not null)\n"
"http (self.ufl_null_value);\n"
"else\n"
"http (sprintf (\'%s\', null));\n"
"}\n";
static const char *other197 =
"create method vs_set_selected () for vspx_select_list\n"
"{\n"
"declare val, ival any;\n"
"\n"
"val := self.ufl_value;\n"
"ival := self.vsl_item_values;\n"
"\n"
"if (self.vsl_multiple and not isstring (val) and isarray (val))\n"
"{\n"
"declare i, l int;\n"
"declare sel any;\n"
"i := 0; l := length (ival);\n"
"sel := make_array (l, \'any\');\n"
"while (i < l)\n"
"{\n"
"if (position (ival[i], val))\n"
"sel[i] := 1;\n"
"else\n"
"sel[i] := 0;\n"
"i := i + 1;\n"
"}\n"
"self.vsl_selected_inx := sel;\n"
"}\n"
"else\n"
"{\n"
"self.vsl_selected_inx := position (cast (self.ufl_value as varchar), self.vsl_item_values) - 1;\n"
"}\n"
"}\n";
static const char *proc175 =
"#line 3099 \"[executable]/vspx.sql\"\n"
" create procedure\n"
"vspx_print_html_attrs (inout control vspx_control)\n"
"{\n"
"declare i, l int;\n"
"i := 0; l := length (control.vc_attributes);\n"
"\n"
"while (i < l)\n"
"{\n"
"declare attr vspx_attribute;\n"
"attr := control.vc_attributes[i];\n"
"if (attr is not null)\n"
"{\n"
"attr.vc_render ();\n"
"}\n"
"i := i + 1;\n"
"}\n"
"}\n"
"--src vspx.sql:3097\n";
static const char *other198 =
"create method vc_render () for vspx_url\n"
"{\n"
"declare url varchar;\n"
"declare uinfo any;\n"
"if (not self.vc_enabled)\n"
"return;\n"
"uinfo := WS.WS.PARSE_URI (self.vu_url);\n"
"url := self.vu_url;\n"
"\n"
"\n"
"if ((uinfo[0] = \'\' or self.vu_is_local) and self.vu_l_pars <> \'\')\n"
"{\n"
"if (uinfo[4] = \'\')\n"
"url := vspx_uri_add_parameters (self.vu_url, self.vu_l_pars);\n"
"else\n"
"url := vspx_uri_add_parameters (self.vu_url, self.vu_l_pars);\n"
"}\n"
"http (sprintf (\'<a href=\"%V\"\', case when self.ufl_active > 0 then url else \'javascript:void(0)\' end));\n"
"vspx_print_html_attrs (self);\n"
"http(\'>\');\n"
"if (230 = __tag (self.ufl_value))\n"
"http (sprintf (self.vu_format, cast(self.ufl_value as varchar)));\n"
"else\n"
"http (sprintf (self.vu_format, self.ufl_value));\n"
"http(\'</a>\');\n"
"}\n";
static const char *other199 =
"create method vc_render () for vspx_check_box\n"
"{\n"
"if (not self.vc_enabled)\n"
"return;\n"
"if (self.ufl_is_boolean)\n"
"self.vc_get_selected_from_value();\n"
"http (sprintf (\'<input type=\"checkbox\" name=\"%s%s\" value=\"%s\" %s %s\',\n"
"case self.ufl_group when \'\' then self.vc_get_name () else self.ufl_group end,\n"
"self.ufl_name_suffix,\n"
"case self.ufl_is_boolean when 0 then cast(self.ufl_value as varchar) else \'1\' end,\n"
"case self.ufl_selected when 1 then \'checked=\"checked\"\' else \'\' end,\n"
"case self.ufl_client_validate when 0 then \'\' else \' onchange=\"javascript: vv_validate_\' || self.vc_name || \'(this)\"\' end));\n"
"if (self.ufl_auto_submit) http (\' onclick=\"doAutoSubmit (this.form, this)\"\');\n"
"vspx_print_html_attrs (self);\n"
"http (\'/>\');\n"
"}\n";
static const char *other200 =
"create method vc_view_state (inout stream any, inout n int) for vspx_check_box\n"
"{\n"
"if (self.ufl_is_boolean)\n"
"self.vc_get_selected_from_value ();\n"
"self.vc_push_in_stream (stream, self.ufl_selected, n);\n"
"return;\n"
"}\n";
static const char *other201 =
"create method vc_view_state (inout stream any, inout n int) for vspx_radio_button\n"
"{\n"
"self.vc_push_in_stream (stream, self.ufl_selected, n);\n"
"return;\n"
"}\n";
static const char *other202 =
"create method vc_set_view_state (inout e vspx_event) for vspx_check_box\n"
"{\n"
"if (not e.ve_is_post or not position (self.vc_get_name(), self.vc_page.vc_view_state))\n"
"{\n"
"return;\n"
"}\n"
"self.ufl_selected := self.vc_get_control_state (self.ufl_selected);\n"
"if (self.ufl_is_boolean)\n"
"self.ufl_value := case self.ufl_selected when 0 then self.ufl_false_value else self.ufl_true_value end;\n"
"return;\n"
"}\n";
static const char *other203 =
"create method vc_set_view_state (inout e vspx_event) for vspx_radio_button\n"
"{\n"
"if (not e.ve_is_post or not position (self.vc_get_name(), self.vc_page.vc_view_state))\n"
"{\n"
"return;\n"
"}\n"
"self.ufl_selected := self.vc_get_control_state (self.ufl_selected);\n"
"return;\n"
"}\n";
static const char *other204 =
"create method vc_view_state (inout stream any, inout n int) for vspx_text\n"
"{\n"
"declare state any;\n"
"self.vc_push_in_stream (stream, self.ufl_value, n);\n"
"return;\n"
"}\n";
static const char *other205 =
"create method vc_set_view_state (inout e vspx_event) for vspx_text\n"
"{\n"
"if (not e.ve_is_post or not position (self.vc_get_name(), self.vc_page.vc_view_state)\n"
"\n"
")\n"
"{\n"
"return;\n"
"}\n"
"declare vst any;\n"
"vst := self.vc_get_control_state (null);\n"
"if (vst is not null)\n"
"self.ufl_value := vst;\n"
"return;\n"
"}\n";
static const char *other206 =
"create method vc_set_view_state (inout e vspx_event) for vspx_data_grid\n"
"{\n"
"declare state any;\n"
"if (not e.ve_is_post)\n"
"return;\n"
"\n"
"state := self.vc_get_control_state (null);\n"
"if (isarray (state))\n"
"{\n"
"self.dg_rows_fetched := state[2];\n"
"self.dg_last_bookmark := deserialize(state[0]);\n"
"self.dg_prev_bookmark := deserialize(state[1]);\n"
"self.dg_rowno_edit := state[3];\n"
"self.vc_enabled := state[4];\n"
"self.dg_editable := state[5];\n"
"}\n"
"}\n";
static const char *other207 =
"create method vc_set_view_state (inout e vspx_event) for vspx_data_set\n"
"{\n"
"declare state any;\n"
"if (not e.ve_is_post)\n"
"return;\n"
"state := self.vc_get_control_state (null);\n"
"if (isarray (state))\n"
"{\n"
"self.ds_rows_fetched := state[2];\n"
"self.ds_last_bookmark := deserialize(state[0]);\n"
"self.ds_prev_bookmark := deserialize(state[1]);\n"
"self.ds_rowno_edit := state[3];\n"
"self.vc_enabled := state[4];\n"
"self.ds_editable := state[5];\n"
"self.ds_rows_offs := state[6];\n"
"}\n"
"}\n";
static const char *other208 =
"create method vc_set_view_state (inout e vspx_event) for vspx_update_form\n"
"{\n"
"if (not length (self.uf_keys))\n"
"{\n"
"declare keys any;\n"
"keys := self.vc_get_control_state (null);\n"
"self.uf_keys := keys;\n"
"}\n"
"}\n";
static const char *other209 =
"create method vc_set_view_state (inout e vspx_event) for vspx_select_list\n"
"{\n"
"if (e.ve_is_post and self.vc_page.vc_view_state is not null)\n"
"{\n"
"self.ufl_value := self.vc_get_control_state (null);\n"
"}\n"
"}\n";
static const char *other210 =
"create method vc_set_view_state (inout e vspx_event) for vspx_login\n"
"{\n"
"if (e.ve_is_post and self.vc_page.vc_view_state is not null)\n"
"{\n"
"declare state any;\n"
"state := self.vc_get_control_state (null);\n"
"if (state is not null)\n"
"{\n"
"self.vl_logout_in_progress := get_keyword (\'vl_logout_in_progress\', state, 0);\n"
"if (self.vl_mode in (\'url\', \'cookie\'))\n"
"self.vl_authenticated := get_keyword (\'vl_authenticated\', state, 0);\n"
"}\n"
"}\n"
"}\n";
static const char *other211 =
"create method vc_set_view_state (inout e vspx_event) for vspx_calendar\n"
"{\n"
"if (e.ve_is_post and self.vc_page.vc_view_state is not null)\n"
"{\n"
"self.cal_date := self.vc_get_control_state (null);\n"
"}\n"
"}\n";
static const char *other212 =
"create method vc_set_view_state (inout e vspx_event) for vspx_tab\n"
"{\n"
"if (e.ve_is_post and self.vc_page.vc_view_state is not null)\n"
"{\n"
"declare state any;\n"
"state := self.vc_get_control_state (null);\n"
"if (state is not null)\n"
"self.tb_active := self.vc_find_control (state);\n"
"}\n"
"}\n";
static const char *proc176 =
"#line 3325 \"[executable]/vspx.sql\"\n"
"create function XMLS_VALUE_OF_SUBTREE (in _ent any, in _path varchar, in _params any, in _place varchar) returns any\n"
"{\n"
"\n"
"if (not isentity (_ent))\n"
"return _ent;\n"
"if (_path is not null)\n"
"{\n"
"_ent := xquery_eval (_path, _ent, 1, _params);\n"
"if (_ent is null)\n"
"return null;\n"
"}\n"
"if (_place is not null)\n"
"{\n"
"if (not isentity (_ent))\n"
"signal (\'22023\', sprintf (\'Unable to apply place=\'\'%s\'\' to a non-XML value\', _place));\n"
"if (_place = \'text()\')\n"
"{\n"
"if (xpath_eval (\'[xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"] @xsi:nil[.=\"1\" or .=\"true\"]\', _ent) is not null)\n"
"return null;\n"
"if (isentity (_ent))\n"
"return cast (_ent as varchar);\n"
"return _ent;\n"
"}\n"
"if (left (_place, 1) = \'@\')\n"
"return xpath_eval (_place, _ent);\n"
"if (_place = \'.\')\n"
"return _ent;\n"
"signal (\'22023\', sprintf (\'Unsupported value \'\'%s\'\' of place argument\', _place));\n"
"}\n"
"return cast (_ent as varchar);\n"
"}\n"
"--src vspx.sql:3323\n";
static const char *other213 =
"create method vc_get_from_element () for vspx_field_value\n"
"{\n"
"declare _ent any;\n"
"_ent := self.ufl_element_value;\n"
"if (not isentity (_ent))\n"
"return _ent;\n"
"if (self.ufl_element_path is not null)\n"
"{\n"
"\n"
"_ent := xquery_eval (self.ufl_element_path, _ent, 1, self.ufl_element_params);\n"
"if (_ent is null)\n"
"return null;\n"
"\n"
"}\n"
"if (self.ufl_element_place is not null)\n"
"{\n"
"if (not isentity (_ent))\n"
"signal (\'22023\', sprintf (\'Unable to apply element-place=\'\'%s\'\' in VSPX control \'\'%s\'\' to a non-entity value\', self.ufl_element_place, self.vc_name));\n"
"if (self.ufl_element_place = \'text()\')\n"
"{\n"
"if (xpath_eval (\'[xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"] @xsi:nil[.=\"1\" or .=\"true\"]\', _ent) is not null)\n"
"return null;\n"
"if (isentity (_ent))\n"
"return cast (_ent as varchar);\n"
"return _ent;\n"
"}\n"
"if (left (self.ufl_element_place, 1) = \'@\')\n"
"return xpath_eval (self.ufl_element_place, _ent);\n"
"if (self.ufl_element_place = \'.\')\n"
"return _ent;\n"
"signal (\'22023\', sprintf (\'Unsupported value \'\'%s\'\' of element-place attribute of VSPX control \'\'%s\'\'\', self.ufl_element_place, self.vc_name));\n"
"}\n"
"\n"
"return cast (_ent as varchar);\n"
"}\n";
static const char *other214 =
"create method vc_put_to_element (inout _val any) for vspx_field_value\n"
"{\n"
"declare _ent any;\n"
"declare _path_used integer;\n"
"_ent := self.ufl_element_value;\n"
"if (not isentity (_ent))\n"
"return;\n"
"if (self.ufl_element_update_path is not null)\n"
"{\n"
"_ent := xquery_eval (self.ufl_element_update_path, _ent, 1, self.ufl_element_update_params);\n"
"if (_ent is null)\n"
"return;\n"
"_path_used := 1;\n"
"}\n"
"else if (self.ufl_element_path is not null)\n"
"{\n"
"_ent := xquery_eval (self.ufl_element_path, _ent, 1, self.ufl_element_params);\n"
"if (_ent is null)\n"
"return;\n"
"_path_used := 1;\n"
"}\n"
"else\n"
"_path_used := 0;\n"
"if (self.ufl_element_place is null or self.ufl_element_place = \'.\')\n"
"{\n"
"XMLReplace (_ent, _ent, self.ufl_value);\n"
"goto ent_is_set;\n"
"}\n"
"if (not isentity (_ent))\n"
"signal (\'22023\', sprintf (\'Unable to apply element-place=\'\'%s\'\' in VSPX control \'\'%s\'\' to a non-entity value\', self.ufl_element_place, self.vc_name));\n"
"if (self.ufl_element_place = \'text()\')\n"
"{\n"
"declare _chld_no integer;\n"
"_chld_no := xpath_eval (\'count (node())\', _ent);\n"
"if (_chld_no > 1)\n"
"signal (\'22023\', sprintf (\'Unable to apply element-place=\'\'%s\'\' in VSPX control \'\'%s\'\' to an value that have more than one child\', self.ufl_element_place, self.vc_name));\n"
"if (_val is null)\n"
"{\n"
"XMLAddAttribute (_ent, 2, \'http://www.w3.org/2001/XMLSchema-instance:nil\', \'1\');\n"
"goto ent_is_set;\n"
"if (_chld_no)\n"
"XMLReplace (_ent, xpath_eval (\'node()\', _ent), null);\n"
"}\n"
"else\n"
"{\n"
"declare _xsinil any;\n"
"_xsinil := xpath_eval (\'[xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"] @xsi:nil\', _ent);\n"
"if (_xsinil is not null)\n"
"XMLReplace (_ent, _xsinil, null);\n"
"if (_chld_no)\n"
"XMLReplace (_ent, xpath_eval (\'node()\', _ent), cast (_val as varchar));\n"
"else\n"
"XMLAppendChildren (_ent, cast (_val as varchar));\n"
"goto ent_is_set;\n"
"}\n"
"}\n"
"if (left (self.ufl_element_place, 1) = \'@\')\n"
"{\n"
"if (_val is null)\n"
"XMLReplace (_ent, xquery_eval (self.ufl_element_place, _ent), null);\n"
"else\n"
"XMLAddAttribute (_ent, 2, subseq (self.ufl_element_place, 1), cast (_val as varchar));\n"
"goto ent_is_set;\n"
"}\n"
"signal (\'22023\', sprintf (\'Unsupported value \'\'%s\'\' of element-place attribute of VSPX control \'\'%s\'\'\', self.ufl_element_place, self.vc_name));\n"
"ent_is_set:\n"
"if (not _path_used)\n"
"self.ufl_element_value := _ent;\n"
"}\n";
static const char *other215 =
"create method vc_get_value_from_element () for vspx_field_value\n"
"{\n"
"self.ufl_value := self.vc_get_from_element();\n"
"}\n";
static const char *other216 =
"create method vc_put_value_to_element () for vspx_field_value\n"
"{\n"
"self.vc_put_to_element (self.ufl_value);\n"
"}\n";
static const char *other217 =
"create method vc_get_selected_from_value () for vspx_field_value\n"
"{\n"
"declare _val varchar;\n"
"if ((self.ufl_value is null and self.ufl_true_value is null) or\n"
"self.ufl_value is not null and self.ufl_true_value is not null and (self.ufl_true_value = _val) )\n"
"{\n"
"self.ufl_selected := 1;\n"
"return;\n"
"}\n"
"if ((self.ufl_value is null and self.ufl_false_value is null) or\n"
"self.ufl_value is not null and self.ufl_false_value is not null and (self.ufl_false_value = _val) )\n"
"{\n"
"self.ufl_selected := 0;\n"
"return;\n"
"}\n"
"if (self.ufl_value is null)\n"
"{\n"
"self.ufl_selected := 0;\n"
"return;\n"
"}\n"
"_val := cast (self.ufl_value as varchar);\n"
"if (_val <> \'false\' and _val <> \'0\' and _val <> \'\')\n"
"{\n"
"self.ufl_selected := 1;\n"
"return;\n"
"}\n"
"}\n";
static const char *other218 =
"create method vc_validate() for vspx_field\n"
"{\n"
"declare i, l int;\n"
"i := 0;\n"
"l := length(self.ufl_validators);\n"
"while(i < l) {\n"
"declare vldt vspx_range_validator;\n"
"vldt := self.ufl_validators[i];\n"
"if(vldt.vv_validate(self)) {\n"
"i := l;\n"
"}\n"
"i := i + 1;\n"
"}\n"
"}\n";
static const char *other219 =
"create method ufl_schema (inout sch any, in name varchar) for vspx_field\n"
"{\n"
"declare i, l int;\n"
"declare vv, typ, xsd_type any;\n"
"declare vld vspx_range_validator;\n"
"\n"
"vv := self.ufl_validators;\n"
"i := 0; l := length (vv);\n"
"if (sch is null)\n"
"xte_nodebld_init (sch);\n"
"\n"
"xte_nodebld_init (typ);\n"
"xsd_type := \'\';\n"
"\n"
"while (i < l)\n"
"{\n"
"vld := vv[i];\n"
"if (vld is not null)\n"
"{\n"
"if (vld.vv_test = \'regexp\' and xsd_type <> \'int\')\n"
"{\n"
"xte_nodebld_acc (typ, xte_node (xte_head (\'pattern\', \'value\', vld.vv_expr)));\n"
"xsd_type := \'string\';\n"
"}\n"
"else if (vld.vv_test = \'length\' and xsd_type <> \'int\')\n"
"{\n"
"xte_nodebld_acc (typ, xte_node (xte_head (\'minLength\', \'value\',\n"
"cast (vld.vr_min as varchar))));\n"
"xte_nodebld_acc (typ, xte_node (xte_head (\'maxLength\', \'value\',\n"
"cast (vld.vr_max as varchar))));\n"
"xsd_type := \'string\';\n"
"}\n"
"else if (vld.vv_test = \'value\' and xsd_type <> \'string\')\n"
"{\n"
"xte_nodebld_acc (typ, xte_node (xte_head (\'minInclusive\', \'value\',\n"
"cast (vld.vr_min as varchar))));\n"
"xte_nodebld_acc (typ, xte_node (xte_head (\'maxInclusive\', \'value\',\n"
"cast (vld.vr_max as varchar))));\n"
"xsd_type := \'int\';\n"
"}\n"
"\n"
"}\n"
"i := i + 1;\n"
"}\n"
"xsd_type := \'http://www.w3.org/2001/XMLSchema:\' || xsd_type;\n"
"xte_nodebld_final (typ, xte_head (\'restriction\', \'base\', xsd_type));\n"
"xte_nodebld_acc (sch, xte_node (xte_head (\'simpleType\', \'name\', name), typ));\n"
"}\n";
static const char *other220 =
"create method vc_view_state (inout stream any, inout n int) for vspx_tab\n"
"{\n"
"if (self.tb_active is not null)\n"
"{\n"
"self.vc_push_in_stream (stream, self.tb_active.vc_name, n);\n"
"}\n"
"return;\n"
"}\n";
static const char *other221 =
"create method vc_get_state (inout stream any) for vspx_tree_node\n"
"{\n"
"declare i, l int;\n"
"if (self.tn_open)\n"
"{\n"
"declare csum any;\n"
"declare parent_tree vspx_tree;\n"
"parent_tree := self.tn_tree;\n"
"if (parent_tree.vt_xpath_id is not null)\n"
"csum := xpath_eval (parent_tree.vt_xpath_id, self.tn_element);\n"
"else\n"
"csum := tree_md5(serialize (self.tn_element), 1);\n"
"stream := vector_concat (stream, vector (csum));\n"
"}\n"
"i := 0; l := length (self.vc_children);\n"
"while (i < l)\n"
"{\n"
"declare chil any;\n"
"chil := self.vc_children[i];\n"
"if (chil is not null and udt_instance_of (chil, fix_identifier_case (\'vspx_tree_node\')))\n"
"{\n"
"declare child_node vspx_tree_node;\n"
"child_node := chil;\n"
"child_node.vc_get_state (stream);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"}\n";
static const char *other222 =
"create method vc_get_state () for vspx_tree\n"
"{\n"
"declare state any;\n"
"declare i, l int;\n"
"state := vector ();\n"
"i := 0; l := length (self.vc_children);\n"
"while (i < l)\n"
"{\n"
"declare chil any;\n"
"chil := self.vc_children[i];\n"
"if (chil is not null and udt_instance_of (chil, fix_identifier_case (\'vspx_tree_node\')))\n"
"{\n"
"declare child_node vspx_tree_node;\n"
"child_node := chil;\n"
"child_node.vc_get_state (state);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"return state;\n"
"}\n";
static const char *other223 =
"create method vc_open_at (in path varchar) for vspx_tree\n"
"{\n"
"self.vt_open_at := path;\n"
"}\n";
static const char *other224 =
"create method vc_view_state (inout stream any, inout n int) for vspx_tree\n"
"{\n"
"self.vc_push_in_stream (stream, self.vc_get_state (), n);\n"
"return;\n"
"}\n";
static const char *other225 =
"create method vc_close_all_childs () for vspx_tree_node\n"
"{\n"
"declare i, l int;\n"
"i := 0; l := length (self.vc_children);\n"
"while (i < l)\n"
"{\n"
"declare chil vspx_tree_node;\n"
"chil := self.vc_children [i];\n"
"if (chil is not null and udt_instance_of (chil, fix_identifier_case (\'vspx_tree_node\')))\n"
"{\n"
"chil.tn_open := 0;\n"
"chil.vc_close_all_childs ();\n"
"}\n"
"i := i + 1;\n"
"}\n"
"return;\n"
"}\n";
static const char *other226 =
"create method vc_render () for vspx_login_form\n"
"{\n"
"if (not self.vc_enabled)\n"
"return;\n"
"if (not self.vc_inside_form)\n"
"http (sprintf (\'<form name=\"%s\" method=\"post\">\', self.vc_name));\n"
"\n"
"if (self.vlf_login.vl_mode <> \'digest\')\n"
"{\n"
"http(\'<table border=\"0\"><tr><td>\');\n"
"http (self.vlf_user_title);\n"
"http (\'</td><td>\');\n"
"self.vc_render (\'username\');\n"
"http (\'</td></tr><tr><td>\');\n"
"http (self.vlf_password_title);\n"
"http (\'</td><td>\');\n"
"self.vc_render (\'password\');\n"
"http (\'</td></tr><tr><td colspan=\"2\">\');\n"
"self.vc_render (\'login\');\n"
"http (\'</td></tr></table>\');\n"
"}\n"
"else\n"
"{\n"
"self.vc_render (\'login\');\n"
"}\n"
"if (not self.vc_inside_form)\n"
"http (\'</form>\');\n"
"}\n";
static const char *other227 =
"create method vc_templates_clean () for vspx_data_grid\n"
"{\n"
"declare i, l int;\n"
"declare chils any;\n"
"i := 0; l := length (self.vc_children);\n"
"chils := self.vc_children;\n"
"while (i < l)\n"
"{\n"
"declare chil any;\n"
"chil := self.vc_children[i];\n"
"if (chil is not null and udt_instance_of (chil, fix_identifier_case (\'vspx_row_template\')))\n"
"{\n"
"\n"
"aset (chils, i, NULL);\n"
"}\n"
"i := i + 1;\n"
"}\n"
"self.vc_children := chils;\n"
"}\n";
static const char *other228 =
"create method vc_find_parent_by_name (inout control vspx_control, in name varchar) for vspx_control\n"
"{\n"
"if (control.vc_parent is null)\n"
"return NULL;\n"
"if (control.vc_parent.vc_name = name)\n"
"return control.vc_parent;\n"
"return self.vc_find_parent_by_name (control.vc_parent, name);\n"
"}\n";
static const char *other229 =
"create method vc_find_parent (inout control vspx_control, in udt_name varchar) for vspx_control\n"
"{\n"
"if (control.vc_parent is null)\n"
"return NULL;\n"
"if (udt_instance_of (control.vc_parent, fix_identifier_case (udt_name)))\n"
"return control.vc_parent;\n"
"return self.vc_find_parent (control.vc_parent, udt_name);\n"
"}\n";
static const char *other230 =
"create method vc_find_parent_form (inout control vspx_control) for vspx_control\n"
"{\n"
"if (control.vc_parent is null)\n"
"return NULL;\n"
"if (udt_instance_of (control.vc_parent, fix_identifier_case (\'vspx_form\')))\n"
"{\n"
"declare form vspx_form;\n"
"form := control.vc_parent;\n"
"if (not form.vc_inside_form)\n"
"return control.vc_parent;\n"
"else\n"
"return self.vc_find_parent_form (control.vc_parent);\n"
"}\n"
"return self.vc_find_parent_form (control.vc_parent);\n"
"}\n";
static const char *other231 =
"create method vv_validate (inout control vspx_control) for vspx_range_validator\n"
"{\n"
"declare fail int;\n"
"fail := 0;\n"
"if (udt_instance_of (control, fix_identifier_case (\'vspx_field\'))) {\n"
"declare uf vspx_field;\n"
"declare val any;\n"
"val := control;\n"
"uf := val;\n"
"val := uf.ufl_value;\n"
"if (isstring (val) and val = \'\' and self.vv_empty_allowed) {\n"
"return 0;\n"
"}\n"
"if (self.vv_test = \'value\') {\n"
"declare mini, maxi any;\n"
"mini := self.vr_min;\n"
"maxi := self.vr_max;\n"
"if (isstring (val)) {\n"
"val := atoi (val);\n"
"}\n"
"if (val < mini or val > maxi) {\n"
"fail := 1;\n"
"}\n"
"}\n"
"else if (self.vv_test = \'length\') {\n"
"if (length(val) < self.vr_min or length(val) > self.vr_max) {\n"
"fail := 1;\n"
"}\n"
"}\n"
"else if (self.vv_test = \'regexp\') {\n"
"val := cast (val as varchar);\n"
"if (regexp_match (self.vv_expr, val) is null) {\n"
"fail := 1;\n"
"}\n"
"}\n"
"if(fail) {\n"
"control.vc_page.vc_is_valid := 0;\n"
"control.vc_error_message := self.vv_message;\n"
"uf.ufl_error := self.vv_message;\n"
"uf.ufl_failed := 1;\n"
"}\n"
"}\n"
"return fail;\n"
"}\n";
static const char *other232 =
"create method vc_find_control (in name varchar) for vspx_control\n"
"{\n"
"declare inx, len int;\n"
"inx := 0;\n"
"len := length (self.vc_children);\n"
"\n"
"\n"
"while (inx < len)\n"
"{\n"
"declare child vspx_control;\n"
"child := self.vc_children[inx];\n"
"if (child is not null and child.vc_name = name)\n"
"{\n"
"\n"
"\n"
"return child;\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"\n"
"return NULL;\n"
"}\n";
static const char *other233 =
"create method vc_find_descendant_control (in name varchar) for vspx_control\n"
"{\n"
"declare inx, len int;\n"
"inx := 0;\n"
"len := length (self.vc_children);\n"
"while (inx < len)\n"
"{\n"
"declare child vspx_control;\n"
"child := self.vc_children[inx];\n"
"if (child is not null and (child.vc_name = name or child.vc_instance_name = name))\n"
"{\n"
"return child;\n"
"}\n"
"else if (child is not null)\n"
"{\n"
"declare ret vspx_control;\n"
"ret := child.vc_find_descendant_control (name);\n"
"if (ret is not null)\n"
"return ret;\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"return NULL;\n"
"}\n";
static const char *other234 =
"create method vc_find_rpt_control (in name varchar) for vspx_control\n"
"{\n"
"declare inx, len int;\n"
"if (self.vc_repeater is not null)\n"
"name := concat (self.vc_repeater.vc_instance_name, \':\', name);\n"
"inx := 0;\n"
"declare c any;\n"
"c := self.vc_children;\n"
"len := length (c);\n"
"while (inx < len)\n"
"{\n"
"declare child vspx_control;\n"
"child := c[inx];\n"
"if (child is not null and child.vc_instance_name = name)\n"
"{\n"
"return child;\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"return NULL;\n"
"}\n";
static const char *other235 =
"create method vc_sibling_value (in name varchar) for vspx_control\n"
"{\n"
"declare inx, len int;\n"
"inx := 0;\n"
"len := length (self.vc_parent.vc_children);\n"
"while (inx < len)\n"
"{\n"
"declare child vspx_control;\n"
"child := self.vc_parent.vc_children[inx];\n"
"if (child is not null and child.vc_name = name)\n"
"return (child as vspx_field_value).ufl_value;\n"
"inx := inx + 1;\n"
"}\n"
"signal (\'VSPX0\', sprintf(\'vspx_control.vc_sibling_value() has failed to find a control \'\'%s\'\' that is a sibling of \'\'%s\'\'\', name, self.vc_name));\n"
"}\n";
static const char *other236 =
"create method vc_render (in ct_name varchar) for vspx_control\n"
"{\n"
"declare ctrl vspx_control;\n"
"if (not self.vc_enabled)\n"
"return;\n"
"ctrl := self.vc_find_control (ct_name);\n"
"\n"
"\n"
"if ((ctrl is not null) and (ctrl.vc_enabled))\n"
"{\n"
"if (ctrl.vc_xrender ())\n"
"return;\n"
"ctrl.vc_render ();\n"
"}\n"
"return;\n"
"}\n";
static const char *other237 =
"create method vc_disable_child (in ct_name varchar) for vspx_control\n"
"{\n"
"declare ctrl vspx_control;\n"
"ctrl := self.vc_find_control (ct_name);\n"
"if (ctrl is not null)\n"
"ctrl.vc_enabled := 0;\n"
"return;\n"
"}\n";
static const char *other238 =
"create method vc_enable_child (in ct_name varchar) for vspx_control\n"
"{\n"
"declare ctrl vspx_control;\n"
"ctrl := self.vc_find_control (ct_name);\n"
"if (ctrl is not null)\n"
"ctrl.vc_enabled := 1;\n"
"return;\n"
"}\n";
static const char *other239 =
"create method vc_get_focus (inout e vspx_event) for vspx_control\n"
"{\n"
"declare inx, len int;\n"
"declare event_target varchar;\n"
"\n"
"\n"
"if (not length (e.ve_params) or not e.ve_is_post)\n"
"return 0;\n"
"\n"
"event_target := get_keyword (\'__event_target\', e.ve_params, \'\');\n"
"inx := 0;\n"
"declare c any;\n"
"c := self.vc_children;\n"
"len := length (c);\n"
"while (inx < len) {\n"
"declare child vspx_control;\n"
"declare cname varchar;\n"
"\n"
"child := c[inx];\n"
"cname := \'@@none@@\';\n"
"if (child is not null)\n"
"cname := child.vc_get_name();\n"
"\n"
"if (get_keyword (cname, e.ve_params) is not null or cname = event_target) {\n"
"\n"
"if(udt_instance_of(child, fix_identifier_case (\'vspx_button\')) or\n"
"udt_instance_of(child, fix_identifier_case (\'vspx_form\'))) {\n"
"\n"
"declare initiator varchar;\n"
"\n"
"initiator := get_keyword (\'__event_initiator\', e.ve_params, \'\');\n"
"\n"
"e.ve_button := child;\n"
"child.vc_focus := 1;\n"
"self.vc_focus := 1;\n"
"\n"
"if (initiator <> \'\' and e.ve_initiator is null)\n"
"e.ve_initiator := child.vc_find_descendant_control (initiator);\n"
"\n"
"\n"
"{\n"
"declare parent, parent_form vspx_control;\n"
"parent := child;\n"
"parent_form := NULL;\n"
"while(parent is not null) {\n"
"if(udt_instance_of(parent, fix_identifier_case (\'vspx_tree_node\'))) {\n"
"goto end_while;\n"
"}\n"
"if(udt_instance_of(parent, fix_identifier_case (\'vspx_form\')) and not\n"
"udt_instance_of(parent, fix_identifier_case (\'vspx_data_set\')) and not\n"
"udt_instance_of(parent, fix_identifier_case (\'vspx_data_grid\')) and not\n"
"udt_instance_of(parent, fix_identifier_case (\'vspx_tab\')) and not\n"
"udt_instance_of(parent, fix_identifier_case (\'vspx_isql\'))) {\n"
"parent_form := parent;\n"
"goto end_while;\n"
"}\n"
"parent := parent.vc_parent;\n"
"}\n"
"end_while:\n"
"if(parent_form is not NULL) {\n"
"\n"
"parent_form.vc_set_childs_focus(1, e);\n"
"}\n"
"}\n"
"return 1;\n"
"}\n"
"}\n"
"if (child is not null and child.vc_get_focus (e)) {\n"
"self.vc_focus := 1;\n"
"return 1;\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"return 0;\n"
"}\n";
static const char *other240 =
"create method vc_error_summary () for vspx_control\n"
"{\n"
"self.vc_error_summary (1);\n"
"}\n";
static const char *other241 =
"create method vc_error_summary (in esc_mode int) for vspx_control\n"
"{\n"
"if (self.vc_page.vc_is_valid)\n"
"return 0;\n"
"declare i, l integer;\n"
"if (self.vc_error_message is not null)\n"
"{\n"
"\n"
"if (esc_mode)\n"
"http_value (self.vc_error_message);\n"
"else\n"
"http (self.vc_error_message);\n"
"return 1;\n"
"}\n"
"declare c any;\n"
"c := self.vc_children;\n"
"i := 0; l := length (c);\n"
"while (i < l)\n"
"{\n"
"declare chil vspx_control;\n"
"chil := c[i];\n"
"if (chil is not null and chil.vc_error_summary (esc_mode))\n"
"return 1;\n"
"i := i + 1;\n"
"}\n"
"return 0;\n"
"}\n";
static const char *other242 =
"create method vc_error_summary (in esc_mode int, in pattern varchar) for vspx_control\n"
"{\n"
"if (self.vc_page.vc_is_valid)\n"
"return 0;\n"
"declare i, l integer;\n"
"declare cname varchar;\n"
"cname := self.vc_name;\n"
"if (self.vc_error_message is not null and regexp_match (pattern, cname) is not null)\n"
"{\n"
"\n"
"if (esc_mode)\n"
"http_value (self.vc_error_message);\n"
"else\n"
"http (self.vc_error_message);\n"
"return 1;\n"
"}\n"
"declare c any;\n"
"c := self.vc_children;\n"
"i := 0; l := length (c);\n"
"while (i < l)\n"
"{\n"
"declare chil vspx_control;\n"
"chil := c[i];\n"
"if (chil is not null and chil.vc_error_summary (esc_mode, pattern))\n"
"return 1;\n"
"i := i + 1;\n"
"}\n"
"return 0;\n"
"}\n";
static const char *other243 =
"create method vc_xrender () for vspx_control\n"
"{\n"
"return 0;\n"
"}\n";
static const char *other244 =
"create method vc_render () for vspx_control\n"
"{\n"
"declare h any;\n"
"declare inx, len int;\n"
"if (not self.vc_enabled)\n"
"return;\n"
"h := udt_implements_method (self.vc_page, fix_identifier_case (concat (\'vc_render_\', self.vc_name)));\n"
"if (h)\n"
"{\n"
"call (h) (self.vc_page, self);\n"
"return;\n"
"}\n"
"\n"
"if (self.vc_xrender ())\n"
"return;\n"
"\n"
"declare c any;\n"
"c := self.vc_children;\n"
"inx := 0;\n"
"len := length (c);\n"
"while (inx < len)\n"
"{\n"
"declare chil vspx_control;\n"
"chil := c[inx];\n"
"if (chil is not null)\n"
"chil.vc_render ();\n"
"inx := inx + 1;\n"
"}\n"
"}\n";
static const char *other245 =
"create method vc_pre_render (inout stream any, inout n int) for vspx_control\n"
"{\n"
"declare h any;\n"
"declare inx, len int;\n"
"\n"
"\n"
"if (self.vc_have_state)\n"
"{\n"
"\n"
"self.vc_view_state (stream, n);\n"
"\n"
"}\n"
"\n"
"if (self.vc_page.vc_browser_caps)\n"
"self.vc_set_model ();\n"
"\n"
"h := udt_implements_method (self.vc_page, fix_identifier_case (concat (\'vc_pre_render_\', self.vc_name)));\n"
"if (h <> 0)\n"
"call (h) (self.vc_page, self);\n"
"\n"
"self.vc_invoke_handlers (\'before-render\');\n"
"\n"
"if (udt_instance_of (self, fix_identifier_case (\'vspx_field\')))\n"
"{\n"
"declare field vspx_field;\n"
"declare _fld any;\n"
"declare i, l int;\n"
"_fld := self;\n"
"field := _fld;\n"
"if (isstring (field.ufl_fmt_fn) and field.vc_error_message is null)\n"
"{\n"
"field.ufl_value := call (field.ufl_fmt_fn) (field.ufl_value);\n"
"}\n"
"}\n"
"\n"
"inx := 0;\n"
"declare c any;\n"
"c := self.vc_children;\n"
"len := length (c);\n"
"while (inx < len)\n"
"{\n"
"declare chil vspx_control;\n"
"chil := c[inx];\n"
"if (chil is not null)\n"
"chil.vc_pre_render (stream, n);\n"
"inx := inx + 1;\n"
"}\n"
"}\n";
static const char *other246 =
"create method vc_handle_error (in state any, in message any, inout deadl any) for vspx_control\n"
"{\n"
"declare h any;\n"
"h := udt_implements_method (self.vc_page, fix_identifier_case (concat (\'vc_error_handler_\', self.vc_name)));\n"
"if (self is not null and self.vc_name is not null and h <> 0) {\n"
"declare rc int;\n"
"rc := call (h) (self.vc_page, state, message, deadl);\n"
"return rc;\n"
"}\n"
"else {\n"
"if(state = 100 and message is null) message := \'Not Found.\';\n"
"if (isinteger (state))\n"
"http_value(sprintf(\'STATE : %05d MESSAGE :%s\', state, message));\n"
"else\n"
"http_value(sprintf(\'STATE : %s MESSAGE :%s\', state, message));\n"
"}\n"
"return 0;\n"
"}\n";
static const char *other247 =
"create method vc_data_bind (inout e vspx_event) for vspx_control\n"
"{\n"
"declare h any;\n"
"declare inx, len int;\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"h := udt_implements_method (self.vc_page, fix_identifier_case (concat (\'vc_data_bind_\', self.vc_name)));\n"
"if (h <> 0)\n"
"{\n"
"declare disabled int;\n"
"\n"
"disabled := call (h) (self.vc_page, self, e);\n"
"if (disabled = 1)\n"
"return;\n"
"}\n"
"if (not self.vc_enabled)\n"
"return;\n"
"self.vc_invoke_handlers (\'before-data-bind\');\n"
"\n"
"if (udt_instance_of (self, fix_identifier_case (\'vspx_field\')))\n"
"{\n"
"declare field vspx_field;\n"
"declare _fld any;\n"
"_fld := self;\n"
"field := _fld;\n"
"if (field.ufl_value is null and field.ufl_null_value is not null)\n"
"field.ufl_value := field.ufl_null_value;\n"
"if (isstring (field.ufl_cvt_fn) and field.vc_error_message is null)\n"
"{\n"
"field.ufl_value := call (field.ufl_cvt_fn) (field.ufl_value);\n"
"}\n"
"}\n"
"\n"
"inx := 0;\n"
"declare c any;\n"
"c := self.vc_children;\n"
"len := length (c);\n"
"while (inx < len)\n"
"{\n"
"declare chil vspx_control;\n"
"chil := c[inx];\n"
"if (chil is not null)\n"
"{\n"
"\n"
"chil.vc_data_bind (e);\n"
"\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"if (e.ve_is_post\n"
"and e.ve_button is not null\n"
"and udt_instance_of (e.ve_button, \'vspx_form\')\n"
"and e.ve_initiator is null\n"
")\n"
"{\n"
"declare initiator varchar;\n"
"initiator := get_keyword (\'__event_initiator\', e.ve_params, \'\');\n"
"if (initiator <> \'\' and initiator = self.vc_get_name ())\n"
"{\n"
"e.ve_initiator := self;\n"
"}\n"
"}\n"
"\n"
"h := udt_implements_method (self.vc_page, fix_identifier_case (concat (\'vc_after_data_bind_\', self.vc_name)));\n"
"if (h <> 0)\n"
"{\n"
"\n"
"call (h) (self.vc_page, self, e);\n"
"}\n"
"self.vc_invoke_handlers (\'after-data-bind\');\n"
"}\n";
static const char *other248 =
"create method vc_set_model () for vspx_control\n"
"{\n"
"return;\n"
"}\n";
static const char *other249 =
"create method vc_view_state (inout stream any, inout n int) for vspx_control\n"
"{\n"
"\n"
"return;\n"
"}\n";
static const char *other250 =
"create method vc_set_view_state (inout e vspx_event) for vspx_control\n"
"{\n"
"declare h any;\n"
"declare inx, len int;\n"
"\n"
"h := udt_implements_method (self.vc_page, fix_identifier_case (concat (\'vc_set_view_state_\', self.vc_name)));\n"
"if (h <> 0)\n"
"call (h) (self.vc_page, self, e);\n"
"self.vc_control_state := 1;\n"
"return;\n"
"}\n";
static const char *other251 =
"create method vc_set_childs_focus(in flag any, inout e vspx_event) for vspx_control\n"
"{\n"
"declare inx, len int;\n"
"declare c any;\n"
"inx := 0;\n"
"c := self.vc_children;\n"
"len := length (c);\n"
"while(inx < len) {\n"
"declare child vspx_control;\n"
"child := c[inx];\n"
"if(child is not null) {\n"
"if(not udt_instance_of(child, fix_identifier_case(\'vspx_form\')) and not\n"
"udt_instance_of(child, fix_identifier_case(\'vspx_button\'))) {\n"
"child.vc_focus := flag;\n"
"child.vc_set_childs_focus(flag, e);\n"
"}\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"}\n";
static const char *other252 =
"create method vc_post (inout e vspx_event) for vspx_control\n"
"{\n"
"declare h any;\n"
"declare inx, len int;\n"
"\n"
"h := udt_implements_method(self.vc_page, fix_identifier_case(concat(\'vc_post_\', self.vc_name)));\n"
"declare c any;\n"
"c := self.vc_children;\n"
"inx := 0;\n"
"len := length(c);\n"
"while(inx < len) {\n"
"declare child vspx_control;\n"
"child := c[inx];\n"
"if(child is not null) {\n"
"child.vc_post(e);\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"if(h <> 0) {\n"
"call (h) (self.vc_page, self, e);\n"
"}\n"
"if (udt_instance_of (self, fix_identifier_case (\'vspx_field\')))\n"
"{\n"
"declare field vspx_field;\n"
"declare _fld any;\n"
"_fld := self;\n"
"field := _fld;\n"
"if (field.ufl_value = field.ufl_null_value and field.vc_focus)\n"
"field.ufl_value := null;\n"
"}\n"
"}\n";
static const char *other253 =
"create method vc_user_post (inout e vspx_event) for vspx_control\n"
"{\n"
"declare h any;\n"
"declare inx, len int;\n"
"\n"
"\n"
"h := udt_implements_method(self.vc_page, fix_identifier_case(concat(\'vc_user_post_\', self.vc_name)));\n"
"declare c any;\n"
"inx := 0;\n"
"c := self.vc_children;\n"
"len := length (c);\n"
"while(inx < len) {\n"
"declare child vspx_control;\n"
"child := c[inx];\n"
"if(child is not null) {\n"
"child.vc_user_post(e);\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"if(h <> 0) {\n"
"call (h) (self.vc_page, self, e);\n"
"}\n"
"self.vc_invoke_handlers (\'on-post\');\n"
"}\n";
static const char *other254 =
"create method vc_action (inout e vspx_event) for vspx_control\n"
"{\n"
"declare h any;\n"
"declare inx, len int;\n"
"\n"
"h := udt_implements_method(self.vc_page, fix_identifier_case(concat(\'vc_action_\', self.vc_name)));\n"
"inx := 0;\n"
"declare c any;\n"
"c := self.vc_children;\n"
"len := length(c);\n"
"while(inx < len) {\n"
"declare child vspx_control;\n"
"child := c[inx];\n"
"if(child is not null) {\n"
"child.vc_action(e);\n"
"}\n"
"inx := inx + 1;\n"
"}\n"
"if(h <> 0) {\n"
"call (h) (self.vc_page, self, e);\n"
"}\n"
"\n"
"if (udt_instance_of(self, fix_identifier_case(\'vspx_field\'))) {\n"
"declare field vspx_field;\n"
"declare _fld any;\n"
"_fld := self;\n"
"field := _fld;\n"
"if(isstring(field.ufl_cvt_fn) and field.vc_error_message is null) {\n"
"field.ufl_value := call (field.ufl_cvt_fn) (field.ufl_value);\n"
"}\n"
"}\n"
"}\n";
static const char *other255 =
"create method vc_render () for vspx_select_list\n"
"{\n"
"declare inx, len int;\n"
"declare form vspx_form;\n"
"if (not self.vc_enabled)\n"
"return;\n"
"http (sprintf (\'<select name=\"%s\"\', self.vc_get_name ()));\n"
"vspx_print_html_attrs (self);\n"
"if (self.vsl_multiple)\n"
"{\n"
"http (\' multiple=\"multiple\"\');\n"
"}\n"
"if (self.ufl_auto_submit or self.vsl_change_script) http (\' onchange=\"doAutoSubmit (this.form, this)\"\');\n"
"http (\'>\');\n"
"\n"
"inx := 0; len := length (self.vsl_items);\n"
"while (inx < len)\n"
"{\n"
"declare sel varchar;\n"
"sel := \'\';\n"
"if (not self.vsl_multiple)\n"
"{\n"
"sel := case self.vsl_selected_inx when inx then \'selected=\"selected\"\' else \'\' end;\n"
"}\n"
"else\n"
"{\n"
"if (isarray(self.vsl_selected_inx) and self.vsl_selected_inx[inx])\n"
"sel := \'selected=\"selected\"\';\n"
"else\n"
"sel := \'\';\n"
"}\n"
"http (sprintf (\'<option value=\"%s\" %s>%s</option>\', self.vsl_item_values[inx], sel, self.vsl_items[inx]));\n"
"inx := inx + 1;\n"
"}\n"
"http (\'</select>\');\n"
"}\n";
static const char *other256 =
"create method vc_view_state (inout stream any, inout n int) for vspx_select_list\n"
"{\n"
"self.vc_push_in_stream (stream, self.ufl_value, n);\n"
"return;\n"
"}\n";
static const char *other257 =
"create method vc_view_state (inout stream any, inout n int) for vspx_login\n"
"{\n"
"\n"
"declare state any;\n"
"state := vector (\n"
"\'vl_logout_in_progress\', self.vl_logout_in_progress,\n"
"\'vl_authenticated\', self.vl_authenticated\n"
");\n"
"self.vc_push_in_stream (stream, state, n);\n"
"return;\n"
"}\n";
static const char *other258 =
"create method vc_render () for vspx_update_field\n"
"{\n"
"declare vst any;\n"
"if (not self.vc_enabled)\n"
"return;\n"
"if (self.ufl_failed and self.ufl_error_glyph is not null)\n"
"http (self.ufl_error_glyph);\n"
"\n"
"http (\'<input type=\"text\" name=\"\');\n"
"http (self.vc_get_name ());\n"
"if (self.ufl_value is not null)\n"
"{\n"
"http (\'\" value=\"\');\n"
"http_value (self.ufl_value);\n"
"}\n"
"else\n"
"{\n"
"vst := self.vc_get_control_state (null);\n"
"if (vst is not null)\n"
"{\n"
"http (\'\" value=\"\');\n"
"http_value (vst);\n"
"}\n"
"else\n"
"{\n"
"http (\'\" value=\"\');\n"
"http (self.tf_default);\n"
"}\n"
"\n"
"}\n"
"http (\'\"\');\n"
"vspx_print_html_attrs (self);\n"
"http (case self.ufl_client_validate when 0 then \'\' else \' onchange=\"javascript: vv_validate_\' || self.vc_name || \'(this)\"\' end);\n"
"if (self.ufl_auto_submit) http (\' onchange=\"doAutoSubmit (this.form, this)\"\');\n"
"http (\' />\');\n"
"if (self.ufl_failed and self.ufl_error_glyph is null)\n"
"http_value (self.ufl_error);\n"
"}\n";
static const char *other259 =
"create method vc_xrender () for vspx_text\n"
"{\n"
"if (not self.vc_page.vc_browser_caps)\n"
"return 0;\n"
"if (self.tf_style = 1 or self.tf_style = \'password\')\n"
"{\n"
"http (sprintf (\'<xforms:secret ref=\"/vxf:post/vxf:%s\" model=\"%s\" />\',\n"
"self.vc_get_name (), self.vc_top_form.vc_get_name ()));\n"
"}\n"
"else if (self.tf_style <> \'hidden\' and self.tf_style <> 2)\n"
"{\n"
"http (sprintf (\'<xforms:input ref=\"/vxf:post/vxf:%s\" model=\"%s\" />\',\n"
"self.vc_get_name (), self.vc_top_form.vc_get_name ()));\n"
"}\n"
"return 1;\n"
"}\n";
static const char *other260 =
"create method vc_xrender () for vspx_textarea\n"
"{\n"
"if (not self.vc_page.vc_browser_caps)\n"
"return 0;\n"
"http (sprintf (\'<xforms:textarea ref=\"/vxf:post/vxf:%s\" model=\"%s\" />\',\n"
"self.vc_get_name (), self.vc_top_form.vc_get_name ()));\n"
"return 1;\n"
"}\n";
static const char *other261 =
"create method vc_xrender () for vspx_select_list\n"
"{\n"
"declare inx, len int;\n"
"\n"
"if (not self.vc_page.vc_browser_caps)\n"
"return 0;\n"
"\n"
"http (sprintf (\'<xforms:select%s ref=\"/vxf:post/vxf:%s\" model=\"%s\">\\n\',\n"
"case when not self.vsl_multiple then \'1\' else \'\' end,\n"
"self.vc_get_name (), self.vc_top_form.vc_get_name ()));\n"
"\n"
"inx := 0; len := length (self.vsl_items);\n"
"while (inx < len)\n"
"{\n"
"http (\'<xforms:item>\\n\');\n"
"http (sprintf (\'<xforms:label>%s</xforms:label>\\n\', self.vsl_items[inx]));\n"
"http (sprintf (\'<xforms:value>%s</xforms:value>\\n\', self.vsl_item_values[inx]));\n"
"http (\'</xforms:item>\\n\');\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"http (sprintf (\'</xforms:select%s>\\n\',\n"
"case when not self.vsl_multiple then \'1\' else \'\' end));\n"
"return 1;\n"
"}\n";
static const char *other262 =
"create method vc_xrender () for vspx_check_box\n"
"{\n"
"if (not self.vc_page.vc_browser_caps)\n"
"return 0;\n"
"http (sprintf (\'<xforms:input ref=\"/vxf:post/vxf:%s\" model=\"%s\" />\',\n"
"self.vc_get_name (), self.vc_top_form.vc_get_name ()));\n"
"return 1;\n"
"}\n";
static const char *other263 =
"create method vc_xrender () for vspx_radio_group\n"
"{\n"
"if (not self.vc_page.vc_browser_caps)\n"
"return 0;\n"
"declare inx, len int;\n"
"http (sprintf (\'<xforms:select1 ref=\"/vxf:post/vxf:%s\" model=\"%s\" appearance=\"full\">\\n\',\n"
"self.vc_get_name (), self.vc_top_form.vc_get_name ()));\n"
"\n"
"inx := 0; len := length (self.vc_children);\n"
"while (inx < len)\n"
"{\n"
"declare chil vspx_control;\n"
"chil := self.vc_children [inx];\n"
"if (chil is not null and udt_instance_of (chil, \'vspx_radio_button\'))\n"
"chil.vc_xrender ();\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"http (\'</xforms:select1>\\n\');\n"
"return 1;\n"
"}\n";
static const char *other264 =
"create method vc_xrender () for vspx_radio_button\n"
"{\n"
"if (not self.vc_page.vc_browser_caps)\n"
"return 0;\n"
"http (\'<xforms:item>\\n\');\n"
"http (sprintf (\'<xforms:value>%s</xforms:value>\\n\', coalesce (self.ufl_value, \'\')));\n"
"http (\'</xforms:item>\\n\');\n"
"return 1;\n"
"}\n";
static const char *other265 =
"create method vc_xrender () for vspx_button\n"
"{\n"
"if (not self.vc_page.vc_browser_caps)\n"
"return 0;\n"
"http (sprintf (\'<xforms:submit submission=\"%s\">\\n\', self.vc_get_name ()));\n"
"http (\'<xforms:label>\');\n"
"http_value (self.ufl_value);\n"
"http (\'</xforms:label>\\n\');\n"
"http (\'<xforms:action ev:event=\"DOMActivate\">\\n\');\n"
"http (sprintf (\'<xforms:setvalue ref=\"/vxf:post/vxf:event__target\" model=\"%s\">%s</xforms:setvalue>\\n\',\n"
"self.vc_top_form.vc_get_name (), self.vc_get_name ()));\n"
"http (\'</xforms:action>\\n\');\n"
"http (\'</xforms:submit>\\n\');\n"
"return 1;\n"
"}\n";
static const char *other266 =
"create method vc_render () for vspx_text\n"
"{\n"
"declare vst any;\n"
"if (not self.vc_enabled)\n"
"return;\n"
"if (self.ufl_failed and self.ufl_error_glyph is not null)\n"
"http (self.ufl_error_glyph);\n"
"\n"
"http (sprintf (\'<input type=\"%s\" name=\"\', (case self.tf_style when 1 then \'password\' when \'password\' then self.tf_style when \'hidden\' then self.tf_style when 2 then \'hidden\' when \'file\' then \'file\' else \'text\' end)));\n"
"http (self.vc_get_name ());\n"
"\n"
"if (self.tf_style <> \'file\')\n"
"{\n"
"http (\'\" value=\"\');\n"
"if (self.ufl_value is not null)\n"
"{\n"
"http_value (self.ufl_value);\n"
"}\n"
"else\n"
"{\n"
"vst := self.vc_get_control_state (null);\n"
"if (vst is not null)\n"
"{\n"
"http_value (vst);\n"
"}\n"
"else\n"
"{\n"
"http (self.tf_default);\n"
"}\n"
"}\n"
"}\n"
"http (\'\"\');\n"
"\n"
"if (self.tf_style = 3) {\n"
"http(\' readonly=\"true\"\');\n"
"}\n"
"vspx_print_html_attrs (self);\n"
"http (case self.ufl_client_validate when 0 then \'\' else \' onchange=\"javascript: vv_validate_\' || self.vc_name || \'(this)\"\' end);\n"
"\n"
"if (self.ufl_auto_submit) http (\' onchange=\"doAutoSubmit (this.form, this)\"\');\n"
"\n"
"http (\' />\');\n"
"if (self.ufl_failed and self.ufl_error_glyph is null)\n"
"http_value (self.ufl_error);\n"
"}\n";
static const char *other267 =
"create method vc_render () for vspx_textarea\n"
"{\n"
"declare vst any;\n"
"if (not self.vc_enabled)\n"
"return;\n"
"if (self.ufl_failed and self.ufl_error_glyph is not null)\n"
"http (self.ufl_error_glyph);\n"
"\n"
"http (\'<textarea name=\"\');\n"
"http (self.vc_get_name ());\n"
"http (\'\"\');\n"
"vspx_print_html_attrs (self);\n"
"http (case self.ufl_client_validate when 0 then \'\' else \' onchange=\"javascript: vv_validate_\' || self.vc_name || \'(this)\"\' end);\n"
"if (self.ufl_auto_submit) http (\' onchange=\"doAutoSubmit (this.form, this)\"\');\n"
"http (\' >\');\n"
"\n"
"if (self.ufl_value is not null)\n"
"{\n"
"http_value (self.ufl_value);\n"
"}\n"
"else\n"
"{\n"
"vst := self.vc_get_control_state (null);\n"
"if (vst is not null)\n"
"{\n"
"http_value (vst);\n"
"}\n"
"else\n"
"http (self.tf_default);\n"
"\n"
"}\n"
"http (\'</textarea>\');\n"
"if (self.ufl_failed and self.ufl_error_glyph is null)\n"
"http_value (self.ufl_error);\n"
"}\n";
static const char *other268 =
"create method vc_render () for vspx_button\n"
"{\n"
"\n"
"if ( not self.vc_enabled)\n"
"return;\n"
"\n"
"\n"
"\n"
"\n"
"if (length (self.bt_url) and length (self.bt_l_pars))\n"
"{\n"
"self.bt_url := vspx_uri_add_parameters (self.bt_url, self.bt_l_pars);\n"
"self.bt_l_pars := null;\n"
"}\n"
"\n"
"if (self.bt_anchor = 1)\n"
"{\n"
"http (sprintf (\'<a name=\"btn_%s\"></a>\', self.vc_get_name ()));\n"
"}\n"
"\n"
"if (self.bt_style = \'image\')\n"
"{\n"
"declare frm vspx_control;\n"
"declare frm_name varchar;\n"
"frm := self.vc_find_parent_form (self);\n"
"if (frm is not null)\n"
"frm_name := frm.vc_name;\n"
"else\n"
"frm_name := \'\';\n"
"http ( sprintf ( \'<a href=\"%s\" %s><img src=\"%s\" border=\"0\" \',\n"
"case self.bt_url when \'\' then \'javascript:void(0)\' else self.bt_url end,\n"
"case when self.bt_url = \'\' and self.ufl_active > 0\n"
"then sprintf ( \'onclick=\"javascript: doPost (\\\'%s\\\', \\\'%s\\\'); return false\"\',\n"
"frm_name,\n"
"self.vc_get_name ()\n"
")\n"
"else \'\' end,\n"
"self.ufl_value));\n"
"vspx_print_html_attrs (self);\n"
"http (sprintf (\' />%s</a>\', self.bt_text));\n"
"return;\n"
"}\n"
"\n"
"if (self.bt_style = \'url\')\n"
"{\n"
"declare frm vspx_control;\n"
"declare frm_name varchar;\n"
"frm := self.vc_find_parent_form (self);\n"
"if (frm is not null)\n"
"frm_name := frm.vc_name;\n"
"else\n"
"frm_name := \'\';\n"
"http ( sprintf ( \'<a href=\"%s\" %s\',\n"
"case self.bt_url when \'\' then \'javascript:void(0)\' else self.bt_url end,\n"
"case when self.bt_url = \'\' and self.ufl_active > 0\n"
"then sprintf ( \'onclick=\"javascript: doPost (\\\'%s\\\', \\\'%s\\\'); return false\"\',\n"
"frm_name,\n"
"self.vc_get_name ()\n"
")\n"
"else \'\' end));\n"
"vspx_print_html_attrs (self);\n"
"http (\' >\');\n"
"http (self.ufl_value);\n"
"http (\'</a>\');\n"
"return;\n"
"}\n"
"\n"
"post_button:\n"
"\n"
"http (sprintf (\'<input type=\"%s\" name=\"\', case when self.ufl_active > 0 then \'submit\' else \'button\' end));\n"
"http (self.vc_get_name ());\n"
"if (self.ufl_value is not null)\n"
"{\n"
"http (\'\" value=\"\');\n"
"http_value (self.ufl_value);\n"
"}\n"
"http (\'\"\');\n"
"vspx_print_html_attrs (self);\n"
"http (\' />\');\n"
"}\n";
static const char *other269 =
"create method vc_render () for vspx_browse_button\n"
"{\n"
"if ( not self.vc_enabled)\n"
"return;\n"
"\n"
"if (self.bt_style = \'url\')\n"
"{\n"
"\n"
"http (\'<a href=\"javascript:void(0)\"\');\n"
"vspx_print_html_attrs (self);\n"
"}\n"
"else if (self.bt_style = \'image\')\n"
"{\n"
"\n"
"http (\'<a href=\"javascript:void(0)\" \');\n"
"}\n"
"else\n"
"{\n"
"\n"
"http (\'<input type=\"button\" name=\"\');\n"
"http (self.vc_get_name ());\n"
"if (self.ufl_value is not null)\n"
"{\n"
"http (\'\" value=\"\');\n"
"http_value (self.ufl_value);\n"
"}\n"
"http (\'\"\');\n"
"vspx_print_html_attrs (self);\n"
"}\n"
"\n"
"http (\' onclick=\"javascript: \');\n"
"declare pars, fld_pars varchar;\n"
"if (1)\n"
"{\n"
"declare i, l int;\n"
"declare frm vspx_form;\n"
"frm := self.vc_find_parent_form (self);\n"
"i := 0; l := length (self.vcb_fields);\n"
"pars := \'\'; fld_pars := \'&\';\n"
"while (i < l)\n"
"{\n"
"declare tfl vspx_text;\n"
"tfl := self.vc_parent.vc_find_control (self.vcb_fields[i]);\n"
"http (sprintf (\'window.%s=document.%s[\\\'%s\\\']; \',\n"
"self.vcb_fields[i], frm.vc_name, self.vcb_ref_fields[i]));\n"
"pars := concat (pars, self.vcb_fields[i], \'=\\\'+ encodeURIComponent (document.\',frm.vc_name, \'[\\\'\', self.vcb_ref_fields[i], \'\\\'].value)+\\\'&\');\n"
"fld_pars := concat (fld_pars, \'fld_name=\', self.vcb_ref_fields[i], \'&\');\n"
"i := i + 1;\n"
"}\n"
"}\n"
"\n"
"if (self.vcb_system = \'dav\' or self.vcb_system = \'os\')\n"
"{\n"
"declare form vspx_form;\n"
"form := self.vc_find_parent_form (self);\n"
"if (form is not null)\n"
"fld_pars := concat (fld_pars, \'frm_name=\', form.vc_name);\n"
"pars := sprintf (\'browse_mode=%s&lst_mode=%s&xfer_mode=%s&cur_col=%d&os=%s&flt_pat=%s%s\', self.vcb_browser_mode , self.vcb_list_mode, self.vcb_xfer, self.vcb_current, self.vcb_system, self.vcb_filter, fld_pars);\n"
"}\n"
"\n"
"pars := rtrim (pars, \'&\');\n"
"if( self.vcb_browser_options <> \'\' ) pars := concat( pars, \'&\', self.vcb_browser_options );\n"
"if(self.vcb_params is not null) {\n"
"declare i, l int;\n"
"declare frm vspx_form;\n"
"declare params_string, result_string varchar;\n"
"declare params_stream, result_stream any;\n"
"i := 0;\n"
"l := length(self.vcb_params);\n"
"params_stream := string_output();\n"
"result_stream := string_output();\n"
"frm := self.vc_find_parent_form (self);\n"
"while(i < l) {\n"
"http(sprintf(\'&%s=\'\' + encodeURIComponent (document.%s.%s.value) + \'\'\', self.vcb_params[i], frm.vc_name, self.vcb_params[i]), params_stream);\n"
"i := i + 1;\n"
"}\n"
"params_string := string_output_string(params_stream);\n"
"http(sprintf(\'window.open(\\\\\'\'%s%s\\\\\'\', \\\\\'\'%s_window\\\\\'\', \\\\\'\'%s\\\\\'\')\',\n"
"vspx_uri_add_parameters (self.vcb_selector, pars),\n"
"params_string, self.vc_name, self.vcb_chil_options), result_stream);\n"
"result_string := string_output_string(result_stream);\n"
"http(sprintf(\'var cmd_str=\'\'%s\'\'; eval(cmd_str); \"\', result_string));\n"
"}\n"
"else {\n"
"http(sprintf(\'window.open (\\\'%s\\\', \\\'%s_window\\\', \\\'%s\\\')\"\',\n"
"vspx_uri_add_parameters (self.vcb_selector, pars), self.vc_name, self.vcb_chil_options));\n"
"}\n"
"if (self.bt_style = \'url\')\n"
"{\n"
"http (sprintf (\'>%V</a>\', self.ufl_value));\n"
"}\n"
"else if (self.bt_style = \'image\')\n"
"{\n"
"http (sprintf (\'><img src=\"%s\" border=\"0\" \', self.ufl_value));\n"
"vspx_print_html_attrs (self);\n"
"http (sprintf (\' />%s</a>\', self.bt_text));\n"
"}\n"
"else\n"
"{\n"
"http (\' />\');\n"
"}\n"
"}\n";
static const char *other270 =
"create method vc_render () for vspx_return_button\n"
"{\n"
"if ( not self.vc_enabled)\n"
"return;\n"
"if (self.bt_style = \'url\')\n"
"{\n"
"\n"
"http (\'<a href=\"javascript:void(0)\"\');\n"
"vspx_print_html_attrs (self);\n"
"}\n"
"else if (self.bt_style = \'image\')\n"
"{\n"
"\n"
"http (\'<a href=\"javascript:void(0)\"\');\n"
"}\n"
"else\n"
"{\n"
"http (\'<input type=\"button\" name=\"\');\n"
"http (self.vc_get_name ());\n"
"if (self.ufl_value is not null)\n"
"{\n"
"http (\'\" value=\"\');\n"
"http_value (self.ufl_value);\n"
"}\n"
"http (\'\"\');\n"
"vspx_print_html_attrs (self);\n"
"}\n"
"declare frm vspx_form;\n"
"frm := self.vc_find_parent_form (self);\n"
"http (sprintf (\' onclick=\"javascript: selectRow_%s (\\\'\', self.vc_name));\n"
"if (frm is not null)\n"
"http (frm.vc_name);\n"
"http (\'\\\', \');\n"
"{\n"
"declare i, l integer;\n"
"i := 0; l := length (self.vc_children);\n"
"while (i < l)\n"
"{\n"
"declare chil vspx_field;\n"
"chil := self.vc_children[i];\n"
"if (chil is not null)\n"
"{\n"
"http (sprintf (\'\\\'%V\\\'\', replace(chil.ufl_value,\'\\\'\', \'\\\\\\\'\')));\n"
"}\n"
"else\n"
"http (\'\\\'\\\'\');\n"
"if (i <> (l - 1))\n"
"http (\',\');\n"
"i := i + 1;\n"
"}\n"
"}\n"
"http (\')\"\');\n"
"if (self.bt_style = \'url\')\n"
"{\n"
"http (sprintf (\'>%V</a>\', self.ufl_value));\n"
"}\n"
"else if (self.bt_style = \'image\')\n"
"{\n"
"http (sprintf (\'><img src=\"%s\" border=\"0\" \', self.ufl_value));\n"
"vspx_print_html_attrs (self);\n"
"http (sprintf (\' />%s</a>\', self.bt_text));\n"
"}\n"
"else\n"
"{\n"
"http (\' />\');\n"
"}\n"
"}\n";
static const char *other271 =
"create method vc_render () for vspx_radio_button\n"
"{\n"
"if ( not self.vc_enabled)\n"
"return;\n"
"http (sprintf (\'<input type=\"radio\" name=\"%s\" value=\"%s\" %s \', case coalesce(self.ufl_group,\'\') when \'\' then self.vc_get_name () else self.ufl_group end, cast(self.ufl_value as varchar), case self.ufl_selected when 0 then \'\' else \'checked=\"checked\"\' end));\n"
"vspx_print_html_attrs (self);\n"
"if (self.ufl_auto_submit) http (\' onclick=\"doAutoSubmit (this.form, this)\"\');\n"
"http (\'/>\');\n"
"}\n";
static const char *other272 =
"create method vc_view_state (inout stream any, inout n int) for vspx_data_grid\n"
"{\n"
"declare flds any;\n"
"flds := vector (serialize(self.dg_last_bookmark), serialize (self.dg_prev_bookmark), self.dg_rows_fetched, self.dg_rowno_edit, self.vc_enabled, self.dg_editable);\n"
"self.vc_push_in_stream (stream, flds, n);\n"
"return;\n"
"}\n";
static const char *other273 =
"create method uf_column_value (in name varchar) for vspx_update_form\n"
"{\n"
"declare pos int;\n"
"pos := position (name, self.uf_columns);\n"
"if (pos > 0 and length (self.uf_row) >= pos)\n"
"return self.uf_row[pos-1];\n"
"else\n"
"signal (\'22023\', sprintf (\'The column \"%s\" does not exist in rowset\', name));\n"
"}\n";
static const char *other274 =
"create method vc_view_state (inout stream any, inout n int) for vspx_update_form\n"
"{\n"
"if (length (self.uf_keys) > 0)\n"
"{\n"
"self.vc_push_in_stream (stream, self.uf_keys, n);\n"
"}\n"
"}\n";
static const char *other275 =
"create method vc_view_state (inout stream any, inout n int) for vspx_update_field\n"
"{\n"
"if (self.vc_page.vc_event.ve_is_post and not self.vc_parent.vc_focus)\n"
"return;\n"
"self.vc_push_in_stream (stream, self.ufl_value, n);\n"
"return;\n"
"}\n";
static const char *udt46 =
"create type vspx_node_template under vspx_control\n"
"as ( vc_stub any ) temporary self as ref\n";
static const char *udt47 =
"create type vspx_leaf_template under vspx_control\n"
"as ( vc_stub any ) temporary self as ref\n";
static const char *udt48 =
"create type vspx_horizontal_template under vspx_control\n"
"as ( vc_stub any ) temporary self as ref\n";
static const char *udt49 =
"create type vspx_xsd_stub under vspx_control\n"
"as ( vc_stub any ) temporary self as ref\n";
static const char *udt50 =
"create type vspx_xsd_stub_top under vspx_control\n"
"as ( vc_stub any ) temporary self as ref\n";
static const char *udt51 =
"create type vspx_xsd_stub_script under vspx_control\n"
"as ( vc_stub any ) temporary self as ref\n";
static const char *proc177 =
"#line 5039 \"[executable]/vspx.sql\"\n"
"create procedure vspx_get_compiler_signature () returns varchar\n"
"{\n"
"declare res varchar;\n"
"res := \'&proc=2003-12-24 20:31:00.000000\';\n"
"if (\'1\' = registry_get (\'__external_vspx_xslt\'))\n"
"res := concat ( res,\n"
"\'&vspx=\',\n"
"cast (file_stat (concat (http_root (), \'/vspx/vspx.xsl\')) as varchar),\n"
"\'&vspx_expand=\',\n"
"cast (file_stat (concat (http_root (), \'/vspx/vspx_expand.xsl\')) as varchar)\n"
");\n"
"return res;\n"
"}\n"
"--src vspx.sql:5037\n";
static const char *proc178 =
"#line 5054 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"vspx_make_temp_names (in resource_name varchar, inout vspxm_name varchar, inout sql_name varchar)\n"
"returns int\n"
"{\n"
"declare is_temp, is_dav int;\n"
"is_temp := 0;\n"
"is_dav := http_map_get (\'is_dav\');\n"
"\n"
"if (not is_dav and registry_get (\'__no_vspx_temp\') <> \'1\')\n"
"{\n"
"declare tmp_name varchar;\n"
"tmp_name := tmp_file_name (\'vspx\', \'vspx\');\n"
"if (tmp_name is not null)\n"
"{\n"
"is_temp := 1;\n"
"resource_name := tmp_name;\n"
"}\n"
"}\n"
"\n"
"vspxm_name := resource_name;\n"
"if (vspxm_name like \'%.vspx\')\n"
"vspxm_name := substring (vspxm_name, 1, length (vspxm_name) - 5);\n"
"vspxm_name := concat (vspxm_name, \'.vspx-m\');\n"
"\n"
"sql_name := resource_name;\n"
"if (sql_name like \'%.vspx\')\n"
"sql_name := substring (sql_name, 1, length (sql_name) - 5);\n"
"sql_name := concat (sql_name, \'.vspx-sql\');\n"
"\n"
"return is_temp;\n"
"}\n"
"--src vspx.sql:5052\n";
static const char *proc179 =
"#line 5088 \"[executable]/vspx.sql\"\n"
"create function vspx_make_vspxm (\n"
"in resource_name varchar,\n"
"in resource_text varchar,\n"
"in save_vspxm integer,\n"
"in vspxm_name varchar := NULL\n"
") returns any\n"
"{\n"
"declare resource_base_uri varchar;\n"
"\n"
"declare messages any;\n"
"declare expand_ctr integer;\n"
"declare xe, xe_for_xsd, xt any;\n"
"declare xslt_params any;\n"
"declare xslt_add_locations_sheet_name varchar;\n"
"declare xslt_expand_sheet_name varchar;\n"
"declare xslt_pre_xsd_sheet_name varchar;\n"
"declare xslt_pre_sql_sheet_name varchar;\n"
"declare xsd_name varchar;\n"
"declare page_style, xslt_style_uri varchar;\n"
"declare xslt_macro_sheet_name varchar;\n"
"declare xslt_macro_sheet_text varchar;\n"
"declare in_handler integer;\n"
"declare vspx_text_ses any;\n"
"declare old_vspx_text, new_vspx_text varchar;\n"
"declare xe_for_xsd_ses any;\n"
"declare xe_for_xsd_text varchar;\n"
"declare xsd_log varchar;\n"
"xslt_style_uri := null;\n"
"xslt_macro_sheet_name := \'\';\n"
"in_handler := 0;\n"
"xe := 0;\n"
"\n"
"if (vspxm_name is null)\n"
"{\n"
"vspxm_name := resource_name;\n"
"if (vspxm_name like \'%.vspx\')\n"
"vspxm_name := substring (vspxm_name, 1, length (vspxm_name) - 5);\n"
"vspxm_name := concat (vspxm_name, \'.vspx-m\');\n"
"}\n"
"\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"declare old_in_handler integer;\n"
"old_in_handler := in_handler;\n"
"in_handler := 1;\n"
"if (xslt_style_uri is not null)\n"
"xslt_stale (xslt_macro_sheet_name);\n"
"if ((0 = old_in_handler) and (save_vspxm <> 0))\n"
"{\n"
"declare vspxm any;\n"
"vspxm := string_output();\n"
"http_value (string_output_string (messages), null, vspxm);\n"
"http_value (xe, null, vspxm);\n"
"vspx_src_store (vspxm_name, string_output_string (vspxm));\n"
"commit work;\n"
"}\n"
"resignal;\n"
"};\n"
"messages := string_output();\n"
"resource_base_uri := vspx_base_url (resource_name);\n"
"\n"
"\n"
"\n"
"http (sprintf(\'Preparing Virtuoso/PL from VSPX %s (retrieved from %s)\\n\', resource_name, resource_base_uri), messages);\n"
"if (resource_text is null)\n"
"{\n"
"declare dummy any;\n"
"dummy := 0;\n"
"resource_text := vspx_src_get (resource_name, dummy, 0);\n"
"}\n"
"xe := xtree_doc (resource_text, 256, resource_base_uri);\n"
"xslt_params := vector (\n"
"\'vspx_source\', resource_name,\n"
"\'vspx_source_date\', cast (file_stat (concat (http_root (), resource_name)) as varchar),\n"
"\'vspx_compile_date\', cast (now() as varchar),\n"
"\'vspx_compiler_version\', vspx_get_compiler_signature() );\n"
"if (\'1\' = registry_get (\'__external_vspx_xslt\'))\n"
"{\n"
"xslt_add_locations_sheet_name := \'file://vspx/vspx_add_locations.xsl\';\n"
"xslt_expand_sheet_name := \'file://vspx/vspx_expand.xsl\';\n"
"xslt_pre_xsd_sheet_name := \'file://vspx/vspx_pre_xsd.xsl\';\n"
"xslt_pre_sql_sheet_name := \'file://vspx/vspx_pre_sql.xsl\';\n"
"xsd_name := \'file://vspx/vspx.xsd\';\n"
"http (sprintf(\'VSPX compiler will use external stylesheet %s for macro expansion.\\n\', xslt_expand_sheet_name), messages);\n"
"xml_load_schema_decl (xsd_name, xsd_name, \'UTF-8\', \'x-any\');\n"
"}\n"
"else\n"
"{\n"
"xslt_add_locations_sheet_name := \'http://local.virt/vspx_add_locations\';\n"
"xslt_expand_sheet_name := \'http://local.virt/vspx_expand\';\n"
"xslt_pre_xsd_sheet_name := \'http://local.virt/vspx_pre_xsd\';\n"
"xslt_pre_sql_sheet_name := \'http://local.virt/vspx_pre_sql\';\n"
"xsd_name := \'http://local.virt/vspx.xsd\';\n"
"}\n"
"xe := xslt (xslt_add_locations_sheet_name, xe);\n"
"xml_doc_assign_base_uri (xe, resource_base_uri);\n"
"expand_ctr := 0;\n"
"page_style := xpath_eval (\'[xmlns:v=\"http://www.openlinksw.com/vspx/\"] //v:page/@style\', xe);\n"
"if (page_style is not null)\n"
"{\n"
"http (sprintf(\'The VSPX contains style URI %s\\n\', page_style), messages);\n"
"xslt_style_uri := DB.DBA.XML_URI_RESOLVE_LIKE_GET (resource_base_uri, page_style);\n"
"xslt_macro_sheet_name := concat (xslt_style_uri, \'-internal-\', cast (now() as varchar), \')\');\n"
"http (sprintf(\'The style URI is resolved as %s\\n\', xslt_style_uri), messages);\n"
"xslt_macro_sheet_text := concat (\n"
"\'<?xml version=\'\'1.0\'\'?>\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
"version=\"1.0\"\n"
"xmlns:v=\"http://www.openlinksw.com/vspx/\" exclude-result-prefixes=\"v\"\n"
"xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">\n"
"<xsl:param name=\"vspx_log\" />\n"
"<xsl:output method=\"xml\" omit-xml-declaration=\"no\" indent=\"yes\" />\n"
"\',\n"
"sprintf(\'\\n<xsl:import href=\"%V\"/>\\n<xsl:import href=\"%V\"/>\\n\',\n"
"xslt_style_uri, xslt_expand_sheet_name),\n"
"\'</xsl:stylesheet>\' );\n"
"xslt_sheet (xslt_macro_sheet_name, xtree_doc (xslt_macro_sheet_text, 0, xslt_macro_sheet_name));\n"
"}\n"
"else\n"
"{\n"
"xslt_macro_sheet_name := xslt_expand_sheet_name;\n"
"}\n"
"vspx_text_ses := string_output();\n"
"http_value (xe, null, vspx_text_ses);\n"
"old_vspx_text := string_output_string (vspx_text_ses);\n"
"expand_again:\n"
"http (sprintf(\'Applying %s\\n\', xslt_macro_sheet_name), messages);\n"
"xe := xslt (xslt_macro_sheet_name, xe, xslt_params);\n"
"xml_doc_assign_base_uri (xe, resource_base_uri);\n"
"vspx_text_ses := string_output();\n"
"http_value (xe, null, vspx_text_ses);\n"
"new_vspx_text := string_output_string (vspx_text_ses);\n"
"if (save_vspxm <> 0)\n"
"{\n"
"declare vspxm_ses any;\n"
"vspxm_ses := string_output();\n"
"http_value (string_output_string (messages), null, vspxm_ses);\n"
"http (new_vspx_text, vspxm_ses);\n"
"vspx_src_store (vspxm_name, string_output_string (vspxm_ses));\n"
"}\n"
"if (new_vspx_text = old_vspx_text)\n"
"goto done;\n"
"old_vspx_text := new_vspx_text;\n"
"expand_ctr := expand_ctr + 1;\n"
"if (expand_ctr > 30)\n"
"signal (\'22000\', sprintf(\'Too deep recursion in applying style \'\'%s\'\' to VSPX page \'\'%s\'\'\', xslt_macro_sheet_name, resource_name), \'VX002\');\n"
"goto expand_again;\n"
"done:\n"
"xe := xslt (xslt_macro_sheet_name, xe,\n"
"vector_concat (xslt_params,\n"
"vector (\'vspx_log\', string_output_string (messages)) ) );\n"
"\n"
"if (registry_get (\'vspx_production_mode\') <> \'1\')\n"
"{\n"
"declare dep_files any;\n"
"declare code_files any;\n"
"declare i, l int;\n"
"\n"
"dep_files := xpath_eval (\n"
"\'[xmlns:v=\"http://www.openlinksw.com/vspx/\" \' ||\n"
"\'xmlns:vdeps=\"http://www.openlinksw.com/vspx/deps/\"]\' ||\n"
"\' //v:hidden/@vdeps:url\',\n"
"xe, 0);\n"
"\n"
"code_files := xpath_eval (\n"
"\'[xmlns:v=\"http://www.openlinksw.com/vspx/\" \' ||\n"
"\'xmlns:vdeps=\"http://www.openlinksw.com/vspx/deps/\"]\' ||\n"
"\' //v:hidden/@vdeps:code-file\',\n"
"xe, 0);\n"
"\n"
"i := 0; l := length (code_files);\n"
"while (i < l)\n"
"{\n"
"declare code_file varchar;\n"
"code_file := WS.WS.EXPAND_URL (resource_name, cast (code_files[i] as varchar));\n"
"code_file := vspx_base_url (code_file);\n"
"dep_files := vector_concat (coalesce (dep_files, vector ()), vector (code_file));\n"
"i := i + 1;\n"
"}\n"
"\n"
"if (xslt_style_uri is not null)\n"
"{\n"
"dep_files := vector_concat (coalesce (dep_files, vector ()), vector (xslt_style_uri));\n"
"\n"
"}\n"
"\n"
"registry_set (sprintf (\'%s_file_deps\', resource_name), serialize (vspx_make_stat_vector (dep_files)));\n"
"}\n"
"\n"
"if (\'1\' = registry_get (\'__vspx_validate\'))\n"
"{\n"
"\n"
"xe_for_xsd := xslt (xslt_pre_xsd_sheet_name, xe);\n"
"xe_for_xsd_ses := string_output();\n"
"http_value (xe_for_xsd, null, xe_for_xsd_ses);\n"
"xe_for_xsd_text := string_output_string (xe_for_xsd_ses);\n"
"\n"
"if (save_vspxm <> 0)\n"
"vspx_src_store (concat(vspxm_name,\'-xsd\'), xe_for_xsd_text);\n"
"xsd_log := xml_validate_schema (\n"
"xe_for_xsd_text, 0, concat(vspxm_name,\'-xsd\'), \'LATIN-1\', \'x-any\',\n"
"\'Validation=RIGOROUS Fsa=ERROR FsaBadWs=IGNORE BuildStandalone=ENABLE AttrMissing=ERROR AttrMisformat=ERROR AttrUnknown=ERROR MaxErrors=200\',\n"
"\'xs:\', \':xs\', xsd_name );\n"
"if (save_vspxm <> 0)\n"
"vspx_src_store (concat(vspxm_name,\'-xsd-log\'), xsd_log);\n"
"xml_validate_schema (\n"
"xe_for_xsd_text, 0, concat(vspxm_name,\'-xsd\'), \'LATIN-1\', \'x-any\',\n"
"\'Validation=RIGOROUS Fsa=ERROR FsaBadWs=IGNORE BuildStandalone=ENABLE AttrMissing=ERROR AttrMisformat=ERROR AttrUnknown=ERROR MaxErrors=200 SignalOnError=ENABLE\',\n"
"\'xs:\', \':xs\', xsd_name );\n"
"\n"
"}\n"
"\n"
"if (save_vspxm <> 0)\n"
"{\n"
"declare vspxm_ses any;\n"
"declare vspxm_text varchar;\n"
"vspxm_ses := string_output();\n"
"http_value (xe, null, vspxm_ses);\n"
"vspxm_text := string_output_string (vspxm_ses);\n"
"vspx_src_store (concat (vspxm_name, \'0\'), vspxm_text);\n"
"}\n"
"\n"
"xe := xslt (xslt_pre_sql_sheet_name, xe);\n"
"\n"
"if (save_vspxm <> 0)\n"
"{\n"
"declare vspxm_ses any;\n"
"declare vspxm_text varchar;\n"
"vspxm_ses := string_output();\n"
"http_value (xe, null, vspxm_ses);\n"
"vspxm_text := string_output_string (vspxm_ses);\n"
"vspx_src_store (vspxm_name, vspxm_text);\n"
"}\n"
"if (xslt_style_uri is not null)\n"
"xslt_stale (xslt_macro_sheet_name);\n"
"return xe;\n"
"}\n"
"--src vspx.sql:5086\n";
static const char *proc180 =
"#line 5328 \"[executable]/vspx.sql\"\n"
"create procedure vspx_make_sql (\n"
"in vspx_dbname varchar,\n"
"in vspx_user varchar,\n"
"in resource_name varchar,\n"
"inout vspxm_name varchar,\n"
"inout sql_name varchar,\n"
"in cls_name varchar\n"
")\n"
"{\n"
"declare resource_base_uri varchar;\n"
"\n"
"declare messages any;\n"
"declare xe, xt, dummy any;\n"
"declare xslt_params any;\n"
"declare xslt_main_sheet_name varchar;\n"
"declare subclass_name varchar;\n"
"declare code_files any;\n"
"declare in_handler integer;\n"
"in_handler := 0;\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"declare old_in_handler integer;\n"
"old_in_handler := in_handler;\n"
"in_handler := 1;\n"
"resignal;\n"
"};\n"
"messages := string_output();\n"
"resource_base_uri := vspx_base_url (resource_name);\n"
"\n"
"\n"
"\n"
"xe := vspx_make_vspxm (resource_name, null, 1, vspxm_name);\n"
"\n"
"subclass_name := cast (xpath_eval (\'//page[1]/@page-subclass\', xe) as varchar);\n"
"if (subclass_name is null)\n"
"subclass_name := \'\';\n"
"registry_set (concat (\'subclass_name_\', resource_name), fix_identifier_case (subclass_name));\n"
"code_files := xpath_eval (\'[xmlns:v=\"http://www.openlinksw.com/vspx/\" \'||\n"
"\' xmlns:vdeps=\"http://www.openlinksw.com/vspx/deps/\"] //v:hidden/@vdeps:code-file\', xe, 0);\n"
"\n"
"xslt_params := vector (\n"
"\'vspx_dbname\', vspx_dbname,\n"
"\'vspx_user\', vspx_user,\n"
"\'vspx_source\', resource_name,\n"
"\'vspx_source_date\', cast (file_stat (concat (http_root (), resource_name)) as varchar),\n"
"\'vspx_compile_date\', cast (now() as varchar),\n"
"\'vspx_compiler_version\', vspx_get_compiler_signature(),\n"
"\'vspx_local_class_name\', cls_name);\n"
"if (\'1\' = registry_get (\'__external_vspx_xslt\'))\n"
"{\n"
"xslt_main_sheet_name := \'file://vspx/vspx.xsl\';\n"
"http (sprintf(\'-- VSPX compiler will use external stylesheet %s for composing SQL\\n\', xslt_main_sheet_name), messages);\n"
"}\n"
"else\n"
"{\n"
"xslt_main_sheet_name := \'http://local.virt/vspx\';\n"
"}\n"
"xt := xslt (xslt_main_sheet_name, xe, xslt_params);\n"
"http ( sprintf (\'-- The following SQL is created by applying %s:\\n\', xslt_main_sheet_name), messages);\n"
"http_value (xt, null, messages);\n"
"vspx_src_store (sql_name, string_output_string (messages));\n"
"return code_files;\n"
"}\n"
"--src vspx.sql:5326\n";
static const char *proc181 =
"#line 5394 \"[executable]/vspx.sql\"\n"
"create procedure vspx_load_sql (\n"
"in vspx_dbname varchar,\n"
"in vspx_user varchar,\n"
"in resource_name varchar,\n"
"inout sql_name varchar)\n"
"{\n"
"\n"
"declare ses any;\n"
"declare cmd, dbg any;\n"
"declare line varchar;\n"
"declare i, is_drop, curline, sline int;\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"ses := 1;\n"
"vspx_src_get (sql_name, ses, 1);\n"
"commit work;\n"
"\n"
"__set_user_id (vspx_user);\n"
"set_qualifier (vspx_dbname);\n"
"cmd := null;\n"
"curline := 0;\n"
"while (1)\n"
"{\n"
"\n"
"line := ses_read_line (ses, 0, 0, 1);\n"
"if (not isstring (line))\n"
"return;\n"
"if (cmd is null and (line like \'create %\' or line like \'drop %\' or line like \'grant %\'))\n"
"{\n"
"cmd := string_output ();\n"
"dbg := string_output ();\n"
"is_drop := 0;\n"
"if (line like \'drop %\')\n"
"is_drop := 1;\n"
"i := 1;\n"
"sline := curline;\n"
"}\n"
"if (rtrim(line, \'\\r\\n \') = \';\')\n"
"{\n"
"declare stmt, stat, msg varchar;\n"
"stmt := string_output_string (cmd);\n"
"if (not is_drop)\n"
"{\n"
"stmt := concat (sprintf (\'#line %d \"%s\"\\n\', sline-1, sql_name), stmt);\n"
"}\n"
"stat := \'00000\'; msg := \'\';\n"
"log_enable (0, 1);\n"
"exec (stmt, stat, msg);\n"
"if (stat = \'00000\')\n"
"{\n"
"commit work;\n"
"}\n"
"else\n"
"{\n"
"rollback work;\n"
"if (not is_drop)\n"
"{\n"
"\n"
"dbg_printf (\'%s\', string_output_string (dbg));\n"
"}\n"
"if (not (stmt like \'drop %\'))\n"
"signal (stat, concat (msg, \'\\nwhile executing the following statement:\\n\', stmt));\n"
"}\n"
"cmd := null;\n"
"dbg := null;\n"
"}\n"
"if (cmd is not null)\n"
"{\n"
"http (line, cmd);\n"
"http (sprintf (\'%03d \', i), dbg);\n"
"http (line, dbg);\n"
"i := i + 1;\n"
"}\n"
"curline := curline + 1;\n"
"}\n"
"}\n"
"--src vspx.sql:5392\n";
static const char *proc182 =
"#line 5475 \"[executable]/vspx.sql\"\n"
"create procedure vspx_src_get (in resource_name varchar, inout ses any, in try_temp int)\n"
"{\n"
"declare is_dav int;\n"
"declare ret any;\n"
"\n"
"is_dav := http_map_get (\'is_dav\');\n"
"\n"
"if (not is_dav)\n"
"{\n"
"if (not (try_temp and registry_get (\'__no_vspx_temp\') <> \'1\'))\n"
"resource_name := concat (http_root (), resource_name);\n"
"\n"
"if (not ses)\n"
"ret := file_to_string (resource_name);\n"
"else\n"
"ses := file_to_string_output (resource_name);\n"
"}\n"
"else\n"
"{\n"
"if (not ses)\n"
"select blob_to_string (RES_CONTENT) into ret from WS.WS.SYS_DAV_RES where RES_FULL_PATH = resource_name;\n"
"else\n"
"{\n"
"declare cnt any;\n"
"ses := string_output ();\n"
"select RES_CONTENT into cnt from WS.WS.SYS_DAV_RES where RES_FULL_PATH = resource_name;\n"
"http (cnt, ses);\n"
"}\n"
"}\n"
"return ret;\n"
"}\n"
"--src vspx.sql:5473\n";
static const char *proc183 =
"#line 5508 \"[executable]/vspx.sql\"\n"
"create procedure vspx_src_store (in resource_name varchar, inout ses any)\n"
"{\n"
"declare is_dav int;\n"
"\n"
"is_dav := http_map_get (\'is_dav\');\n"
"\n"
"if (not is_dav)\n"
"{\n"
"if (registry_get (\'__no_vspx_temp\') <> \'1\')\n"
"string_to_file (resource_name, ses, -2);\n"
"else\n"
"string_to_file (concat (http_root (), resource_name), ses, -2);\n"
"}\n"
"else\n"
"{\n"
"declare rc int;\n"
"log_enable (0, 1);\n"
"rc := DAV_RES_UPLOAD_STRSES_INT (resource_name, ses, \'\', \'110100000NN\',\n"
"coalesce ((select U_NAME from WS.WS.SYS_DAV_USER where U_ID = connection_get (\'DAVUserID\'))),\n"
"coalesce ((select G_NAME from WS.WS.SYS_DAV_GROUP where G_ID = connection_get (\'DAVGroupID\'))),\n"
"null, null, 0);\n"
"\n"
"if (rc < 0)\n"
"signal (\'42000\', sprintf (\'Can\'\'t store the file \'\'%s\'\': DAV error %d\', resource_name, rc) , \'DA010\');\n"
"}\n"
"return;\n"
"}\n"
"--src vspx.sql:5506\n";
static const char *proc184 =
"#line 5537 \"[executable]/vspx.sql\"\n"
"create procedure vspx_base_url (in f varchar)\n"
"{\n"
"if (http_map_get (\'is_dav\'))\n"
"return concat (\'virt://WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT:\',f);\n"
"else\n"
"return concat (\'file://\', f);\n"
"}\n"
"--src vspx.sql:5535\n";
static const char *proc185 =
"#line 5546 \"[executable]/vspx.sql\"\n"
"create procedure vsxp_src_stat (in f varchar)\n"
"{\n"
"if (http_map_get (\'is_dav\'))\n"
"{\n"
"declare tim datetime;\n"
"select RES_MOD_TIME into tim from WS.WS.SYS_DAV_RES where RES_FULL_PATH = f;\n"
"return tim;\n"
"}\n"
"else\n"
"return file_stat (concat (http_root (), f));\n"
"}\n"
"--src vspx.sql:5544\n";
static const char *proc186 =
"#line 5559 \"[executable]/vspx.sql\"\n"
"create procedure vspx_url_stat (in base_uri varchar)\n"
"{\n"
"declare s_url any;\n"
"s_url := WS.WS.PARSE_URI (base_uri);\n"
"if (s_url[0] = \'virt\')\n"
"{\n"
"s_url := split_and_decode (base_uri, 0, \'\\0\\0:\');\n"
"if (s_url[1] <> \'//WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT\')\n"
"return 0;\n"
"declare tim datetime;\n"
"select RES_MOD_TIME into tim from WS.WS.SYS_DAV_RES where RES_FULL_PATH = s_url[2];\n"
"return cast (tim as varchar);\n"
"}\n"
"else if (s_url[0] = \'file\')\n"
"{\n"
"s_url := split_and_decode (base_uri, 0, \'\\0\\0:\');\n"
"return file_stat (concat (http_root (), s_url[1]));\n"
"}\n"
"else\n"
"return 0;\n"
"}\n"
"--src vspx.sql:5557\n";
static const char *proc187 =
"#line 5582 \"[executable]/vspx.sql\"\n"
"create procedure vspx_make_stat_vector (in dep_files any)\n"
"{\n"
"declare inx integer;\n"
"declare dep_string any;\n"
"inx := 0;\n"
"dep_string := null;\n"
"while (inx < length (dep_files))\n"
"{\n"
"declare f_stat any;\n"
"declare f_name varchar;\n"
"\n"
"f_name := cast (dep_files[inx] as varchar);\n"
"f_stat := vspx_url_stat (f_name);\n"
"if (isstring (f_stat))\n"
"dep_string := vector_concat (coalesce (dep_string, vector()) , vector (f_name, f_stat));\n"
"inx := inx + 1;\n"
"}\n"
"\n"
"return dep_string;\n"
"}\n"
"--src vspx.sql:5580\n";
static const char *proc188 =
"#line 5604 \"[executable]/vspx.sql\"\n"
"create procedure vspx_check_file_deps (in resource_name varchar)\n"
"{\n"
"if (registry_get (\'vspx_production_mode\') <> \'1\')\n"
"{\n"
"declare dep_vector any;\n"
"declare inx integer;\n"
"dep_vector := registry_get (sprintf (\'%s_file_deps\', resource_name));\n"
"\n"
"if (not isstring (dep_vector))\n"
"return 1;\n"
"\n"
"dep_vector := deserialize (dep_vector);\n"
"\n"
"if (not isarray (dep_vector))\n"
"return 1;\n"
"\n"
"inx := 0;\n"
"while (inx < length (dep_vector))\n"
"{\n"
"declare saved_stat, saved_url, real_stat varchar;\n"
"\n"
"saved_url := dep_vector[inx];\n"
"saved_stat := dep_vector[inx + 1];\n"
"\n"
"real_stat := vspx_url_stat (saved_url);\n"
"\n"
"if (real_stat <> saved_stat)\n"
"return 0;\n"
"\n"
"inx := inx + 2;\n"
"}\n"
"}\n"
"return 1;\n"
"}\n"
"--src vspx.sql:5602\n";
static const char *proc189 =
"#line 5640 \"[executable]/vspx.sql\"\n"
"create function\n"
"vspx_get_subclass_name (in resource_name varchar, in class_name varchar) returns varchar\n"
"{\n"
"declare subclass_name varchar;\n"
"declare len integer;\n"
"\n"
"subclass_name := registry_get (concat (\'subclass_name_\', resource_name));\n"
"if (isstring (subclass_name) and subclass_name <> \'\')\n"
"{\n"
"return subclass_name;\n"
"}\n"
"return class_name;\n"
"}\n"
"--src vspx.sql:5638\n";
static const char *proc190 =
"#line 5655 \"[executable]/vspx.sql\"\n"
"create function\n"
"vspx_get_class_name (\n"
"in resource_name varchar ) returns varchar\n"
"{\n"
"declare class_name varchar;\n"
"declare len integer;\n"
"\n"
"class_name := fix_identifier_case (resource_name);\n"
"class_name := replace (class_name, \'/\', \'!\');\n"
"class_name := replace (class_name, \':\', \'!\');\n"
"class_name := replace (class_name, \'.\', \'!\');\n"
"class_name := replace (class_name, \'-\', \'!\');\n"
"class_name := replace (class_name, \' \', \'!\');\n"
"class_name := replace (class_name, \'_\', \'__\');\n"
"class_name := replace (class_name, \'!\', \'_\');\n"
"len := length (class_name);\n"
"if (len >= 32)\n"
"class_name := concat (md5 (class_name), subseq (class_name, len-31));\n"
"return fix_identifier_case (concat (\'page_\', class_name));\n"
"}\n"
"--src vspx.sql:5653\n";
static const char *proc191 =
"#line 5677 \"[executable]/vspx.sql\"\n"
"create procedure vspx_get_signature (in dbname varchar, in usr varchar, in res varchar)\n"
"{\n"
"declare signature varchar;\n"
"signature := concat (\n"
"\'&dbname=\', dbname,\n"
"\'&user=\', usr,\n"
"\'&src=\', cast (vsxp_src_stat (res) as varchar),\n"
"vspx_get_compiler_signature() );\n"
"return signature;\n"
"}\n"
"--src vspx.sql:5675\n";
static const char *proc192 =
"#line 5689 \"[executable]/vspx.sql\"\n"
"create procedure vspx_load_code (in vspx_dbname varchar, in vspx_user varchar,\n"
"in resource_name varchar, in code_files any)\n"
"{\n"
"declare i, l int;\n"
"declare is_dav int;\n"
"\n"
"is_dav := http_map_get (\'is_dav\');\n"
"i := 0; l := length (code_files);\n"
"while (i < l)\n"
"{\n"
"declare url any;\n"
"url := cast (code_files[i] as varchar);\n"
"url := WS.WS.EXPAND_URL (resource_name, url);\n"
"\n"
"dbg_printf (\'Loading: [%s]\', url);\n"
"if (not is_dav and registry_get (\'__no_vspx_temp\') <> \'1\')\n"
"url := concat (http_root (), url);\n"
"vspx_load_sql (vspx_dbname, vspx_user, resource_name, url);\n"
"dbg_printf (\'Done: [%s]\', url);\n"
"i := i + 1;\n"
"}\n"
"}\n"
"--src vspx.sql:5687\n";
static const char *proc193 =
"#line 5713 \"[executable]/vspx.sql\"\n"
"create procedure vspx_report_debug_log (in page vspx_page)\n"
"{\n"
"declare sheet_name varchar;\n"
"if (\'1\' = registry_get (\'__external_vspx_xslt\'))\n"
"sheet_name := \'file://vspx/vspx_log_format.xsl\';\n"
"else\n"
"sheet_name := \'http://local.virt/vspx_log_format\';\n"
"http (\']]>-\' || \'->]]></table></div></ins></del><hr>\');\n"
"http_value (xslt (sheet_name, page.vc_get_debug_log(\'xmp\'), vector(\'tgt\',\'http\')));\n"
"}\n"
"--src vspx.sql:5711\n";
static const char *proc194 =
"#line 5725 \"[executable]/vspx.sql\"\n"
"create procedure vspx_get_user_info (inout vspx_dbname varchar, inout vspx_user varchar)\n"
"{\n"
"\n"
"vspx_dbname := fix_identifier_case (dbname());\n"
"\n"
"vspx_user := fix_identifier_case (http_map_get (\'vsp_uid\'));\n"
"}\n"
"--src vspx.sql:5723\n";
static const char *proc195 =
"#line 5735 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"vspx_dispatch (in resource_name varchar, inout path any, inout params any, inout lines any, in class_name varchar := null, in compile_only int := 0, in vspx_dbname varchar := NULL, in vspx_user varchar := NULL)\n"
"{\n"
"declare signature varchar;\n"
"declare compile, executed, now int;\n"
"declare recompilation_is_allowed int;\n"
"declare page vspx_page;\n"
"declare full_class_name, q_full_class_name varchar;\n"
"declare subclass_name, full_subclass_name, q_full_subclass_name varchar;\n"
"declare h any;\n"
"declare new_signature varchar;\n"
"declare vspxm_name, sql_name varchar;\n"
"declare unlink, deadl int;\n"
"declare res_pos, tmp, vdir, vres, code_files any;\n"
"\n"
"\n"
"\n"
"if (vspx_user is null and vspx_dbname is null)\n"
"vspx_get_user_info (vspx_dbname, vspx_user);\n"
"if (class_name is null)\n"
"class_name := vspx_get_class_name (resource_name);\n"
"full_class_name := concat (vspx_dbname, \'.\', vspx_user, \'.\', class_name);\n"
"q_full_class_name := concat (\'\"\',vspx_dbname, \'\".\"\', vspx_user, \'\".\', class_name);\n"
"\n"
"subclass_name := vspx_get_subclass_name (resource_name, class_name);\n"
"full_subclass_name := concat (vspx_dbname, \'.\', vspx_user, \'.\', subclass_name);\n"
"q_full_subclass_name := concat (\'\"\',vspx_dbname, \'\".\"\', vspx_user, \'\".\', subclass_name);\n"
"signature := vspx_get_signature (vspx_dbname, vspx_user, resource_name);\n"
"\n"
"unlink := 0; vspxm_name := NULL; sql_name := NULL;\n"
"\n"
"if ((registry_get (resource_name) = signature) and udt_is_available (full_subclass_name)\n"
"and vspx_check_file_deps (resource_name)) {\n"
"goto run;\n"
"}\n"
"\n"
"icc_lock_at_commit (\'vspx_dispatch\', 1);\n"
"commit work;\n"
"log_enable (0);\n"
"\n"
"if ((registry_get (resource_name) = signature) and udt_is_available (full_subclass_name)\n"
"and vspx_check_file_deps (resource_name)) {\n"
"icc_unlock_now (\'vspx_dispatch\');\n"
"goto run;\n"
"}\n"
"\n"
"generate:\n"
"{\n"
"\n"
"declare stat, msg varchar;\n"
"declare exit handler for sqlstate \'*\' {\n"
"\n"
"if (udt_is_available (full_subclass_name) and subclass_name <> class_name)\n"
"exec (concat (\'drop type \', q_full_subclass_name), stat, msg);\n"
"if (udt_is_available (full_class_name))\n"
"exec (concat (\'drop type \', q_full_class_name), stat, msg );\n"
"registry_set (resource_name, \'\');\n"
"if (unlink) {\n"
"\n"
"file_delete (vspxm_name, 1);\n"
"file_delete (vspxm_name||\'0\', 1);\n"
"file_delete (sql_name, 1);\n"
"}\n"
"log_enable (1);\n"
"icc_unlock_now (\'vspx_dispatch\');\n"
"prof_sample (\'VSPX compilation\', msec_time () - now, 4);\n"
"resignal;\n"
"};\n"
"\n"
"registry_set (resource_name, concat (signature, \'!\'));\n"
"now := msec_time ();\n"
"stat := \'00000\';\n"
"msg := \'\';\n"
"unlink := vspx_make_temp_names (resource_name, vspxm_name, sql_name);\n"
"code_files := vspx_make_sql (vspx_dbname, vspx_user, resource_name, vspxm_name, sql_name, class_name);\n"
"\n"
"subclass_name := vspx_get_subclass_name (resource_name, class_name);\n"
"full_subclass_name := concat (vspx_dbname, \'.\', vspx_user, \'.\', subclass_name);\n"
"if (subclass_name <> class_name)\n"
"exec (concat (\'drop type \', q_full_subclass_name), stat, msg);\n"
"exec (concat (\'drop type \', q_full_class_name), stat, msg );\n"
"\n"
"vspx_load_sql (vspx_dbname, vspx_user, resource_name, sql_name);\n"
"vspx_load_code (vspx_dbname, vspx_user, resource_name, code_files);\n"
"compile := msec_time () - now;\n"
"registry_set (resource_name, signature);\n"
"if (unlink) {\n"
"\n"
"file_delete (vspxm_name, 1);\n"
"file_delete (vspxm_name||\'0\', 1);\n"
"file_delete (sql_name, 1);\n"
"}\n"
"log_enable (0, 1);\n"
"exec (concat (\'grant execute on \', q_full_class_name, \' to \"\', vspx_user, \'\"\'), stat, msg);\n"
"if (subclass_name <> class_name)\n"
"exec (concat (\'grant execute on \', q_full_subclass_name, \' to \"\', vspx_user, \'\"\'), stat, msg);\n"
"commit work;\n"
"icc_unlock_now (\'vspx_dispatch\');\n"
"goto run;\n"
"}\n"
"\n"
"run:\n"
"log_enable (1, 1);\n"
"\n"
"if (compile_only)\n"
"return null;\n"
"\n"
"now := msec_time ();\n"
"deadl := null;\n"
"__set_user_id (http_map_get (\'vsp_uid\'));\n"
"set_qualifier (vspx_dbname);\n"
"run_again:\n"
"page := __udt_instantiate_class (full_subclass_name, -1);\n"
"page.vc_page := page;\n"
"h := udt_implements_method (page, class_name, 1);\n"
"if (h) {\n"
"declare ss any;\n"
"declare icnt int;\n"
"declare exit handler for sqlstate \'*\', not found {\n"
"declare rc int;\n"
"\n"
"rollback work;\n"
"if (page.vc_debug_log_acc is not null)\n"
"page.vc_debug_log (\'begin\', \'Page error handler\', sprintf(\'Error: \'\'%s\'\': %s\', __SQL_STATE, __SQL_MESSAGE));\n"
"rc := page.vc_handle_error (__SQL_STATE, __SQL_MESSAGE, deadl);\n"
"if (not rc) {\n"
"prof_sample (resource_name, msec_time () - now, 4);\n"
"if (page.vc_debug_log_acc is not null)\n"
"{\n"
"page.vc_debug_log (\'fatal\', \'Page error handler has returned zero.\', null);\n"
"vspx_report_debug_log (page);\n"
"return;\n"
"}\n"
"resignal;\n"
"}\n"
"if (isinteger (deadl) and deadl > 0 and __SQL_STATE = \'40001\') {\n"
"goto run_again;\n"
"}\n"
"if (page.vc_debug_log_acc is not null)\n"
"{\n"
"page.vc_debug_log (\'fatal\', \'Page error handler has handled the error.\', null);\n"
"vspx_report_debug_log (page);\n"
"return;\n"
"}\n"
"return;\n"
"};\n"
"call (h) (page, path, params, lines);\n"
"page.vc_data_bind (page.vc_event);\n"
"if (page.vc_event.ve_is_post) {\n"
"page.vc_post(page.vc_event);\n"
"page.vc_user_post(page.vc_event);\n"
"page.vc_action(page.vc_event);\n"
"}\n"
"ss := string_output ();\n"
"icnt := 0;\n"
"page.vc_pre_render (ss, icnt);\n"
"page.vc_state_deserialize (ss, icnt);\n"
"page.vc_render ();\n"
"executed := msec_time () - now;\n"
"}\n"
"if (\'1\' = registry_get (\'__external_vspx_xslt\')) {\n"
"dbg_obj_print (sprintf (\'Compiled: %d, Executed: %d\', compile, executed));\n"
"}\n"
"if (compile <> 0)\n"
"prof_sample (\'VSPX compilation\', compile, 1);\n"
"prof_sample (resource_name, executed, 1);\n"
"if (page.vc_debug_log_acc is not null)\n"
"vspx_report_debug_log (page);\n"
"return page;\n"
"}\n"
"--src vspx.sql:5733\n";
static const char *proc196 =
"#line 5908 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"vspx_verify_pass (in auth_vec any, in passwd varchar)\n"
"{\n"
"return vsp_auth_verify_pass (auth_vec,\n"
"get_keyword (\'username\' , auth_vec, \'\'),\n"
"get_keyword (\'realm\', auth_vec, \'\'),\n"
"get_keyword (\'uri\', auth_vec, \'\'),\n"
"get_keyword (\'nonce\', auth_vec, \'\'),\n"
"get_keyword (\'nc\', auth_vec, \'\'),\n"
"get_keyword (\'cnonce\', auth_vec, \'\'),\n"
"get_keyword (\'qop\', auth_vec, \'\'),\n"
"passwd);\n"
"}\n"
"--src vspx.sql:5906\n";
static const char *proc197 =
"#line 5924 \"[executable]/vspx.sql\"\n"
" create procedure\n"
"vspx_get_cookie_vec (in lines any)\n"
"{\n"
"declare cookie_vec any;\n"
"declare i,l int;\n"
"declare cookie_str varchar;\n"
"cookie_str := http_request_header (lines, \'Cookie\');\n"
"\n"
"if (not isstring (cookie_str))\n"
"return vector ();\n"
"cookie_vec := split_and_decode (cookie_str, 0, \'\\0\\0;=\');\n"
"i := 0; l := length (cookie_vec);\n"
"while (i < l)\n"
"{\n"
"declare kw, var varchar;\n"
"kw := trim (cookie_vec[i]);\n"
"var := cookie_vec[i+1];\n"
"if (var is not null)\n"
"var := trim (var);\n"
"aset (cookie_vec, i, kw);\n"
"aset (cookie_vec, i + 1, var);\n"
"i := i + 2;\n"
"}\n"
"return cookie_vec;\n"
"}\n"
"--src vspx.sql:5922\n";
static const char *proc198 =
"#line 5952 \"[executable]/vspx.sql\"\n"
" create procedure\n"
"vspx_do_compact (in arr any) returns any\n"
"{\n"
"declare i, l int;\n"
"declare ret any;\n"
"if (arr is null or not isarray (arr))\n"
"return arr;\n"
"i := 0; l := length (arr);\n"
"if (mod(l,2))\n"
"return arr;\n"
"ret := vector ();\n"
"while (i < l)\n"
"{\n"
"if (arr[i] is not null and arr[i+1] is not null)\n"
"ret := vector_concat (ret, vector (arr[i], arr[i+1]));\n"
"i := i + 2;\n"
"}\n"
"return ret;\n"
"}\n"
"--src vspx.sql:5950\n";
static const char *proc199 =
"#line 5977 \"[executable]/vspx.sql\"\n"
" create procedure DB.DBA.VSPX_COLUMNS_META (in sql varchar)\n"
"{\n"
"declare mtd, res any;\n"
"declare i, l int;\n"
"exec_metadata (sql, null, null, mtd);\n"
"res := string_output ();\n"
"mtd := mtd[0];\n"
"i := 0; l := length (mtd);\n"
"while (i < l)\n"
"{\n"
"declare colname varchar;\n"
"if (isstring (mtd[i][8]))\n"
"colname := mtd[i][8];\n"
"else\n"
"colname := mtd[i][0];\n"
"http (sprintf (\'<column name=\"%s\" />\\n\', colname), res);\n"
"i := i + 1;\n"
"}\n"
"return xml_tree_doc(string_output_string (res));\n"
"}\n"
"--src vspx.sql:5975\n";
static const char *other276 =
"grant execute on DB.DBA.VSPX_COLUMNS_META to public\n";
static const char *proc200 =
"#line 6003 \"[executable]/vspx.sql\"\n"
" create procedure VSPX_COLUMNS_META_TYPES (in col varchar, in tab varchar)\n"
"{\n"
"declare mtd, res, sql, ty any;\n"
"declare i, l int;\n"
"sql := \'select \' || col || \' from \' || tab;\n"
"exec_metadata (sql, null, null, mtd);\n"
"mtd := mtd[0];\n"
"i := 0; l := length (mtd);\n"
"if (l > 0 and length (mtd[0]) > 1)\n"
"{\n"
"ty := lower (dv_type_title (mtd[0][1]));\n"
"if (ty like \'long %\')\n"
"ty := substring (ty, 6, length (ty));\n"
"res := ty;\n"
"return res;\n"
"}\n"
"else\n"
"return \'varchar\';\n"
"}\n"
"--src vspx.sql:6001\n";
static const char *other277 =
"grant execute on DB.DBA.VSPX_COLUMNS_META_TYPES to public\n";
static const char *proc201 =
"#line 6027 \"[executable]/vspx.sql\"\n"
"create procedure VSPX_PK_COLUMNS (in tab varchar)\n"
"{\n"
"declare ses, ret any;\n"
"ses := string_output ();\n"
"for select \\COLUMN from\n"
"DB.DBA.SYS_KEYS v1,\n"
"DB.DBA.SYS_KEYS v2,\n"
"DB.DBA.SYS_KEY_PARTS kp,\n"
"DB.DBA.SYS_COLS\n"
"where\n"
"0 = casemode_strcmp (v1.key_table, tab)\n"
"and __any_grants (v1.KEY_TABLE)\n"
"and v1.KEY_IS_MAIN = 1\n"
"and v1.KEY_MIGRATE_TO is NULL\n"
"and v1.KEY_SUPER_ID = v2.KEY_ID\n"
"and kp.KP_KEY_ID = v1.KEY_ID\n"
"and kp.KP_NTH < v1.KEY_DECL_PARTS\n"
"and COL_ID = kp.KP_COL and \\COLUMN <> \'_IDN\'\n"
"order by v1.KEY_TABLE, kp.KP_NTH do\n"
"{\n"
"http (sprintf (\'<column name=\"%s\" />\\n\', \\COLUMN), ses);\n"
"}\n"
"ret := string_output_string (ses);\n"
"if (length (ret) = 0)\n"
"ret := \'<void />\';\n"
"return xml_tree_doc(ret);\n"
"}\n"
"--src vspx.sql:6025\n";
static const char *other278 =
"grant execute on VSPX_PK_COLUMNS to public\n";
static const char *other279 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) VALUES (\'http://www.openlinksw.com/vspx/:columns_meta\', \'DB.DBA.VSPX_COLUMNS_META\')\n";
static const char *other280 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) VALUES (\'http://www.openlinksw.com/vspx/:columns_type\', \'DB.DBA.VSPX_COLUMNS_META_TYPES\')\n";
static const char *other281 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) VALUES (\'http://www.openlinksw.com/vspx/:pk_columns\', \'DB.DBA.VSPX_PK_COLUMNS\')\n";
static const char *other282 =
"xpf_extension (\'http://www.openlinksw.com/vspx/:columns_meta\', \'DB.DBA.VSPX_COLUMNS_META\', 0)\n";
static const char *other283 =
"xpf_extension (\'http://www.openlinksw.com/vspx/:columns_type\', \'DB.DBA.VSPX_COLUMNS_META_TYPES\', 0)\n";
static const char *other284 =
"xpf_extension (\'http://www.openlinksw.com/vspx/:pk_columns\', \'DB.DBA.VSPX_PK_COLUMNS\', 0)\n";
static const char *proc202 =
"#line 6086 \"[executable]/vspx.sql\"\n"
" create procedure\n"
"dbg_vspx_control (in control vspx_control, in tab int default 0)\n"
"{\n"
"declare i, l int;\n"
"declare chil vspx_control;\n"
"declare uf vspx_field;\n"
"declare sp, val, und varchar;\n"
"if (control is null or not udt_instance_of (control, fix_identifier_case (\'vspx_control\')))\n"
"return;\n"
"l := length (control.vc_children);\n"
"if (not tab)\n"
"dbg_obj_print (\'=============BEGIN=============\');\n"
"if (tab >= 2)\n"
"{\n"
"sp := repeat (\' \', tab);\n"
"sp := concat(sp, \'+-\');\n"
"}\n"
"else\n"
"sp := repeat (\' \', tab);\n"
"\n"
"if (control.vc_inside_form)\n"
"und := \'*\';\n"
"else\n"
"und := \'-\';\n"
"\n"
"uf := null;\n"
"val := \'NONE\';\n"
"if (udt_instance_of (control, fix_identifier_case (\'vspx_field\')))\n"
"{\n"
"declare _ctrl any;\n"
"_ctrl := control;\n"
"uf := _ctrl;\n"
"if (not isstring (uf.ufl_value) and isarray(uf.ufl_value))\n"
"val := sprintf (\'vector (l=%d)\', length(uf.ufl_value));\n"
"else\n"
"val := cast (uf.ufl_value as varchar);\n"
"}\n"
"dbg_obj_print (substring (sprintf (\'%s%s%s (%s) (%s) %s %s [value=%s] %s\', sp, und, control.vc_name, udt_instance_of (control), control.vc_instance_name, case control.vc_focus when 1 then \'In focus\' else \'\' end, case control.vc_enabled when 1 then \'\' else \'DISABLED\' end, val, case when uf is not null and uf.ufl_selected then \'SELECTED\' else \'\' end), 1, 120));\n"
"if (l and not (l = 1 and control.vc_children[0] is null))\n"
"dbg_obj_print (sprintf (\'%s|\', repeat (\' \', tab+2)));\n"
"while (i < l)\n"
"{\n"
"chil := control.vc_children[i];\n"
"if (chil is not null)\n"
"dbg_vspx_control (chil, tab + 2);\n"
"i := i + 1;\n"
"}\n"
"if (not tab)\n"
"dbg_obj_print (\'=============END=============\');\n"
"}\n"
"--src vspx.sql:6084\n";
static const char *proc203 =
"#line 6139 \"[executable]/vspx.sql\"\n"
" create procedure\n"
"vspx_uri_compose (in res any)\n"
"{\n"
"declare _full_path, _elm varchar;\n"
"declare idx integer;\n"
"\n"
"if (length (res) < 6)\n"
"signal (\'.....\', \'vspx_uri_compose needs a vector of lenght 6 or greater\');\n"
"\n"
"idx := 0;\n"
"_elm := \'\';\n"
"_full_path := \'\';\n"
"while (idx < 6)\n"
"{\n"
"_elm := res[idx];\n"
"if (isstring (_elm) and _elm <> \'\')\n"
"{\n"
"if (idx = 0)\n"
"_full_path := concat (_elm, \':\');\n"
"else if (idx = 1)\n"
"_full_path := concat (_full_path, \'//\', _elm);\n"
"else if (idx = 2)\n"
"_full_path := concat (_full_path, _elm);\n"
"else if (idx = 3)\n"
"_full_path := concat (_full_path, \';\', _elm);\n"
"else if (idx = 4)\n"
"_full_path := concat (_full_path, \'?\', _elm);\n"
"else if (idx = 5)\n"
"_full_path := concat (_full_path, \'#\', _elm);\n"
"}\n"
"idx := idx + 1;\n"
"}\n"
"\n"
"return _full_path;\n"
"}\n"
"--src vspx.sql:6137\n";
static const char *proc204 =
"#line 6177 \"[executable]/vspx.sql\"\n"
" create procedure\n"
"vspx_uri_add_parameters (in uri varchar, in pars varchar)\n"
"{\n"
"declare hinfo any;\n"
"declare par_str varchar;\n"
"uri := cast (uri as varchar);\n"
"hinfo := WS.WS.PARSE_URI (uri);\n"
"par_str := hinfo[4];\n"
"if (par_str <> \'\' and pars <> \'\')\n"
"par_str := par_str || \'&\' || pars;\n"
"else if (pars <> \'\')\n"
"par_str := pars;\n"
"aset (hinfo, 4, par_str);\n"
"return vspx_uri_compose (hinfo);\n"
"}\n"
"--src vspx.sql:6175\n";
static const char *proc205 =
"#line 6196 \"[executable]/vspx.sql\"\n"
" create procedure vspx_xforms_params_parse (inout cnt any)\n"
"{\n"
"declare xt, ret, ss any;\n"
"if (not xslt_is_sheet (\'http://local.virt/xforms_params\'))\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">\', ses);\n"
"http (\'<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"yes\" />\', ses);\n"
"http (\'<xsl:template match=\"/\">\', ses);\n"
"http (\'<xsl:apply-templates select=\"post/*\" />\', ses);\n"
"http (\'</xsl:template>\', ses);\n"
"http (\'<xsl:template match=\"event__target\">&<xsl:value-of select=\".\"/>=<xsl:value-of select=\".\"/></xsl:template>\', ses);\n"
"http (\'<xsl:template match=\"*\">&<xsl:value-of select=\"local-name()\"/>=<xsl:value-of select=\".\" disable-output-escaping=\"yes\"/></xsl:template>\', ses);\n"
"http (\'</xsl:stylesheet>\', ses);\n"
"xslt_sheet (\'http://local.virt/xforms_params\', xml_tree_doc (xml_tree (ses)));\n"
"}\n"
"\n"
"\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"return vector (\'Content\', cnt);\n"
"};\n"
"xt := xslt (\'http://local.virt/xforms_params\', xml_tree_doc (xml_tree (cnt)));\n"
"ss := string_output ();\n"
"http_value (xt, null, ss);\n"
"xt := string_output_string (ss);\n"
"ret := split_and_decode (xt, 0, \'\\0\\0&=\');\n"
"return ret;\n"
"}\n"
"--src vspx.sql:6194\n";
static const char *other285 =
"insert soft \"DB\".\"DBA\".\"SYS_SCHEDULED_EVENT\" (SE_INTERVAL, SE_LAST_COMPLETED, SE_NAME, SE_SQL, SE_START)\n"
"values (1440, NULL, \'VSPX_SESSION_EXPIRE\', \'VSPX_EXPIRE_SESSIONS ()\', now())\n";
static const char *proc206 =
"#line 6235 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"VSPX_EXPIRE_SESSIONS ()\n"
"{\n"
"delete from VSPX_SESSION where VS_EXPIRY is null;\n"
"delete from VSPX_SESSION where datediff (\'minute\', VS_EXPIRY, now()) > 120;\n"
"\n"
"\n"
"}\n"
"--src vspx.sql:6233\n";
static const char *proc207 =
"#line 6246 \"[executable]/vspx.sql\"\n"
"create procedure DB.DBA.sys_xpath_localfile_eval(in content any, in expr any) {\n"
"declare retval, result, pos, eval_result integer;\n"
"declare pwd, dav_content any;\n"
"declare xml_tree, xml_entity any;\n"
"\n"
"select pwd_magic_calc(\'dav\', U_PASSWORD, 1) into pwd from DB.DBA.SYS_USERS where U_NAME=\'dav\' and U_IS_ROLE=0;\n"
"retval := 0;\n"
"\n"
"result := cast(DB.DBA.DAV_SEARCH_ID(\'/DAV/temp/\', \'c\') as integer);\n"
"if(result < 0) {\n"
"\n"
"result := cast(DB.DBA.DAV_COL_CREATE(\'/DAV/temp/\', \'110110110R\', \'dav\', \'dav\', \'dav\', pwd) as integer);\n"
"if(result < 0) {\n"
"signal(\'XP001\', \'DAV Collection /DAV/temp/ can not be created.\');\n"
"return;\n"
"}\n"
"}\n"
"\n"
"result := cast(DB.DBA.DAV_RES_UPLOAD(\'/DAV/temp/temp.xml\', content, \'text/html\',\'110110110R\',\'dav\',\'dav\',\'dav\',pwd) as INTEGER);\n"
"if(result < 0) {\n"
"signal(\'XP002\', \'DAV Resource /DAV/temp/temp.xml can not be uploaded.\');\n"
"return;\n"
"}\n"
"\n"
"select blob_to_string(RES_CONTENT) into dav_content from WS.WS.SYS_DAV_RES where RES_FULL_PATH = \'/DAV/temp/temp.xml\';\n"
"\n"
"\n"
"{\n"
"again:\n"
"pos := strstr(dav_content, \'---BODY\');\n"
"if (pos is not null)\n"
"{\n"
"dav_content := subseq(dav_content, pos + length(\'---BODY\'));\n"
"goto again;\n"
"}\n"
"}\n"
"\n"
"pos := strstr(dav_content, \'\\n\');\n"
"dav_content := subseq(dav_content, pos + 1);\n"
"pos := strstr(dav_content, \'---END BODY\');\n"
"dav_content := subseq(dav_content, 0, pos);\n"
"\n"
"xml_entity := xtree_doc (dav_content, 0);\n"
"\n"
"eval_result := xpath_eval(expr, xml_entity, 1);\n"
"dbg_obj_print(eval_result);\n"
"\n"
"delete from WS.WS.SYS_DAV_RES where RES_FULL_PATH = \'/DAV/temp/temp.xml\';\n"
"\n"
"result(eval_result);\n"
"return retval;\n"
"}\n"
"--src vspx.sql:6244\n";
static const char *proc208 =
"#line 6300 \"[executable]/vspx.sql\"\n"
"create procedure DB.DBA.sys_save_http_history(in vdir any, in vres any)\n"
"{\n"
"declare _ext, result, name, content, pwd, cnt any;\n"
"\n"
"if (registry_get (\'__block_http_history\') = http_path ()) \n"
"{\n"
"return;\n"
"}\n"
"vres := trim (vres);\n"
"\n"
"_ext := subseq (vres, strrchr (vres, \'.\') + 1);\n"
"if (exists (select 1 from WS.WS.HTTP_SES_TRAP_DISABLE where lcase (EXT) = lcase (_ext)))\n"
"return;\n"
"\n"
"\n"
"if (length (vres) > 0) \n"
"{\n"
"declare p any;\n"
"p := strstr (vres, \'?\');\n"
"if (p) \n"
"{\n"
"vres := subseq(vres, 0, p);\n"
"}\n"
"}\n"
"name := sprintf (\'%06d%s\', sequence_next (\'sys_http_recording\'), vres);\n"
"name := replace (name, \'-\', \'_\');\n"
"name := replace (name, \' \', \'_\');\n"
"name := replace (name, \':\', \'_\');\n"
"name := replace (name, \'/\', \'_\');\n"
"name := replace (name, \'.\', \'_\');\n"
"name := replace (name, \'&\', \'_\');\n"
"\n"
"content := http_full_request (0);\n"
"if (registry_get (\'__save_http_history_on_disk\') = \'1\')\n"
"{\n"
"if (file_stat (\'./sys_http_recording\') = 0)\n"
"signal (\'VSPX9\', \'Can not upload resource into sys_http_recording/ directory\');\n"
"if (length (name) > 200)\n"
"name := subseq (name, 0, 200);\n"
"string_to_file (\'./sys_http_recording/\' || name, content, -2);\n"
"}\n"
"else\n"
"{\n"
"name := concat (\'/DAV/sys_http_recording/\', name);\n"
"\n"
"result := cast (DB.DBA.DAV_SEARCH_ID (\'/DAV/sys_http_recording/\', \'c\') as integer);\n"
"if (result < 0) \n"
"{\n"
"\n"
"result := cast (DB.DBA.DAV_COL_CREATE_INT (\'/DAV/sys_http_recording/\', \'110100000NN\', \'dav\', \'dav\', \'dav\', null, \n"
"0, 0, 0, http_dav_uid (), http_admin_gid ()) as integer);\n"
"if(result < 0) \n"
"{\n"
"signal (\'VSPX9\', \'Can not create /DAV/sys_http_recording/ directory\');\n"
"return;\n"
"}\n"
"}\n"
"result := cast (DB.DBA.DAV_RES_UPLOAD_STRSES_INT (name, content,\'text/html\',\'110100000NN\',\'dav\',\'dav\', \'dav\', null, \n"
"0, now (), now (), null, http_dav_uid (), http_admin_gid (), 0) as integer);\n"
"if (result < 0) \n"
"{\n"
"signal (\'VSPX9\', \'Can not upload resource into /DAV/sys_http_recording/ directory\');\n"
"}\n"
"}\n"
"}\n"
"--src vspx.sql:6298\n";
static const char *proc209 =
"#line 6368 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"cal_icell (inout control vspx_control, in inx int)\n"
"{\n"
"return (control.vc_parent as vspx_row_template).te_rowset[inx];\n"
"}\n"
"--src vspx.sql:6366\n";
static const char *other286 =
"grant execute on vspx_event to public\n";
static const char *other287 =
"grant execute on vspx_control to public\n";
static const char *other288 =
"grant execute on vspx_attribute to public\n";
static const char *other289 =
"grant execute on vspx_page to public\n";
static const char *other290 =
"grant under on vspx_page to public\n";
static const char *other291 =
"grant execute on vspx_row_template to public\n";
static const char *other292 =
"grant execute on vspx_form to public\n";
static const char *other293 =
"grant execute on vspx_tab to public\n";
static const char *other294 =
"grant execute on vspx_template to public\n";
static const char *other295 =
"grant execute on vspx_update_form to public\n";
static const char *other296 =
"grant execute on vspx_login_form to public\n";
static const char *other297 =
"grant execute on vspx_field to public\n";
static const char *other298 =
"grant execute on vspx_column to public\n";
static const char *other299 =
"grant execute on vspx_update_field to public\n";
static const char *other300 =
"grant execute on vspx_isql to public\n";
static const char *other301 =
"grant execute on vspx_text to public\n";
static const char *other302 =
"grant execute on vspx_textarea to public\n";
static const char *other303 =
"grant execute on vspx_label to public\n";
static const char *other304 =
"grant execute on vspx_check_box to public\n";
static const char *other305 =
"grant execute on vspx_radio_button to public\n";
static const char *other306 =
"grant execute on vspx_radio_group to public\n";
static const char *other307 =
"grant execute on vspx_url to public\n";
static const char *other308 =
"grant execute on vspx_button to public\n";
static const char *other309 =
"grant execute on vspx_submit to public\n";
static const char *other310 =
"grant execute on vspx_logout_button to public\n";
static const char *other311 =
"grant execute on vspx_return_button to public\n";
static const char *other312 =
"grant execute on vspx_delete_button to public\n";
static const char *other313 =
"grant execute on vspx_calendar to public\n";
static const char *other314 =
"grant execute on vspx_validator to public\n";
static const char *other315 =
"grant execute on vspx_range_validator to public\n";
static const char *other316 =
"grant execute on vspx_data_set to public\n";
static const char *other317 =
"grant execute on vspx_data_source to public\n";
static const char *other318 =
"grant execute on vspx_data_grid to public\n";
static const char *other319 =
"grant execute on vspx_select_list to public\n";
static const char *other320 =
"grant execute on vspx_data_list to public\n";
static const char *other321 =
"grant execute on vspx_login to public\n";
static const char *other322 =
"grant execute on vspx_browse_button to public\n";
static const char *other323 =
"grant execute on vspx_tree to public\n";
static const char *other324 =
"grant execute on vspx_tree_node to public\n";
static const char *other325 =
"grant execute on vspx_vscx to public\n";
static const char *tbl10 =
"create table VSPX_CUSTOM_CONTROL\n"
"(\n"
"VCC_TAG_NAME varchar not null primary key,\n"
"VCC_CLASS varchar not null,\n"
"VCC_FUNCTION varchar not null\n"
")\n";
static const char *proc210 =
"#line 6504 \"[executable]/vspx.sql\"\n"
" create procedure VSPX_CONTROL_EXISTS (in name varchar)\n"
"{\n"
"\n"
"if (exists (select 1 from VSPX_CUSTOM_CONTROL\n"
"where VCC_TAG_NAME = name and __proc_exists (VCC_FUNCTION)))\n"
"return 1;\n"
"return null;\n"
"}\n"
"--src vspx.sql:6502\n";
static const char *other326 =
"grant execute on VSPX_CONTROL_EXISTS to public\n";
static const char *proc211 =
"#line 6518 \"[executable]/vspx.sql\"\n"
" create procedure VSPX_CUSTOM_CLASS_NAME (in name varchar)\n"
"{\n"
"declare class_name varchar;\n"
"select VCC_CLASS into class_name from VSPX_CUSTOM_CONTROL where VCC_TAG_NAME = name;\n"
"return class_name;\n"
"}\n"
"--src vspx.sql:6516\n";
static const char *other327 =
"grant execute on VSPX_CUSTOM_CLASS_NAME to public\n";
static const char *proc212 =
"#line 6530 \"[executable]/vspx.sql\"\n"
" create procedure VSPX_CLASS_PARSER (in name varchar, in tag any)\n"
"{\n"
"declare fn varchar;\n"
"declare ss any;\n"
"select VCC_FUNCTION into fn from VSPX_CUSTOM_CONTROL where VCC_TAG_NAME = name;\n"
"ss := string_output ();\n"
"call (fn) (tag, ss);\n"
"return string_output_string (ss);\n"
"}\n"
"--src vspx.sql:6528\n";
static const char *other328 =
"grant execute on VSPX_CLASS_PARSER to public\n";
static const char *other329 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) values\n"
"(\'http://www.openlinksw.com/vspx/:vcc_exists\', \'DB.DBA.VSPX_CONTROL_EXISTS\')\n";
static const char *other330 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) values\n"
"(\'http://www.openlinksw.com/vspx/:vcc_instantiate\', \'DB.DBA.VSPX_CLASS_PARSER\')\n";
static const char *other331 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) values\n"
"(\'http://www.openlinksw.com/vspx/:vcc_class_name\', \'DB.DBA.VSPX_CUSTOM_CLASS_NAME\')\n";
static const char *other332 =
"xpf_extension (\'http://www.openlinksw.com/vspx/:vcc_exists\', \'DB.DBA.VSPX_CONTROL_EXISTS\', 0)\n";
static const char *other333 =
"xpf_extension (\'http://www.openlinksw.com/vspx/:vcc_instantiate\', \'DB.DBA.VSPX_CLASS_PARSER\', 0)\n";
static const char *other334 =
"xpf_extension (\'http://www.openlinksw.com/vspx/:vcc_class_name\', \'DB.DBA.VSPX_CUSTOM_CLASS_NAME\', 0)\n";
static const char *proc213 =
"#line 6567 \"[executable]/vspx.sql\"\n"
"create procedure\n"
"VSPX_REGISTER_CONTROL (in tag varchar, in class_name varchar, in func varchar)\n"
"{\n"
"insert replacing VSPX_CUSTOM_CONTROL (VCC_TAG_NAME, VCC_CLASS, VCC_FUNCTION)\n"
"values (tag, class_name, func);\n"
"}\n"
"--src vspx.sql:6565\n";
static const char *proc214 =
"#line 6577 \"[executable]/vspx.sql\"\n"
" create procedure\n"
"vspx_sid_generate ()\n"
"{\n"
"declare tim, ip, path varchar;\n"
"tim := datestring (now ());\n"
"ip := http_client_ip ();\n"
"if (is_http_ctx ())\n"
"path := http_path ();\n"
"else\n"
"path := \'\';\n"
"return md5 (concat (tim, ip, path));\n"
"}\n"
"--src vspx.sql:6575\n";
static const char *proc215 =
"#line 6592 \"[executable]/vspx.sql\"\n"
"create procedure vspx_label_render (in fmt varchar, in val any)\n"
"{\n"
"if (length (fmt))\n"
"http (sprintf (fmt, val));\n"
"else\n"
"http_value (val);\n"
"}\n"
"--src vspx.sql:6590\n";
static const char *proc216 =
"#line 6601 \"[executable]/vspx.sql\"\n"
"create procedure vspx_url_render (in fmt varchar, in val any, in url any, in sid any, in realm any, in is_local any)\n"
"{\n"
"if (length (sid))\n"
"{\n"
"declare uinfo any;\n"
"uinfo := WS.WS.PARSE_URI (url);\n"
"if (uinfo[0] = \'\' or is_local = 1)\n"
"url := vspx_uri_add_parameters (url, sprintf (\'sid=%s&realm=%s\', sid, realm));\n"
"}\n"
"http (sprintf (\'<a href=\"%V\">\', url));\n"
"if (length (fmt))\n"
"http (sprintf (fmt, val));\n"
"else\n"
"http_value (val);\n"
"http (\'</a>\');\n"
"}\n"
"--src vspx.sql:6599\n";
static const char *proc217 =
"#line 6619 \"[executable]/vspx.sql\"\n"
"create procedure vspx_url_render_ex (in fmt varchar, in val any, in url any, in sid any, in realm any, in is_local any, in attrs any)\n"
"{\n"
"declare i, l int;\n"
"if (length (sid))\n"
"{\n"
"declare uinfo any;\n"
"uinfo := WS.WS.PARSE_URI (url);\n"
"if (uinfo[0] = \'\' or is_local = 1)\n"
"url := vspx_uri_add_parameters (url, sprintf (\'sid=%s&realm=%s\', sid, realm));\n"
"}\n"
"http (sprintf (\'<a href=\"%V\"\', url));\n"
"i := 1; l := length (attrs);\n"
"while (i < l)\n"
"{\n"
"if (attrs[i-1] <> \'@@hidden@@\')\n"
"{\n"
"http (\' \' || attrs[i-1] || \'=\"\');\n"
"http_value (attrs[i]);\n"
"http (\'\"\');\n"
"}\n"
"\n"
"i := i + 2;\n"
"}\n"
"http (\'>\');\n"
"if (length (fmt))\n"
"http (sprintf (fmt, val));\n"
"else\n"
"http_value (val);\n"
"http (\'</a>\');\n"
"}\n"
"--src vspx.sql:6617\n";
static const char *proc218 =
"#line 6652 \"[executable]/vspx.sql\"\n"
" create procedure VSPX_ONE_CONTROL_UP (in expn varchar)\n"
"{\n"
"declare idx integer;\n"
"declare hit1, hit2 any;\n"
"expn := concat (\' \', expn, \' \');\n"
"idx := 0;\n"
"again:\n"
"hit1 := regexp_parse (\'([^a-zA-Z0-9_\"])(control)([^a-zA-Z0-9_])\', expn, idx);\n"
"if (hit1 is NULL)\n"
"return subseq (expn, 1, length (expn) - 1);\n"
"hit2 := regexp_parse (\'([^a-zA-Z0-9_\"])(control[ \\t\\r\\n]*\\.[ \\t\\r\\n]*vc_parent)([^a-zA-Z0-9_])\', expn, idx);\n"
"if (hit2 is NULL)\n"
"return \'\';\n"
"if (aref (hit2, 0) <> aref (hit1, 0))\n"
"return \'\';\n"
"expn :=\n"
"concat (\n"
"subseq (expn, 0, aref (hit2, 4)),\n"
"\'control\',\n"
"subseq (expn, aref (hit2, 5)) );\n"
"idx := aref (hit2, 4) + 7;\n"
"goto again;\n"
"}\n"
"--src vspx.sql:6650\n";
static const char *other335 =
"grant execute on VSPX_ONE_CONTROL_UP to public\n";
static const char *other336 =
"insert soft DB.DBA.SYS_XPF_EXTENSIONS (XPE_NAME, XPE_PNAME) VALUES (\'http://www.openlinksw.com/vspx/:one-control-up\', \'DB.DBA.VSPX_ONE_CONTROL_UP\')\n";
static const char *other337 =
"xpf_extension (\'http://www.openlinksw.com/vspx/:one-control-up\', \'DB.DBA.VSPX_ONE_CONTROL_UP\', 0)\n";
static const char *proc219 =
"#line 6686 \"[executable]/vspx.sql\"\n"
"create procedure VSPX_USER_LOGIN (in realm varchar, in uname varchar, in pass varchar, in auth_function varchar)\n"
"{\n"
"declare rc int;\n"
"declare sid any;\n"
"\n"
"sid := null;\n"
"rc := call (auth_function) (uname, pass);\n"
"if (rc)\n"
"{\n"
"sid := md5 (concat (datestring (now ()), client_attr (\'client_ip\')));\n"
"insert into VSPX_SESSION (VS_REALM, VS_SID, VS_UID, VS_STATE, VS_EXPIRY) values (realm, sid, uname, null, now());\n"
"}\n"
"return sid;\n"
"}\n"
"--src vspx.sql:6684\n";
static const char *proc220 =
"#line 6702 \"[executable]/vspx.sql\"\n"
"create procedure VSPX_SESSION_IS_VALID (in realm varchar, in sid varchar)\n"
"{\n"
"update VSPX_SESSION set VS_EXPIRY = now () where VS_SID = sid and VS_REALM = realm;\n"
"if (row_count () = 0)\n"
"return 0;\n"
"return 1;\n"
"}\n"
"--src vspx.sql:6700\n";
/* vspx_add_locations.xsl */
static const char *xsl31[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" - \n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:v=\"http://www.openlinksw.com/vspx/\" exclude-result-prefixes=\"v\"\n"
" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">\n"
"<xsl:output method=\"xsl\" omit-xml-declaration=\"no\" indent=\"no\" />\n"
"\n"
"<xsl:template match=\"*\">\n"
" <xsl:variable name=\"scriptable\" select=\"self::v:after-data-bind|self::v:after-data-bind-container|self::v:before-data-bind|self::v:before-data-bind-container|self::v:on-post|self::v:on-post-container|self::v:before-render|self::v:before-render-container|self::v:on-init|self::v:on-init-container|self::v:script|self::v:method|self::v:method-container\"/>\n"
" <xsl:copy>\n"
" <xsl:for-each select=\"@*\"><xsl:copy /></xsl:for-each>\n"
" <xsl:if test=\"xpath-debug-srcline(.) > 0\">\n"
" <xsl:attribute name=\"debug-srcfile\"><xsl:value-of select=\"xpath-debug-srcfile(.)\" /></xsl:attribute>\n"
" <xsl:attribute name=\"debug-srcline\"><xsl:value-of select=\"xpath-debug-srcline(.)\" /></xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:if test=\"$scriptable\">\n"
"#line push \n"
"#line <xsl:value-of select=\"xpath-debug-srcline(.)\"/> \"<xsl:value-of select=\"xpath-debug-srcfile(.)\"/>\"\n"
"</xsl:if>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" <xsl:if test=\"$scriptable\">\n"
"#line pop\n"
"</xsl:if>\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"text()|comment()|processing-instruction()\">\n"
" <xsl:copy/>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* vspx_expand.xsl */
static const char *xsl32[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" - \n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:v=\"http://www.openlinksw.com/vspx/\"\n"
" xmlns:vdeps=\"http://www.openlinksw.com/vspx/deps/\"\n"
" exclude-result-prefixes=\"v\"\n"
" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">\n"
"<xsl:output method=\"xml\" omit-xml-declaration=\"no\" indent=\"yes\"\n"
" cdata-section-elements=\"v:after-data-bind v:after-data-bind-container v:before-data-bind v:before-data-bind-container v:on-post v:on-post-container v:before-render v:before-render-container v:on-init v:script v:sql\" />\n"
"<xsl:param name=\"vspx_log\" />\n"
"<xsl:variable name=\"rootpage\" select=\"(//v:page)[1]\" />\n"
"<xsl:variable name=\"pagedecor\" select=\"$rootpage/@decor\" />\n"
"<xsl:variable name=\"pagestyle\" select=\"$rootpage/@style\" />\n"
"<xsl:variable name=\"fast-render\" select=\"boolean ($rootpage/@fast-render)\"/>\n"
"\n"
"<xsl:template match=\"/\">\n"
" <xsl:if test=\"not ($vspx_log = '')\">\n"
"<xsl:comment><xsl:value-of select=\"concat('\\n',$vspx_log)\" /></xsl:comment><xsl:text>\n"
"</xsl:text>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"node()\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:include\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@url\">\n"
" <xsl:variable name=\"doc\" select=\"document (@url)\"/>\n"
" <xsl:variable name=\"doc_page\" select=\"$doc/descendant-or-self::v:page\"/>\n"
" <v:hidden>\n"
" <xsl:attribute name=\"url\" namespace=\"http://www.openlinksw.com/vspx/deps/\" >\n"
" <xsl:value-of select=\"document-get-uri($doc)\" />\n"
" </xsl:attribute>\n"
" </v:hidden>\n"
" <xsl:choose>\n"
" <xsl:when test=\"$doc_page\">\n"
" <xsl:apply-templates select=\"$doc_page/node()\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"$doc\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:message terminate=\"yes\">VSPX element 'include' should have a 'url' attribute.</xsl:message>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:code-file\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@url\">\n"
" <v:hidden>\n"
" <xsl:attribute name=\"code-file\" namespace=\"http://www.openlinksw.com/vspx/deps/\" >\n"
" <xsl:value-of select=\"@url\" />\n"
" </xsl:attribute>\n"
" </v:hidden>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:message terminate=\"yes\">VSPX element 'code-file' should have a 'url' attribute.</xsl:message>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:placeholder\">\n"
" <xsl:apply-templates select=\"$rootpage/*[not (local-name(.) = 'after-data-bind' or local-name(.) = 'before-data-bind' or local-name(.) = 'on-post' or local-name(.) = 'before-render' or local-name(.) = 'on-init' or local-name(.) = 'variable')]\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:style\">\n"
" <xsl:apply-templates select=\"node()\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"processing-instruction()\">\n"
" <xsl:copy-of select=\".\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:page\">\n"
" <xsl:choose>\n"
" <xsl:when test=\".[.=$rootpage]/@decor\">\n"
" <xsl:if test=\".//v:include[@rootpage]\">\n"
" <xsl:message terminate=\"yes\">Tag 'v:include' with 'rootpage' atribute may cause infinite recursion when used outside decoration page.</xsl:message>\n"
" </xsl:if>\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*[name() != 'decor']\" />\n"
" <xsl:variable name=\"doc\" select=\"document (@decor)\"/>\n"
" <xsl:apply-templates select=\"./*[local-name(.) = 'after-data-bind' or local-name(.) = 'before-data-bind' or local-name(.) = 'on-post' or local-name(.) = 'before-render' or local-name(.) = 'on-init' or local-name(.) = 'variable']\"/>\n"
" <xsl:apply-templates select=\"$doc\" />\n"
" </xsl:copy>\n"
" </xsl:when>\n"
" <xsl:when test=\".=$rootpage\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*[name() != 'style']\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<!-- v:grid expansion -->\n"
"<xsl:template match=\"v:grid\">\n"
"<xsl:comment><xsl:value-of select=\"@name\" /></xsl:comment><xsl:text>\n"
"</xsl:text>\n"
"<xsl:variable name=\"n\" select=\"@name\" />\n"
"<v:data-set scrollable=\"1\" edit=\"1\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" /></xsl:attribute>\n"
" <xsl:attribute name=\"data-source\"><xsl:value-of select=\"@data-source\" /></xsl:attribute>\n"
" <v:template type=\"simple\" name-to-remove=\"table\" set-to-remove=\"bottom\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" />_header_template</xsl:attribute>\n"
" <table>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <!--xsl:attribute name=\"style\"><xsl:value-of select=\"@style\" /></xsl:attribute-->\n"
" <xsl:apply-templates select=\"v:header\" />\n"
" </table>\n"
" </v:template>\n"
" <v:template type=\"repeat\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" />_repeat_template</xsl:attribute>\n"
" <v:template type=\"if-not-exists\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" />_not_exists_template</xsl:attribute>\n"
" </v:template>\n"
" <v:template type=\"edit\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" />_edit_template</xsl:attribute>\n"
" <xsl:apply-templates select=\"v:columns\" mode=\"edit\"/>\n"
" </v:template>\n"
" <v:template type=\"add\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" />_add_template</xsl:attribute>\n"
" <xsl:apply-templates select=\"v:columns\" mode=\"add\"/>\n"
" </v:template>\n"
" <v:template type=\"browse\" name-to-remove=\"table\" set-to-remove=\"both\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" />_browse_template</xsl:attribute>\n"
" <xsl:apply-templates select=\"v:columns\" mode=\"browse\"/>\n"
" </v:template>\n"
" </v:template>\n"
" <v:template type=\"simple\" name-to-remove=\"table\" set-to-remove=\"top\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$n\" />_footer_template</xsl:attribute>\n"
" <table>\n"
" <xsl:apply-templates select=\"v:footer\" />\n"
" </table>\n"
" </v:template>\n"
" <xsl:apply-templates select=\"v:*[local-name() != 'columns' and local-name() != 'header' and local-name() != 'footer']\" />\n"
"</v:data-set><xsl:text>\n"
"</xsl:text>\n"
"<xsl:comment>end <xsl:value-of select=\"@name\" /></xsl:comment>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:header\">\n"
" <xsl:apply-templates select=\"parent::*/v:columns\" mode=\"header\"/>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:footer\">\n"
" <xsl:variable name=\"p\" select=\"ancestor::v:grid/@name\" />\n"
" <tr>\n"
" <td>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:attribute name=\"colspan\"><xsl:value-of select=\"count(parent::*/v:columns/v:column)+1\"/></xsl:attribute>\n"
" <v:button action=\"simple\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_prev</xsl:attribute>\n"
" <xsl:attribute name=\"value\">Previous</xsl:attribute>\n"
" </v:button>\n"
" <v:button action=\"simple\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_next</xsl:attribute>\n"
" <xsl:attribute name=\"value\">Next</xsl:attribute>\n"
" </v:button>\n"
" </td>\n"
" </tr>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:columns\" mode=\"header\">\n"
" <tr>\n"
" <th> \n"
" <xsl:copy-of select=\"ancestor::v:grid/v:header/@*\" />\n"
" </th>\n"
" <xsl:for-each select=\"v:column\">\n"
" <xsl:variable name=\"c\" select=\"@name\" />\n"
" <xsl:variable name=\"p\" select=\"ancestor::v:grid/@name\" />\n"
" <xsl:variable name=\"ds\" select=\"ancestor::v:grid/@data-source\" />\n"
" <th>\n"
" <xsl:copy-of select=\"ancestor::v:grid/v:header/@*\" />\n"
" <v:label>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_<xsl:value-of select=\"$c\" />_header_label</xsl:attribute>\n"
" <xsl:attribute name=\"value\">--(<xsl:value-of select=\"$ds\" />.get_column_label('<xsl:value-of select=\"$c\" />'))</xsl:attribute>\n"
" </v:label>\n"
" </th>\n"
" </xsl:for-each>\n"
" </tr>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:columns\" mode=\"browse\">\n"
" <xsl:variable name=\"p\" select=\"ancestor::v:grid/@name\" />\n"
" <xsl:variable name=\"ds\" select=\"ancestor::v:grid/@data-source\" />\n"
" <tr>\n"
" <td>\n"
" <v:button action=\"simple\" value=\"Edit\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_edit</xsl:attribute>\n"
" </v:button>\n"
" <v:button action=\"simple\" value=\"Delete\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_delete</xsl:attribute>\n"
" <xsl:element name=\"on-post\" namespace=\"http://www.openlinksw.com/vspx/\">\n"
" <xsl:value-of select=\"$ds\" />.ds_delete (e);\n"
" <xsl:value-of select=\"$ds\" />.ds_data_bind (e);\n"
" self.<xsl:value-of select=\"$p\" />.vc_data_bind (e);\n"
" </xsl:element>\n"
" </v:button>\n"
" </td>\n"
" <xsl:for-each select=\"v:column\">\n"
" <xsl:variable name=\"c\" select=\"@name\" />\n"
" <xsl:variable name=\"ds\" select=\"ancestor::v:grid/@data-source\" />\n"
" <td>\n"
" <xsl:copy-of select=\"@*[local-name() != 'name']\" />\n"
" <v:label>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_<xsl:value-of select=\"$c\" />_label</xsl:attribute>\n"
" <xsl:attribute name=\"value\">--(<xsl:value-of select=\"$ds\" />.get_item_value('<xsl:value-of select=\"$c\" />'))</xsl:attribute>\n"
" </v:label>\n"
" </td>\n"
" </xsl:for-each>\n"
" </tr>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:columns\" mode=\"add\">\n"
" <xsl:variable name=\"p\" select=\"ancestor::v:grid/@name\" />\n"
" <xsl:variable name=\"ds\" select=\"ancestor::v:grid/@data-source\" />\n"
" <v:form type=\"update\" if-not-exists=\"insert\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_insert_form</xsl:attribute>\n"
" <xsl:attribute name=\"data-source\"><xsl:value-of select=\"$ds\" /></xsl:attribute>\n"
" <v:template type=\"simple\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_insert_template</xsl:attribute>\n"
" <tr>\n"
" <td>\n"
" <v:button action=\"submit\" value=\"Add\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_insert_button</xsl:attribute>\n"
" </v:button>\n"
" </td>\n"
" <xsl:for-each select=\"v:column\">\n"
" <xsl:variable name=\"c\" select=\"@name\" />\n"
" <td>\n"
" <xsl:copy-of select=\"@*[local-name() != 'name']\" />\n"
" <v:text>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_<xsl:value-of select=\"$c\" />_text_insert</xsl:attribute>\n"
" <xsl:attribute name=\"column\"><xsl:value-of select=\"$c\" /></xsl:attribute>\n"
" </v:text>\n"
" </td>\n"
" </xsl:for-each>\n"
" </tr>\n"
" </v:template>\n"
" </v:form>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:columns\" mode=\"edit\">\n"
" <xsl:variable name=\"p\" select=\"ancestor::v:grid/@name\" />\n"
" <xsl:variable name=\"ds\" select=\"ancestor::v:grid/@data-source\" />\n"
" <v:form type=\"update\" >\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_update_form</xsl:attribute>\n"
" <xsl:attribute name=\"data-source\"><xsl:value-of select=\"$ds\" /></xsl:attribute>\n"
" <v:template type=\"simple\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_update_template</xsl:attribute>\n"
" <tr>\n"
" <td>\n"
" <v:button action=\"submit\" value=\"Update\">\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_update_button</xsl:attribute>\n"
" </v:button>\n"
" <input type=\"submit\" name=\"Cancel\" value=\"Cancel\" />\n"
" </td>\n"
" <xsl:for-each select=\"v:column\">\n"
" <xsl:variable name=\"c\" select=\"@name\" />\n"
" <td>\n"
" <xsl:copy-of select=\"@*[local-name() != 'name']\" />\n"
" <v:text>\n"
" <xsl:attribute name=\"name\"><xsl:value-of select=\"$p\" />_<xsl:value-of select=\"$c\" />_text_edit</xsl:attribute>\n"
" <xsl:attribute name=\"column\"><xsl:value-of select=\"$c\" /></xsl:attribute>\n"
" </v:text>\n"
" </td>\n"
" </xsl:for-each>\n"
" </tr>\n"
" </v:template>\n"
" </v:form>\n"
"</xsl:template>\n"
"<!-- end of v:grid expansion -->\n"
"\n"
"<xsl:template match=\"v:label\">\n"
" <xsl:variable name=\"opt-force\" select=\"boolean(@render-only='1')\"/>\n"
" <xsl:variable name=\"is-optimizable\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"not ($opt-force or $fast-render)\"/>\n"
" <xsl:when test=\"*\">\n"
" <xsl:if test=\"$opt-force\"><xsl:message terminate=\"yes\">render-only could not be specified when label have descendants</xsl:message></xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"unsafe-attr\" select=\"@*[not (name()='render-only' or name()='name' or name()='debug-srcfile' or name()='debug-srcline' or name()='format' or name() = 'value')][name() = local-name()]\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"not(empty($unsafe-attr))\">\n"
" <xsl:if test=\"$opt-force\"><xsl:message terminate=\"yes\">render-only could not be specified when label have attribute '<xsl:value-of select=\"name($unsafe-attr[1])\"/>'</xsl:message></xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>1</xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"format\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@format\">\n"
" <xsl:apply-templates select=\"@format\" mode=\"value-exp\"><xsl:with-param name=\"report-error\" select=\"$opt-force\"/></xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:otherwise>null</xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"value\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@value\">\n"
" <xsl:apply-templates select=\"@value\" mode=\"value-exp\"><xsl:with-param name=\"report-error\" select=\"$opt-force\"/></xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:when test=\"$opt-force\">\n"
" <xsl:message terminate=\"yes\">render-only could not be specified for a label that has no 'value' attribute</xsl:message>\n"
" </xsl:when>\n"
" <xsl:otherwise></xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:choose>\n"
" <xsl:when test=\"$is-optimizable and not ($format = '' or $value = '')\">\n"
" <xsl:processing-instruction name=\"vsp\">\n"
" {\n"
" vspx_label_render (\n"
" <xsl:value-of select=\"$format\"/>\n"
" , <xsl:value-of select=\"$value\"/>\n"
" );\n"
" }\n"
" </xsl:processing-instruction>\n"
" </xsl:when>\n"
" <xsl:otherwise><xsl:call-template name=\"dflt-control\"/></xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:url\">\n"
" <xsl:variable name=\"opt-force\" select=\"boolean(@render-only='1')\"/>\n"
" <xsl:variable name=\"is-optimizable\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"not ($opt-force or $fast-render)\"/>\n"
" <xsl:when test=\"*\">\n"
" <xsl:if test=\"$opt-force\"><xsl:message terminate=\"yes\">render-only could not be specified when v:url have descendants</xsl:message></xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"unsafe-attr\" select=\"@*[not (name()='render-only' or name()='name' or name()='debug-srcfile' or name()='debug-srcline' or name()='format' or name() = 'value' or name() = 'url' or name () = 'is-local' or starts-with(name(), 'xhtml_'))][name() = local-name()]\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"not(empty($unsafe-attr))\">\n"
" <xsl:if test=\"$opt-force\"><xsl:message terminate=\"yes\">render-only could not be specified when v:url have attribute '<xsl:value-of select=\"name($unsafe-attr[1])\"/>'</xsl:message></xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>1</xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"format\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@format\">\n"
" <xsl:apply-templates select=\"@format\" mode=\"value-exp\"><xsl:with-param name=\"report-error\" select=\"$opt-force\"/></xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:otherwise>null</xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"value\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@value\">\n"
" <xsl:apply-templates select=\"@value\" mode=\"value-exp\"><xsl:with-param name=\"report-error\" select=\"$opt-force\"/></xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:when test=\"$opt-force\">\n"
" <xsl:message terminate=\"yes\">render-only could not be specified for a v:url that has no 'value' attribute</xsl:message>\n"
" </xsl:when>\n"
" <xsl:otherwise></xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"url\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@url\">\n"
" <xsl:apply-templates select=\"@url\" mode=\"value-exp\"><xsl:with-param name=\"report-error\" select=\"$opt-force\"/></xsl:apply-templates>\n"
" </xsl:when>\n"
" <xsl:when test=\"$opt-force\">\n"
" <xsl:message terminate=\"yes\">render-only could not be specified for a v:url that has no 'url' attribute</xsl:message>\n"
" </xsl:when>\n"
" <xsl:otherwise></xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"xhtml-attrs\">\n"
" <xsl:for-each select=\"@*[starts-with(name(), 'xhtml_')]\">\n"
" <xsl:variable name=\"res\"><xsl:apply-templates select=\".\" mode=\"value-exp\"><xsl:with-param name=\"report-error\" select=\"$opt-force\"/></xsl:apply-templates></xsl:variable>\n"
" <xsl:choose><xsl:when test=\"$res=''\"><unsafe/></xsl:when>\n"
" <xsl:otherwise>\n"
" '<xsl:value-of select=\"substring-after (local-name(), 'xhtml_')\" />', <xsl:value-of select=\"$res\"/>\n"
" , </xsl:otherwise></xsl:choose>\n"
" </xsl:for-each>\n"
" </xsl:variable>\n"
" <xsl:variable name=\"is-local\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@is-local\"><xsl:value-of select=\"@is-local\"/></xsl:when>\n"
" <xsl:otherwise>0</xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:choose>\n"
" <xsl:when test=\"$is-optimizable and not ($format = '' or $value = '' or $url='') and empty ($xhtml-attrs/unsafe)\">\n"
" <xsl:processing-instruction name=\"vsp\">\n"
" {\n"
" <xsl:choose>\n"
" <xsl:when test=\"empty ($xhtml-attrs)\">\n"
" vspx_url_render (\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" vspx_url_render_ex (\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:value-of select=\"$format\"/>\n"
" , <xsl:value-of select=\"$value\"/>\n"
" , <xsl:value-of select=\"$url\"/>\n"
" , self.sid, self.realm, <xsl:value-of select=\"$is-local\"/><xsl:if test=\"not (empty ($xhtml-attrs))\">, vector (<xsl:value-of select=\"$xhtml-attrs\"/> NULL)</xsl:if>\n"
" );\n"
" }\n"
" </xsl:processing-instruction>\n"
" </xsl:when>\n"
" <xsl:otherwise><xsl:call-template name=\"dflt-control\"/></xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"@*\" mode=\"value-exp\">\n"
" <xsl:param name=\"report-error\"/>\n"
" <xsl:variable name=\"res\">\n"
" <xsl:choose>\n"
" <xsl:when test=\". like '--after:%'\"><xsl:value-of select=\"v:one-control-up (substring (., 9, string-length(.)))\" /></xsl:when>\n"
" <xsl:when test=\". like '--%'\"><xsl:value-of select=\"v:one-control-up (substring (., 3, string-length(.)))\" /></xsl:when>\n"
" <xsl:when test=\". like '\\'%\\''\"><xsl:value-of select=\".\" /></xsl:when>\n"
" <xsl:otherwise>'<xsl:value-of select=\".\" />'</xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" <xsl:if test=\"$report-error and ($res='')\">\n"
" <xsl:message terminate=\"yes\">render-only could not be specified if expression in attribute '<xsl:value-of select=\"name()\"/>' refers to 'control' but not to control.vc_parent</xsl:message>\n"
" </xsl:if>\n"
" <xsl:value-of select=\"$res\"/>\n"
"</xsl:template>\n"
"\n"
"<!-- some vspx controls may have no name; assign internal name -->\n"
"<xsl:template match=\"v:*\" name=\"dflt-control\">\n"
" <xsl:variable name=\"ln\" select=\"local-name()\" />\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:if test=\"\n"
" not @name\n"
" and not starts-with ($ln, 'on-')\n"
" and not starts-with ($ln, 'after-')\n"
" and not starts-with ($ln, 'before-')\n"
" and $ln != 'error-summary'\n"
" and $ln != 'expression'\n"
" and $ln != 'hidden'\n"
" and $ln != 'key'\n"
" and $ln != 'node'\n"
" and $ln != 'node-set'\n"
" and $ln != 'rowset'\n"
" and $ln != 'script'\n"
" and $ln != 'sql'\n"
" and $ln != 'column'\n"
" and $ln != 'variable'\n"
" and $ln != 'param'\n"
" and $ln != 'field'\n"
" \">\n"
" <xsl:attribute name=\"name\">ctrl_<xsl:value-of select=\"generate-id ()\"/></xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* vspx_pre_xsd.xsl */
static const char *xsl33[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" - \n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:v=\"http://www.openlinksw.com/vspx/\" exclude-result-prefixes=\"v\"\n"
" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:vd=\"http://www.openlinksw.com/vspx/deps/\"\n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" >\n"
"<xsl:output method=\"xsl\" omit-xml-declaration=\"no\" indent=\"no\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"node()\" mode=\"top\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"top\">\n"
" <v:xsd-stub-top>\n"
" <xsl:apply-templates select=\"node()\" mode=\"top\" />\n"
" </v:xsd-stub-top>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"top\">\n"
" <xsl:copy>\n"
" <xsl:call-template name=\"v-attrs\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\">\n"
" <xsl:copy>\n"
" <xsl:call-template name=\"v-attrs\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:vscx\" />\n"
"<!--\n"
" <xsl:copy>\n"
" <xsl:for-each select=\"@name|@url\"><xsl:copy /></xsl:for-each>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"-->\n"
"\n"
"<xsl:template name=\"v-attrs\">\n"
" <xsl:for-each select=\"@*[not (name() like 'xhtml_%' or namespace-uri() = 'http://www.w3.org/1999/xhtml' or namespace-uri() = 'http://www.openlinksw.com/vspx/deps/' or namespace-uri() = 'http://www.w3.org/2001/XMLSchema-instance')]\">\n"
" <xsl:copy />\n"
" </xsl:for-each>\n"
" <xsl:if test=\"@*[name() like 'xhtml_%' or namespace-uri() = 'http://www.w3.org/1999/xhtml']\">\n"
" <xsl:attribute name=\"xsd-stub-xhtml\">\n"
" <xsl:for-each select=\"@*[name() like 'xhtml_%' or namespace-uri() = 'http://www.w3.org/1999/xhtml']\">\n"
" <xsl:value-of select=\"concat(' ',name(),' ')\"/>\n"
" </xsl:for-each>\n"
" </xsl:attribute>\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"*\">\n"
" <v:xsd-stub>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </v:xsd-stub>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"script\">\n"
" <v:xsd-stub-script>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </v:xsd-stub-script>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"text()|comment()|processing-instruction()\">\n"
" <xsl:copy/>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* vspx_pre_sql.xsl */
static const char *xsl34[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" - \n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:v=\"http://www.openlinksw.com/vspx/\" exclude-result-prefixes=\"v\"\n"
" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">\n"
"<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"yes\"\n"
" cdata-section-elements=\"v:after-data-bind v:after-data-bind-container v:before-data-bind v:before-data-bind-container v:on-post v:on-post-container v:before-render v:before-render-container v:on-init v:script\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
" <xsl:apply-templates select=\"//v:*\" mode=\"attr-check\" />\n"
" <xsl:apply-templates select=\"node()\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\">\n"
" <xsl:copy>\n"
" <xsl:for-each select=\"@*\"><xsl:copy /></xsl:for-each>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\">\n"
" <xsl:copy>\n"
" <xsl:for-each select=\"@*\"><xsl:copy /></xsl:for-each>\n"
" <xsl:if test=\"empty(@control-udt) and empty (.[v:page])\">\n"
" <xsl:attribute name=\"control-udt\"><xsl:apply-templates select=\".\" mode=\"create_control_name\"/></xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"node()\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:on-init|v:on-init-container|v:before-data-bind|v:before-data-bind-container|v:after-data-bind|v:after-data-bind-container|v:on-post|v:on-post-container|v:before-render|v:before-render-container\">\n"
" <xsl:element name=\"{concat ('v:', replace (local-name(.), '-container', ''))}\">\n"
" <xsl:for-each select=\"@*\"><xsl:copy /></xsl:for-each>\n"
" <xsl:attribute name=\"belongs-to\"><xsl:apply-templates select=\"..\" mode=\"eh-belongs-to\"/></xsl:attribute>\n"
"--no_c_escapes-\n"
" {\n"
" <xsl:value-of select=\".\" />\n"
" }<xsl:text/>\n"
" </xsl:element>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:method|v:method-container\">\n"
" <xsl:element name=\"{concat ('v:', replace (local-name(.), '-container', ''))}\">\n"
" <xsl:for-each select=\"@*\"><xsl:copy /></xsl:for-each>\n"
" <xsl:if test=\"empty(@returns)\">\n"
" <xsl:attribute name=\"returns\">any</xsl:attribute>\n"
" </xsl:if>\n"
" <xsl:if test=\"empty(@arglist)\">\n"
" <xsl:attribute name=\"arglist\">inout control vspx_control, inout e vspx_event</xsl:attribute>\n"
" </xsl:if>\n"
"--no_c_escapes-\n"
" {\n"
" <xsl:value-of select=\".\" />\n"
" }<xsl:text/>\n"
" </xsl:element>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"text()|comment()|processing-instruction()\">\n"
" <xsl:copy/>\n"
"</xsl:template>\n"
"\n"
"\n"
"<!-- mode=\"eh-belongs-to\": finding a name of control that relates to the given event handler -->\n"
"<xsl:template match=\"v:hidden\" mode=\"eh-belongs-to\" >\n"
" <xsl:apply-templates select=\"..\" mode=\"eh-belongs-to\"/>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"eh-belongs-to\" >\n"
" <xsl:choose>\n"
" <xsl:when test=\"@name and v:vcc_exists (name())\">\n"
" <xsl:value-of select=\"@name\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"..\" mode=\"eh-belongs-to\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"eh-belongs-to\" >\n"
" <xsl:value-of select=\"@name\" />\n"
"</xsl:template>\n"
"\n"
"<!-- mode=\"create_control_name\": composing target control name from tag name -->\n"
"\n"
"<xsl:template match=\"v:node-template\" mode=\"create_control_name\">vspx_tree_node</xsl:template>\n"
"<xsl:template match=\"v:leaf-template\" mode=\"create_control_name\">vspx_tree_node</xsl:template>\n"
"<xsl:template match=\"v:form[empty (@type) or @type='simple']\" mode=\"create_control_name\">vspx_form</xsl:template>\n"
"<xsl:template match=\"v:form\" mode=\"create_control_name\">vspx_<xsl:value-of select=\"@type\" />_form</xsl:template>\n"
"<xsl:template match=\"v:button[@action='simple']\" mode=\"create_control_name\">vspx_button</xsl:template>\n"
"<xsl:template match=\"v:button[@action='submit']\" mode=\"create_control_name\">vspx_submit</xsl:template>\n"
"<xsl:template match=\"v:button\" mode=\"create_control_name\">vspx_<xsl:value-of select=\"@action\" />_button</xsl:template>\n"
"<xsl:template match=\"v:template[@type='row']\" mode=\"create_control_name\">vspx_row_template</xsl:template>\n"
"<xsl:template match=\"v:template[@type='browse']\" mode=\"create_control_name\">vspx_row_template</xsl:template>\n"
"<xsl:template match=\"v:template\" mode=\"create_control_name\">vspx_template</xsl:template>\n"
"<xsl:template match=\"v:local-variable\" mode=\"create_control_name\">vspx_field_value</xsl:template>\n"
"<xsl:template match=\"v:*\" mode=\"create_control_name\">vspx_<xsl:value-of select=\"translate (local-name (),'-','_')\" /></xsl:template>\n"
"\n"
"<!-- search for invalid combinations of attributes -->\n"
"\n"
"<xsl:template match=\"v:*[@element-path][not(@element-value)]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'element-path' attribute without 'element-value' attribute</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*[@element-update-path][not(@element-value)]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'element-update-path' attribute without 'element-value' attribute</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*[@element-place][not(@element-value)]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'element-place' attribute without 'element-value' attribute</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*[@element-params][not(@element-path)]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'element-params' attribute without 'element-path' attribute</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*[@element-update-params][not(@element-path)]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'element-update-params' attribute without 'element-update-path' attribute</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:check-box[@true-value][not(@is-boolean='true' or @is-boolean='1')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'true-value' attribute that is useless because 'is-boolean' attribute is not set to 'true'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:check-box[@false-value][not(@is-boolean='true' or @is-boolean='1')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'false-value' attribute that is useless because 'is-boolean' attribute is not set to 'true'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:validator[@regexp][not(@test='regexp')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'regexp' attribute that is useless because 'test' attribute is not set to 'regexp'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:validator[@min][not(@test='value' or @test='length')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'min' attribute that is useless because 'test' attribute is not set to 'value' or 'length'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:validator[@max][not(@test='value' or @test='length')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'max' attribute that is useless because 'test' attribute is not set to 'value' or 'length'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@child-window-options][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'child-window-options' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@browser-current][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'browser-current' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@browser-filter][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'browser-filter' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@browser-list][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'browser-list' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@browser-mode][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'browser-mode' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@browser-type][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'browser-type' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@browser-xfer][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'browser-xfer' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@selector][not(@action='browse')]\" mode=\"attr-check\">\n"
" <xsl:call-template name=\"report-bug\"><xsl:with-param name=\"bug\">'selector' attribute that is useless because 'action' attribute is not set to 'browse'</xsl:with-param></xsl:call-template>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"*\" mode=\"attr-check\"></xsl:template>\n"
"\n"
"<xsl:template name=\"report-bug\">\n"
" <xsl:message terminate=\"yes\">\n"
" <xsl:text>The VSPX control</xsl:text>\n"
" <xsl:if test=\"@name\"> '<xsl:value-of select=\"@name\"/>'</xsl:if>\n"
" <xsl:text>of type '</xsl:text><xsl:value-of select=\"local-name()\"/><xsl:text>'</xsl:text>\n"
" <xsl:if test=\"@debug-srcfile\"> (at line <xsl:value-of select=\"@debug-srcline\"/> of '<xsl:value-of select=\"@debug-srcfile\"/>')</xsl:if>\n"
" <xsl:text> has </xsl:text><xsl:value-of select=\"$bug\"/>\n"
" </xsl:message>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* vspx_log_format.xsl */
static const char *xsl35[]= {
"<?xml version='1.0'?>\n"
"<!--\n"
" - \n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:v=\"http://www.openlinksw.com/vspx/\" exclude-result-prefixes=\"v\"\n"
" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:vd=\"http://www.openlinksw.com/vspx/deps/\"\n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" >\n"
"<xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
"<hr/>\n"
"<xmp><xsl:copy-of select=\"*/*\"/></xmp>\n"
"<hr/>\n"
"<xmp><xsl:call-template name=\"group\"><xsl:with-param name=\"lst1\" select=\"*/*\"/></xsl:call-template></xmp>\n"
"<hr/>\n"
"<xsl:variable name=\"grouped\"><xsl:call-template name=\"group\"><xsl:with-param name=\"lst1\" select=\"*/*\"/></xsl:call-template></xsl:variable>\n"
"<h3>That's how the page has been executed:</h3>\n"
" <ul>\n"
" <xsl:apply-templates select=\"$grouped\" mode=\"render\" />\n"
" </ul>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"render\">\n"
" <li><b><xsl:value-of select=\"if(name()='begin-and-end','run',name())\"/></b><xsl:text> </xsl:text><xsl:value-of select=\"@text\"/> at <b><xsl:value-of select=\"@control-name\"/></b>\n"
" <xsl:if test=\"@instance-name\"> (<xsl:value-of select=\"@instance-name\"/>)</xsl:if>\n"
"<!-- <xsl:value-of select=\"@begin-id\"/>-<xsl:value-of select=\"@id\"/> -->\n"
" <xsl:if test=\"ul\"><ul><xsl:apply-templates select=\"ul/*\" mode=\"render\"/></ul></xsl:if>\n"
" </li>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"group\">\n"
" <xsl:variable name=\"lst\"><xsl:copy-of select=\"$lst1\"/></xsl:variable>\n"
" <xsl:variable name=\"inners\" select=\"$lst/*[following-sibling::*/@begin-id = preceding-sibling::*/@id]\"/>\n"
"<!-- <outers><ul><xsl:copy-of select=\"$lst/*[not(@id = $inners/@id)]\"/></ul></outers> -->\n"
"<!-- <inners><ul><xsl:copy-of select=\"$inners\"/></ul></inners> -->\n"
" <xsl:for-each select=\"$lst/*[not(@id = $inners/@id)]\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@begin-id\"></xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:variable name=\"pair-begin\" select=\".\"/>\n"
" <xsl:variable name=\"pair-end\" select=\"$pair-begin/following-sibling::*[@begin-id = $pair-begin/@id]\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"count($pair-end) = 1\">\n"
" <xsl:element name=\"{concat(name($pair-begin),'-and-',name($pair-end))}\">\n"
" <xsl:copy-of select=\"$pair-end/@*\"/>\n"
" <xsl:copy-of select=\"@*|node()\"/>\n"
" <xsl:copy-of select=\"$pair-end/node()\"/>\n"
" <ul>\n"
" <xsl:call-template name=\"group\"><xsl:with-param name=\"lst1\" select=\"$pair-begin/following-sibling::*[@id < $pair-end/@id]\"/></xsl:call-template>\n"
" </ul>\n"
" </xsl:element>\n"
" </xsl:when>\n"
" <xsl:otherwise><xsl:copy-of select=\".\"/></xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"begin[following-sibling::*[1][self::end][@control-name=current()/@control-name][@text=current()/@text]]\" mode=\"collapse\">\n"
" <run><xsl:copy-of select=\"@*|node()\"/></run>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"end[preceding-sibling::*[1][self::begin][@control-name=current()/@control-name][@text=current()/@text]]\" mode=\"collapse\">\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"begin[following-sibling::*[1][self::break][@control-name=current()/@control-name]]\" mode=\"collapse\">\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"break[preceding-sibling::*[1][self::begin][@control-name=current()/@control-name]]\" mode=\"collapse\">\n"
" <run-break><xsl:copy-of select=\"@*|node()\"/></run-break>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"collapse\">\n"
"<xsl:copy><xsl:copy-of select=\"@*|node()\"/></xsl:copy>\n"
"</xsl:template>\n"
"\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
/* vspx.xsd */
static const char *xsd36[]= {
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!--\n"
" - \n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<!-- the common template for VSPX documentation reference manual -->\n"
"<!--\n"
" common info per element\n"
" <xs:appinfo>\n"
" <refpurpose></refpurpose>\n"
" <special-childs>\n"
" <child name=\"\" />\n"
" </special-childs>\n"
" </xs:appinfo>\n"
"\n"
" this is to skip rendering of a element\n"
" <xs:appinfo>\n"
" <no-render />\n"
" </xs:appinfo>\n"
" -->\n"
"<xs:schema targetNamespace=\"http://www.openlinksw.com/vspx/\" xmlns:v=\"http://www.openlinksw.com/vspx/\" xmlns:vd=\"http://www.openlinksw.com/vspx/deps/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" elementFormDefault=\"qualified\" attributeFormDefault=\"unqualified\">\n"
" <xs:annotation>\n"
" <xs:documentation>VSPX Syntax Reference</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:annotation>\n"
" <xs:documentation>Types of VSPX attributes</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:simpleType name=\"CalculateableValue\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:appinfo>global</xs:appinfo>\n"
" <xs:appinfo><refpurpose>The type of attribute that contains an expression to be calculated at run time.</refpurpose></xs:appinfo>\n"
" <xs:documentation>\n"
"The type of a string constant or an expression.\n"
"If the value of this type is started with '--', the rest of string\n"
"is the text of an expression to be calculated in order to get the effective value of the property.\n"
"If the value of this type is not started with '--', the effective value is the original string itself.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:whiteSpace value=\"preserve\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"ForcedCalculateableValue\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:appinfo>global</xs:appinfo>\n"
" <xs:appinfo><refpurpose>The type of attribute that contains an expression to be calculated at run time.</refpurpose></xs:appinfo>\n"
" <xs:documentation>\n"
"The type of an expression.\n"
"The value of this type must be started with '--', the rest of string\n"
"is the text of an expression to be calculated in order to get the effective value of the property.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:whiteSpace value=\"preserve\"/>\n"
" <xs:pattern value='--([^'"]|([']([^']|([\\\\][']))*['])|(["]([^"]|([\\\\]["]))*[\"]))+'/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"ButtonStyle\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"Style of rendering of the button.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"submit\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is a default style used, no special handling.\n"
"The button will be rendered as a usual submit button.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"url\">\n"
" <xs:annotation>\n"
" <xs:documentation>The button will be rendered as a link, furthermore client side JavaScript code will be produced to act as submit button. </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"image\">\n"
" <xs:annotation>\n"
" <xs:documentation>The button will be rendered as an image on the browser under link button. In that case value of button control must be link to the image file.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <!-- was icon? -->\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"ButtonAction\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"VSPX type of the button.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"simple\">\n"
" <xs:annotation>\n"
" <xs:documentation>is a simple submit button, no special functions\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"submit\">\n"
" <xs:annotation>\n"
" <xs:documentation>an alias of 'simple' button, obsolete\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"delete\">\n"
" <xs:annotation>\n"
" <xs:documentation>a button for deleting a row in a data-set or data-grid control. This is represented as a submit button with a special on-post script. The delete function is performed based on table, key attributes. (check implementation!!)\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"browse\">\n"
" <xs:annotation>\n"
" <xs:documentation>Button that opens pup-up window using client-side javascript (browse-button).\n"
"This control allows the designer to place some part of a form's input into a pop-up window. When the HTML page is rendered, this control puts a button and associated client-side javascript into the resulting page so clicking the button opens a child window. </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"return\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This is to be used on a page invoked for selecting from a browse button. Specifies that the value of the fields designated by the field children are to be asigned to the corresponding fields of the invoking page.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"logout\">\n"
" <xs:annotation>\n"
" <xs:documentation> This will terminate the current session when clicked. Can only occur inside the login control.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"SqlName\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:appinfo>global</xs:appinfo>\n"
" <xs:appinfo><refpurpose>The type of attribute that contains a name of the Virtuoso/PL UDT instance that should be created for the control.</refpurpose></xs:appinfo>\n"
" <xs:documentation>\n"
"The type for a Virtuoso/PL name that should be used during code generation.\n"
"KNOWN BUG: If double quotes are used in the value of this type then\n"
"the generated code may be incorrect.\n"
"This is why this schema restrictes the syntax of values of such type.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:minLength value=\"1\" fixed=\"false\"/>\n"
" <xs:maxLength value=\"32\" fixed=\"false\"/>\n"
" <xs:pattern value=\"[A-Za-z0-9_]{1,32}\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"SqlTableQname\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"The type for a Virtuoso table name in form 'database.user.localname'.\n"
"KNOWN BUG: If double quotes are used in the value of this type then\n"
"the generated code may be incorrect.\n"
"This is why this schema restricts the syntax of values of such type.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:pattern value=\"[A-Za-z0-9_]{1,32}\\.[A-Za-z0-9_]{0,32}\\.[A-Za-z0-9_]{1,32}\"/>\n"
" <xs:pattern value=\"[A-Za-z0-9_]{1,32}\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"SqlCode\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:appinfo>global</xs:appinfo>\n"
" <xs:appinfo><refpurpose>The type of a string value that is a Text of a Virtuoso/PL procedure.</refpurpose></xs:appinfo>\n"
" <xs:documentation>Text of an event handler or other Virtuoso/PL procedure. This is\n"
"expected to be a complete statement or sequence of statements, hence\n"
"to be terminated like a statement, unlike the 'calculatable value'\n"
"expression case.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:whiteSpace value=\"preserve\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"LoginMode\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>Method of passing login information from page to page.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"digest\">\n"
" <xs:annotation>\n"
" <xs:documentation>HTTP digest authentication is used and the session id will travel as the opaque data in the digest headers.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"url\">\n"
" <xs:annotation>\n"
" <xs:documentation>The url mode means that URL poisoning is used and that the session id passes with the links, posts etc. Some automation is offered for this by the vspx:url and vspx:form and derived controls.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"cookie\">\n"
" <xs:annotation>\n"
" <xs:documentation>The session id is set in a cookie on browser.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"QNameOrEmpty\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"The type for a name of redundand tags placed by WYSIWYG tools.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:pattern value=\"(\\w+[\\w:.-]*)?\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"Unused\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>Indicates that the attribute is never used.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\"/>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"TreeOrientation\" final=\"restriction\">\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:pattern value=\"horizontal\"/>\n"
" <xs:pattern value=\"vertical\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"SqlExpressionType\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"Denotes the type of SQL expression\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"SQL\">\n"
" <xs:annotation>\n"
" <xs:documentation>The expression is a SQL select statement</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"TABLE\">\n"
" <xs:annotation>\n"
" <xs:documentation>The expression is a table reference</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"PROCEDURE\">\n"
" <xs:annotation>\n"
" <xs:documentation>The expression is a procedure call</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"ARRAY\">\n"
" <xs:annotation>\n"
" <xs:documentation>The rowset is already prepared and supplied as an array of arrays</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"PlCursorType\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This defines the type of PL scrollable cursor used. In all cases, the\n"
"cursor is reopened at each invocation of the page and a\n"
"bookmark is used to position it. The dynamic type is\n"
"recommended for performance, however this is efficient only if\n"
"the table is being read in the order of some index.\n"
"These must be fixed values, no data binding.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"static\">\n"
" <xs:annotation>\n"
" <xs:documentation>A static cursor is used.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"dynamic\">\n"
" <xs:annotation>\n"
" <xs:documentation>A dynamic cursor is used.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"keyset\">\n"
" <xs:annotation>\n"
" <xs:documentation>A keyset cursor is used.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"DebugLogValue\">\n"
" <xs:annotation>\n"
" <xs:documentation>This defines what sort of data are saved to the debugging log. The value of this type is a space-delimited list of types of events that should be saved to the log.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:NMTOKENS\"/>\n"
" </xs:simpleType>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:simpleType name=\"OnOff\">\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"on\"/>\n"
" <xs:enumeration value=\"off\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:attributeGroup name=\"HtmlGenAttributes\">\n"
" <xs:annotation>\n"
" <xs:documentation>Commonly used attributes that configures the generated HTML layout. All of them have to begin with prefix 'xhtml_' and sufixed with HTML attribute name.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:attribute name=\"xsd-stub-xhtml\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This attribute is for internal use only. It has no effect if added to the source VSPX file.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"width\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Visible width of the control when it is displayed in WYSIWYG tools when the source VSPX text is edited.\n"
"The value of this attribute will not be used when the resulting HTML is rendered.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"height\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Visible width of the control when it is displayed in WYSIWYG tools when the source VSPX text is edited.\n"
"The value of this attribute will not be used when the resulting HTML is rendered.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <!--xs:attribute name=\"size\" type=\"xs:string\" use=\"optional\"/-->\n"
" </xs:attributeGroup>\n"
" <xs:attributeGroup name=\"SqlGenAttributes\">\n"
" <xs:annotation>\n"
" <xs:documentation>Commonly used attributes that configures the generated Virtuoso/PL code.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:attribute name=\"name\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>A page level unique name identifying a control.</xs:documentation>\n"
" </xs:annotation>\n"
" <!-- name of control is always required! -->\n"
" </xs:attribute>\n"
" <xs:attribute name=\"annotation\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A human readable comment.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"initial-enable\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Determines whether a control is initially visible. True by default. Could be data-bound to an SQL expression.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"enabled\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Determines whether a control is visible. True by default. Could be data-bound to an SQL expression.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"instantiate\" type=\"v:CalculateableValue\" use=\"optional\" default=\"true\">\n"
" <xs:annotation>\n"
" <xs:documentation>Determines whether a control instantiate its children. It is true by default. It could be data-bound to an SQL expression. Unlike most of calcucateable attributes, the value of this attribute for a control is calcluated before calling 'on-init' event handler of the control; other values are calculated before calling 'before-data-bind' event handler.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"control-udt\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>At run time every control is represented as an instance of some user-defined type (UDT). VSPX compiles selects the UDT to use depending on name of the XML element that represents the control and maybe some of its attributes. In some specific cases the application developer may instruct VSPX compiler to use some other UDT, e.g. an application-specific UDT that is derived from the preset one. If specified, the value of 'control-udt' attribute should be equal to the name of the desired target UDT.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" </xs:attributeGroup>\n"
" <xs:attributeGroup name=\"SqlColumn\">\n"
" <xs:attribute name=\"column\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of the column bound.\n"
"If nothing else is specified, the column meta data from the containing update form sets the field's attributes.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"null-value\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This value will be shown if value of the column is NULL, also\n"
" value of the control will be set to null if this value is passed upon POST request.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" </xs:attributeGroup>\n"
" <xs:attributeGroup name=\"UserInputAttributes\">\n"
" <xs:annotation>\n"
" <xs:documentation>Attributes that configures reactions on user inputs.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:attribute name=\"error-glyph\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The character to be displayed near the resulting HTML input element if the test of v:validator of the element detects an error in the current value of the element.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"auto-submit\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Flag to auto submit the parent form if value of the control is changed.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" </xs:attributeGroup>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:attributeGroup name=\"FieldValue\">\n"
" <xs:annotation>\n"
" <xs:documentation>Attributes to specify the value that is displayed (and modified) by an user input control.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:attribute name=\"value\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Data bindable value of control, represents value of HTML control to be drawn.\n"
"The calculated value of this attribute is stored in the control in ufl_value field.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"element-value\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>An XML entity that contains a value to be displayed by an HTML control.\n"
"The calculated value is stored in ufl_element_value field of the control.\n"
"This value is used only if ufl_value is null (e.g. if the 'value' attribute is not set at all), and the method vc_get_value_from_element() will be used to calculate ufl_value based on ufl_element_value, ufl_element_path and ufl_element_place.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"element-place\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The place of actual data inside an XML element. The calculated value of this attribute is stored in ufl_element_place field of the control. This is to process XMLSchema-compatible data without writing extra code for handling NULL values. The XML element can contain the value to be bound in either attribute or in an inner text node. XMLSchema treats missing attributes as NULL values. missing text node as an empty string value and if 'xsi:nil' attribute is 'true' then inner text value is NULL no matter if there are any text nodes. These self-evident rules are convenient for XQuery data retrieval but not for data update: an result of some XQuery expression can point to data but not to a place where data should occur in the future.\n"
"The use of 'element-place' allows to eliminate the problem. Attributes 'element-value', 'element-path' and 'element-update-path' may locate an element that is always present whereas 'element-place' describes where the desired datum will occur in the element.\n"
"The value of this attribute should be a string of syntax '@attributename' or 'text()'. If this is '@attributename' then the effective bound value is a value of the specified attribute or NULL if the specified attribute is missing. On update, either the attribute is created/edited in order to set non-NULL value or the attribute is deleted in order to set NULL.\n"
"If text() is specified then both text value of the element and the value of its 'xsi:nil' are properly handled on both data bind and update.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"element-path\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is the path inside the entity that comes from 'element-value' attribute. The default path is 'self::node()'. This path is used to point precisely to an subentity that should actually be used for data binding. The calculated value of this attribute should be a string in XQuery syntax, and it is saved in ufl_element_path member of the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"element-params\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is the vector of parameter values of the path specified by 'element-path' attribute. The default is NULL indicating no parameters. The attribute is calculated but not used if 'element-path' attribute is missing. The calculated value of this attribute should be either NULL or a vector of even length whose items are parameter names and parameter values; refer to the description of xquery_eval() function for more details. The value of the attribute is saved in ufl_element_params member of the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"element-update-path\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Like the value of 'element-path', this is the path inside the entity that comes from 'element-value' attribute. The difference is that 'element-path' is used inside 'vc_get_value_from_element() during data-bind to set ufl_value based on ufl_element_value whereas 'element-update-path' is used during data update inside 'vc_put_value_to_element() in order to save data inside the document that is referenced by ufl_element_value. The default path for update is equal to the path for data bind, i.e. it is the value of the calculated 'element-path' attribute or 'self::node()'. The calculated value of 'element-update-path' should be a string in XQuery syntax, and it is saved in ufl_element_update_path member of the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"element-update-params\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is the vector of parameter values of the path specified by 'element-update-path' attribute. The default is NULL indicating no parameters. The attribute is calculated but not used if 'element-update-path' attribute is missing (e.g. you should not try to specify 'element-path' without 'element-update-path' and both 'element-params' and 'element-update-params' in hope that values from 'element-update-params' will be passed to 'element-path' on update). The calculated value of this attribute should be either NULL or a vector of even length whose items are parameter names and parameter values; refer to the description of xquery_eval() function for more details. The value of the attribute is saved in ufl_element_update_params member of the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"fmt-function\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to convert the value that is bound to the control into a string to use during the rendering. The value of this attribute should be a name of function that takes a single argument of the type that matches the type of ufl_value and returns a string. If this is used then the value of 'cvt-function' should probably be a name of function that converts the string back to the desired data type.\n"
"If a control supports 'format' attribute then the format is applied to the result of 'fmt-function', so the value returned by fmt-function may be e.g. an integer to be formatted by '%d' format.\n"
"The calculated value of this attribute is stored in ufl_fmt_fn field of the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"cvt-function\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to convert a user input of type varchar into a value that should be stored in ufl_value (and e.g. placed into some database column by an update).\n"
"The calculated value of this attribute is stored in ufl_cvt_fn field of the control.\n"
"For more details, see the description of 'fmt_function' attribute above.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" </xs:attributeGroup>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:attributeGroup name=\"LoginParams\">\n"
" <xs:annotation>\n"
" <xs:documentation>The description of login method</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:attribute name=\"realm\" type=\"xs:NMTOKEN\" use=\"required\"/>\n"
" <xs:attribute name=\"mode\" type=\"v:LoginMode\" use=\"required\"/>\n"
" <xs:attribute name=\"user-password\" type=\"xs:NMTOKEN\" use=\"required\"/>\n"
" <xs:attribute name=\"user-password-check\" type=\"xs:NMTOKEN\" use=\"required\"/>\n"
" </xs:attributeGroup>\n"
" <xs:attributeGroup name=\"BrowseButtonParams\">\n"
" <xs:annotation>\n"
" <xs:documentation> These are used in browse-button that opens pup-up window using client-side javascript.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <xs:attribute name=\"child-window-options\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Options for oppening a child pop-up window.This can be used only in conjuction with action browse.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"browser-current\" type=\"xs:int\" use=\"optional\" default=\"0\">\n"
" <xs:annotation>\n"
" <xs:documentation>Current directory of browsing. Can be used only with browse button for WebDAV or File system resources.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"browser-filter\" type=\"xs:string\" use=\"optional\" default=\"*\">\n"
" <xs:annotation>\n"
" <xs:documentation>Filter expression(s) for browsing. (see above)</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"browser-list\" type=\"xs:string\" use=\"optional\" default=\"1\">\n"
" <xs:annotation>\n"
" <xs:documentation>Type of browser list, 0 - short, 1 - long</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"browser-mode\" type=\"xs:string\" use=\"optional\" default=\"RES\">\n"
" <xs:annotation>\n"
" <xs:documentation>COL, RES or STANDALONE , for a file system or DAV browse button, this specifies whether to return an path name or internal ID.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"browser-type\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This designates the type of browser: dav or OS (filesystem).</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"browser-xfer\" type=\"xs:string\" use=\"optional\" fixed=\"DOM\">\n"
" <xs:annotation>\n"
" <xs:documentation>For a browse button, this is the means of transferring the data between windows, DOM is default. No other options in current implementation.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"selector\" type=\"xs:anyURI\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>For a browse button this is the URL that will be loaded into the pop up window.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" </xs:attributeGroup>\n"
" <xs:attributeGroup name=\"DebugAttributes\">\n"
" <xs:annotation>\n"
" <xs:documentation>These attributes are for internal use only. The VSPX compiler adds them automatically to improve localization of errors in source VSPX pages.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:attribute name=\"debug-srcfile\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>URI of the source document where the tag comes from.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"debug-srcline\" type=\"xs:integer\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Line number in the source document where the tag comes from.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"debug-log\" type=\"v:DebugLogValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This defines what sort of data are saved to the debugging log.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" </xs:attributeGroup>\n"
" <xs:attributeGroup name=\"WmAttributes\">\n"
" <xs:anyAttribute namespace=\"##other\" processContents=\"skip\"/>\n"
" </xs:attributeGroup>\n"
" <xs:group name=\"AnyHtmlContent\">\n"
" <xs:annotation>\n"
" <xs:documentation>Arbitrary HTML tags.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:choice>\n"
" <xs:element ref=\"v:style\"/>\n"
" <xs:element ref=\"v:placeholder\"/>\n"
" <xs:element ref=\"v:xsd-stub\"/>\n"
" <xs:element ref=\"v:xsd-stub-script\"/>\n"
" <xs:any namespace=\"##other\" processContents=\"skip\"/>\n"
" <xs:any namespace=\"##local\"/>\n"
" </xs:choice>\n"
" </xs:group>\n"
" <xs:annotation>\n"
" <xs:documentation>VSPX Event Handlers</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType name=\"EventHandler\" mixed=\"true\">\n"
" <xs:annotation>\n"
" <xs:documentation>Arbitrary event handler.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:choice minOccurs=\"0\">\n"
" <xs:element ref=\"v:script\"/>\n"
" <xs:element ref=\"v:xsd-stub-script\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" </xs:complexType>\n"
" <xs:element name=\"after-data-bind\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Container for code that should be executed after data bind.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"The code contained in this element is executed after the default data bind processing on the returning edge of recursion.\n"
"The context has self as the page, control as the control with this handler, event as the vspx_event which caused the page invocation.\n"
"Any return value from the code is ignored.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"before-data-bind\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Container for code that should be executed before data bind.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"The code contained in this element is executed before the default data bind processing on the descending edge of recursion.\n"
"The context has self as the page, control as the control with this handler, event as the vspx_event which caused the page invocation.\n"
"A return value from the code if equal to 1 (one) will stop further data-bind processing of the\n"
"containing control and it's children if any.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"on-post\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Container for code that should be executed when the element gets a post.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"The code contained in this element is executed when the element gets a post.\n"
"For fields and forms, this is a context for an a SQL compound statement that will be executed.\n"
"The statement should end with a return 1 or 0. The implicit return is 0. A return of 1 means that the post is fully handled here and not to be passed on to the parent chain.\n"
"A 0 means that the post was not handled and the next control up the chain will try.\n"
"</xs:documentation>\n"
" <xs:documentation>\n"
"The context has a self which is the page, a vspx_control which is the control which defines this handler, and a origin_control, which is the control that first got the post event. This will be a data field or button. The vspx_event with the post's data will be in the variable event.\n"
"</xs:documentation>\n"
" <xs:documentation>\n"
"The interpretation of the return value is the same for other event handlers. SQL\n"
"conditions signalled will go to the page, these condition handlers are\n"
"invoked in no special context, hence the declare handler for SQL\n"
"construct should not be used to pass control between handlers, but only\n"
"within handlers.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"before-render\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Container for code that should be executed before rendering.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"The code contained in this element is executed on the descending edge of recursion when traversing the vspx control tree before rendering.\n"
"This is expected to have side effects on vspx controls only, not to return anything or emit any output.\n"
"Any return value from the code is ignored.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"on-init\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Container for code that should be executed at the end of control instantiation.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>The code contained in this element is executed at the end of the control's constructor.\n"
" This is expected to have additional initialization checking etc.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"on-init-container\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is identical to v:on-init.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"before-data-bind-container\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is identical to v:before-data-bind.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"after-data-bind-container\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is identical to v:after-data-bind.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"on-post-container\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is identical to v:on-post.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:element name=\"before-render-container\" type=\"v:EventHandler\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is identical to v:before-render.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" </xs:element>\n"
" <xs:group name=\"EventTarget\">\n"
" <xs:annotation>\n"
" <xs:documentation>Something that may become an receiver of an event.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:choice>\n"
" <xs:element ref=\"v:on-init\"/>\n"
" <xs:element ref=\"v:before-data-bind\"/>\n"
" <xs:element ref=\"v:after-data-bind\"/>\n"
" <xs:element ref=\"v:on-post\"/>\n"
" <xs:element ref=\"v:before-render\"/>\n"
" <xs:element ref=\"v:on-init-container\"/>\n"
" <xs:element ref=\"v:before-data-bind-container\"/>\n"
" <xs:element ref=\"v:after-data-bind-container\"/>\n"
" <xs:element ref=\"v:on-post-container\"/>\n"
" <xs:element ref=\"v:before-render-container\"/>\n"
" </xs:choice>\n"
" </xs:group>\n"
" <xs:annotation>\n"
" <xs:documentation>VSPX Controls</xs:documentation>\n"
" </xs:annotation>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"page\">\n"
" <xs:annotation>\n"
" <xs:documentation>The container for the rest of the vspx code.\n"
"The page or a subclass of it will be the outermost VSPX element on any VSPX page.\n"
"Each .vspx file defines explicitly one custom page class derived from vspx_page.\n"
"This element can enclose all HTML elements or can be incorporated in it's children on place apropriate for\n"
"rendering the VSPX controls, but one VSPX page must contain only one vspx:page element. and noe VSPX-specific element may appear outside the vspx:page. It can be placed in other HTML stuff or around it, does not matter, but VSP & VSPX code must be inside it (the same applies to customized HTML attributes, i.e. containing <?V & <?U shortcuts).\n"
"Note that when using 'include' or 'decoration' features the top level page element will be : in case of include - 'this' page, in case of 'decoration' - the decoration page.\n"
"Also page variables, controls will be combined in all cases of inclusion or macro-expansion, so their names must not be duplicated; this means that names of variables introduced by macro expansion or inclusion must not conflict with cnames of variables or controls in the top level page or any included or macro content.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Container of VSPX code.</refpurpose>\n"
" <tutorial id=\"VX-S-1\">/tutorial/web/vx_s_1/simple.vspx</tutorial>\n"
" <tutorial id=\"VX-S-8\">/tutorial/web/vx_s_8/formsty.vspx</tutorial>\n"
" <special-childs>\n"
" <child name=\"variable\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attribute name=\"name\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of subclass of vspx_page to be generated. The name of class will be prefixed with 'page_' plus that name.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"decor\" type=\"xs:anyURI\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This attribute specifies a 'decoration' page URL. The decoration page is a VSPX page that is wrapped around the including page. The content of the including page is then put in the place indicated by a placeholder element in the decor page. This is useful for defining enclosing tables, headers, footers and other repeating content.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"style\" type=\"xs:anyURI\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This designates an external XSL-T style sheet to be apply over the page, before page compilation. This is useful as a 'macro' feature. The XSLT sheet may define rules for macroexpanding things in the page body.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"on-error-redirect\" type=\"xs:anyURI\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This specifies where to redirect the HTTP client in the event of an an unhandled error.\n"
"This will pass a __SQL_STATE, __SQL_MESSAGE and __PAGE as parameters to the error page.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"on-deadlock-retry\" type=\"xs:integer\" use=\"optional\" default=\"0\">\n"
" <xs:annotation>\n"
" <xs:documentation>This specifies how many times to retry page execution upon deadlock.\n"
"When the number of retries is reached, the behaviour will be as for other SQL errors.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"doctype\" type=\"xs:string\" use=\"optional\" default=\"-//W3C//DTD HTML 4.0 Transitional//EN\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to specify the resulting document type declaration (DTD) public URI.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"doctype-system\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to specify the resulting document type declaration (DTD) system URI.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"page-subclass\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of page subclass to be instantiated for processing.\n"
" The subclass with this name MUST already be defined.\n"
" The subclass definition can be kept in a code-behind file (see code-file element).\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"file-name\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of page to be generated.\n"
" Used by wizards to designate where generated page will be stored.\n"
" This attribute do not affect VSPX processing.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"no-script-function\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A function to enable or disable automatic NOSCRIPT element generation.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"include\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>A place where the source code of other page should be inserted.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>The VSPX compiler replaces this control with the content of another page.\n"
"This will include the content from the specified url at this point of the page. The url is relative to the page.\n"
"The inclusion will be done before compilation of VSPX into Virtuoso/PL, hence the include can contain either vspx or static HTML content.\n"
"The only requirement is that the included file be well formed.\n"
"Note also that if you are using vspx namespace in the include file, it must be declared as such.\n"
"This element will not be instantiated.\n"
"instead of instantiating it will be replaced with content of the specified document.\n"
"The included page may or may not contain a 'page' element.\n"
"If a 'page' element is found in the included file\n"
"this will be skipped in the resulting page.\n"
"Also names of controls in the included file MUST NOT conflict with names of controls in the top level page or other included content.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"url\" type=\"xs:anyURI\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>URL of file to be included. If relative then the base is the page where the control resides.\n"
"E.g. If '/home/pageA' includes 'subdir1/pageB' and the included page includes 'subdir2/pageC' then 'pageC' should reside\n"
"in '/home/subdir1/subdir2', not in '/home/subdir2'.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"active\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A data bound value to enable or disable the link. The default is '1' meaning 'enable'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"initial-active\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A data bound value to enable or disable the link. The default is '1' meaning 'enable'.\n"
"Unlike 'active' attribute, this one is effective only when the page is displayed in the first time, not after user posts data back to the page.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"name\" type=\"v:Unused\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is not used; it is allowed for compatibility only.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"code-file\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Code-behind file containing SQL script.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>This element is used to load an external SQL\n"
" script after page class compilation and before page execution.\n"
" This script may contain page subclass or custom control definitions.\n"
" In this way SQL code can be separated from VSPX markup, or in other words\n"
" to separate page design from application logic.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"url\" type=\"xs:anyURI\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>URL of file to be loaded after VSPX page compilation.\n"
" If relative then the base is the page where the control resides\n"
" (i.e. same URL resolution rules applied as for includes).\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"template\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>Container for a group of controls and/or HTML code.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>The container for any optional, repeatable or otherwise grouped controls or code. The type modifier is used to specify special kind of templates (i.e. repeatable content or tree node representation)</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"type\" type=\"v:TemplateType\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The behaviour of the template.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"redirect\" type=\"xs:anyURI\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The URL to which the user agent is redirected if not authenticated, applicable only when type is 'if-no-login'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"condition\" type=\"v:SqlCode\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is a SQL expression to be tested for rendering the template</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"name-to-remove\" type=\"v:QNameOrEmpty\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This works together with set-to-remove, see next.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"set-to-remove\" type=\"v:TemplateSetToRemove\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This combined with name-to-remove gives posibility to remove a HTML elements from output.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"title\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>When used inside tab control, this is used to show as label of the selector</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:simpleType name=\"TemplateType\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"The enumeration of allowed types of v:template.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"simple\">\n"
" <xs:annotation>\n"
" <xs:documentation>The template contains an arbitrary number of controls and HTML tags and groups them together to control their processing, e.g. to enable or disable them altogether depending on some condition.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"repeat\">\n"
" <xs:annotation>\n"
" <xs:documentation>A repeating row of v:data-set. The template of this type will be repeated for each row in the window of the data-set. It will be instantiated, data bound, rendered. If the template contains forms and submits, they get the post method called as one would expect.\n"
"On data binding, the parent of the template has its dg_current_row data member set to an array representing the selected row from left to right.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"row\">\n"
" <xs:annotation>\n"
" <xs:documentation>A repeating row of v:data-grid. The template of this type will be repeated for each row in the window of the v:data-grid. It will be instantiated, data bound, rendered. If the template contains forms and submits, they get the post method called as one would expect.\n"
"On data binding, the parent of the template has its dg_current_row data member set to an array representing the selected row from left to right.\n"
"</xs:documentation>\n"
" <xs:documentation>\n"
"The controls under this template (such as text, label, button etc.) can access data in current row in order as columns are given by referencing te_rowset member of row template.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"frame\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"A non-repeating static content of v:data-grid.\n"
"Content of this template represents view in page when rows are selected,\n"
"position of scroll buttons, rowset and form for adding a record.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"if-exists\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"Template that is enabled only if the resultset is not empty in v:data-set.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"if-not-exists\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template that is enabled only if the resultset is empty in v:data-set.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"add\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template that is enabled when user adds new record in the resultset in v:data-set (if the resultset is not read-only).\n"
"Similarly to templates of type 'edit', the 'add' template contains a vspx:form of type 'update' that is used to allow adding of rows in table as specified.\n"
"Usually this form is a vspx_form + vspx_text constrained to columns and table selected in SQL expression of the parent vspx:data-set control with value of key attributes set to null. Please remember to set the 'if-not-exists' attribute of the form to 'insert'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"browse\">\n"
" <xs:annotation>\n"
" <xs:documentation>This type is meaningful only for templates right inside templates of type 'repeat'. When the template of type 'repeat' is used multiple times to display every row of a data-set, the template of type 'browse' expands only for those rows that are not currently editable.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"edit\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template that is enabled when user edits an existing record in the resultset in v:data-set (if the resultset isnot read-only and if the 'edit' attribute of v:data-set is set to 'true').\n"
"The template of this type usually contains a vspx:form of type 'update';\n"
"the 'table' attribute of the form is the name of the table from 'sql' attribute of the v:data-set where the 'edit' template is located; controls of the form are usually constrained to columns of the SQL expression of that 'sql' attribute.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"if-login\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template that is enabled when user is logged in (e.g. for use in v:login. If the login is valid, the contents of this child will be instantiated. This can be for example a button with 'action' attribute set to 'logout', a welcome message or such. When using the vspx:login system, the user name is is obtained by connection_get ('vspx_user').</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"if-not-login\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template that is enabled when user is not yet logged in or is already logged out (e.g. for use in v:login.\n"
"The template specifies what to do if there are no credentials with the page.\n"
"If the 'redirect' attribute is given, then the entire page containing\n"
"this is not processed at all but instead the page specified in the url\n"
"is processed instead, with the context being that of the invocation of\n"
"this page. The redirect page can thus ask for the login and having\n"
"checked it return to this page, since it knows the url for this. In\n"
"this way it is possible to bookmark places of which the uri's may\n"
"expire, and accessing an expired place will just prompt for the login\n"
"before going to the page.\n"
"\n"
"\n"
"If the redirect is not specified, the content of the template is instantiated and shown. The content can be arbitrary, e.g. the vspx:login-form control can appear here, providing a standard login form that prompts for a user name and password and has a submit button.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"tree-node\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"Template for internal nodes of the tree in v:tree (i.e. for nodes with children).\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"tree-leaf\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template for terminal nodes of the tree in v:tree (i.e. for nodes without children).</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"input\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template for input the SQL statement to execute it interactively in v:isql element.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"result\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template to show if v:isql returns result without an error.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"error\">\n"
" <xs:annotation>\n"
" <xs:documentation>Template to be shown by v:isql if the user entered the SQL query and the execution of this query caused an error.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:simpleType name=\"TemplateSetToRemove\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>The set of HTML tags to be removed from the rendered text.</xs:documentation>\n"
" <xs:documentation>\n"
"<para>When a v:template has 'name-to-remove' attribute, the rendered content will not\n"
"contain the first opening tag and/or the last closing tag whose name is equal to\n"
"the value of 'name-to-remove'.\n"
"So the result of rendering of</para>\n"
"<programlisting><![CDATA[\n"
"<v:template name-to-remove='p' set-to-remove='bottom' ><p>[1A]</p><p>[1B]</p><p>[1C]</p></v:template>\n"
"<v:template name-to-remove='p' set-to-remove='both' ><p>[2A]</p><p>[2B]</p><p>[2C]</p></v:template>\n"
"<v:template name-to-remove='p' set-to-remove='top' ><p>[3A]</p><p>[3B]</p><p>[3C]</p></v:template>]]>\n"
"</programlisting>\n"
"<para> is </para><programlisting><![CDATA[\n"
"<p>[1A]</p><p>[1B]</p><p>[1C][2A]</p><p>[2B]</p><p>[2C][3A]</p><p>[3B]</p><p>[3C]</p>]]></programlisting>\n"
"<para>The typical use is composing of tables, lists etc. on per-line basis.</para>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"none\">\n"
" <xs:annotation>\n"
" <xs:documentation>The rendered output of the enclosing template will not be affected by the 'name-to-remove' attribute of the template.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"top\">\n"
" <xs:annotation>\n"
" <xs:documentation>The rendered output of the enclosing template should not contain the first opening tag whose name is equal to the value of 'name-to-remove' attribute of the template.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"bottom\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"The rendered output of the enclosing template should not contain the last closing tag whose name is equal to the value of 'name-to-remove' attribute of the template.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"both\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"The rendered output of the enclosing template should not contain the both the first opening tag and the last closing tag whose name is equal to the value of 'name-to-remove' attribute of the template.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:element name=\"form\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <target-udt>update_form</target-udt>\n"
" <refpurpose>Generic scriptable container for elements that may accept user's input.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/form.vspx</tutorial>\n"
" <tutorial id=\"VX-S-3\">/tutorial/web/vx_s_3/update_form.vspx</tutorial>\n"
" <special-childs>\n"
" <child name=\"key\"/>\n"
" <child name=\"text\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
" This is a grouping element for controls that handle post data and validation of user's input. In case of type 'update', this is a single row update control for a database table.\n"
"This retrieves the data from the row identified by the keys and shows the data in the column bound fields enclosed. If responding to a post for a submit inside this form, the form updates/inserts the data and shows the resulting state at the render pass.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:FormSpecificContent\"/>\n"
" <xs:group ref=\"v:FormNonSpecificContent\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" <xs:group ref=\"v:AnyHtmlContent\"/>\n"
" <xs:element ref=\"v:template\"/>\n"
" <xs:element ref=\"v:form\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"type\" type=\"v:FormType\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Type of form, can be 'simple' or 'update'. When this is 'simple' the vspx_form class will be instantiated, otherwise in case of 'update' vspx_update_form subclass will be used.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"action\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
" A URL for processing. The data filled-in the form will be submitted to the 'action' page.\n"
" Therefore this is a page where the content of that form will be processed.\n"
" If it is empty, the target is a current page.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"method\" type=\"v:FormMethod\" use=\"optional\" default=\"POST\">\n"
" <xs:annotation>\n"
" <xs:documentation>A method of transferring the form data, can be POST or GET. The same as 'method' of HTML forms.</xs:documentation>\n"
" <xs:documentation>The use of 'GET' is not recommended because the length of the URI may easily exceed internal limits of the browser or an intermediate proxy server.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"table\" type=\"v:SqlTableQname\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>If the value of 'type' attribute is 'update', the form acts as a single row update control for a database table; and the value of 'table' attribute specifies the name of that table.\n"
"It retrieves the data from the row identified by the keys and shows the data in the column bound fields enclosed. If responding to a post for a submit inside this form, the form updates/inserts the data and shows the resulting state at the render pass.\n"
"This attribute is required if 'type' is 'update' and prohibited otherwise.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"if-not-exists\" type=\"v:FormUpdateIfNotExists\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>If the keys do not select any row, and the value of this attribute is 'insert', the update form will be filled in with defaults filled in and will do an insert into the table when the form is submitted.\n"
"In this case of course the keys will have to be defaulted after the post or will have to be supplied in the post as fields.\n"
"Any defaulting should take place in the v:on-post handler which is before the insert or update in the event of the post.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"concurrency\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>If true and a previous value was shown in the form before the post being processed, this causes the system to check whether any of the data has been updated between getting it and the post at hand.\n"
"This is a sort of optimistic concurrency control at the row level. If an update is detected, the updated_meanwhile message is set as the error message of the form and no update is made. The render pass may choose to process this message as it will, the default is to show it as any other error message for form level validation failure.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"triggers\" type=\"v:OnOff\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is applicable for update form only, when this is OFF no PL triggers\n"
" will be fired when inserting or updating.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"data-source\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is applicable to the update form and is\n"
" An alternative of 'table'. When is specified the value is suppsed to be\n"
" valid reference to existing data-source control. Further the given data-source\n"
" will be used to bind/update the data.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:simpleType name=\"FormType\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>The enumeration of allowed types of forms.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"simple\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"Form with no special data binding.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"update\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"Form that may be used in templates of type 'update' or 'add'.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"FormMethod\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>POST or GET</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"GET\"/>\n"
" <xs:enumeration value=\"POST\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"VariableStorage\" final=\"restriction\">\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"session\">\n"
" <xs:annotation>\n"
" <xs:documentation>keep the variable in the session; needs a login control to be present</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"pagestate\">\n"
" <xs:annotation>\n"
" <xs:documentation>keep the variable in page view state</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"temp\">\n"
" <xs:annotation>\n"
" <xs:documentation>do not keep variable</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"0\">\n"
" <xs:annotation>\n"
" <xs:documentation>same as 'pagestate'</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"1\">\n"
" <xs:annotation>\n"
" <xs:documentation>same as 'session'</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:simpleType name=\"FormUpdateIfNotExists\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
" <!-- TBD -->\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"insert\"/>\n"
" <xs:enumeration value=\"nothing\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:element name=\"tab\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"A container that contains some number of pages and displays them one by one.\n"
"This can be used for multi-page forms or Windows style tabbed decks or making multi-part forms, alternative visualizations of the same data etc.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Selects one of its children to be active at any one time.</refpurpose>\n"
" <tutorial id=\"VX-S-5\">/tutorial/web/vx_s_5/tab.vspx</tutorial>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyHtmlContent\"/>\n"
" <xs:element ref=\"v:template\"/>\n"
" <xs:element ref=\"v:select-list\"/>\n"
" <xs:element ref=\"v:data-list\"/>\n"
" <xs:element ref=\"v:radio-group\"/>\n"
" <xs:element ref=\"v:hidden\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"initial-active\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This is the name of the child template which is active at the time and\n"
"which thus will be rendered. Whether inactive templates are\n"
"instantiated and keep state is controlled by is-input. The active\n"
"attribute initializes the tb_active member of the vspx_tab instance.\n"
"This is preserved in the view state. Data bindable.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"style\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This determines what HTML control is used to select which child is shown.\n"
"If unspecified, there will be no such control and the program logic is responsible for flipping the pages. Otherwise \"list\" means there is a HTML select control showing the titles of the tabs. \"radio\" means the titles of the tabs are shown as a radio group. If there is a tab selector widget, it is always above the tabs.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"active\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A data bound value to enable or disable the tab switch.\n"
" The default is '1' meaning 'enable'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"is-input\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>If true, all the children are considered to be collectively a\n"
" multipart form and each will be instantiated when the page is made and\n"
" will get to retain a view state. Although only one page of the form\n"
" is shown at a time, the state of all is kept. Not data bindable.\n"
" The default is '1' meaning 'template contains input'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"script\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>A (redundant) wrapper for SQL code, can be omitted.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"This control can appear only inside event handling controls and it always contain SQL code to be executed when the event occurs.\n"
"There is no difference for VSPX compiler whether SQL code is enclosed in 'script' control or not.\n"
"Some WYSIWYG tools can display the enclosed SQL code to the application developer according to custom attributes of this control\n"
"but it does not affect the generated Virtuoso/PL code of the page.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:sequence minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:any namespace=\"##any\"/>\n"
" </xs:sequence>\n"
" <xs:attribute name=\"language\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Denotes the type of language,\n"
" currently only Virtuoso/PL expressions are supported.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"variable\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This element declares a data member for the page subclass corresponding to the containing page.\n"
"The value of this data member can be preserved between consecutive postbacks.\n"
"The attribute \"persist\" determine how to save the variable's value: to session table for inter-page usage, keep in page state only or do not keep it at all.\n"
"Note that inter-page variable storage is available only when a vspx:login control is included on the page and authentication is performed; also the name of page variables in corresponding pages needs to be same.\n"
"There is no special class for this control because only a data member will be added.\n"
"Also the page defines two special variables 'sid' and 'realm' for login control.\n"
"So when an existing login control is is in authenticated state, these will contain values for session id and application realm.\n"
"Also every non-repeating control of the page will be represented as a page variable and thus be acessible as 'self.<name_of_control>' anywhere in the VSPX page after page initialization.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Page variable - a user defined member of page class.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:sequence minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:any namespace=\"##any\"/>\n"
" </xs:sequence>\n"
" <xs:attribute name=\"name\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of page class member.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"type\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The SQL data type of the variable.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"default\" type=\"v:SqlCode\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The default value. Must be a literal scalar value suitable for the default clause of a user defined type member.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"persist\" type=\"v:VariableStorage\" use=\"optional\" default=\"pagestate\"/>\n"
" <xs:attribute name=\"param-name\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This specifies an optional name of a URL parameter for setting the page variable value.\n"
" When this is specified and there is a parameter matching the name, the variable is set after it. This is a shorthand for an explicit call of keyword_get.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"local-variable\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This tag declares a control that can store a temporary value that can be accessed from other controls.\n"
"Usually it is an intermediate value that is used by a group of controls of the same form. E.g. if\n"
"controls of a form display various data stored in a complex object then it may be convenient to obtain this object once and place it\n"
"into value of a local-variable control that is the first child control of a form. The rest of child controls may access the value\n"
"from the first child to calculate their values.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <target-udt>field_value</target-udt>\n"
" <refpurpose>Local variable - an invisible control to store a temporary value.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:group ref=\"v:EventTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"method\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Page method - a user defined member of page class.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>This creates a custom method of the page class.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:complexContent>\n"
" <xs:extension base=\"v:EventHandler\">\n"
" <xs:attribute name=\"name\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of method to be created</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"returns\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Optional return datatype type</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"arglist\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>comma-separated list of arguments. For example : \"in arg1 varchar, out arg1 integer ...\"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" </xs:extension>\n"
" </xs:complexContent>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"validator\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <target-udt>range_validator</target-udt>\n"
" <refpurpose>A validator that is applied to user input.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/date.vspx</tutorial>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"The validator objects are invoked when the element's control gets posted. the validator elements only make sense inside field or form types of controls. the validators are invoked in the order given, and the first one to fail stops the invocation chain, so that no later ones are attempted.\n"
"furthermore the vc_is_valid member of the containing page class instance will be reset to false (0) to stop further processing. see also error-summary element and error-glyph attribute of field element.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"test\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The type of test to be performed, can be 'length', 'value', 'regexp' or 'sql'.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:simpleType>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"length\"/>\n"
" <xs:enumeration value=\"value\"/>\n"
" <xs:enumeration value=\"regexp\"/>\n"
" <xs:enumeration value=\"sql\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"min\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A lower limit in value and length tests\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"max\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The upper limit for value and length tests\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"regexp\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The REGEXP pattern to match field value\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"expression\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A SQL expression for validation\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"empty-allowed\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>If specified as true (1) this will allow submitting an empty field\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"message\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The error message to be associated to parent control when the test represented by this validator fails.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"runat\" type=\"v:ValidatorType\" use=\"optional\" default=\"server\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>Where to perform validation, at server side after posting, or at browser side when entering the values. Note that client side validators can be assigned only to input controls, hence client side form validators for inter-field integrity testing are not allowed.</para>\n"
" <para>Client side validators will generate client side JavaScript.</para>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:simpleType name=\"ValidatorType\" final=\"restriction\">\n"
" <xs:annotation>\n"
" <xs:documentation>server or client</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"server\"/>\n"
" <xs:enumeration value=\"client\"/>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:group name=\"UserInputTarget\">\n"
" <xs:annotation>\n"
" <xs:documentation>Something that may be edited by a user.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:choice>\n"
" <xs:element ref=\"v:validator\"/>\n"
" </xs:choice>\n"
" </xs:group>\n"
" <xs:element name=\"field\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Name of input to be sent to and back between pup-up and parent window.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
" This element may occur under browse-button or select button,\n"
" it enumerates the names of inputs to be sent between pop-up and parent window.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"ref\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>When a field is used as child of and return button\n"
" then this must contain valid reference to name of a input control\n"
" (like text, select-list, data-list etc.) from current page. The referenced\n"
" control's value will be used to set the value of control with name specified in\n"
" attribute 'name' in the target page. The data will be set using automatically generated\n"
" JavaScript function.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"button\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <target-udt>delete_button</target-udt>\n"
" <target-udt>logout_button</target-udt>\n"
" <target-udt>browse_button</target-udt>\n"
" <target-udt>return_button</target-udt>\n"
" <target-udt>submit</target-udt>\n"
" <refpurpose>Scriptable button.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/form.vspx</tutorial>\n"
" <tutorial id=\"VX-S-7\">/tutorial/web/vx_s_7/products.vspx</tutorial>\n"
" </xs:appinfo>\n"
" <xs:documentation>Scriptable version of Submit Button of the HTML form. Depending of\n"
"'action' attribute it may have variants. In some of these variants the button will not have a submit function, as in select and browse buttons. In these cases the button will use client JavaScript to pop up new windows or for setting values in other windows.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:element ref=\"v:field\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attribute name=\"action\" type=\"v:ButtonAction\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>This specifies the button subclass to use.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"value\" type=\"v:CalculateableValue\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>Text of the label of the button.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"style\" type=\"v:ButtonStyle\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A style of button, affects appearance.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"active\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A data bound value to enable or disable the button. The default is '1' meaning 'enable'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"initial-active\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A data bound value to enable or disable the button. The default is '1' meaning 'enable'.\n"
"Unlike 'active' attribute, this one is effective only when the page is displayed in the first time, not after user posts data back to the page.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:BrowseButtonParams\"/>\n"
" <xs:attribute name=\"format\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A sprintf format string for printing the value</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"radio-button\">\n"
" <xs:annotation>\n"
" <xs:documentation>is a scriptable version of HTML radio button.</xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Scriptable radio button.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/radio.vspx</tutorial>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:UserInputAttributes\"/>\n"
" <xs:attribute name=\"group-name\" type=\"xs:NCName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>When several check boxes are to be grouped, this is the name of the group. Upon post the name of the group will be submitted instead of the than name of the control. This also will restrict in the group to have more than one button on</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attribute name=\"initial-checked\" type=\"xs:integer\" use=\"optional\" default=\"0\">\n"
" <xs:annotation>\n"
" <xs:documentation>This flag specifies whther this control is initially checked.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"check-box\">\n"
" <xs:annotation>\n"
" <xs:documentation>is a represantation of HTML check box. Scriptable, databindable.</xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Scriptable check-box.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/check_box.vspx</tutorial>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:UserInputAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attribute name=\"group-name\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"When several check boxes are grouped, this is the group name.\n"
"This will be submitted instead of the control name on post.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"initial-checked\" type=\"v:CalculateableValue\" use=\"optional\" default=\"0\">\n"
" <xs:annotation>\n"
" <xs:documentation>Specifies whether the control is initially checked.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"is-boolean\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>If this attribute is set to '1' then the check-box is forced to ignore its 'initial-checked' status and work using the data-bound value as the only criterion for enabling or disabling its 'checked' property. This mode is convenient for editing two-state data values. Before render, the control will check if the ufl_value is equal to 'true-value' or 'false-value', and it is displayed as checked if the ufl_value is equal to 'true-value' (or it is not equal to any of these two but is not a logical 'false'). On post, a new status of the checkbox is inspected, and the ufl_value is set to 'true-value' if it is checked or 'false-value' otherwise.\n"
"The default value of this attribute is '0' meaning that there is no system-level relation between the 'checked' status and the 'value'.\n"
"When the form with the check-box submits data, the submitted value of the attribute depends on its 'is-boolean' property. If it's '0' then the result of cast (control.ufl_value as varchar) is submitted; otherwise a string '1' is submitted.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"true-value\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This attribute should be used if and only if 'is-boolean' attribute is set to '1'.\n"
"The calculated value of this attribute is saved in ufl_true_value field of the control and is used to represent a logical 'true' for the control. The checkbox is displayed as checked if the bound value is equal to the ufl_true_value. If the checked checkbox is submitted then the bound value of the control is set to the ufl_true_value.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"false-value\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This attribute should be used if and only if 'is-boolean' attribute is set to '1'.\n"
"The calculated value of this attribute is saved in ufl_false_value field of the control and is used to represent a logical 'false' for the control. The checkbox is displayed as not checked if the bound value is equal to the ufl_valuse_value. If no checked checkbox is submitted by a form then the bound value of the control is set to ufl_false_value.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"text\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>Scriptable, data-bindable input control.</refpurpose>\n"
" <special-childs>\n"
" <child name=\"validator\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" <xs:documentation>Text input, with scripts and validation options but no implied database binding. String input of the HTML form.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"false\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:UserInputAttributes\"/>\n"
" <xs:attribute name=\"type\" type=\"v:TextInputType\" use=\"optional\" default=\"plain\"/>\n"
" <xs:attribute name=\"default\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The default value of input field.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attribute name=\"default-value\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is an expression for setting the default value of the text.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"default_value\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is deprecated alias for 'default-value' attribute (note the difference between minus sign and underscore).</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"format\" type=\"v:CalculateableValue\" use=\"optional\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"textarea\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>Scriptable text-area input.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/textarea.vspx</tutorial>\n"
" <special-childs>\n"
" <child name=\"validator\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" <xs:documentation>Scriptable, databindable HTML text area.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:UserInputAttributes\"/>\n"
" <xs:attribute name=\"type\" type=\"v:TextInputType\" use=\"optional\" default=\"plain\"/>\n"
" <xs:attribute name=\"default_value\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The default value of the field. Can be accessed via control.ufl_value n data bind stage.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"default\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Deprecated alias of 'default_value'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:simpleType name=\"TextInputType\">\n"
" <xs:annotation>\n"
" <xs:documentation>The way of displaying the value to the user.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"plain\">\n"
" <xs:annotation>\n"
" <xs:documentation>The value is displayed in a usual way and user can edit it. This is the default value.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"password\">\n"
" <xs:annotation>\n"
" <xs:documentation>The value is not shown on the screen to prevent occasional reading, only astericks are shown in the input field.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"hidden\">\n"
" <xs:annotation>\n"
" <xs:documentation>The text is passed to the target page without displaying it to the user.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:element name=\"item\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"Item representing a selection inside a select list.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Item representing a selection inside a select list.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"name\" type=\"v:SqlCode\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The visible value of the option, it will be shown\n"
" in the option list.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"value\" type=\"xs:string\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The key value of the option, it will be assigned\n"
" to the select control ufl_value is given option is seelcted.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"select-list\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is a scriptable version of HTML select control.\n"
"It shows a static list of items (see item element). Databind and on-post scripts are allowed.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Fixed initialized select list.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/select.vspx</tutorial>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" <xs:element ref=\"v:item\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:UserInputAttributes\"/>\n"
" <xs:attribute name=\"multiple\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Used to designate a multiple selection list box.\n"
" In this case the control's value will be an array of key data of selected items.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"key\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>A key value of the vspx:form of type 'update'.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>This control defines a key value of the vspx:form of type 'update'.\n"
"All the vspx:key children together should select one or zero rows from the table.\n"
"Controls inside the form will process fields of this selected row.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"name\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Not used</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"column\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>Name of the column in the table to be updated.\n"
"This may be either the name of a primary key column or an other column, as long as the selection specified by all vspx:key children of the vspx:form is unambiguous.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"value\" type=\"v:CalculateableValue\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The value of the key field referred to by the 'column' attribute.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"default\" type=\"v:CalculateableValue\" use=\"optional\" default=\"null\">\n"
" <xs:annotation>\n"
" <xs:documentation>The default value to be used when the 'value' expression returns NULL.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:group name=\"FormSpecificContent\">\n"
" <xs:annotation>\n"
" <xs:documentation>Elements that may appear only inside a form.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:choice>\n"
" <xs:element ref=\"v:button\"/>\n"
" <xs:element ref=\"v:radio-group\"/>\n"
" <xs:element ref=\"v:radio-button\"/>\n"
" <xs:element ref=\"v:check-box\"/>\n"
" <xs:element ref=\"v:select-list\"/>\n"
" <xs:element ref=\"v:data-list\"/>\n"
" <xs:element ref=\"v:textarea\"/>\n"
" <xs:element ref=\"v:text\"/>\n"
" <xs:element ref=\"v:key\"/>\n"
" <xs:element ref=\"v:error-summary\"/>\n"
" <xs:element ref=\"v:calendar\"/>\n"
" </xs:choice>\n"
" </xs:group>\n"
" <xs:element name=\"label\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>Generic scriptable text.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>This is for displaying a value as plain text.\n"
"The underlying class is derived from VSPX_FIELD so the value to be displayed is accessible as a value of any VSPX field.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attribute name=\"format\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A sprintf format string for printing the value</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"url\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>Generic scriptable hypertext link.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>Dynamic data bindable hypertext link.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attribute name=\"format\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A sprintf format string for printing the value</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"url\" type=\"v:CalculateableValue\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>A data bound value to be printed in place of href attribute.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"active\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A data bound value to enable or disable the url. The default is '1' meaning 'enable'.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"data-list\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>Select list initialized from database table.</refpurpose>\n"
" <tutorial id=\"VX-S-3\">/tutorial/web/vx_s_3/selectdb.vspx</tutorial>\n"
" </xs:appinfo>\n"
" <xs:documentation>This control is used to make a select list, based on a SQL expression.\n"
" Also instead of SQL expression only table name could be given, so then control will compose apropriate select statement.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:UserInputAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:SqlColumn\"/>\n"
" <xs:attributeGroup ref=\"v:FieldValue\"/>\n"
" <xs:attribute name=\"table\" type=\"v:SqlTableQname\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A table name for select statement.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"key-column\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A key column name.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"value-column\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A value column name.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"sql\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>An alterantive of 'table' attribute, when this attribute\n"
" is specified it must contains a valid select statement. The selection list\n"
" will be instantiated using a cursor as this expression is defined.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"defvalue\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A default value for the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"multiple\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Used to desigante a multiple selection list box.\n"
" In this case the control's value will be an array of key data of selected items.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"list-document\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to obtain all or some of items of the select-list from an XML document. If this attribute is specified then the value of the calculated attribute should be an XML entity and this entity will be saved in vsl_list_document field of the control; values of 'list-match', 'list-key-path' and 'list-value-path' arguments should specify XQuery expressions that should be used to retrieve keys and displayable values of items.\n"
"All selection items composed from the value of 'list-document' will be listed before all items from 'table' or 'sql', if both methods of data retrieval are used.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"list-match\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to calculate a string value that is an XQuery expression. The text of this expression will be saved in 'vsl_list_match' member of the control. This expression will be used during data binding to get array of displayable items from the value of 'list-document'. The expression should return a node-set using 'list-document' entity as a context mode; every item of the node-set will be converted into list item via 'list-key-path' and 'list-value-path' expressions.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"list-key-path\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to specify the XQuery expression that calculates key value of a list item, using a result of 'list-match' as a context node. The text of the expression will be saved in 'vsl_list_key_path' member of the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"list-value-path\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is to specify the XQuery expression that calculates a displayable value of a list item, using a result of 'list-match' as a context node. The text of the expression will be saved in 'vsl_list_value_path' member of the control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"node\">\n"
" <xs:annotation>\n"
" <xs:documentation>This control indicates the place of a subtree inside a node template.</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>A place holder for rendering a tree node.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"void\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Not used.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"tree\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>A container for displaying a tree of nested nodes.</refpurpose>\n"
" <tutorial id=\"VX-S-4\">/tutorial/web/vx_s_4/tree.vspx</tutorial>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
" <para>This can be used for hierarchical tables of contents,\n"
" directory browsing, hierarchical menus and such.\n"
" The tree can have either one or more branches open at any time, up to\n"
" the leaves. The tree has a root, which may or may not be visible.\n"
" The contents of the tree can either be fixed, in which case these are an\n"
" XML tree, or dynamic, in which case these are generated level by level\n"
" by SQL functions attached to the tree. The tree can have various external appearences.</para>\n"
"\n"
" <para>The tree is represented at run time by a vspx_tree instance.\n"
" Nodes of the tree are represented by vspx_tree_node objects,\n"
" which are childs of the vspx_tree. The nodes hold an identifier (vc_instance_name)\n"
" of the corresponding tree branch, which is used to retrieve children of the node.\n"
" These also hold a flag (tn_open member) indicating if the node is open or not.</para>\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:element ref=\"v:template\"/>\n"
" <xs:element ref=\"v:node-template\"/>\n"
" <xs:element ref=\"v:leaf-template\"/>\n"
" <xs:element ref=\"v:horizontal-template\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"show-root\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This attribute is obsolete and has no effect.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"multi-branch\" type=\"xs:boolean\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This determines whether more than one branches can be open at one time.\n"
"The values are 0 and 1 (true and false). The default is 0 (false).\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"orientation\" type=\"v:TreeOrientation\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
" This can be 'horizontal' or 'vertical', the default is 'vertical'.\n"
" The tree can have different styles. The default is a vertical arrangement\n"
" with open levels indented, the children under the parent node.\n"
" Each node template is a single line. The horizontal style shows each level on a separate line.\n"
" In this case it is not allowed multiple open branches. The children of the root will be\n"
" shown on one line. When one is opened, its children will fill the next line.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"root\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>\n"
"This is a SQL expression which produces the root object.\n"
"This can be of any data type, a file system path is an example.\n"
"</para>\n"
"<programlisting>\n"
"<![CDATA[\n"
"create procedure root_node (in path varchar)\n"
"{\n"
" declare i, l int;\n"
" declare ret, arr any;\n"
" arr :=\n"
" vector_concat (sys_dirlist (path, 0), sys_dirlist (path, 1));\n"
"\n"
" return arr;\n"
"};\n"
"]]></programlisting>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"child-function\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"<para>Given the result of the root expression, this must generate an array\n"
"of similar elements corresponing to the children of the node in\n"
"question. This same function should be applicable to each element of\n"
"the array it returns. If the array is empty then the node in question\n"
"is a leaf.</para>\n"
"<programlisting>\n"
"<![CDATA[\n"
"\n"
"-- Example of this function\n"
"\n"
"create procedure child_node (in node_name varchar, in node varchar)\n"
"{\n"
" declare i, l int;\n"
" declare ret, arr any;\n"
" declare exit handler for sqlstate '*'\n"
" {\n"
" return vector ();\n"
" };\n"
" if (isstring (file_stat (node_name, 3)))\n"
" return vector ();\n"
"\n"
" arr :=\n"
" vector_concat (sys_dirlist (node_name, 0), sys_dirlist (node_name, 1));\n"
"\n"
" return arr;\n"
"}\n"
";\n",
"]]></programlisting>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"start-path\" type=\"v:CalculateableValue\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is an expression which will be evaluated and passed to the 'root' function as argument.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"open-at\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is an expression which will be used as XPath\n"
" expression to designate which branches of the tree are open\n"
" and which are not initially.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"error-summary\">\n"
" <xs:annotation>\n"
" <xs:documentation>Placeholder for form error messages.\n"
"This is used on a form to mark where error messages resulting from field or form validation are to be placed.\n"
"This will be rendered if the vc_is_valid member of the enclosing page is false.\n"
"If rendered, this prints an error message generated by a validator or a catch handler.\n"
"This control wiil not be instantiated. The error-summary may show errors for all controls or for a group of controls whose name matches a given regular expression.\n"
"The vc_error_message members of all controls whose validation failed will be shown at the place marked by this control if attribute 'match' is not specified. Otherwise the vc_error_message of controls whose validation failed and 'name' matches the pattern specified will be shown.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Placeholder for error messages.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"match\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This attribute specifies a regular expression to be matched against names of controls with failed validation.\n"
"The expression may match more than one control name, concatenating the messages in document order of controls. In this way an error summary may appear in\n"
"different places of the page to print errors for different controls.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:group name=\"FormNonSpecificContent\">\n"
" <xs:annotation>\n"
" <xs:documentation>Elements that may appear both inside and outside a form.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:choice>\n"
" <xs:element ref=\"v:variable\"/>\n"
" <xs:element ref=\"v:local-variable\"/>\n"
" <xs:element ref=\"v:method\"/>\n"
" <xs:element ref=\"v:label\"/>\n"
" <xs:element ref=\"v:url\"/>\n"
" <xs:element ref=\"v:data-grid\"/>\n"
" <xs:element ref=\"v:data-set\"/>\n"
" <xs:element ref=\"v:data-source\"/>\n"
" <xs:element ref=\"v:tab\"/>\n"
" <xs:element ref=\"v:tree\"/>\n"
" <xs:element ref=\"v:include\"/>\n"
" <xs:element ref=\"v:isql\"/>\n"
" <xs:element ref=\"v:login\"/>\n"
" <xs:element ref=\"v:vscx\"/>\n"
" <xs:element ref=\"v:local-variable\"/>\n"
" </xs:choice>\n"
" </xs:group>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"login-form\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"login-form is the control for getting login information. This may only appear inside a login.\n"
"Its function will depend on the type of login being attempted. If the type is digest, this is a button which, when submitted, will send the digest challenge.\n"
" </xs:documentation>\n"
" <xs:documentation>\n"
"If the url or cookie session mode is chosen, this will be a form of 2 fields with user name and password and a submit button.\n"
" </xs:documentation>\n"
" <xs:documentation>\n"
"if the standard form is not suitable, this can be an arbitrary form. This must post buttons values named \"username\" and \"password\" and a submit button named \"login\". No children need be specified if the default form is OK.\n"
" </xs:documentation>\n"
" <xs:documentation>\n"
"If the redirect attribute of template[@type=if-no-login] is not specified,\n"
"the contents of this child are instantiated and shown in the place of the login control.\n"
"This can be arbitrary content.\n"
" </xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>A form to be shown if the user is not logged in.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"required\" type=\"xs:boolean\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"If digest is the mode, then this means that the login is mandatory and that instead of displaying the login button which will send the challenge if pressed, the challenge will be sent automatically.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"title\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Title of login button if digest is attempted.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"user-title\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Title of user name field\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"password-title\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Title of password field\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"submit-title\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Title of submit button\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"login\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>Authentication parameters of a page.</refpurpose>\n"
" <tutorial id=\"VX-S-6\">/tutorial/web/vx_s_6/login.vspx</tutorial>\n"
" <special-childs>\n"
" <child name=\"button\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"<para>The login control controls authentication for its page.\n"
"Depending on options this may or may not be visible.\n"
"This works together with a login-form and logout-button controls. The storage of passwords and user names is left to the application, which can specify functions called by these widgets.\n"
"The server keeps login information in the following table:</para>\n"
"<programlisting>\n"
"<![CDATA[\n"
"create table VSPX_SESSION (VS_REALM varchar, VS_SID varchar, VS_UID varchar, VS_STATE long varchar,\n"
" primary key (VS_REALM, VS_SID));\n"
"]]>\n"
"</programlisting>\n"
"<para> This table is shared between all vspx applications, each with their login differentiated by realm.\n"
"The state is an array of name value pairs which will be accessed through connection_get and connection_set inside the page code.</para>\n"
"<para>\n"
"There are three methods of keeping session state:URL-poisoning, digest authentication and Cookies.The URL-poisoning scheme presents a login dialog form and sets a session ID as hidden form element.\n"
"Digest authentication uses an opaque value as session id and is available only for browsers that support standard HTTP 1.1 digest authentication. The Cookie is an analogue of URL poisoning, but in that case session ID is kept as a Cookie, thus cookies must be enabled on the browser.\n"
"</para>\n"
"\n"
"<para>\n"
"The login control is mandatory when using a persistent page variables (see persist=\"session\" attribute of 'variable' control). This is because HTTP protocol is state-less; therefore value of such variables have to be stored in a table and restored on next hit with same session ID (and realm). Hence as login control maintains a session state (via some mechanism, see notes above), this capability is used to maintain persistent page variables.\n"
"Note also that persistent page variables can be used between different pages, in that case all of those pages need to have login control (in most cases it is invisible).\n"
"</para>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:FormNonSpecificContent\"/>\n"
" <xs:group ref=\"v:FormSpecificContent\"/>\n"
" <xs:element ref=\"v:template\"/>\n"
" <xs:element ref=\"v:login-form\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"realm\" type=\"xs:string\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is the authentication realm name.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"mode\" type=\"v:LoginMode\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>This specifies the preferred mode of keeping session and login information.\n"
"In the case of url and cookie the name and password will have to be supplied in a form submit. The vspx:login-form control provides a convenient way of doing this. If passwords are transmitted in a form submit, it is best for security to have the login page accessed via SSL only. Many values may be separated by spaces. This is the order of preference. The system will use the first available depending on the user agent.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"user-password\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"<para>The name of a SQL function which will retrieve the password given a user name. If digest authentication is to be possible, this function must be specified. Example:\n"
"</para>\n"
"<programlisting><![CDATA[\n"
"create procedure\n"
"sql_user_password (in name varchar)\n"
"{\n"
" declare pass varchar;\n"
" pass := NULL;\n"
" whenever not found goto none;\n"
" select pwd_magic_calc (U_NAME, U_PASSWORD, 1) into pass\n"
" from SYS_USERS where U_NAME = name and U_SQL_ENABLE = 1 and U_IS_ROLE = 0;\n"
"none:\n"
" return pass;\n"
"}\n"
";]]></programlisting>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"user-password-check\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"<para>This is a function which takes the user name and password (unencrypted) and returns true if these match, false otherwise.</para>\n"
"\n"
"<para>\n"
"If the application will keep a session state which will automatically be extracted from the application's user repository upon login, then either of these functions may set this using connection_set. This will persist in the session if the login is successful and will be discarded otherwise. An example of such information is a user privilege class, real name, email or such.\n"
"These functions may be called one or more times during the session, but no more than one call at the start is guaranteed.</para>\n"
"<para>Example:</para>\n"
"<programlisting><![CDATA[\n"
"\n"
"create procedure\n"
"sql_user_password_check (in name varchar, in pass varchar)\n"
"{\n"
" if (exists (select 1 from SYS_USERS where U_NAME = name and U_SQL_ENABLE = 1 and U_IS_ROLE = 0 and\n"
" pwd_magic_calc (U_NAME, U_PASSWORD, 1) = pass))\n"
" return 1;\n"
" return 0;\n"
"}\n"
";]]></programlisting>\n"
"<para>Note: when the mode is digest the login control will only call user_password and in other modes it will only call user_password_check.</para>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:group name=\"AnyVspxPageContent\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:FormSpecificContent\"/>\n"
" <xs:group ref=\"v:FormNonSpecificContent\"/>\n"
" <xs:group ref=\"v:AnyHtmlContent\"/>\n"
" <xs:element ref=\"v:node\"/>\n"
" <xs:element ref=\"v:form\"/>\n"
" <xs:element ref=\"v:template\"/>\n"
" <xs:element ref=\"v:hidden\"/>\n"
" <xs:element ref=\"v:login\"/>\n"
" <xs:element ref=\"v:login-form\"/>\n"
" <xs:element ref=\"v:code-file\"/>\n"
" </xs:choice>\n"
" </xs:group>\n"
" <xs:element name=\"column\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>A column marker.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"A column marker for use in v:data-set, v:data-grid and v:data-source.\n"
"This element should exist for each selected column of the SQL expression of the data set.\n"
"If this is specified under data-set, data-source or data-grid controls, this must be the exact same columns as in SQL statement to be evaluated. If those element is omitted in data-set or data-grid, the columns will be extracted from compilation of the SQL statement.\n"
"However, this will always be required for calls of stored procedures that return resultsets and for the data-source control.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"name\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of column\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"label\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Alternate text which could be used to display in column headings.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"input-format\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A sprintf format string for printing the input value\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"output-format\" type=\"xs:string\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A sprintf format string for printing the output value\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"data-set\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>A container for displaying and/or editing the content of a resultset.\n"
"This is the generic multi-row database view control. It is used to show repeating data, as from tables\n"
"or procedure views. Allows scrolling (paging) editing the data; adding a row or removal of existing rows.\n"
"Usually this control generates a PL scrollable cursor of type. The number of rows shown is\n"
"configurable via nrows attribute. Note also that column children elements are optional; they can be omitted\n"
"so then VSPX engine will compute them from the specified SQL statement in 'sql' attribute.</para>\n"
"\n"
"<para>This control has the same functionality as the data-grid control but has different syntax, better suited for editing via plugins for 3-d party WYSWYG HTML authoring tools (as Addobe GoLive and similar).</para>\n"
"\n"
"<para>Specific to this control is to have several templates to present repeating and non-repeating groups of children elements. These templates are as follows: two generic templates to represent header and footer sections and one repeating template to enclose edit, add, not-exists and row (browse) sections. All of those templates are optional and their usage can be seen in examples.</para>\n"
"\n"
"<para>Also following the convention for names of controls must be followed: for scrolling buttons - [data-set name]'_prev', [data-set name]'_next', [data-set name]'_first' and [data-set name]'_last'; for editing buttons - [data-set name]'_edit' and [data-set name]'_delete'.</para>\n"
" </xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Scrollable, multi-row data bound grid.</refpurpose>\n"
" <tutorial id=\"VX-S-3\">/tutorial/web/vx_s_3/data_set.vspx</tutorial>\n"
" <special-childs>\n"
" <child name=\"\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" <xs:element ref=\"v:column\"/>\n"
" <xs:element ref=\"v:param\"/>\n"
" <xs:element ref=\"v:key\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"sql\" type=\"v:SqlCode\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The select statement that gets the data.\n"
"Parameters to the statement MUST be specified as SQL identifiers prefixed with a colon.\n"
"The values are given in the control's vspx:param children. These specify the parameter name and a data bound expression for the value.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"data-source\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>A reference to a data-source, which wil lbe used to bind the data in data-set grid.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"data\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>When this attribute is specified it must be an\n"
"expression returning array of arrays. This is an alternative to specifying an\n"
"SQL expression or data-source. The result then will be used to instantiate\n"
"the repeating group. An example of such data is the result returned by 'exec' function:</para>\n"
"<programlisting>\n"
"(\n"
" (\"ALFKI\" \"Alfreds Futterkiste\" \"030-0074321\" )\n"
" (\"ANATR\" \"Ana Trujillo Emparedados y helados\" \"(5) 555-4729\" )\n"
")\n"
"</programlisting>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"meta\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>This attribute is used together with 'data', so when is\n"
"specified it needs to be an expression returning a meta-data for columns corresponding to the\n"
"these returned by 'data' expression. In practice it's same as 1-st element of metadata returned by 'exec()' :\n"
"</para>\n"
"\n"
"<programlisting>\n"
"(\n"
" (\"CustomerID\" 182 0 5 0 1 1 \"Demo\" \"CustomerID\" \"demo\" \"Customers\" 0 )\n"
" (\"CompanyName\" 182 0 40 1 1 1 \"Demo\" \"CompanyName\" \"demo\" \"Customers\" 0 )\n"
" (\"Phone\" 182 0 24 1 1 1 \"Demo\" \"Phone\" \"demo\" \"Customers\" 0 )\n"
")\n"
"</programlisting>\n"
"\n"
"<para>for details of metadata see 'exec()' function description.</para>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"nrows\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The maximum number of replicas of the row template to be made for rows selected.\n"
"It is like the rowset size for a scrollable cursor.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"scrollable\" type=\"xs:boolean\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The setting controls whether next and previous page buttons are presented. This can be on even if the cursor is not scrollable as such.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"cursor-type\" type=\"v:PlCursorType\" use=\"optional\" default=\"dynamic\"/>\n"
" <xs:attribute name=\"edit\" type=\"xs:boolean\" use=\"optional\" default=\"false\">\n"
" <xs:annotation>\n"
" <xs:documentation>Flags whether editing features are enabled on data grid control</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"param\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Named parameter for the cursor.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" <xs:documentation>Named parameter for execution of the cursor select statement. This must be the name of a parameter for SQL statement specified, but without leading colon.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attribute name=\"name\" type=\"v:SqlName\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>Name of the parameter.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"value\" type=\"v:CalculateableValue\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>Data bound value of the parameter.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"data-grid\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"<para>This is the generic multi-row database view control. It is used to show repeating data, as from tables\n"
"or procedure views. Allows scrolling (paging) editing the data; adding a row or removal of existing rows.\n"
"Usually this control generates a PL scrollable cursor of type as specified. The number of rows shown are\n"
"configurable via nrows attribute. Note also that column children elements are optional; they can be omitted\n"
"so then VSPX engine will compute them from specified SQL statement in 'sql' attribute.</para>\n"
"<para>Specific to this control is to have row-template and frame-template, these are to present repeating and non-repeating groups of children elements. The frame-template will usually\n"
"have a 'rowset' placeholder to designate the place where repeating group (row-template) will be instantiated. The control expects to find child controls with specific names. for scrolling buttons - [data-grid name]'_prev' and [data-grid name]'_next'; for editing buttons - [data-grid name]'_edit' and [data-grid name]'_delete'.</para>\n"
" </xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Scrollable databound multi-row control.</refpurpose>\n"
" <special-childs>\n"
" <child name=\"\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" <xs:element ref=\"v:column\"/>\n"
" <xs:element ref=\"v:param\"/>\n"
" <xs:element ref=\"v:key\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"data\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>Expression which returns an array of rowset data, this is an alternative to specifying an SQL expression. The result then will be used to instantiate\n"
"the repeating group. An example of such data is the result returned by 'exec' function:</para>\n"
"<programlisting>\n"
"(\n"
" (\"ALFKI\" \"Alfreds Futterkiste\" \"030-0074321\" )\n"
" (\"ANATR\" \"Ana Trujillo Emparedados y helados\" \"(5) 555-4729\" )\n"
")\n"
"</programlisting>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"meta\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>This works with combination of data attribute, this expression must return an array of ro metadata. So when this is specified it needs to be an expression returning meta-data for columns. In practice this is the same as 1st element of metadata returned by 'exec()' :</para>\n"
"\n"
"<programlisting>\n"
"(\n"
" (\"CustomerID\" 182 0 5 0 1 1 \"Demo\" \"CustomerID\" \"demo\" \"Customers\" 0 )\n"
" (\"CompanyName\" 182 0 40 1 1 1 \"Demo\" \"CompanyName\" \"demo\" \"Customers\" 0 )\n"
" (\"Phone\" 182 0 24 1 1 1 \"Demo\" \"Phone\" \"demo\" \"Customers\" 0 )\n"
")\n"
"</programlisting>\n"
"\n"
"<para>\n"
"for details of metadata see 'exec()' function description.</para>\n"
"\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"nrows\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The maximum number of replicas of the row template to be made for rows selected.\n"
"This is like the rowset size for a scrollable cursor.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"sql\" type=\"v:SqlCode\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>The select statement that gets the data.\n"
"Parameters to the statement MUST be specified as SQL identifiers prefixed with a colon (named parameter).\n"
"The values are given in the control's vspx:param children. These specify the parameter name and a data bound expression for the value.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"scrollable\" type=\"xs:boolean\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The setting controls whether next and previous page buttons are presented. This can be on even if the cursor is not scrollable as such.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"cursor-type\" type=\"v:PlCursorType\" use=\"optional\" default=\"dynamic\"/>\n"
" <xs:attribute name=\"edit\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Flags whether editing features are enabled on data grid control</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <!-- these are not implemented nor specified\n"
" xs:attribute name=\"select\" type=\"xs:boolean\" use=\"optional\"/>\n"
" <xs:attribute name=\"column-titles\" type=\"xs:boolean\" use=\"optional\"/>\n"
" <xs:attribute name=\"table\" type=\"v:SqlTableQname\" use=\"optional\"/-->\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:anyAttribute namespace=\"##any\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"isql\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <refpurpose>An interactive SQL control that allows the user to type an SQL statement and to see the result of its execution.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:element ref=\"v:template\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"isolation\" type=\"v:IsqlIsolation\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Transaction isolation level to be used.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"timeout\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Query time-out in seconds (currently not supported)</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"maxrows\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Maximum number of rows to be displayed.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"user\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>SQL user account to perform the query, if not specified\n"
" the SQL account used to run the VSPX page will be used.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"password\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>When the 'user' attribute is supplied, this is\n"
" the user's password.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:simpleType name=\"IsqlIsolation\">\n"
" <xs:restriction base=\"xs:string\">\n"
" <xs:enumeration value=\"uncomitted\">\n"
" <xs:annotation>\n"
" <xs:documentation>'uncomitted' transaction isolation level</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"committed\">\n"
" <xs:annotation>\n"
" <xs:documentation>'committed' transaction isolation level</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"repeatable\">\n"
" <xs:annotation>\n"
" <xs:documentation>'repeatable' transaction isolation level</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" <xs:enumeration value=\"serializable\">\n"
" <xs:annotation>\n"
" <xs:documentation>'serializable' transaction isolation level</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:enumeration>\n"
" </xs:restriction>\n"
" </xs:simpleType>\n"
" <xs:element name=\"radio-group\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
" This control is used to group containing radio-buttons in a group.\n"
" This ensures that only one button is selected at a time.\n"
" Note: This control is not mandatory for making such group of\n"
" buttons, another option is to use 'group-name' attribute of the radio-button control.\n"
" </xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>A group of radio-buttons.</refpurpose>\n"
" <tutorial id=\"VX-S-2\">/tutorial/web/vx_s_2/radio_group.vspx</tutorial>\n"
" <tutorial id=\"VX-S-3\">/tutorial/web/vx_s_3/update_radio.vspx</tutorial>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:UserInputTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:UserInputAttributes\"/>\n"
" <xs:attribute name=\"column\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The name of the column bound.\n"
" If nothing else is specified, the column meta data from the\n"
" containing update form sets the field's attributes.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"hidden\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>A wrapper that prevents WYSIWYG editors from displaying its content.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>This control does not affect the resulting HTML and Virtuoso/PL code. It is used by some WYSIWYG editors in order to temporarily hide details of the page fragment from the editor's drawing area.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:HtmlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"style\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>A markup tag for use by 'macro stylesheets'.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>This control marks the enclosed content for special processing in the 'macro stylesheet' whose name is specified by 'style' attribute of v:page element.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attribute name=\"name\" type=\"xs:NMTOKEN\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Optional name of the control which could be used\n"
" in the macro expansion stylesheet assigned.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"placeholder\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>Placeholder for original page in the decoration page.</refpurpose>\n"
" </xs:appinfo>\n"
" <xs:documentation>This marks the place in the decoration page where the content of the original page should be placed.</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:sequence/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"calendar\">\n"
" <xs:annotation>\n"
" <xs:documentation>This is the generic calendar control.</xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Databound calendar control.</refpurpose>\n"
" <special-childs>\n"
" <child name=\"\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" <xs:element ref=\"v:param\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"initial-date\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Expression which returns a date for setting initially the current date of the calendar.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:anyAttribute namespace=\"##any\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:element name=\"expression\">\n"
" <xs:annotation>\n"
" <xs:documentation>A container for SQL statement generating a rowset or table name (see data-source).</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>An SQL statement that generates a rowset for v:data-source.</refpurpose>\n"
" <no-render/>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:sequence minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:any namespace=\"##any\"/>\n"
" </xs:sequence>\n"
" <xs:attribute name=\"language\" type=\"v:SqlName\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Denotes the type of language,\n"
" currently only SQL expressions are supported, see 'expression-type' attribute\n"
" of the data-source control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"data-source\">\n"
" <xs:annotation>\n"
" <xs:documentation>Invisible multi-row data source.\n"
" This control is an invisible represantation of a result set. Also it offer a\n"
" number of methods for accessing and updating the data. It can be used as a source in\n"
" the data-set control or as a separate data source for various form controls (such as label, url etc.).\n"
" This control is using 'SELECT TOP N,M ..' statements to bind the data into the resultset (when source is a table or SQL statement), hence this should be taken into account when using it.\n"
" </xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>Scrollable multi-row data bound source.</refpurpose>\n"
" <special-childs>\n"
" <child name=\"\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" <xs:element ref=\"v:column\"/>\n"
" <xs:element ref=\"v:param\"/>\n"
" <xs:element ref=\"v:expression\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"expression-type\" type=\"v:SqlExpressionType\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>Denotes the type of 'expression'</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"nrows\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>The maximum number of rows to be selected.\n"
"It is like the rowset size for a scrollable cursor.\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"initial-offset\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation>Number of record to start data binding of rowset</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"data\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>When this attribute is specified it must be an\n"
"expression returning array of arrays. This is an alternative to specifying an\n"
"SQL expression or data-source. The result then will be used to instantiate\n"
"the repeating group. An example of such data is the result returned by 'exec' function:</para>\n"
"<programlisting>\n"
"(\n"
" (\"ALFKI\" \"Alfreds Futterkiste\" \"030-0074321\" )\n"
" (\"ANATR\" \"Ana Trujillo Emparedados y helados\" \"(5) 555-4729\" )\n"
")\n"
"</programlisting>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attribute name=\"meta\" type=\"v:CalculateableValue\" use=\"optional\">\n"
" <xs:annotation>\n"
" <xs:documentation><para>This attribute is used together with 'data', so when is\n"
"specified it needs to be an expression returning a meta-data for columns corresponding to the\n"
"these returned by 'data' expression. In practice it's same as 1-st element of metadata returned by 'exec()' :\n"
"</para>\n"
"\n"
"<programlisting>\n"
"(\n"
" (\"CustomerID\" 182 0 5 0 1 1 \"Demo\" \"CustomerID\" \"demo\" \"Customers\" 0 )\n"
" (\"CompanyName\" 182 0 40 1 1 1 \"Demo\" \"CompanyName\" \"demo\" \"Customers\" 0 )\n"
" (\"Phone\" 182 0 24 1 1 1 \"Demo\" \"Phone\" \"demo\" \"Customers\" 0 )\n"
")\n"
"</programlisting>\n"
"\n"
"<para>for details of metadata see 'exec()' function description.</para>\n"
"</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
" xs:element name=\"grid\">\n"
" <xs:annotation>\n"
" <xs:documentation>A simple data-set variant; no HTML code inside, expanded internally to a data-set</xs:documentation>\n"
" <xs:appinfo>\n"
" <refpurpose>scrollable, multi-row data bound grid</refpurpose>\n"
" <example-description>\n"
" </example-description>\n"
" <example><![CDATA[\n"
" ]]></example>\n"
" <special-childs>\n"
" <child name=\"\"/>\n"
" </special-childs>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" <xs:element name=\"v:columns\">\n"
" <xs:sequence>\n"
" <xs:element ref=\"v:column\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\n"
" </xs:sequence>\n"
" </xs:element>\n"
" <xs:element name=\"header\"/>\n"
" <xs:element name=\"footer\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element\n"
";\n",
"-->\n"
" <xs:element name=\"xsd-stub-top\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This control should never appear in the VSPX source.\n"
"It is for internal use only.\n"
"Before applying XML schema validation to the page,\n"
"Virtuoso replaces non-VSPX tags with this one when they reside outside v:page.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is for internal use only.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" <xs:element ref=\"v:page\"/>\n"
" <xs:element ref=\"v:xsd-stub-top\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"xsd-stub\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" </xs:appinfo>\n"
" <xs:documentation>\n"
"This control should never appear in the VSPX source.\n"
"It is for internal use only.\n"
"Before applying XML schema validation to the page,\n"
"Virtuoso replaces non-VSPX tags with this one when they reside inside v:page.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is for internal use only.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <!-- IMHO this is incorrect:\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
"VSPX.XSL does not handle correclty events that are\n"
"enclosed in HTML tags.\n"
"If you see this, go fix the VSPX page or improve the VSPX.XSL.\n"
" -->\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"xsd-stub-script\">\n"
" <xs:annotation>\n"
" <xs:documentation>\n"
"This control should never appear in the VSPX source.\n"
"It is for internal use only.\n"
"Before applying XML schema validation to the page,\n"
"Virtuoso replaces non-VSPX tags with this one when they reside inside event script tag such as v:on-init.\n"
"</xs:documentation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" <refpurpose>This is for internal use only.</refpurpose>\n"
" </xs:appinfo>\n"
" </xs:annotation>\n"
" <xs:complexType mixed=\"true\">\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"vscx\">\n"
" <xs:annotation>\n"
" <xs:appinfo>\n"
" <no-default-target-udt/>\n"
" </xs:appinfo>\n"
" <xs:documentation>Custom control encapsulated in a separate VSPX page. This is a\n"
" wrapper for custom control instantiation. The target URL MUST contain\n"
" a valid VSPX page reference. In this way repeatable pieces of code can be reused in\n"
" form of instantiation of their page class, this is different from inclusion.\n"
" The target page variables can be initialized as attributes in this control, where\n"
" name of attribute is a name of variable of target page and value is\n"
" an expression to be assigned.\n"
" </xs:documentation>\n"
" </xs:annotation>\n"
" <xs:complexType>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attribute name=\"url\" type=\"xs:anyURI\" use=\"required\">\n"
" <xs:annotation>\n"
" <xs:documentation>Reference to a VSPX page to be instantiated as a control.</xs:documentation>\n"
" </xs:annotation>\n"
" </xs:attribute>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:anyAttribute namespace=\"##local\" processContents=\"lax\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <!--\n"
";\n",
"-->\n"
" <xs:annotation>\n"
" <xs:documentation>Deprecated VSPX Controls</xs:documentation>\n"
" </xs:annotation>\n"
" <xs:element name=\"node-template\">\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"leaf-template\">\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
" <xs:element name=\"horizontal-template\">\n"
" <xs:complexType>\n"
" <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n"
" <xs:group ref=\"v:EventTarget\"/>\n"
" <xs:group ref=\"v:AnyVspxPageContent\"/>\n"
" </xs:choice>\n"
" <xs:attributeGroup ref=\"v:SqlGenAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:DebugAttributes\"/>\n"
" <xs:attributeGroup ref=\"v:WmAttributes\"/>\n"
" </xs:complexType>\n"
" </xs:element>\n"
"</xs:schema>\n"
"\n"
,
NULL };
/* vspx.xsl */
static const char *xsl37[]= {
"<?xml version='1.0'?>\n"
"<!DOCTYPE xsl:stylesheet [\n"
" <!ENTITY LINE \" #line <xsl:value-of select='xpath-debug-xslline()+1' /> "<xsl:value-of select='xpath-debug-xslfile()' />"\">\n"
"]>\n"
"<!--\n"
" - \n"
" - $Id$\n"
" -\n"
" - This file is part of the OpenLink Software Virtuoso Open-Source (VOS)\n"
" - project.\n"
" - \n"
" - Copyright (C) 1998-2012 OpenLink Software\n"
" - \n"
" - This project is free software; you can redistribute it and/or modify it\n"
" - under the terms of the GNU General Public License as published by the\n"
" - Free Software Foundation; only version 2 of the License, dated June 1991.\n"
" - \n"
" - This program is distributed in the hope that it will be useful, but\n"
" - WITHOUT ANY WARRANTY; without even the implied warranty of\n"
" - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
" - General Public License for more details.\n"
" - \n"
" - You should have received a copy of the GNU General Public License along\n"
" - with this program; if not, write to the Free Software Foundation, Inc.,\n"
" - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
" - \n"
" - \n"
"-->\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
" version=\"1.0\"\n"
" xmlns:v=\"http://www.openlinksw.com/vspx/\" exclude-result-prefixes=\"v\"\n"
" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n"
" xmlns:ev=\"http://www.w3.org/2001/xml-events\"\n"
" >\n"
"<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\" />\n"
"\n"
"<xsl:key name=\"on-init\" match=\"//v:on-init\" use=\"@belongs-to\" />\n"
"<xsl:key name=\"before-data-bind\" match=\"//v:before-data-bind\" use=\"@belongs-to\" />\n"
"<xsl:key name=\"after-data-bind\" match=\"//v:after-data-bind\" use=\"@belongs-to\" />\n"
"<xsl:key name=\"on-post\" match=\"//v:on-post\" use=\"@belongs-to\" />\n"
"<xsl:key name=\"before-render\" match=\"//v:before-render\" use=\"@belongs-to\" />\n"
"\n"
"<xsl:param name=\"vspx_dbname\">DB</xsl:param>\n"
"<xsl:param name=\"vspx_user\">dba</xsl:param>\n"
"<xsl:param name=\"vspx_source\">?unknown_source?</xsl:param>\n"
"<xsl:param name=\"vspx_source_date\">?unknown_source_date?</xsl:param>\n"
"<xsl:param name=\"vspx_compile_date\">?unknown_compile_date?</xsl:param>\n"
"<xsl:param name=\"vspx_compiler_version\">?unknown_compiler_version?</xsl:param>\n"
"<xsl:param name=\"vspx_local_class_name\">page_<xsl:value-of select=\"//v:page/@name\" /></xsl:param>\n"
"<xsl:param name=\"vspx_full_class_name\">\"<xsl:value-of select=\"$vspx_dbname\"/>\".\"<xsl:value-of select=\"$vspx_user\"/>\".<xsl:value-of select=\"$vspx_local_class_name\" /></xsl:param>\n"
"<xsl:variable name=\"this_page\" select=\"//v:page\" />\n"
"<xsl:variable name=\"debug_on\" select=\"count ($this_page/@debug-log[not(string(.) like '%disable%')])\"/>\n"
"\n"
"<!-- VARIABLES FOR DIFFERENT CONTROLS SET -->\n"
"\n"
"<xsl:variable name=\"member-controls-set\" select=\".//v:*[@name and local-name() != 'variable' and local-name() != 'method' and local-name() != 'column' and local-name() != 'param' and local-name() != 'field' and local-name() != 'key' and local-name() != 'item' and local-name() != 'parameter']\"/>\n"
"\n"
"<xsl:variable name=\"not-a-control\" select=\".//v:field[empty(@value)]\" />\n"
"\n"
"<xsl:variable name=\"standard-post-set\" select=\"\n"
" .//v:browse-button|\n"
" .//v:button|\n"
" .//v:calendar|\n"
" .//v:check-box|\n"
" .//v:data-list|\n"
" .//v:field[@value]|\n"
" .//v:form[@type='update']|\n"
" .//v:form[@type='simple']|\n"
" .//v:isql|\n"
" .//v:login|\n"
" .//v:radio-button|\n"
" .//v:select-list|\n"
" .//v:tab|\n"
" .//v:textarea|\n"
" .//v:text|\n"
" .//v:tree|\n"
" .//v:update-field|\n"
" .//v:*[@name][v:validator]\" />\n"
"\n"
"<xsl:variable name=\"user-post-set\" select=\".//*[@name][not (. = $not-a-control)][key('on-post',@name)]\" />\n"
"\n"
"<xsl:variable name=\"statable-controls-set\" select=\".//v:isql\" />\n"
"\n"
"<xsl:variable name=\"initable-controls-set\" select=\"\n"
" .//v:browse-button|\n"
" .//v:button[@action='browse']|\n"
" .//v:button[@action='delete']|\n"
" .//v:button[@action='logout']|\n"
" .//v:button[@action='return']|\n"
" .//v:button[@action='simple']|\n"
" .//v:button[@action='submit']|\n"
" .//v:calendar|\n"
" .//v:check-box|\n"
" .//v:data-grid|\n"
" .//v:data-list|\n"
" .//v:data-set|\n"
" .//v:data-source|\n"
" .//v:field[@value]|\n"
" .//v:form[@type='simple']|\n"
" .//v:form[@type='update']|\n"
" .//v:isql|\n"
" .//v:label|\n"
" .//v:login-form|\n"
" .//v:login|\n"
" .//v:radio-button|\n"
" .//v:radio-group|\n"
" .//v:select-list|\n"
" .//v:tab|\n"
" .//v:template[@type = 'add']|\n"
" .//v:template[@type='edit']|\n"
" .//v:template[@type='error']|\n"
" .//v:template[@type='input']|\n"
" .//v:template[@type='result']|\n"
" .//v:template[@type='simple']|\n"
" .//v:template[@type='page-navigator']|\n"
" .//v:template[@type='if-not-exists']|\n"
" .//v:template[@type='if-exists']|\n"
" .//v:textarea|\n"
" .//v:text|\n"
" .//v:tree|\n"
" .//v:update-field|\n"
" .//v:url|\n"
" .//v:local-variable|\n"
" .//v:vscx\" />\n"
"\n"
"<xsl:variable name=\"bindable-controls-set\" select=\"\n"
" .//v:browse-button|\n"
" .//v:button[@action='browse']|\n"
" .//v:button[@action='delete']|\n"
" .//v:button[@action='logout']|\n"
" .//v:button[@action='return']|\n"
" .//v:button[@action='simple']|\n"
" .//v:button[@action='submit']|\n"
" .//v:calendar|\n"
" .//v:check-box|\n"
" .//v:data-list|\n"
" .//v:data-source|\n"
" .//v:data-set|.//v:data-grid|\n"
" .//v:field[@value]|\n"
" .//v:form[@type='simple']|\n"
" .//v:form[@type='update']|\n"
" .//v:isql|\n"
" .//v:label|\n"
" .//v:login|\n"
" .//v:radio-button|\n"
" .//v:select-list|\n"
" .//v:tab|\n"
" .//v:template[@type='simple']|\n"
" .//v:template[@type='browse']|\n"
" .//v:textarea|\n"
" .//v:text|\n"
" .//v:tree|\n"
" .//v:url|\n"
" .//v:local-variable|\n"
" .//v:vscx|\n"
" .//*[@name][not (. = $not-a-control)][key('before-data-bind',@name)]\" />\n"
"\n"
"<xsl:variable name=\"scrollable-controls-set\" select=\".//v:data-set\" />\n"
"\n"
"\n"
"<xsl:variable name=\"renderable-controls-set\" select=\"\n"
" .//v:calendar|\n"
" .//v:data-grid|\n"
" .//v:data-list|\n"
" .//v:data-set|\n"
" .//v:form[@type='simple']|\n"
" .//v:form[@type='update']|\n"
" .//v:isql|\n"
" .//v:login|\n"
" .//v:radio-group|\n"
" .//v:select-list|\n"
" .//v:tab|\n"
" .//v:template[@name and @type != 'if-login' and @type != 'if-no-login'][@type != 'row']|\n"
" .//v:tree|\n"
" .//v:vscx\" />\n"
"\n"
"<xsl:variable name=\"after-data-bind-set\" select=\".//*[@name][not (. = $not-a-control)][key('after-data-bind',@name)]\" />\n"
"\n"
"<xsl:variable name=\"before-render-set\" select=\".//*[@name][not (. = $not-a-control)][key('before-render',@name)]\" />\n"
"\n"
"<xsl:variable name=\"custom-controls-set\" select=\".//*[@name and v:vcc_exists (name())]\" />\n"
"\n"
"<xsl:variable name=\"renderable-rows-of-controls-set\" select=\".//v:template[@name][@type='row']\" />\n"
"\n"
"<xsl:template match=\"/\">\n"
" <xsl:if test=\"$this_page[./ancestor::v:*]\">\n"
" <xsl:message terminate=\"yes\">VSPX element 'page' is placed inside other VSPX element.</xsl:message>\n"
" </xsl:if>\n"
" <xsl:for-each select=\"/comment()\"><xsl:call-template name=\"comment_gen\" /></xsl:for-each>\n"
" <xsl:for-each select=\"/*/comment()\"><xsl:call-template name=\"comment_gen\" /></xsl:for-each>\n"
" <xsl:choose>\n"
" <xsl:when test=\"$this_page\"><xsl:apply-templates select=\"$this_page\" mode=\"page_class\" /></xsl:when>\n"
" <xsl:otherwise><xsl:apply-templates select=\".\" mode=\"page_class\" /></xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"comment_gen\">\n"
"<!--<xsl:value-of select=\"replace(replace(replace(serialize(.), concat('<!-','-'), ''), concat('-','->'), ''), '
', concat('
-','-'))\" />.-->\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"node()\" mode=\"page_class\">\n"
"-- This is a automatically generated code, please do not edit\n"
"-- Created from <xsl:value-of select=\"$vspx_source\"/> by <xsl:value-of select=\"$vspx_compiler_version\"/>.\n"
"-- Source is dated <xsl:value-of select=\"$vspx_source_date\"/>.\n"
"-- Compilation started <xsl:value-of select=\"$vspx_compile_date\"/>.\n"
"set MACRO_SUBSTITUTION off;\n"
"set IGNORE_PARAMS on;\n"
"\n"
"<!-- The page class (UDT) definition -->\n"
"create type <xsl:value-of select=\"$vspx_full_class_name\" /> under vspx_page\n"
" as (<xsl:for-each select=\".//v:variable\"><xsl:value-of select=\"@name\"/>\n"
"<xsl:text> </xsl:text>\n"
"<xsl:choose><xsl:when test=\"@type='xml'\">any</xsl:when><xsl:otherwise><xsl:value-of select=\"@type\"/></xsl:otherwise></xsl:choose>\n"
"<xsl:if test=\"@default\"> default <xsl:value-of select=\"@default\"/></xsl:if>,\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\".//v:*[@name and local-name() != 'variable' and local-name() != 'method' and local-name() != 'column' and local-name() != 'param' and local-name() != 'field' and local-name() != 'key' and local-name() != 'item' and local-name() != 'parameter']\">\n"
" \"<xsl:value-of select=\"@name\" />\"<xsl:text> </xsl:text><xsl:value-of select=\"@control-udt\"/>, </xsl:for-each>\n"
" <xsl:for-each select=\"$custom-controls-set\">\n"
" \"<xsl:value-of select=\"@name\" />\"<xsl:text> </xsl:text><xsl:value-of select=\"v:vcc_class_name (name())\" />, </xsl:for-each>\n"
" nonce varchar default '',\n"
" sid varchar default '',\n"
" realm varchar default ''\n"
" )\n"
" temporary self as ref\n"
" constructor method <xsl:value-of select=\"$vspx_local_class_name\" /> (path any, params any, lines any),\n"
" method vc_view_state_<xsl:value-of select=\"$vspx_local_class_name\" /> (control vspx_page, stream any, n int) returns any,\n"
" method vc_set_view_state_<xsl:value-of select=\"$vspx_local_class_name\" /> (control vspx_page, e vspx_event) returns any,\n"
"<!-- no need: <xsl:call-template name=\"script_declare\"><xsl:with-param name=\"methodname\">on_init</xsl:with-param><xsl:with-param name=\"methodkey\">on-init</xsl:with-param></xsl:call-template> -->\n"
" <xsl:call-template name=\"script_declare\"><xsl:with-param name=\"methodname\">data_bind</xsl:with-param><xsl:with-param name=\"methodkey\">before-data-bind</xsl:with-param></xsl:call-template>\n"
" <xsl:call-template name=\"script_declare\"><xsl:with-param name=\"methodname\">after_data_bind</xsl:with-param><xsl:with-param name=\"methodkey\">after-data-bind</xsl:with-param></xsl:call-template>\n"
" <xsl:call-template name=\"script_declare\"><xsl:with-param name=\"methodname\">user_post</xsl:with-param><xsl:with-param name=\"methodkey\">on-post</xsl:with-param></xsl:call-template>\n"
" <xsl:call-template name=\"script_declare\"><xsl:with-param name=\"methodname\">pre_render</xsl:with-param><xsl:with-param name=\"methodkey\">before-render</xsl:with-param></xsl:call-template>\n"
" <xsl:for-each select=\".//v:method\">\n"
"<xsl:text/> method <xsl:value-of select=\"@name\" /> (<xsl:value-of select=\"@arglist\" />) returns <xsl:value-of select=\"@returns\" />,\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"$statable-controls-set\">\n"
"<xsl:text/> method vc_set_view_state_<xsl:value-of select=\"@name\" /> (ctrl <xsl:value-of select=\"@control-udt\"/>, e vspx_event) returns any,\n"
" </xsl:for-each>\n"
" <!-- INIT -->\n"
" <xsl:for-each select=\"$initable-controls-set\">\n"
"<xsl:text/> method vc_init_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>, parent vspx_control) returns any,\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"$custom-controls-set\">\n"
" method vcc_init_<xsl:value-of select=\"@name\" /> (name varchar, parent vspx_control) returns <xsl:value-of select=\"v:vcc_class_name (name())\" />,\n"
" </xsl:for-each>\n"
" <!-- DATA-BIND -->\n"
" <xsl:for-each select=\"$bindable-controls-set\">\n"
"<xsl:text/> method vc_data_bind_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>, e vspx_event) returns any,\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"$after-data-bind-set\">\n"
"<xsl:text/> method vc_after_data_bind_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>, e vspx_event) returns any,\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"$scrollable-controls-set\">\n"
"<xsl:text/> method vc_scroll_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>, new_rows_offs integer, e vspx_event) returns any,\n"
" </xsl:for-each>\n"
" <!-- STANDARD POST -->\n"
" <xsl:for-each select=\"$standard-post-set\">\n"
"<xsl:text/> method vc_post_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>, e vspx_event) returns any,\n"
" </xsl:for-each>\n"
" <!-- USER POST -->\n"
" <xsl:for-each select=\"$user-post-set\">\n"
"<xsl:text/> method vc_user_post_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>, e vspx_event) returns any,\n"
" </xsl:for-each>\n"
" <!-- ACTION -->\n"
" <xsl:for-each select=\"$standard-post-set\">\n"
"<xsl:text/> method vc_action_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>, e vspx_event) returns any,\n"
" </xsl:for-each>\n"
" <!-- RENDER -->\n"
" <xsl:for-each select=\"$renderable-controls-set\">\n"
"<xsl:text/> method vc_render_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>) returns any,\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"$renderable-rows-of-controls-set\">\n"
"<xsl:text/> method vc_rows_render_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"../@control-udt\"/>) returns any,\n"
" </xsl:for-each>\n"
" <!-- data-bind; render for tree-node; special cases -->\n"
" <xsl:for-each select=\".//v:tree\">\n"
" <xsl:text/> method vc_data_bind_node_<xsl:value-of select=\"@name\" /> (tree vspx_tree, control vspx_tree_node, e vspx_event, nodeset any, path any, inx int, level int) returns any,\n"
"<xsl:text/> method vc_render_node_<xsl:value-of select=\"@name\" /> (control vspx_tree_node, childs any) returns any,\n"
" </xsl:for-each>\n"
" <!-- VALIDATE -->\n"
" <xsl:for-each select=\".//v:*[v:validator[@test='sql' and not @expression]]\">\n"
"<xsl:text/> method vc_validate_<xsl:value-of select=\"@name\" /> (control <xsl:value-of select=\"@control-udt\"/>) returns any,\n"
" </xsl:for-each>\n"
" <!-- PRE-RENDER -->\n"
" <xsl:for-each select=\"$before-render-set\">\n"
"<xsl:text/> method vc_pre_render_<xsl:value-of select=\"@name\" /> (ctrl <xsl:value-of select=\"@control-udt\"/>) returns any,\n"
" </xsl:for-each>\n"
" <xsl:if test=\"@on-error-redirect or @on-deadlock-retry\">\n"
"<xsl:text/> method vc_error_handler_<xsl:value-of select=\"$vspx_local_class_name\" /> (state any, message any, deadl any) returns any,\n"
" </xsl:if>\n"
"<xsl:text/> method vc_redirect (url any) returns any,\n"
"<xsl:text/> method vc_render_<xsl:value-of select=\"$vspx_local_class_name\" /> (control vspx_page) returns any\n"
";\n",
"<!-- The page UDT declaration end -->\n"
"\n"
"<!-- The page UDT constructor -->\n"
"create constructor method <xsl:value-of select=\"$vspx_local_class_name\" /> (in path any, in params any, in lines any)\n"
"for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare childs any;\n"
" declare vst, clen any;\n"
" declare e vspx_event;\n"
" <!-- not here; default is null; for vscx this is not true self.vc_parent := NULL; -->\n"
" self.vc_view_state := vector ();\n"
" self.vc_name := '<xsl:value-of select=\"$vspx_local_class_name\" />';\n"
" self.vc_page := self;\n"
" self.vc_have_state := 1;\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%ctor%']\">declare _debug_log_id integer; _debug_log_id := self.vc_debug_log ('begin', 'Page constructor', null); -- debug-log code</xsl:if>\n"
"\n"
" e := new vspx_event ();\n"
" clen := http_request_header (lines, 'Content-Length', null, '0');\n"
" if (isstring (clen))\n"
" clen := atoi (clen);\n"
" else\n"
" clen := 0;\n"
"\n"
" if (length (params) < (1+(4*http_map_get('is_dav'))) and clen >= 10000000\n"
" and lower (http_request_header (lines, 'Content-Type')) like 'multipart/%')\n"
" {\n"
" params := __http_stream_params ();\n"
" }\n"
" <!-- all browsers are suposed to set content-type, but some may not return application/xml with post\n"
" in this way body may remains unread and next hit on same connection will crash the page.\n"
" hence we will read if there is something to read and it's not parsed in 'params'\n"
" -->\n"
" if (http_request_header (lines, 'Content-Type') = 'application/xml' or (clen > 0 and length (params) = 0))\n"
" {\n"
" declare cnt, xt, ppar any;\n"
" cnt := http_body_read ();\n"
" cnt := string_output_string (cnt);\n"
" if (length (cnt) > 0)\n"
" params := vspx_xforms_params_parse (cnt);\n"
" }\n"
" e.ve_params := params;\n"
" e.ve_lines := lines;\n"
" e.ve_path := path;\n"
"\n"
" vst := get_keyword ('<xsl:value-of select=\"$vspx_local_class_name\" />_view_state', params);\n"
"\n"
" if (vst is not NULL)\n"
" {\n"
" e.ve_is_post := 1;\n"
" self.vc_is_postback := 1;\n"
" }\n"
" self.vc_event := e;\n"
"\n"
" self.vc_view_state := vector (\n"
" self.vc_name, null,\n"
" <xsl:for-each select=\".//v:*[@name][not (local-name(.) = 'variable' and (@persist = '1' or @persist = 'session'))]\">\n"
" '<xsl:value-of select=\"@name\"/>', null,</xsl:for-each>\n"
" '<xsl:value-of select=\"@name\"/>', null\n"
" );\n"
"\n"
" if (vst is not null)\n"
" {\n"
" declare post, state, extend any;\n"
" declare i, l int;\n"
" -- get the posted state\n"
" post := vspx_state_deserialize (vst);\n"
" -- page state\n"
" state := self.vc_view_state;\n"
" -- extension\n"
" extend := vector ();\n"
"\n"
" l := length (post); i := 0;\n"
"\n"
" if (mod (l, 2))\n"
" signal ('22023', 'Page state expects to have even length, current state is possibly broken');\n"
"\n"
" while (i < l)\n"
" {\n"
" -- set the pages state back to vc_view_state\n"
" declare pos int;\n"
" pos := position (post[i], state);\n"
" if (pos)\n"
" aset (state, pos, post [i+1]);\n"
" else\n"
" extend := vector_concat (extend, vector (post[i], post[i+1]));\n"
" i := i + 2;\n"
" }\n"
"\n"
" if (length (extend))\n"
" self.vc_view_state := vector_concat (state, extend);\n"
" else\n"
" self.vc_view_state := state;\n"
"\n"
" <!-- dbg_obj_print ('page view_state: ', state); -->\n"
"\n"
" }\n"
"\n"
" self.vc_set_view_state (e);\n"
"\n"
" {\n"
" declare control vspx_control;\n"
" control := self;\n"
" self.vc_children := vector (\n"
" <!-- The login control should be only one, and MUST be on first place !!! -->\n"
" <xsl:apply-templates select=\".//v:login\" mode=\"login_child\" />\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
" NULL\n"
" );\n"
" }\n"
"\n"
" self.vc_get_focus (e);\n"
" <!-- self.vc_set_view_state (e); -->\n"
" <xsl:for-each select=\"key('on-init',@name)\"><xsl:value-of select=\".\" /></xsl:for-each>\n"
" self.vc_browser_caps := coalesce (connection_get ('RenderXForms'), 0);\n"
" if (self.vc_browser_caps)\n"
" {\n"
" self.vc_add_attribute ('xmlns', 'http://www.w3.org/2002/06/xhtml2');\n"
" self.vc_add_attribute ('xmlns:xsd', 'http://www.w3.org/2001/XMLSchema');\n"
" self.vc_add_attribute ('xmlns:xforms', 'http://www.w3.org/2002/xforms');\n"
" self.vc_add_attribute ('xmlns:ev', 'http://www.w3.org/2001/xml-events');\n"
" self.vc_add_attribute ('xmlns:vxf', 'http://www.openlinksw.com/vspx/xforms/');\n"
" }\n"
" <!-- FK Child Window Generator START -->\n"
" {\n"
" declare pagename, xmlmodel any;\n"
" <xsl:for-each select=\".//v:fk-child-window\">\n"
" pagename := '<xsl:value-of select=\".//v:browse-button/@selector\" disable-output-escaping=\"yes\"/>';\n"
" xmlmodel := '<xsl:value-of select=\"serialize(.)\" disable-output-escaping=\"yes\"/>';\n"
" vspx_generate_page(pagename, xmlmodel);\n"
" </xsl:for-each>\n"
" }\n"
" <!-- FK Child Window Generator END -->\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%ctor%']\">self.vc_debug_log_endgroup (_debug_log_id, 'end', 'Page constructor', null); -- debug-log code</xsl:if>\n"
"}\n"
";\n",
"\n"
" <xsl:for-each select=\".//v:method\">\n"
"&LINE;\n"
"create method <xsl:value-of select=\"@name\" /> (<xsl:value-of select=\"@arglist\" />) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%method%']\">declare _debug_log_id integer; _debug_log_id := self.vc_debug_log ('begin', 'Custom method <xsl:value-of select=\"@name\" />', null); -- debug-log code</xsl:if>\n"
" <xsl:value-of select=\".\" />\n"
"&LINE;\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%method%']\">self.vc_debug_log_endgroup (_debug_log_id, 'end', 'Custom method <xsl:value-of select=\"@name\" />', null); -- debug-log code</xsl:if>\n"
"}\n"
";\n",
" </xsl:for-each>\n"
"\n"
"<!-- PAGE METHODS (methods for self) -->\n"
"create method vc_view_state_<xsl:value-of select=\"$vspx_local_class_name\" /> (inout control vspx_page, inout stream any, inout n int) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare state any;\n"
" state := vector(<xsl:for-each select=\".//v:variable[@persist = '0' or @persist = 'pagestate' or not @persist]\">\n"
" '<xsl:value-of select=\"@name\"/>', self.<xsl:value-of select=\"@name\"/>,\n"
" </xsl:for-each>\n"
" 'realm', self.realm);\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%state%']\">control.vc_debug_log ('state', 'Page state saved', null); -- debug-log code</xsl:if>\n"
" self.vc_push_in_stream (stream, state, n);\n"
" return;\n"
"}\n"
";\n",
"\n"
"create method vc_set_view_state_<xsl:value-of select=\"$vspx_local_class_name\" /> (inout control vspx_page, inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare vartmp any;\n"
" if (e.ve_is_post) {\n"
" declare vars any;\n"
" vars := get_keyword ('<xsl:value-of select=\"$vspx_local_class_name\" />', self.vc_view_state, null);\n"
" if (vars is not null) {\n"
" self.realm := get_keyword ('realm', vars);\n"
" <xsl:for-each select=\".//v:variable[@persist = '0' or @persist = 'pagestate' or not @persist]\">\n"
" self.<xsl:value-of select=\"@name\"/> := get_keyword ('<xsl:value-of select=\"@name\"/>', vars);\n"
" <xsl:if test=\"@type='xml'\">\n"
" if (isstring (self.<xsl:value-of select=\"@name\"/>))\n"
" self.<xsl:value-of select=\"@name\"/> := xtree_doc (self.<xsl:value-of select=\"@name\"/>);\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
" }\n"
" }\n"
" <xsl:for-each select=\".//v:variable[@param-name != '']\">\n"
" vartmp := get_keyword ('<xsl:value-of select=\"@param-name\"/>', e.ve_params);\n"
" if (vartmp is not null)\n"
" self.<xsl:value-of select=\"@name\"/> := cast (vartmp as <xsl:value-of select=\"@type\"/>);\n"
" </xsl:for-each>\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%state%']\">control.vc_debug_log ('state', 'Page state restored', null); -- debug-log code</xsl:if>\n"
"}\n"
";\n",
"\n"
"<xsl:if test=\"@on-error-redirect or @on-deadlock-retry\">\n"
"create method vc_error_handler_<xsl:value-of select=\"$vspx_local_class_name\" /> (in state any, in message any, inout deadl any) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%error%']\">declare _debug_log_id integer; _debug_log_id := self.vc_debug_log ('begin', 'Error handler', null); -- debug-log code</xsl:if>\n"
" http_rewrite ();\n"
" <xsl:if test=\"@on-deadlock-retry\">\n"
" if (not isinteger (deadl)) {\n"
" deadl := <xsl:value-of select=\"@on-deadlock-retry\"/>;\n"
" }\n"
" if (state = '40001') {\n"
" deadl := deadl - 1;\n"
" if (deadl > 0) {\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%error%']\">self.vc_debug_log_endgroup (_debug_log_id, 'end', 'Error handler has detected a deadlock', null); -- debug-log code</xsl:if>\n"
" return 1;\n"
" }\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"@on-error-redirect\">\n"
" {\n"
" if (not isstring (state))\n"
" state := cast (state as varchar);\n"
" if (not isstring (message) and state = '100')\n"
" message := 'Not found exception';\n"
" http_request_status ('HTTP/1.1 302 Found');\n"
" if(length (self.sid) and self.vc_authentication_mode) {\n"
" http_header (sprintf ('Location: %V?__PAGE=%U&__SQL_STATE=%U&__SQL_MESSAGE=%U&sid=%s&realm=%s\\r\\n', '<xsl:value-of select=\"@on-error-redirect\"/>', http_path (), state, message, self.sid, self.realm));\n"
" }\n"
" else {\n"
" http_header (sprintf ('Location: %V?__PAGE=%U&__SQL_STATE=%U&__SQL_MESSAGE=%U\\r\\n', '<xsl:value-of select=\"@on-error-redirect\"/>', http_path (), state, message));\n"
" }\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%error%']\">self.vc_debug_log_endgroup (_debug_log_id, 'end', 'Error handler has performed a redirect', null); -- debug-log code</xsl:if>\n"
" return 1;\n"
" }\n"
" </xsl:if>\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%error%']\">self.vc_debug_log_endgroup (_debug_log_id, 'end', 'Error handler', null); -- debug-log code</xsl:if>\n"
" return 0;\n"
"}\n"
";\n",
"</xsl:if>\n"
"\n"
"create method vc_redirect (in url any) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" if (length (self.sid))\n"
" url := vspx_uri_add_parameters (url, sprintf ('sid=%s&realm=%s', self.sid, self.realm));\n"
" http_request_status ('HTTP/1.1 302 Found');\n"
" http_header (concat (http_header_get (), 'Location: ',url,'\\r\\n'));\n"
"}\n"
";\n",
"\n"
"<!-- no need: <xsl:call-template name=\"script_define\"><xsl:with-param name=\"methodname\">on_init</xsl:with-param><xsl:with-param name=\"methodkey\">on-init</xsl:with-param></xsl:call-template> -->\n"
"<xsl:call-template name=\"script_define\"><xsl:with-param name=\"methodname\">data_bind</xsl:with-param><xsl:with-param name=\"methodkey\">before-data-bind</xsl:with-param></xsl:call-template>\n"
"<xsl:call-template name=\"script_define\"><xsl:with-param name=\"methodname\">after_data_bind</xsl:with-param><xsl:with-param name=\"methodkey\">after-data-bind</xsl:with-param></xsl:call-template>\n"
"<xsl:call-template name=\"script_define\"><xsl:with-param name=\"methodname\">user_post</xsl:with-param><xsl:with-param name=\"methodkey\">on-post</xsl:with-param></xsl:call-template>\n"
"<xsl:call-template name=\"script_define\"><xsl:with-param name=\"methodname\">pre_render</xsl:with-param><xsl:with-param name=\"methodkey\">before-render</xsl:with-param></xsl:call-template>\n"
"\n"
"\n"
"<!-- Page class methods for well known controls -->\n"
"<!-- INIT -->\n"
" -- INIT methods\n"
"<xsl:for-each select=\"$initable-controls-set\">\n"
"create method vc_init_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>, inout parent vspx_control) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <!-- some controls like VSCX needs vc_children to exists -->\n"
" <xsl:if test=\"local-name () != 'vscx'\">\n"
" if (control.vc_children is not null)\n"
" {\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">control.vc_debug_log ('skip', 'vc_init_...()', null); -- debug-log code</xsl:if>\n"
" return;\n"
" }\n"
" </xsl:if>\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">declare _debug_log_id integer; _debug_log_id := control.vc_debug_log ('begin', 'vc_init_...()', null); -- debug-log code</xsl:if>\n"
" <xsl:if test=\"@initial-enable = '0' or @enabled = '0'\">\n"
" control.vc_enabled := 0;\n"
" </xsl:if>\n"
" <xsl:if test=\"@is-boolean[.='1' or .='true']\">\n"
" control.ufl_is_boolean := 1;\n"
" </xsl:if>\n"
" <xsl:if test=\"@true-value[not(. like '--%')]\">\n"
" control.ufl_true_value := <xsl:apply-templates select=\"@true-value\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@false-value[not(. like '--%')]\">\n"
" control.ufl_false_value := <xsl:apply-templates select=\"@false-value\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@value and not (@value like '--%')\">\n"
" control.ufl_value := <xsl:apply-templates select=\"@value\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@defvalue and not (@defvalue like '--%')\">\n"
" control.ufl_value := <xsl:apply-templates select=\"@defvalue\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@element-params and not (@element-params like '--%')\">\n"
" control.ufl_element_params := <xsl:apply-templates select=\"@element-params\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@element-update-params and not (@element-update-params like '--%')\">\n"
" control.ufl_element_update_params := <xsl:apply-templates select=\"@element-update-params\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@element-path and not (@element-path like '--%')\">\n"
" control.ufl_element_path := <xsl:apply-templates select=\"@element-path\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@element-update-path and not (@element-update-path like '--%')\">\n"
" control.ufl_element_update_path := <xsl:apply-templates select=\"@element-update-path\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@element-place and not (@element-place like '--%')\">\n"
" control.ufl_element_place := <xsl:apply-templates select=\"@element-place\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@null-value\">\n"
" control.ufl_null_value := <xsl:apply-templates select=\"@null-value\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@instantiate[. like '--%']\">\n"
" if (control.vc_instantiate < 0)\n"
" control.vc_instantiate := <xsl:apply-templates select=\"@instantiate\" mode=\"value\"/>;\n"
" </xsl:when>\n"
" <xsl:when test=\"@instantiate = '0'\">\n"
" if (control.vc_instantiate < 0)\n"
" control.vc_instantiate := 0;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" control.vc_instantiate := 1;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:if test=\"@instantiate\">\n"
" if (not control.vc_instantiate)\n"
" {\n"
" control.vc_enabled := 0;\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">control.vc_debug_log_endgroup (_debug_log_id, 'break', 'vc_init_...() has set vc_instantiate to zero', null); -- debug-log code</xsl:if>\n"
" return;\n"
" }\n"
" </xsl:if>\n"
" control.vc_attributes := vector (\n"
" <xsl:for-each select=\"v:data-binding\">\n"
" vspx_attribute ('<xsl:value-of select=\"@attr-name\" />', control),\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"@*[starts-with(name(), 'xhtml_')]\">\n"
" vspx_attribute ('<xsl:value-of select=\"substring-after (local-name(), 'xhtml_')\" />', control),\n"
" </xsl:for-each>\n"
" NULL);\n"
"\n"
" <xsl:if test=\"local-name () != 'data-set'\n"
" and local-name () != 'data-grid'\n"
" and local-name () != 'tab'\n"
" and local-name () != 'login'\n"
" and local-name () != 'vscx'\n"
" and not (local-name ()='button' and @action='return') \">\n"
" control.vc_children := vector (\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
" NULL\n"
" );\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\".\" mode=\"init_method\" />\n"
"\n"
" <!-- bellow was only for :\n"
" .//v:field[@value]|\n"
" .//v:button[@action='return']|\n"
" .//v:text|.//v:textarea|\n"
" .//v:button[@action='simple']|\n"
" .//v:label|\n"
" .//v:url|\n"
" .//v:check-box|\n"
" .//v:update-field|\n"
" .//v:button[@action='submit']|\n"
" .//v:radio-button|\n"
" .//v:browse-button|\n"
" .//v:template[@type='simple']|\n"
" .//v:template[@type='input']|\n"
" .//v:template[@type='result']|\n"
" .//v:template[@type='error']|\n"
" .//v:button[@action='logout']\"\n"
" -->\n"
" <xsl:if test=\"count (v:validator[string(@runat) != 'client'][@test != 'sql']) > 0\">\n"
" {\n"
" declare validators any;\n"
" validators := make_array (<xsl:value-of select=\"count (v:validator[string(@runat) != 'client'][@test != 'sql'])\"/>, 'any');\n"
" <xsl:for-each select=\"v:validator[string(@runat) != 'client'][@test != 'sql']\">\n"
" {\n"
" declare vldt vspx_range_validator;\n"
" vldt := new vspx_range_validator ();\n"
" <xsl:if test=\"@test != 'regexp'\">\n"
" vldt.vr_min := <xsl:value-of select=\"@min\"/>;\n"
" vldt.vr_max := <xsl:value-of select=\"@max\"/>;\n"
" </xsl:if>\n"
" vldt.vv_test := '<xsl:value-of select=\"@test\"/>';\n"
" <xsl:if test=\"@test = 'regexp'\">\n"
" vldt.vv_expr := '<xsl:value-of select=\"@regexp\"/>';\n"
" </xsl:if>\n"
" <xsl:if test=\"@empty-allowed\">\n"
" vldt.vv_empty_allowed := <xsl:value-of select=\"@empty-allowed\"/>;\n"
" </xsl:if>\n"
" vldt.vv_message := '<xsl:apply-templates select=\"@message\" mode=\"escaped_string\"/>';\n"
" aset (validators, <xsl:value-of select=\"position()-1\" />, vldt);\n"
" }\n"
" </xsl:for-each>\n"
" control.ufl_validators := validators;\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"count (v:validator[@runat = 'client'][@test != 'sql']) > 0\">\n"
" control.ufl_client_validate := <xsl:value-of select=\"count (v:validator[@runat = 'client'][@test != 'sql'])\" />;\n"
" </xsl:if>\n"
" <xsl:if test=\"@column != ''\">\n"
" control.ufl_column := <xsl:apply-templates select=\"@column\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@error-glyph != ''\">\n"
" control.ufl_error_glyph := <xsl:apply-templates select=\"@error-glyph\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"string-length(normalize-space(@fmt-function)) > 0\">\n"
" control.ufl_fmt_fn := <xsl:apply-templates select=\"@fmt-function\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"string-length(normalize-space(@cvt-function)) > 0\">\n"
" control.ufl_cvt_fn := <xsl:apply-templates select=\"@cvt-function\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@initial-checked and not @initial-checked like '--%'\"> <!-- this must be reset when post -->\n"
" control.ufl_selected := <xsl:apply-templates select=\"@initial-checked\" mode=\"value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@auto-submit and not @auto-submit like '--%'\">\n"
" control.ufl_auto_submit := <xsl:apply-templates select=\"@auto-submit\" mode=\"value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@group-name != ''\">\n"
" control.ufl_group := <xsl:apply-templates select=\"@group-name\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <!-- if control is in repeater, then view state will not be restored on initial call\n"
" in page constructor, then this should be set on instantiation.\n"
" -->\n"
" <xsl:if test=\"local-name(.) != 'vscx'\">\n"
" if (self.vc_event.ve_is_post and control.vc_control_state is null)\n"
" {\n"
" control.vc_set_view_state (self.vc_event);\n"
" }\n"
" </xsl:if>\n"
" <xsl:for-each select=\"key('on-init',@name)\">\n"
" <xsl:value-of select=\".\" />\n"
" if (not control.vc_enabled)\n"
" {\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">control.vc_debug_log_endgroup (_debug_log_id, 'break', 'vc_init_...() has set vc_enabled to zero', null); -- debug-log code</xsl:if>\n"
" return;\n"
" }\n"
" </xsl:for-each>\n"
" control.vc_invoke_handlers ('on-init');\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">control.vc_debug_log_endgroup (_debug_log_id, 'end', 'vc_init_...()', null); -- debug-log code</xsl:if>\n"
"}\n"
";\n",
"</xsl:for-each>\n"
"\n"
"<xsl:for-each select=\"$custom-controls-set\">\n"
"create method vcc_init_<xsl:value-of select=\"@name\" /> (in name varchar, inout parent vspx_control) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:variable name=\"class_name\" select=\"v:vcc_class_name (name ())\"/>\n"
" declare control <xsl:value-of select=\"$class_name\"/>;\n"
" control := <xsl:value-of select=\"$class_name\"/> ();\n"
" control.vc_name := name;\n"
" control.vc_page := self;\n"
" control.vc_parent := parent;\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">declare _debug_log_id integer; _debug_log_id := control.vc_debug_log ('begin', 'vcc_init_...()', null); -- debug-log code</xsl:if>\n"
" -- The code below is created by v:vcc_instantiate() for control name '<xsl:value-of select=\"name()\"/>':\n"
" <xsl:value-of select=\"v:vcc_instantiate (name (), .)\" />\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">control.vc_debug_log_endgroup (_debug_log_id, 'end', 'vcc_init_...()', null); -- debug-log code</xsl:if>\n"
" return control;\n"
"}\n"
";\n",
"</xsl:for-each>\n"
"\n"
"<!-- DATA-BIND -->\n"
" -- DATA-BIND methods\n"
"<xsl:for-each select=\"$bindable-controls-set\">\n"
"create method vc_data_bind_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/> , inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" --no_c_escapes-\n"
" declare path, params, lines any;\n"
" <xsl:if test=\"@enabled[. like '--%']\">\n"
" control.vc_enabled := <xsl:apply-templates select=\"@enabled\" mode=\"value\"/>;\n"
" </xsl:if>\n"
" if (not control.vc_enabled)\n"
" {\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%data-bind%']\">control.vc_debug_log ('skip', 'vc_data_bind_...() has no effect because vc_enabled is zero', null); -- debug-log code</xsl:if>\n"
" return 1;\n"
" }\n"
" path := e.ve_path;\n"
" params := e.ve_params;\n"
" lines := e.ve_lines;\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%init%']\">declare _debug_log_id integer; _debug_log_id := control.vc_debug_log ('begin', 'vc_data_bind_...()', null); -- debug-log code</xsl:if>\n"
" <xsl:if test=\".=$initable-controls-set\">\n"
" if (not control.vc_instantiate)\n"
" {\n"
" control.vc_instantiate := 1;\n"
" self.vc_init_<xsl:value-of select=\"@name\" /> (control, control.vc_parent);\n"
" if (self.vc_page.vc_is_postback and e.ve_button is null)\n"
" self.vc_get_focus (e);\n"
" }\n"
" </xsl:if>\n"
" <!--xsl:if test=\"@initial-checked != ''\">\n"
" if (e.ve_is_post)\n"
" control.ufl_selected := 0;\n"
" </xsl:if-->\n"
" <xsl:if test=\"key('before-data-bind',@name)\">\n"
"-- v:before-data-bind controls:\n"
" <xsl:for-each select=\"key('before-data-bind',@name)\">\n"
" <xsl:value-of select=\".\" />\n"
" if (not control.vc_enabled)\n"
" {\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%data-bind%']\">control.vc_debug_log_endgroup (_debug_log_id, 'break', 'vc_data_bind_...() exits because event handler has set vc_enabled is zero', null); -- debug-log code</xsl:if>\n"
" return;\n"
" }\n"
" </xsl:for-each>\n"
" </xsl:if>\n"
" <xsl:for-each select=\"v:param\">\n"
" declare <xsl:value-of select=\"@name\" /> any;\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"v:param\">\n"
" <xsl:value-of select=\"@name\" /> := <xsl:apply-templates select=\"@value\" mode=\"value\" />;\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"v:data-binding\">\n"
" control.vc_set_attribute('<xsl:value-of select=\"@attr-name\"/>', <xsl:apply-templates select=\"@attr-value\" mode=\"value\"/>);\n"
" </xsl:for-each>\n"
"-- Databound fields of the control:\n"
" <xsl:apply-templates select=\"@element-path[. like '--%']\" mode=\"field_value\"/>\n"
" <xsl:apply-templates select=\"@element-update-path[. like '--%']\" mode=\"field_value\"/>\n"
" <xsl:apply-templates select=\"@element-place[. like '--%']\" mode=\"field_value\"/>\n"
" <xsl:apply-templates select=\"@element-value[. like '--%']\" mode=\"field_value\"/>\n"
" <xsl:apply-templates select=\"@element-params[. like '--%']\" mode=\"field_value\"/>\n"
" <xsl:apply-templates select=\"@element-update-params[. like '--%']\" mode=\"field_value\"/>\n"
" <xsl:apply-templates select=\"@value[. like '--%']\" mode=\"field_value\"/>\n"
" <xsl:if test=\"@element-value and not (@value)\">\n"
" <!-- dbg_obj_print ('ufl_value, ufl_element_value, ufl_element_path before vc_get_value_from_element:', control.ufl_value, control.ufl_element_value, control.ufl_element_path); -->\n"
" if (control.ufl_value is null)\n"
" (control as vspx_field_value).vc_get_value_from_element();\n"
" <!--\n"
" else\n"
" dbg_obj_print ('ufl_value is not set by vc_get_value_from_element:', control.ufl_value);\n"
" -->\n"
" </xsl:if>\n"
" <xsl:for-each select=\"@defvalue[. like '--%']\">\n"
" if (control.ufl_value is null)\n"
" <xsl:apply-templates select=\".\" mode=\"field_value\"/>\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"@*[not starts-with(name(), 'xhtml_')][. like '--%'][local-name()!='enabled'][local-name()!='initial-enable'][local-name()!='value'][local-name()!='defvalue'][local-name()!='element-value'][local-name()!='element-path'][local-name()!='element-params'][local-name()!='element-update-path'][local-name()!='element-update-params'][local-name()!='element-place']\">\n"
" <xsl:variable name=\"fldname\"><xsl:call-template name=\"attr_name\" /></xsl:variable>\n"
" <xsl:if test=\"not ($fldname='')\">\n"
" <xsl:if test=\"starts-with(local-name(), 'initial-')\">if (not e.ve_is_post) {</xsl:if>\n"
" control.<xsl:value-of select=\"$fldname\" /> := <xsl:apply-templates select=\".\" mode=\"value\"/>;\n"
" <xsl:if test=\"starts-with(local-name(), 'initial-')\">}</xsl:if>\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
"-- Databound HTML attributes:\n"
" <xsl:for-each select=\"@*[starts-with(name(), 'xhtml_')]\">\n"
" <xsl:variable name=\"attr-name\" select=\"substring-after (local-name(), 'xhtml_')\" />\n"
" <xsl:choose>\n"
" <xsl:when test=\". like '--%'\">\n"
" control.vc_set_attribute ('<xsl:value-of select=\"$attr-name\"/>', <xsl:apply-templates select=\".\" mode=\"value\"/>);\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" control.vc_set_attribute ('<xsl:value-of select=\"$attr-name\"/>', <xsl:apply-templates select=\".\" mode=\"static_value\"/>);\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:for-each>\n"
" <xsl:apply-templates select=\".\" mode=\"data_bind_method\" />\n"
"&LINE;\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%data-bind%']\">control.vc_debug_log_endgroup (_debug_log_id, 'end', 'vc_data_bind_...()', null); -- debug-log code</xsl:if>\n"
"}\n"
";\n",
"\n"
"</xsl:for-each>\n"
"\n"
"<xsl:for-each select=\"$after-data-bind-set\">\n"
"create method vc_after_data_bind_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/> , inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" --no_c_escapes-\n"
" declare path, params, lines any;\n"
"\n"
" if (not control.vc_enabled)\n"
" return;\n"
" path := e.ve_path;\n"
" params := e.ve_params;\n"
" lines := e.ve_lines;\n"
" <xsl:for-each select=\"key('after-data-bind',@name)\"><xsl:value-of select=\".\" /></xsl:for-each>\n"
"}\n"
";\n",
"\n"
"</xsl:for-each>\n"
"\n"
"<xsl:for-each select=\"$scrollable-controls-set\">\n"
"create method vc_scroll_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/> , in new_rows_offs integer, inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:apply-templates select=\".\" mode=\"scroll_cursor_declaration\" />\n"
" <xsl:apply-templates select=\".\" mode=\"scroll_code\" />\n"
"}\n"
";\n",
"</xsl:for-each>\n"
"\n"
"<!-- STANDARD POST methods -->\n"
"<xsl:for-each select=\"$standard-post-set\">\n"
"create method vc_post_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>, inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" --no_c_escapes-\n"
" <!--\n"
"-#-!! declare exit handler for sqlstate '*'\n"
"-#-!! {\n"
"-#-!! self.vc_is_valid := 0;\n"
"-#-!! control.vc_error_message := concat (__SQL_MESSAGE, ' in v:<xsl:value-of select=\"local-name()\" /> \"<xsl:value-of select=\"@name\" />\" (post)');\n"
"-#-!! return;\n"
"-#-!! };\n"
" -->\n"
" declare path, params, lines any;\n"
" path := e.ve_path;\n"
" params := e.ve_params;\n"
" lines := e.ve_lines;\n"
" <xsl:choose>\n"
" <xsl:when test=\"local-name() = 'radio-button' and ancestor::v:radio-group\">\n"
" if(0 = control.vc_parent.vc_parent.vc_focus or not e.ve_is_post) {\n"
" return;\n"
" }\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" if(udt_instance_of (control, fix_identifier_case ('vspx_field')) and\n"
" 0 = control.vc_parent.vc_focus or not e.ve_is_post) {\n"
" return;\n"
" }\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%post%']\">declare _debug_log_id integer; _debug_log_id := control.vc_debug_log ('begin', 'vc_post_...()', null); -- debug-log code</xsl:if>\n"
" <xsl:apply-templates select=\".\" mode=\"system_post\" />\n"
" <xsl:apply-templates select=\".\" mode=\"simple_validators\" />\n"
" <xsl:apply-templates select=\"v:validator[string(@runat) != 'client']\" mode=\"validate\" />\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%post%']\">control.vc_debug_log_endgroup (_debug_log_id, 'end', 'vc_post_...()', null); -- debug-log code</xsl:if>\n"
"}\n"
";\n",
"</xsl:for-each>\n"
"\n"
"<!-- USER POST methods -->\n"
"<xsl:for-each select=\"$user-post-set\">\n"
"create method vc_user_post_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>, inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" --no_c_escapes-\n"
"<!--\n"
"-#-!! declare exit handler for sqlstate '*'\n"
"-#-!! {\n"
"-#-!! self.vc_is_valid := 0;\n"
"-#-!! control.vc_error_message := concat (__SQL_MESSAGE, ' in v:<xsl:value-of select=\"local-name()\" /> \"<xsl:value-of select=\"@name\" />\" (post)');\n"
"-#-!! return;\n"
"-#-!! };\n"
" -->\n"
" declare path, params, lines any;\n"
" path := e.ve_path;\n"
" params := e.ve_params;\n"
" lines := e.ve_lines;\n"
" <xsl:choose>\n"
" <xsl:when test=\"local-name() = 'radio-button' and ancestor::v:radio-group\">\n"
" if (0 = control.vc_parent.vc_parent.vc_focus or not e.ve_is_post)\n"
" return;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" if (udt_instance_of (control, fix_identifier_case ('vspx_field')) and\n"
" 0 = control.vc_parent.vc_focus or not e.ve_is_post)\n"
" {\n"
" <!-- dbg_obj_print ('No user post: no focus on', control.vc_name, control.vc_parent.vc_name); -->\n"
" return;\n"
" }\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:if test=\"key('on-post',@name)\">\n"
" {\n"
" declare form vspx_form;\n"
" form := null;\n"
" if(udt_instance_of (control, fix_identifier_case ('vspx_field'))\n"
" and not udt_instance_of (control, fix_identifier_case ('vspx_button'))) {\n"
" form := control.vc_find_parent_form (control);\n"
" }\n"
" if(control.vc_focus or (form is not null and form.vc_focus)) {\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%post%']\">declare _debug_log_id integer; _debug_log_id := control.vc_debug_log ('begin', 'vc_user_post_...()', null); -- debug-log code</xsl:if>\n"
" <xsl:for-each select=\"key('on-post',@name)\"><xsl:value-of select=\".\" /></xsl:for-each>\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%post%']\">control.vc_debug_log_endgroup (_debug_log_id, 'end', 'vc_user_post_...()', null); -- debug-log code</xsl:if>\n"
" }\n"
" }\n"
"</xsl:if>\n"
"}\n"
";\n",
"</xsl:for-each>\n"
"\n"
"<!-- ACTIONS methods -->\n"
"<xsl:for-each select=\"$standard-post-set\">\n"
"create method vc_action_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>, inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" --no_c_escapes-\n"
" <!--\n"
"-#-!! declare exit handler for sqlstate '*'\n"
"-#-!! {\n"
"-#-!! self.vc_is_valid := 0;\n"
"-#-!! control.vc_error_message := concat (__SQL_MESSAGE, ' in v:<xsl:value-of select=\"local-name()\" /> \"<xsl:value-of select=\"@name\" />\" (post)');\n"
"-#-!! return;\n"
"-#-!! };\n"
" -->\n"
" declare path, params, lines any;\n"
" path := e.ve_path;\n"
" params := e.ve_params;\n"
" lines := e.ve_lines;\n"
" <xsl:choose>\n"
" <xsl:when test=\"local-name() = 'radio-button' and ancestor::v:radio-group\">\n"
" if (0 = control.vc_parent.vc_parent.vc_focus or not e.ve_is_post)\n"
" return;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" if (udt_instance_of (control, fix_identifier_case ('vspx_field')) and\n"
" 0 = control.vc_parent.vc_focus or not e.ve_is_post)\n"
" return;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <!--\n"
" <xsl:apply-templates select=\"v:validator[string(@runat) != 'client']\" mode=\"validate\" />\n"
" <xsl:apply-templates select=\"$editable-controls-set\" mode=\"simple_validators\" />\n"
" -->\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%post%']\">declare _debug_log_id integer; _debug_log_id := control.vc_debug_log ('begin', 'vc_action_...()', null); -- debug-log code</xsl:if>\n"
" <xsl:apply-templates select=\".\" mode=\"action_method\" />\n"
"<xsl:if test=\"ancestor-or-self::v:*/@debug-log[$debug_on][. like '%post%']\">control.vc_debug_log_endgroup (_debug_log_id, 'end', 'vc_action_...()', null); -- debug-log code</xsl:if>\n"
"}\n"
";\n",
"</xsl:for-each>\n"
"\n"
"<!-- RENDER -->\n"
"<xsl:for-each select=\".//v:data-set|.//v:data-grid|.//v:form[@type='update']|.//v:form[@type='simple']|.//v:select-list|.//v:data-list|.//v:login|.//v:tree|.//v:tab|.//v:isql|.//v:calendar|.//v:vscx\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare exit handler for sqlstate '*'\n"
" {\n"
" http ('<pre>');\n"
" http_value (__SQL_STATE);\n"
" http_value (__SQL_MESSAGE);\n"
" http (' in v:<xsl:value-of select=\"local-name()\" /> \"<xsl:value-of select=\"@name\" />\" (render)');\n"
" http ('</pre>');\n"
" return;\n"
" };\n"
" if (control is null or control.vc_children is null or not control.vc_enabled)\n"
" return;\n"
" <xsl:apply-templates select=\".\" mode=\"render_method\" />\n"
"}\n"
";\n",
"</xsl:for-each>\n"
"\n"
"\n"
"<xsl:for-each select=\".//v:template[@name and @type != 'frame' and @type != 'if-login' and @type != 'if-no-login']|.//v:radio-group\">\n"
" <xsl:apply-templates select=\".\" mode=\"render_method\" />\n"
"</xsl:for-each>\n"
"<!-- eof RENDER -->\n"
"\n"
"<!-- SET_VIEW_STATE -->\n"
"\n"
"<xsl:for-each select=\"$statable-controls-set\">\n"
"create method vc_set_view_state_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/> , inout e vspx_event) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:apply-templates select=\".\" mode=\"set_view_state_method\" />\n"
"}\n"
";\n",
"\n"
"</xsl:for-each>\n"
"\n"
" <xsl:for-each select=\".//v:tree\">\n"
" <xsl:apply-templates select=\".\" mode=\"node_data_bind_method\" />\n"
" <xsl:apply-templates select=\".\" mode=\"node_render_method\" />\n"
" </xsl:for-each>\n"
"\n"
" <xsl:for-each select=\".//v:*[v:validator[@test='sql' and not @expression]]\">\n"
" <xsl:apply-templates select=\".\" mode=\"validator_handler\" />\n"
" </xsl:for-each>\n"
"\n"
" <!-- pre-render method for all known -->\n"
" <xsl:for-each select=\"$before-render-set\">\n"
"create method vc_pre_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" if (not control.vc_enabled)\n"
" return;\n"
" <xsl:for-each select=\"key('before-render',@name)\"><xsl:value-of select=\".\" /></xsl:for-each>\n"
"}\n"
";\n",
" </xsl:for-each>\n"
"\n"
"<xsl:call-template name=\"page_render_method\" />\n"
"</xsl:template> <!-- eof v:page template -->\n"
"\n"
"<!--\n"
" Any existing data-bound attributes\n"
";\n",
"-->\n"
"<xsl:template name=\"attr_name\">\n"
"<xsl:variable name=\"n\" select=\"local-name()\"/>\n"
"<xsl:choose>\n"
" <xsl:when test=\"$n = 'active'\">ufl_active</xsl:when>\n"
" <xsl:when test=\"$n = 'auto-submit'\">ufl_auto_submit</xsl:when>\n"
" <xsl:when test=\"$n = 'data'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:data-set\">ds_row_data</xsl:when>\n"
" <xsl:when test=\"parent::v:data-grid\">dg_row_data</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'edit'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:data-set\">ds_editable</xsl:when>\n"
" <xsl:when test=\"parent::v:data-grid\">dg_editable</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'enabled'\">vc_enabled</xsl:when>\n"
" <xsl:when test=\"$n = 'initial-date'\">cal_date</xsl:when>\n"
" <xsl:when test=\"$n = 'maxrows'\">isql_maxrows</xsl:when>\n"
" <xsl:when test=\"$n = 'meta'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:data-set|parent::v:data-source\">ds_row_meta</xsl:when>\n"
" <xsl:when test=\"parent::v:data-grid\">dg_row_meta</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'password'\">isql_password</xsl:when>\n"
" <xsl:when test=\"$n = 'timeout'\">isql_timeout</xsl:when>\n"
" <xsl:when test=\"$n = 'url'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:url\">vu_url</xsl:when>\n"
" <xsl:when test=\"parent::v:button\">bt_url</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'user'\">isql_user</xsl:when>\n"
" <xsl:when test=\"$n = 'value'\">ufl_value</xsl:when>\n"
" <xsl:when test=\"$n = 'defvalue'\">ufl_value</xsl:when>\n"
" <xsl:when test=\"$n = 'element-value'\">ufl_element_value</xsl:when>\n"
" <xsl:when test=\"$n = 'element-place'\">ufl_element_place</xsl:when>\n"
" <xsl:when test=\"$n = 'element-path'\">ufl_element_path</xsl:when>\n"
" <xsl:when test=\"$n = 'element-params'\">ufl_element_params</xsl:when>\n"
" <xsl:when test=\"$n = 'element-update-path'\">ufl_element_update_path</xsl:when>\n"
" <xsl:when test=\"$n = 'element-update-params'\">ufl_element_update_params</xsl:when>\n"
" <xsl:when test=\"$n = 'default_value'\">tf_default</xsl:when>\n"
" <xsl:when test=\"$n = 'action'\">uf_action</xsl:when>\n"
" <xsl:when test=\"$n = 'browser-filter'\">vcb_filter</xsl:when>\n"
" <xsl:when test=\"$n = 'browser-list'\">vcb_list_mode</xsl:when>\n"
" <xsl:when test=\"$n = 'browser-mode'\">vcb_browser_mode</xsl:when>\n"
" <xsl:when test=\"$n = 'browser-options'\">vcb_browser_options</xsl:when>\n"
" <xsl:when test=\"$n = 'browser-type'\">vcb_system</xsl:when>\n"
" <xsl:when test=\"$n = 'browser-xfer'\">vcb_xfer</xsl:when>\n"
" <!--xsl:when test=\"$n = 'child-function'\"></xsl:when-->\n"
" <xsl:when test=\"$n = 'child-window-options'\">vcb_chil_options</xsl:when>\n"
" <xsl:when test=\"$n = 'column'\">ufl_column</xsl:when>\n"
" <!--xsl:when test=\"$n = 'cursor-type'\"></xsl:when-->\n"
" <xsl:when test=\"$n = 'cvt-function'\">ufl_cvt_fn</xsl:when>\n"
" <xsl:when test=\"$n = 'error-glyph'\">ufl_error_glyph</xsl:when>\n"
" <xsl:when test=\"$n = 'fmt-function'\">ufl_fmt_fn</xsl:when>\n"
" <xsl:when test=\"$n = 'format'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:url\">vu_format</xsl:when>\n"
" <xsl:when test=\"parent::v:label\">vl_format</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'group-name'\">ufl_group</xsl:when>\n"
" <xsl:when test=\"$n = 'initial-active'\">ufl_active</xsl:when>\n"
" <xsl:when test=\"$n = 'initial-checked'\">ufl_selected</xsl:when>\n"
" <xsl:when test=\"$n = 'true-value'\">ufl_true_value</xsl:when>\n"
" <xsl:when test=\"$n = 'false-value'\">ufl_false_value</xsl:when>\n"
" <xsl:when test=\"$n = 'isolation'\">isql_isolation</xsl:when>\n"
" <!--xsl:when test=\"$n = 'method'\"></xsl:when-->\n"
" <xsl:when test=\"$n = 'name-suffix'\">ufl_name_suffix</xsl:when>\n"
" <xsl:when test=\"$n = 'nrows'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:data-set|parent::v:data-source\">ds_nrows</xsl:when>\n"
" <xsl:when test=\"parent::v:data-grid\">dg_nrows</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'realm'\">vl_realm</xsl:when>\n"
" <xsl:when test=\"$n = 'scrollable'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:data-set\">ds_scrollable</xsl:when>\n"
" <xsl:when test=\"parent::v:data-grid\">dg_scrollable</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'expression'\">vv_expr</xsl:when>\n"
" <xsl:when test=\"$n = 'sql'\">ds_sql</xsl:when>\n"
" <xsl:when test=\"$n = 'style'\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"parent::v:button\">bt_style</xsl:when>\n"
" <xsl:when test=\"parent::v:tab\">tb_style</xsl:when>\n"
" </xsl:choose>\n"
" </xsl:when>\n"
" <xsl:when test=\"$n = 'user-password'\">vl_pwd_get</xsl:when>\n"
" <xsl:when test=\"$n = 'user-password-check'\">vl_usr_check</xsl:when>\n"
" <xsl:when test=\"$n = 'type'\">tf_style</xsl:when>\n"
" <xsl:when test=\"$n = 'initial-offset'\">ds_rows_offs</xsl:when>\n"
" <xsl:when test=\"$n = 'data-source'\">ds_data_source</xsl:when>\n"
" <xsl:when test=\"$n = 'selector'\">vcb_selector</xsl:when>\n"
" <xsl:when test=\"$n = 'open-at'\">vt_open_at</xsl:when>\n"
" <xsl:when test=\"$n = 'xpath-id'\">vt_xpath_id</xsl:when>\n"
" <xsl:when test=\"$n = 'multiple'\">vsl_multiple</xsl:when>\n"
" <xsl:when test=\"$n = 'list-document'\">vsl_list_document</xsl:when>\n"
" <xsl:when test=\"$n = 'list-match'\">vsl_list_match</xsl:when>\n"
" <xsl:when test=\"$n = 'list-key-path'\">vsl_list_key_path</xsl:when>\n"
" <xsl:when test=\"$n = 'list-value-path'\">vsl_list_value_path</xsl:when>\n"
" <xsl:otherwise></xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"attr_static_assignment\">\n"
" <xsl:variable name=\"lv\"><xsl:apply-templates select=\".\" mode=\"attr_name\"/></xsl:variable>\n"
" <xsl:if test=\"not(.like'--%') and $lv\">\n"
" control.<xsl:value-of select=\"$lv\"/> := <xsl:apply-templates select=\"@multiple\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:form[@type='update']|v:form[@type='simple']\" mode=\"render_method\">\n"
" --no_c_escapes-\n"
" <xsl:variable name=\"httpmethod\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@method='POST'\">post</xsl:when><!-- XHTML 1.0 defines \"post\" and \"get\" -->\n"
" <xsl:when test=\"@method='GET'\">get</xsl:when>\n"
" <xsl:when test=\"not(@method)\">post</xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:message terminate=\"yes\">Attribute 'method' of VSPX control 'form' should be equal to either 'POST' (default) or 'GET', not to '<xsl:value-of select=\"@method\"/>'.</xsl:message>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" </xsl:variable>\n"
" declare form <xsl:value-of select=\"@control-udt\"/>;\n"
" form := control;\n"
" form.uf_method := '<xsl:value-of select=\"$httpmethod\"/>';\n"
" form.prologue_render (self.sid, self.realm, self.nonce);\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" <xsl:text>form.epilogue_render ();</xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:isql\" mode=\"render_method\">\n"
" declare isql vspx_isql;\n"
" declare i, l int;\n"
" declare stmts any;\n"
"\n"
"\n"
" isql := control;\n"
" isql.prologue_render (self.sid, self.realm, self.nonce);\n"
"\n"
" if (isql.isql_chunked)\n"
" http_flush (1);\n"
"\n"
" stmts := isql.isql_stmts;\n"
" l := 0;\n"
" if (isql.isql_chunked)\n"
" l := length (stmts);\n"
"\n"
" control.vc_render ('<xsl:value-of select=\"v:template[@type='input']/@name\" />');\n"
" for (i := 0; i < l; i := i + 1)\n"
" {\n"
" declare save_res any;\n"
" isql.isql_current_stmt := stmts[i];\n"
" isql.isql_current_state := isql.vc_error_message[i];\n"
" isql.isql_current_meta := isql.isql_mtd[i];\n"
" isql.isql_rows_fetched := 0;\n"
" isql.isql_current_pos := i;\n"
" save_res := isql.isql_res;\n"
" if (isql.isql_current_state[0] = '00000')\n"
" {\n"
" declare exit handler for sqlstate '*' {\n"
" isql.isql_current_state := vector (__SQL_STATE, __SQL_MESSAGE);\n"
" goto render_error;\n"
" };\n"
" control.vc_render ('<xsl:value-of select=\"v:template[@type='result']/@name\" />');\n"
" }\n"
" if (isql.isql_current_state[0] <> '00000')\n"
" {\n"
" render_error:\n"
" declare templ_error vspx_control;\n"
" templ_error := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='error']/@name\" />');\n"
" templ_error.vc_enabled := 1;\n"
" templ_error.vc_data_bind (self.vc_event);\n"
" templ_error.vc_render ();\n"
" }\n"
" isql.isql_res := save_res;\n"
" }\n"
" if (not isql.isql_chunked and l = 0)\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"v:template[@type='result']/@name\" />');\n"
" control.vc_render ('<xsl:value-of select=\"v:template[@type='error']/@name\" />');\n"
" }\n"
" isql.epilogue_render ();\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-set\" mode=\"render_method\">\n"
" --no_c_escapes-\n"
" declare data_set vspx_data_set;\n"
" declare i, rowi, rowl, l int;\n"
" declare rows any;\n"
" data_set := control;\n"
"<!--\n"
" if(control.vc_error_message is not null) {\n"
" http ('<P>');\n"
" http (control.vc_error_message);\n"
" http ('</P>');\n"
" } -->\n"
" data_set.prologue_render (self.sid, self.realm, self.nonce);\n"
" if(data_set.ds_rows_fetched) {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"*|@*\" mode=\"render_all\"/>\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" else {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"*|@*\" mode=\"render_all\"/>\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" data_set.epilogue_render ();\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-grid\" mode=\"render_method\">\n"
" --no_c_escapes-\n"
" declare data_grid vspx_data_grid;\n"
" declare row_template vspx_row_template;\n"
" data_grid := control;\n"
" if (control.vc_error_message is not null)\n"
" {\n"
" http ('<P>');\n"
" http (control.vc_error_message);\n"
" http ('</P>');\n"
" }\n"
" data_grid.prologue_render (self.sid, self.realm, self.nonce);\n"
" declare i, rowi, rowl, l int;\n"
" declare rows any;\n"
"\n"
" if (data_grid.dg_rows_fetched)\n"
" {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"v:template[@type='frame']\" mode=\"render_method\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" else\n"
" {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"v:template[@type='if-not-exists']\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" data_grid.epilogue_render ();\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-list|v:select-list\" mode=\"render_method\">\n"
" control.vc_render ();\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:tab\" mode=\"render_method\">\n"
" control.prologue_render (self.sid, self.realm, self.nonce);\n"
" if (control.tb_style = 'list' or control.tb_style = 'radio')\n"
" {\n"
" declare sw vspx_control;\n"
" sw := control.vc_find_control (concat (control.vc_name, '_switch'));\n"
" sw.vc_render ();\n"
" }\n"
"\n"
" if (control.tb_active is not null)\n"
" control.tb_active.vc_render ();\n"
" control.epilogue_render ();\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:login\" mode=\"render_method\">\n"
" declare login_control vspx_login;\n"
" login_control := control;\n"
" login_control.prologue_render (self.sid, self.realm, self.nonce);\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" login_control.epilogue_render ();\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:tree\" mode=\"render_method\">\n"
" declare chil vspx_control;\n"
" declare tree vspx_tree;\n"
" declare childs any;\n"
" tree := control;\n"
" declare i, len int;\n"
" childs := null;\n"
"\n"
" <xsl:if test=\"@orientation= 'horizontal'\">\n"
" childs := vector ();\n"
" </xsl:if>\n"
"\n"
" <xsl:choose>\n"
" <xsl:when test=\"@orientation='vertical'\">\n"
" i := 0;\n"
" len := length (control.vc_children);\n"
" while (i < len)\n"
" {\n"
" chil := control.vc_children [i];\n"
" if (chil is not null and udt_instance_of (chil, fix_identifier_case ('vspx_tree_node')))\n"
" self.vc_render_node_<xsl:value-of select=\"@name\" /> (chil, childs);\n"
" i := i + 1;\n"
" }\n"
" </xsl:when>\n"
" <xsl:when test=\"@orientation='horizontal'\">\n"
" declare chil_node vspx_control;\n"
" chil_node := control;\n"
" tree.vt_node := control;\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"v:horizontal-template\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" i := 0; len := length (childs);\n"
" while (i < length (childs))\n"
" {\n"
" chil_node := childs[i];\n"
" tree.vt_node := chil_node;\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"v:horizontal-template\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" i := i + 1;\n"
" }\n"
" </xsl:when>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:tree\" mode=\"node_render_method\">\n"
"create method vc_render_node_<xsl:value-of select=\"@name\" /> (in control vspx_tree_node, inout childs any)\n"
" for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare chil vspx_tree_node;\n"
" chil := control;\n"
"\n"
" if (not control.vc_enabled)\n"
" return;\n"
"\n"
" if (chil is not null and chil.tn_is_leaf)\n"
" {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:leaf-template\">\n"
" <xsl:apply-templates select=\"v:leaf-template\" mode=\"render_all\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"v:node-template\" mode=\"render_all\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" else if (chil is not null)\n"
" {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"v:node-template\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" if (chil.tn_open and childs is not null)\n"
" {\n"
" childs := vector_concat (childs, vector (chil));\n"
" }\n"
" }\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"node_render_method\"></xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:horizontal-template\" mode=\"render_all\">\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\"/>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:node-set\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" declare j, k int;\n"
" j := 0; k := length (chil_node.vc_children);\n"
" while (j < k)\n"
" {\n"
" chil := chil_node.vc_children [j];\n"
" if (chil is not null and udt_instance_of (chil, fix_identifier_case ('vspx_tree_node')))\n"
" self.vc_render_node_<xsl:value-of select=\"ancestor::v:tree/@name\" /> (chil, childs);\n"
" j := j + 1;\n"
" }\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:node\" mode=\"render_all\">\n"
" <xsl:if test=\"ancestor::v:tree/@orientation= 'vertical'\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" if (chil is not null and chil.tn_open and not chil.tn_is_leaf)\n"
" {\n"
" declare i, l int;\n"
" i := 0; l := length (chil.vc_children);\n"
" while (i < l)\n"
" {\n"
" declare own_chil vspx_control;\n"
" own_chil := chil.vc_children [i];\n"
" if (own_chil is not null and udt_instance_of (own_chil, fix_identifier_case ('vspx_tree_node')))\n"
" self.vc_render_node_<xsl:value-of select=\"ancestor::v:tree/@name\" /> (own_chil, childs);\n"
" i := i + 1;\n"
" }\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:isql\" mode=\"init_method\">\n"
" control.isql_isolation := <xsl:apply-templates select=\"@isolation\" mode=\"static_value\"/>;\n"
" control.isql_user := <xsl:apply-templates select=\"@user\" mode=\"static_value\"/>;\n"
" <xsl:if test=\"@password\">\n"
" control.isql_password := <xsl:apply-templates select=\"@password\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" control.isql_timeout := <xsl:apply-templates select=\"@timeout\" mode=\"static_value\"/>;\n"
" control.isql_maxrows := <xsl:apply-templates select=\"@maxrows\" mode=\"static_value\"/>;\n"
"\n"
" declare templ_result vspx_template;\n"
" declare templ_error vspx_template;\n"
"\n"
" templ_result := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='result']/@name\" />');\n"
" templ_error := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='error']/@name\" />');\n"
"\n"
" templ_result.vc_enabled := 0;\n"
" if (templ_error is not null)\n"
" templ_error.vc_enabled := 0;\n"
" control.isql_chunked := <xsl:value-of select=\"boolean (@mode='chunked')\"/>;\n"
" <xsl:call-template name=\"inside_form\" />\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:template[@type='add']|v:template[@type='edit']\" mode=\"init_method\">\n"
" <xsl:if test=\"not v:form[@type = 'update']\">\n"
" control.vc_enabled := 0;\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:isql\" mode=\"data_bind_method\">\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:login-form\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" if (not login_control.vl_authenticated)\n"
" {\n"
" <xsl:choose>\n"
" <xsl:when test=\"count (descendant::v:*) = 0 and boolean(number (@required))\">\n"
" control.vc_find_control ('<xsl:value-of select=\"@name\" />').vc_render ();\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" declare login_form vspx_login_form;\n"
" login_form := control.vc_find_control ('<xsl:value-of select=\"@name\" />');\n"
" {\n"
" declare control vspx_control;\n"
" control := login_form;\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='if-no-login']\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" if (not login_control.vl_authenticated)\n"
" {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='if-login']\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" if (login_control.vl_authenticated)\n"
" {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@action='logout']\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" if (login_control.vl_authenticated)\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:calendar\" mode=\"render_method\">\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\"/>\n"
" <xsl:text><?vsp </xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"render_method\">\n"
" http ('<H4>Not implemented component: \"<xsl:value-of select=\"@control-udt\"/>\"</H4>');\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:select-list\" mode=\"init_method\">\n"
" control.vsl_items := vector ( <xsl:for-each select=\"item\" >'<xsl:value-of select=\"@name\" />' <xsl:if test=\"position() != last()\">, </xsl:if></xsl:for-each>);\n"
" control.vsl_item_values := vector ( <xsl:for-each select=\"item\" >'<xsl:value-of select=\"@value\" />' <xsl:if test=\"position() != last()\">, </xsl:if></xsl:for-each>);\n"
" <xsl:if test=\"@multiple\">\n"
" control.vsl_multiple := atoi(<xsl:apply-templates select=\"@multiple\" mode=\"static_value\"/>);\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-list\" mode=\"init_method\">\n"
" <xsl:if test=\"@multiple\">\n"
" control.vsl_multiple := atoi(<xsl:apply-templates select=\"@multiple\" mode=\"static_value\"/>);\n"
" </xsl:if>\n"
" <xsl:if test=\"@list-match[not(. like '--%')]\">\n"
" control.vsl_list_match := <xsl:apply-templates select=\"@list-match\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@list-key-path[not(. like '--%')]\">\n"
" control.vsl_list_key_path := <xsl:apply-templates select=\"@list-key-path\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@list-value-path[not(. like '--%')]\">\n"
" control.vsl_list_value_path := <xsl:apply-templates select=\"@list-value-path\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
"</xsl:template>\n"
"<!--\n"
"data-list bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:data-list\" mode=\"data_bind_method\">\n"
" {\n"
" declare items, item_values any;\n"
"\n"
" control.vsl_items := vector ();\n"
" control.vsl_item_values := vector ();\n"
"\n"
" items := vector ();\n"
" item_values := vector ();\n"
" <xsl:if test=\"@list-document\">\n"
" declare all_items any;\n"
" declare idx, len integer;\n"
" all_items := xquery_eval (control.vsl_list_match, control.vsl_list_document, 0);\n"
" len := length (all_items);\n"
" idx := 0;\n"
" while (idx < len)\n"
" {\n"
" declare itm any;\n"
" itm := aref (all_items, idx);\n"
" items := vector_concat(items, vector(sprintf('%V', cast(xquery_eval(control.vsl_list_key_path, itm) as varchar))));\n"
" item_values := vector_concat(item_values, vector(sprintf('%V', cast(xquery_eval(control.vsl_list_value_path, itm) as varchar))));\n"
" idx := idx + 1;\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"@table or @sql\">\n"
" <xsl:if test=\"@table\">\n"
" for select <xsl:value-of select=\"@key-column\" />, <xsl:value-of select=\"@value-column\" /> from <xsl:value-of select=\"@table\" /> do\n"
" </xsl:if>\n"
" <xsl:if test=\"@sql and not @table\">\n"
" for <xsl:value-of select=\"@sql\" /> do\n"
" </xsl:if>\n"
" {\n"
" items := vector_concat(items, vector(sprintf('%V', cast(<xsl:value-of select=\"@value-column\" /> as varchar))));\n"
" item_values := vector_concat(item_values, vector(sprintf('%V', cast(<xsl:value-of select=\"@key-column\" /> as varchar))));\n"
" }\n"
" </xsl:if>\n"
" control.vsl_items := items;\n"
" control.vsl_item_values := item_values;\n"
" <!-- control.vsl_selected_inx := position (cast (control.ufl_value as varchar), control.vsl_item_values) - 1; -->\n"
" control.vs_set_selected ();\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:select-list\" mode=\"data_bind_method\">\n"
" <!-- control.vsl_selected_inx := position (cast (control.ufl_value as varchar), control.vsl_item_values) - 1; -->\n"
" control.vs_set_selected ();\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:isql\" mode=\"set_view_state_method\">\n"
"\n"
" if (get_keyword ('<xsl:value-of select=\"@name\"/>_submit', e.ve_params, NULL) is NULL)\n"
" return;\n"
"\n"
" declare templ vspx_template;\n"
"\n"
" templ := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='input']/@name\" />');\n"
"\n"
" if (e.ve_is_post)\n"
" {\n"
" templ.vc_enabled := 0;\n"
" }\n"
"\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"data-grid bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template name=\"columns_list\">\n"
" <xsl:param name=\"names_as_string\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"count(v:column) > 0\">\n"
" <xsl:for-each select=\"v:column\">\n"
" <xsl:if test=\"$names_as_string = 1\">'</xsl:if><xsl:value-of select=\"@name\" /><xsl:if test=\"$names_as_string = 1\">'</xsl:if><xsl:if test=\"position() != last()\">, </xsl:if>\n"
" </xsl:for-each>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:if test=\"function-available('v:columns_meta')\">\n"
" <xsl:variable name=\"sql\" select=\"@sql|v:sql\"/>\n"
" <xsl:variable name=\"columns\" select=\"v:columns_meta ($sql)\" />\n"
" <xsl:for-each select=\"$columns/column\">\n"
" <xsl:if test=\"$names_as_string = 1\">'</xsl:if><xsl:value-of select=\"@name\" /><xsl:if test=\"$names_as_string = 1\">'</xsl:if><xsl:if test=\"position() != last()\">, </xsl:if>\n"
" </xsl:for-each>\n"
" </xsl:if>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<!-- ches120\n"
"THIS IS NECESSARY FOR COMPLEX SQL EXPRESSION WITCH MAY CONTAIN LOT OF SPECIAL SYMBOLS.\n"
"IN THIS CASE SQL ESPRESSION MAY BE PLACED INSIDE 'CDATA' BLOCK AS ADDITIONAL v:sql ELEMENT INSIDE DATA-SET\n"
"ches120 -->\n"
"\n"
"<xsl:template match=\"v:sql\">\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:sql\" mode=\"render_method\"></xsl:template>\n"
"\n"
"<xsl:template match=\"v:sql\" mode=\"render_all\"></xsl:template>\n"
"\n"
"<xsl:template name=\"extract_sql\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@sql\">\n"
" <xsl:apply-templates select=\"@sql\" mode=\"make_sql_statement\"/>\n"
" </xsl:when>\n"
" <xsl:when test=\"./sql\">\n"
" <xsl:value-of select=\"translate(./sql, ':', '')\" />\n"
" </xsl:when>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"<!-- - -ches120 -->\n"
"\n"
"\n"
"\n"
"<xsl:template match=\"v:data-grid\" mode=\"data_bind_method\">\n"
" declare dta any;\n"
" <xsl:if test=\"@sql or ./sql\">\n"
" <xsl:for-each select=\"v:param\">\n"
" declare <xsl:value-of select=\"@name\" /> any;\n"
" </xsl:for-each>\n"
"\n"
" declare <xsl:call-template name=\"columns_list\" /> any;\n"
"\n"
" <xsl:choose>\n"
" <xsl:when test=\"@cursor-type\" >\n"
" declare cr <xsl:value-of select=\"@cursor-type\" /> cursor for <xsl:call-template name=\"extract_sql\"/>;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" declare cr dynamic cursor for <xsl:call-template name=\"extract_sql\"/>;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"\n"
" <xsl:if test=\"@edit like '--%'\">\n"
" control.dg_editable := <xsl:apply-templates select=\"@edit\" mode=\"value\" />;\n"
" </xsl:if>\n"
"\n"
" <xsl:for-each select=\"v:param\">\n"
" <xsl:value-of select=\"@name\" /> := <xsl:apply-templates select=\"@value\" mode=\"value\" />;\n"
" </xsl:for-each>\n"
" declare exit handler for sqlstate '*'\n"
" {\n"
" self.vc_is_valid := 0;\n"
" control.vc_error_message := concat (__SQL_MESSAGE, ' in v:data-grid \"<xsl:value-of select=\"@name\" />\" (data bind)');\n"
" return 1;\n"
" };\n"
"\n"
" dta := vector ();\n"
" {\n"
" declare inx int;\n"
" declare bkm any;\n"
" declare direction varchar;\n"
"\n"
" direction := null; bkm := null;\n"
" if (e.ve_button)\n"
" {\n"
" if (e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_prev')\n"
" direction := 'bkw';\n"
" else if (e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_next')\n"
" direction := 'fwd';\n"
" }\n"
" open cr;\n"
" inx := 0;\n"
"\n"
" declare have_more int;\n"
" have_more := 0;\n"
" whenever not found goto none;\n"
" if (direction is null)\n"
" {\n"
" bkm := control.dg_prev_bookmark;\n"
" }\n"
" else\n"
" bkm := control.dg_last_bookmark;\n"
"\n"
" if (bkm is not null)\n"
" {\n"
" whenever not found goto first_page;\n"
" fetch cr bookmark bkm into <xsl:call-template name=\"columns_list\" />;\n"
" if (direction = 'bkw')\n"
" {\n"
" inx := 0;\n"
" while (inx < control.dg_rows_fetched + control.dg_nrows)\n"
" {\n"
" fetch cr previous into <xsl:call-template name=\"columns_list\" />;\n"
" inx := inx + 1;\n"
" }\n"
" }\n"
" inx := 0;\n"
" control.dg_prev_bookmark := bookmark (cr);\n"
" }\n"
" else\n"
" {\n"
"first_page:\n"
" fetch cr first into <xsl:call-template name=\"columns_list\" />;\n"
" {\n"
" inx := 1;\n"
" dta := vector_concat (dta, vector (vector (<xsl:call-template name=\"columns_list\" />)));\n"
" }\n"
" control.vc_disable_child ('<xsl:value-of select=\"@name\" />_prev');\n"
" control.dg_prev_bookmark := null;\n"
" }\n"
"\n"
"\n"
" while (inx < control.dg_nrows or control.dg_nrows < 0)\n"
" {\n"
" fetch cr next into <xsl:call-template name=\"columns_list\" />;\n"
" {\n"
" dta := vector_concat (dta, vector (vector (<xsl:call-template name=\"columns_list\" />)));\n"
" bkm := bookmark (cr);\n"
" inx := inx + 1;\n"
" }\n"
" }\n"
" fetch cr next into <xsl:call-template name=\"columns_list\" />;\n"
" have_more := 1;\n"
"none:\n"
" control.dg_last_bookmark := bkm;\n"
" control.dg_rows_fetched := inx;\n"
" if (inx < control.dg_nrows or not have_more)\n"
" {\n"
" control.vc_disable_child ('<xsl:value-of select=\"@name\" />_next');\n"
" }\n"
" else\n"
" control.vc_enable_child ('<xsl:value-of select=\"@name\" />_next');\n"
"\n"
" if (not inx)\n"
" control.vc_disable_child ('<xsl:value-of select=\"@name\" />_prev');\n"
"\n"
" close cr;\n"
" }\n"
" control.dg_row_meta := vector (<xsl:call-template name=\"columns_list\" ><xsl:with-param name=\"names_as_string\" select=\"1\"/></xsl:call-template>);\n"
" </xsl:if>\n"
" <xsl:if test=\"@data and @meta\">\n"
" {\n"
" declare new_dta any;\n"
" dta := <xsl:apply-templates select=\"@data\" mode=\"value\" />;\n"
" control.dg_row_meta := <xsl:apply-templates select=\"@meta\" mode=\"value\" />;\n"
"\n"
" declare direction varchar;\n"
" declare len, what int;\n"
" declare i int;\n"
"\n"
" len := length (dta);\n"
"\n"
" direction := null;\n"
" if (e.ve_button)\n"
" {\n"
" if (e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_prev')\n"
" direction := 'bkw';\n"
" else if (e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_next')\n"
" direction := 'fwd';\n"
" }\n"
"\n"
" if (direction is null)\n"
" {\n"
" i := coalesce (control.dg_prev_bookmark, 0);\n"
" }\n"
" else\n"
" i := coalesce (control.dg_last_bookmark, 0);\n"
"\n"
" if (direction = 'bkw' and control.dg_prev_bookmark is not null)\n"
" i := control.dg_prev_bookmark - control.dg_nrows;\n"
"\n"
"\n"
" if (not i)\n"
" control.vc_disable_child ('<xsl:value-of select=\"@name\" />_prev');\n"
"\n"
" declare limit, inx, no_more int;\n"
"\n"
" limit := control.dg_nrows + i;\n"
" if (limit > length(dta)) limit := length(dta);\n"
" inx := 0;\n"
"\n"
" if (i < 0) i := 0;\n"
"\n"
" new_dta := make_array (limit - i, 'any');\n"
" control.dg_prev_bookmark := i;\n"
" while (i < limit)\n"
" {\n"
" aset (new_dta, inx, dta[i]);\n"
" inx := inx + 1;\n"
" i := i + 1;\n"
" }\n"
" dta := new_dta;\n"
" control.dg_last_bookmark := i;\n"
"\n"
" if (inx < control.dg_nrows)\n"
" {\n"
" control.vc_disable_child ('<xsl:value-of select=\"@name\" />_next');\n"
" }\n"
" else\n"
" control.vc_enable_child ('<xsl:value-of select=\"@name\" />_next');\n"
"\n"
"\n"
" control.dg_rows_fetched := length (dta); -- do by offset\n"
" }\n"
" </xsl:if>\n"
"\n"
" {\n"
" declare inx, len int;\n"
" inx := 0;\n"
" len := length (dta);\n"
" control.vc_templates_clean ();\n"
" control.dg_current_row := NULL;\n"
" while (inx < len)\n"
" {\n"
" declare template_row vspx_row_template;\n"
" declare select_bt vspx_return_button;\n"
" declare bt_edit, bt_delete, bt_select, button vspx_button;\n"
" select_bt := null;\n"
" template_row := vspx_row_template ('<xsl:value-of select=\"v:template[@type='row']/@name\" />', dta[inx], control, inx);\n"
"\n"
" bt_edit := bt_delete := bt_select := null;\n"
"\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:template[@type='row']//v:button[@action='simple'][@name = concat (ancestor::v:data-grid/@name, '_select')]\">\n"
" bt_select := vspx_button ('<xsl:value-of select=\"@name\" />_select', template_row);\n"
" </xsl:when>\n"
" <xsl:when test=\"v:template[@type='row']//v:button[@action='return'][@name = concat (ancestor::v:data-grid/@name, '_select')]\">\n"
" bt_select := vspx_return_button ('<xsl:value-of select=\"@name\" />_select', template_row);\n"
" select_bt := bt_select;\n"
" </xsl:when>\n"
" </xsl:choose>\n"
"\n"
" {\n"
" declare control vspx_row_template;\n"
" control := template_row; -- we will lie for a moment\n"
"\n"
" template_row.vc_children := vector (bt_edit, bt_delete, bt_select,\n"
" <xsl:apply-templates select=\"v:template[@type='row']/*\" mode=\"form_childs_init\" />\n"
" NULL\n"
" );\n"
" }\n"
"\n"
" if (e.ve_button is null)\n"
" {\n"
" self.vc_get_focus (e);\n"
" <xsl:if test=\"v:template[@type='edit']\">\n"
" if(e.ve_is_post and e.ve_button is not null and template_row.vc_focus\n"
" and e.ve_button.vc_name = '<xsl:value-of select=\"@name\"/>_edit')\n"
" {\n"
" declare chils any;\n"
" template_row.te_editable := 1;\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:template[@type='edit']/v:form[@type='update']\">\n"
" declare uf vspx_update_form;\n"
" uf := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='edit']/v:form[@type='update']/@name\" />');\n"
" uf.vc_focus := 1;\n"
" uf.vc_enabled := 1;\n"
" </xsl:when>\n"
" <xsl:when test=\"v:template[@type='edit' and not v:form[@type='update']]\">\n"
" declare ut vspx_control;\n"
" ut := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='edit']/@name\"/>');\n"
" ut.vc_enabled := 1;\n"
" </xsl:when>\n"
" </xsl:choose>\n"
" control.dg_current_row := template_row;\n"
" control.dg_rowno_edit := inx;\n"
" }\n"
" else\n"
" </xsl:if>\n"
" if(e.ve_is_post and e.ve_button is not null and template_row.vc_focus\n"
" and e.ve_button.vc_name = '<xsl:value-of select=\"@name\"/>_delete')\n"
" {\n"
" control.dg_current_row := template_row;\n"
" <!--\n"
" -#-e.ve_button.vc_instance_name := e.ve_button.vc_name;\n"
" -#-e.ve_button.vc_name := '<xsl:value-of select=\"@name\"/>_delete';\n"
" -->\n"
" control.dg_rowno_edit := -1;\n"
" }\n"
" }\n"
"\n"
" if (select_bt is not null)\n"
" {\n"
" control.dg_current_row := template_row;\n"
" select_bt.vc_enabled := 1;\n"
" select_bt.vc_data_bind (e);\n"
" control.dg_current_row := NULL;\n"
" }\n"
"\n"
" inx := inx + 1;\n"
" }\n"
" }\n"
" if (e.ve_button is null)\n"
" self.vc_get_focus (e);\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"data-source bind method\n"
";\n",
"-->\n"
"<xsl:template match=\"v:data-source\" mode=\"data_bind_method\">\n"
"&LINE;\n"
"<xsl:if test=\"@data and @meta\">\n"
" control.ds_array_data := <xsl:apply-templates select=\"@data\" mode=\"value\" />;\n"
" control.ds_row_meta := <xsl:apply-templates select=\"@meta\" mode=\"value\" />;\n"
"</xsl:if>\n"
"<xsl:if test=\"not(@data and @meta)\">\n"
" if (control.ds_sql is null)\n"
" control.ds_sql := '<xsl:value-of select=\"normalize-space(v:expression/text())\" />';\n"
" if (control.ds_parameters is null)\n"
" control.ds_parameters := vector (<xsl:for-each select=\"v:param\">\n"
" <xsl:apply-templates select=\"@value\" mode=\"value\"/>\n"
" <xsl:if test=\"position () != last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
"&LINE;\n"
" );\n"
"</xsl:if>\n"
" control.ds_data_bind (e);\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"data-set bind method (and internals that are common for data bind and scrolling)\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:data-set\" mode=\"scroll_cursor_declaration\">\n"
"&LINE;\n"
" <xsl:for-each select=\"v:param\">\n"
" declare <xsl:value-of select=\"@name\" /> any;\n"
" <xsl:value-of select=\"@name\" /> := <xsl:apply-templates select=\"@value\" mode=\"value\" />;\n"
" </xsl:for-each>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@sql or ./sql\"> <!-- binding to SQL select stmt -->\n"
"&LINE;\n"
" declare <xsl:call-template name=\"columns_list\" /> any;\n"
" <xsl:choose>\n"
" <xsl:when test=\"@cursor-type\" >\n"
" declare cr <xsl:value-of select=\"@cursor-type\" /> cursor for <xsl:call-template name=\"extract_sql\"/>;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" declare cr dynamic cursor for <xsl:call-template name=\"extract_sql\"/>;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" declare bkm any;\n"
" </xsl:when>\n"
" <xsl:when test=\"@data and @meta\"> <!-- binding to vector -->\n"
"&LINE;\n"
" if (control.ds_row_data is null)\n"
" {\n"
" control.ds_row_data := <xsl:apply-templates select=\"@data\" mode=\"value\" />;\n"
" control.ds_row_meta := <xsl:apply-templates select=\"@meta\" mode=\"value\" />;\n"
" }\n"
" control.ds_rows_total := length (control.ds_row_data);\n"
" </xsl:when>\n"
" <xsl:when test=\"@data-source\">\n"
"&LINE;\n"
" declare _ds vspx_data_source;\n"
" _ds := control.ds_data_source;\n"
" control.ds_nrows := control.ds_data_source.ds_nrows;\n"
" </xsl:when>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:data-set\" mode=\"scroll_code\">\n"
"&LINE;\n"
"-- Performing scrolling to get control.ds_rows_offs equal to the requested new_rows_offs.\n"
" <!-- dbg_obj_print ('Scroll from ', control.ds_rows_offs , ' to ', new_rows_offs);-->\n"
" new_rows_offs := __max (new_rows_offs, 0);\n"
" <xsl:choose>\n"
" <xsl:when test=\"@sql or ./sql\"> <!-- binding to SQL select stmt -->\n"
"&LINE;\n"
" declare exit handler for sqlstate '*' {\n"
" self.vc_is_valid := 0;\n"
" control.vc_error_message := concat (__SQL_MESSAGE, ' in v:data-set \"<xsl:value-of select=\"@name\" />\" (data bind)');\n"
" return;\n"
" };\n"
" open cr;\n"
" if (new_rows_offs < (control.ds_rows_offs + control.ds_rows_fetched))\n"
" bkm := control.ds_prev_bookmark;\n"
" else\n"
" {\n"
" bkm := control.ds_last_bookmark;\n"
" control.ds_rows_offs := control.ds_rows_offs + control.ds_rows_fetched;\n"
" }\n"
" control.ds_last_bookmark := null;\n"
" if (bkm is not null)\n"
" {\n"
" whenever not found goto reset_to_beginning;\n"
" fetch cr bookmark bkm into <xsl:call-template name=\"columns_list\" />;\n"
" if (new_rows_offs < control.ds_rows_offs)\n"
" {\n"
" while (new_rows_offs < control.ds_rows_offs)\n"
" {\n"
" fetch cr previous into <xsl:call-template name=\"columns_list\" />;\n"
" <!-- dbg_obj_print ('Fetch previous at ', control.ds_rows_offs, '(?):', <xsl:call-template name=\"columns_list\" />); -->\n"
" control.ds_rows_offs := control.ds_rows_offs - 1;\n"
" }\n"
" }\n"
" else\n"
" {\n"
" while (new_rows_offs > control.ds_rows_offs)\n"
" {\n"
" fetch cr next into <xsl:call-template name=\"columns_list\" />;\n"
" <!-- dbg_obj_print ('Fetch next at ', control.ds_rows_offs, '(?):', <xsl:call-template name=\"columns_list\" />); -->\n"
" control.ds_rows_offs := control.ds_rows_offs + 1;\n"
" }\n"
" }\n"
" control.ds_prev_bookmark := bookmark(cr);\n"
" goto scroll_complete;\n"
" }\n"
"reset_to_beginning:\n"
" <!-- dbg_obj_print ('Reset to bweginning'); -->\n"
" control.ds_prev_bookmark := null;\n"
" control.ds_rows_offs := 0;\n"
" control.ds_rows_fetched := 0;\n"
" new_rows_offs := 0;\n"
"scroll_complete:\n"
" ;\n"
" </xsl:when>\n"
" <xsl:when test=\"@data and @meta\"> <!-- binding to vector -->\n"
"&LINE;\n"
" control.ds_rows_offs := new_rows_offs;\n"
" control.ds_prev_bookmark := control.ds_rows_offs;\n"
" </xsl:when>\n"
" <xsl:when test=\"@data-source\">\n"
"&LINE;\n"
" if (new_rows_offs <> control.ds_data_source.ds_rows_offs)\n"
" {\n"
" control.ds_data_source.ds_rows_offs := new_rows_offs;\n"
" control.ds_data_source.vc_data_bind (e);\n"
" }\n"
" if (control.ds_data_source.ds_have_more is not null)\n"
" {\n"
" control.ds_has_next_page := control.ds_data_source.ds_have_more;\n"
" }\n"
" else\n"
" {\n"
" if(control.ds_data_source.ds_rows_fetched < control.ds_data_source.ds_nrows)\n"
" control.ds_has_next_page := 0;\n"
" else\n"
" control.ds_has_next_page := 1;\n"
" }\n"
" control.ds_row_meta := control.ds_data_source.ds_row_meta;\n"
" control.ds_rows_fetched := control.ds_data_source.ds_rows_fetched;\n"
" control.ds_prev_bookmark := new_rows_offs;\n"
" control.ds_rows_offs := new_rows_offs;\n"
" control.ds_last_bookmark := new_rows_offs + control.ds_data_source.ds_rows_fetched;\n"
" </xsl:when>\n"
" </xsl:choose>\n"
"-- At this point the scrolling is complete.\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:data-set\" mode=\"data_bind_method\">\n"
"&LINE;\n"
" control.ds_rows_offs_saved := control.ds_rows_offs;\n"
" declare dta any;\n"
" declare nav_template vspx_control;\n"
" declare _page_navigator vspx_template;\n"
" declare new_rows_offs integer;\n"
"\n"
" <xsl:apply-templates select=\".\" mode=\"scroll_cursor_declaration\" />\n"
"&LINE;\n"
" new_rows_offs := control.ds_rows_offs;\n"
" control.ds_has_next_page := 0;\n"
"\n"
" nav_template := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='simple'][.//v:button[@name=concat(ancestor::v:data-set/@name, '_next')]]/@name\" />');\n"
" if (nav_template is null)\n"
" nav_template := control;\n"
"\n"
" <xsl:if test=\"@data-source and //v:template[@type='page-navigator']//v:button[@name = concat(ancestor::v:data-set/@name, '_pager')]\">\n"
"&LINE;\n"
"-- Detect pressed page button\n"
" _page_navigator := self.<xsl:value-of select=\"//v:template[@type='page-navigator']/@name\"/>;\n"
" <xsl:if test=\"//v:template[@type='page-navigator']/@npages\">\n"
" _ds.ds_npages := <xsl:value-of select=\"//v:template[@type='page-navigator']/@npages\"/>;\n"
" </xsl:if>\n"
" if(_ds.ds_rows_offs = 0) _ds.ds_rows_offs := new_rows_offs;\n"
" _ds.ds_make_statistic();\n"
" _ds.ds_current_pager_idx := _ds.ds_first_page;\n"
" _page_navigator.vc_children := vector();\n"
" while(_ds.ds_current_pager_idx < _ds.ds_last_page + 1) {\n"
" declare _name varchar;\n"
" declare _btn vspx_button;\n"
" _name := sprintf('<xsl:value-of select=\"@name\"/>_pager_%d', _ds.ds_current_pager_idx);\n"
" _btn := vspx_button(_name, control);\n"
" _page_navigator.vc_children := vector_concat(_page_navigator.vc_children, vector(_btn));\n"
" _ds.ds_current_pager_idx := _ds.ds_current_pager_idx + 1;\n"
" }\n"
" if(e.ve_button is null) {\n"
" self.vc_get_focus(e);\n"
" }\n"
" </xsl:if>\n"
"&LINE;\n"
" if(e.ve_button and control.vc_focus)\n"
" {\n"
" if(e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_prev')\n"
" {\n"
" new_rows_offs := __max (new_rows_offs - control.ds_nrows, 0);\n"
" control.ds_scrolled := -1;\n"
" }\n"
" else if(e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_next')\n"
" {\n"
" new_rows_offs := control.ds_rows_offs + control.ds_rows_fetched;\n"
" control.ds_scrolled := 1;\n"
" }\n"
" else if(e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_first')\n"
" {\n"
" new_rows_offs := 0;\n"
" control.ds_scrolled := -1;\n"
" }\n"
"&LINE;\n"
" else if(e.ve_button.vc_name = '<xsl:value-of select=\"@name\" />_last')\n"
" {\n"
" <xsl:choose>\n"
" <xsl:when test=\"@data-source\">\n"
" _ds.ds_make_statistic();\n"
" new_rows_offs := _ds.ds_total_pages * control.ds_data_source.ds_nrows;\n"
" if (new_rows_offs = _ds.ds_total_rows and _ds.ds_total_pages > 0)\n"
" new_rows_offs := (_ds.ds_total_pages - 1) * control.ds_data_source.ds_nrows;\n"
" </xsl:when>\n"
" <xsl:when test=\"@sql or ./v:sql\">\n"
" declare total int;\n"
" select count(*) into total from (<xsl:call-template name=\"extract_sql\"/>) <xsl:value-of select=\"@name\"/>;\n"
" new_rows_offs := total - mod (total, control.ds_nrows);\n"
" if (new_rows_offs = total and total > control.ds_nrows)\n"
" new_rows_offs := total - control.ds_nrows;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" new_rows_offs := control.ds_rows_total - mod (control.ds_rows_total, control.ds_nrows);\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" }\n"
"&LINE;\n"
" else if(e.ve_button.vc_name like '<xsl:value-of select=\"@name\" />_pager_%')\n"
" {\n"
" declare _pos, _page integer;\n"
" _pos := length('<xsl:value-of select=\"@name\" />_pager_');\n"
" _page := atoi(subseq(e.ve_button.vc_name, _pos));\n"
" new_rows_offs := control.ds_data_source.ds_nrows * (_page - 1);\n"
" }\n"
" }\n"
" <xsl:apply-templates select=\".\" mode=\"scroll_code\" />\n"
"&LINE;\n"
"\n"
"<!-- ches120 -->\n"
" <xsl:choose>\n"
" <xsl:when test=\"@sql or ./sql\"> <!-- binding to SQL select stmt -->\n"
" declare inx integer;\n"
" declare prev_fetched int;\n"
" inx := 0;\n"
"<!--\n"
" <xsl:if test=\"@initial-enable like '-#-#%'\">\n"
" control.vc_enabled := <xsl:apply-templates select=\"@initial-enable\" mode=\"value\" />;\n"
" </xsl:if>\n"
"-->\n"
" <xsl:if test=\"@edit like '--%'\">\n"
" control.ds_editable := <xsl:apply-templates select=\"@edit\" mode=\"value\" />;\n"
" </xsl:if>\n"
"\n"
" {\n"
" whenever not found goto none;\n"
" dta := vector ();\n"
" if (control.ds_rows_offs = 0)\n"
" {\n"
" fetch cr first into <xsl:call-template name=\"columns_list\" />;\n"
" bkm := bookmark (cr);\n"
" inx := 1;\n"
" dta := vector_concat (dta, vector (vector (<xsl:call-template name=\"columns_list\" />)));\n"
" nav_template.vc_disable_child ('<xsl:value-of select=\"@name\" />_prev');\n"
" control.ds_prev_bookmark := null;\n"
" }\n"
" while (inx < control.ds_nrows)\n"
" {\n"
" fetch cr next into <xsl:call-template name=\"columns_list\" />;\n"
" dta := vector_concat (dta, vector (vector (<xsl:call-template name=\"columns_list\" />)));\n"
" bkm := bookmark (cr);\n"
" inx := inx + 1;\n"
" }\n"
" fetch cr next into <xsl:call-template name=\"columns_list\" />;\n"
" control.ds_has_next_page := 1;\n"
" }\n"
"none:\n"
" prev_fetched := control.ds_rows_fetched;\n"
" control.ds_last_bookmark := bkm;\n"
" control.ds_rows_fetched := inx;\n"
" close cr;\n"
" control.ds_row_meta := vector (<xsl:call-template name=\"columns_list\"><xsl:with-param name=\"names_as_string\" select=\"1\" /></xsl:call-template>);\n"
" </xsl:when> <!-- end binding to SQL select -->\n"
" <xsl:when test=\"@data and @meta\"> <!-- binding to vector -->\n"
" control.ds_last_bookmark := __min (control.ds_prev_bookmark + control.ds_nrows, control.ds_rows_total);\n"
" control.ds_has_next_page := lt (control.ds_last_bookmark, control.ds_rows_total);\n"
" control.ds_rows_fetched := control.ds_last_bookmark - control.ds_prev_bookmark;\n"
" if (control.ds_prev_bookmark > control.ds_last_bookmark)\n"
" dta := vector ();\n"
" else\n"
" dta := subseq (control.ds_row_data, control.ds_prev_bookmark, control.ds_last_bookmark);\n"
" </xsl:when> <!-- end binding to a VECTOR -->\n"
" <xsl:when test=\"@data-source\">\n"
" dta := control.ds_data_source.ds_row_data;\n"
" <xsl:if test=\"//v:template[@type='page-navigator']//v:button[@name = concat(ancestor::v:data-set/@name, '_pager')]\">\n"
"-- prepare final set of navigator's buttons\n"
" declare _page_navigator vspx_template;\n"
" _page_navigator := self.<xsl:value-of select=\"//v:template[@type='page-navigator']/@name\"/>;\n"
" <xsl:if test=\"//v:template[@type='page-navigator']/@npages\">\n"
" _ds.ds_npages := <xsl:value-of select=\"//v:template[@type='page-navigator']/@npages\"/>;\n"
" </xsl:if>\n"
" if(_ds.ds_rows_offs = 0) _ds.ds_rows_offs := new_rows_offs;\n"
" _ds.ds_make_statistic();\n"
" _ds.ds_current_pager_idx := _ds.ds_first_page;\n"
" _page_navigator.vc_children := vector();\n"
" while(_ds.ds_current_pager_idx < _ds.ds_last_page + 1)\n"
" {\n"
" declare _name varchar;\n"
" declare _btn vspx_button;\n"
" _name := sprintf('<xsl:value-of select=\"@name\"/>_pager_%d', _ds.ds_current_pager_idx);\n"
" _btn := vspx_button(_name, control);\n"
" self.vc_init_<xsl:value-of select=\"@name\"/>_pager(_btn, control);\n"
" self.vc_data_bind_<xsl:value-of select=\"@name\" />_pager(_btn, e);\n"
" _page_navigator.vc_children := vector_concat(_page_navigator.vc_children, vector(_btn));\n"
" _ds.ds_current_pager_idx := _ds.ds_current_pager_idx + 1;\n"
" }\n"
" </xsl:if>\n"
"\n"
"<!-- navigation -->\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:message terminate=\"yes\">Missing attribute. The data-set can be bound via SQL, function or data-source.</xsl:message>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"&LINE;\n"
" if (not control.ds_has_next_page)\n"
" {\n"
" nav_template.vc_disable_child ('<xsl:value-of select=\"@name\" />_next');\n"
" nav_template.vc_disable_child ('<xsl:value-of select=\"@name\" />_last');\n"
" }\n"
" else\n"
" {\n"
" nav_template.vc_enable_child ('<xsl:value-of select=\"@name\" />_next');\n"
" nav_template.vc_enable_child ('<xsl:value-of select=\"@name\" />_last');\n"
" }\n"
" if (not control.ds_rows_offs)\n"
" {\n"
" nav_template.vc_disable_child ('<xsl:value-of select=\"@name\" />_prev');\n"
" nav_template.vc_disable_child ('<xsl:value-of select=\"@name\" />_first');\n"
" }\n"
" else\n"
" {\n"
" nav_template.vc_enable_child ('<xsl:value-of select=\"@name\" />_prev');\n"
" nav_template.vc_enable_child ('<xsl:value-of select=\"@name\" />_first');\n"
" }\n"
"\n"
" {\n"
" declare inx, len int;\n"
" declare rows_cache, children any;\n"
" <xsl:if test=\".//v:template[@type='repeat']//v:template[@type='edit']//v:form[@type='update']\">\n"
" declare uf vspx_update_form;\n"
" uf := control.vc_find_control('<xsl:value-of select=\".//v:template[@type='repeat']//v:template[@type='edit']//v:form[@type='update']/@name\" />');\n"
" </xsl:if>\n"
"&LINE;\n"
" inx := 0;\n"
" len := length (dta);\n"
" control.vc_templates_clean ();\n"
" control.ds_current_row := NULL;\n"
" <!--control.ds_rows_cache := vector();-->\n"
" if (control.ds_row_data is null)\n"
" control.ds_row_data := dta;\n"
" rows_cache := make_array (len, 'any');\n"
" while(inx < len) {\n"
" declare template_row vspx_row_template;\n"
" declare select_bt vspx_return_button;\n"
" declare bt_edit, bt_delete, bt_select vspx_button;\n"
"\n"
" if (control.ds_data_source is not null)\n"
" control.ds_data_source.ds_current_inx := inx;\n"
"\n"
" select_bt := null;\n"
" template_row := vspx_row_template ('<xsl:apply-templates select=\"*\" mode=\"rpt_name\"/>', dta[inx], control, inx, 0);\n"
" bt_edit := bt_delete := bt_select := null;\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:template[@type='repeat']//v:button[@action='simple'][@name = concat(ancestor::v:data-set/@name, '_select')]\">\n"
" bt_select := vspx_button('<xsl:value-of select=\"@name\" />_select', template_row);\n"
" </xsl:when>\n"
" <xsl:when test=\"v:template[@type='repeat']//v:button[@action='return'][@name = concat(ancestor::v:data-set/@name, '_select')]\">\n"
" bt_select := vspx_return_button('<xsl:value-of select=\"@name\" />_return', template_row);\n"
" select_bt := bt_select;\n"
" </xsl:when>\n"
" </xsl:choose>\n"
"&LINE;\n"
" {\n"
" declare control vspx_row_template;\n"
" control := template_row; -- we'll change the 'control' for a moment to set up the right parent\n"
"\n"
" template_row.vc_children := vector (bt_edit, bt_delete, bt_select,\n"
" <xsl:apply-templates select=\"*\" mode=\"rpt_init\" />\n"
"&LINE;\n"
" NULL\n"
" );\n"
" }\n"
" if (e.ve_button is null)\n"
" {\n"
" <!-- traverse from current template if needed -->\n"
" template_row.vc_get_focus (e);\n"
" <xsl:if test=\".//v:template[@type='repeat']//v:template[@type='edit']//v:form[@type='update']\">\n"
"&LINE;\n"
" if(e.ve_is_post and e.ve_button is not null and template_row.vc_focus\n"
" and e.ve_button.vc_name = '<xsl:value-of select=\"@name\"/>_edit')\n"
" {\n"
" declare chils any;\n"
" template_row.te_editable := 1;\n"
" uf.vc_enabled := 1;\n"
" control.ds_current_row := template_row;\n"
" uf.vc_data_bind (e);\n"
" uf.vc_data_bound := 1;\n"
" control.ds_rowno_edit := inx;\n"
" }\n"
" else\n"
" </xsl:if>\n"
"&LINE;\n"
" if(e.ve_is_post and e.ve_button is not null and template_row.vc_focus\n"
" and e.ve_button.vc_name = '<xsl:value-of select=\"@name\"/>_delete')\n"
" {\n"
" control.ds_current_row := template_row;\n"
" control.ds_rowno_edit := -1;\n"
" if (control.ds_data_source is not null)\n"
" control.ds_data_source.ds_update_inx := inx;\n"
" }\n"
" }\n"
" <xsl:if test=\".//v:template[@type='repeat']//v:template[@type='edit']//v:form[@type='update']\">\n"
"&LINE;\n"
" else if (uf.vc_focus and control.ds_rowno_edit = inx)\n"
" {\n"
" uf.vc_enabled := 1;\n"
" control.ds_current_row := template_row;\n"
" if (control.ds_data_source is not null)\n"
" control.ds_data_source.ds_update_inx := inx;\n"
" uf.vc_data_bind (e);\n"
" <!--control.ds_current_row := NULL;-->\n"
" uf.vc_enabled := 0;\n"
" }\n"
" </xsl:if>\n"
"&LINE;\n"
" if (select_bt is not null)\n"
" {\n"
" control.ds_current_row := template_row;\n"
" select_bt.vc_enabled := 1;\n"
" select_bt.vc_data_bind(e);\n"
" <!--control.ds_current_row := NULL;-->\n"
" }\n"
" rows_cache [inx] := template_row;\n"
" inx := inx + 1;\n"
" <!--control.ds_rows_cache := vector_concat(control.ds_rows_cache, vector(template_row));-->\n"
" }\n"
" control.ds_rows_cache := rows_cache;\n"
" <!-- do the concat once -->\n"
" children := control.vc_children;\n"
" control.vc_children := vector_concat (children, rows_cache);\n"
" }\n"
" if (control.ds_data_source is not null)\n"
" control.ds_data_source.ds_current_inx := -1;\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='browse']\" mode=\"rpt_init\">\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-set\" mode=\"rpt_init\"/>\n"
"\n"
"<xsl:template match=\"*\" mode=\"rpt_init\">\n"
" <xsl:apply-templates select=\"*\" mode=\"rpt_init\"/>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='browse']\" mode=\"rpt_name\"><xsl:value-of select=\"@name\" /></xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-set\" mode=\"rpt_name\" />\n"
"\n"
"<xsl:template match=\"*\" mode=\"rpt_name\">\n"
" <xsl:apply-templates select=\"*\" mode=\"rpt_name\"/>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"quoted name to intenal convertor,\n"
"removes double quote char and replaces some special chars with underscore\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"@*\" mode=\"internal_name\">\n"
"<xsl:value-of select=\"translate (., '-."', '__')\"/>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"form bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:form[@type='update']\" mode=\"data_bind_method\">\n"
" if (control.vc_data_bound)\n"
" return 1;\n"
" <xsl:param name=\"table\" select=\"@table\" />\n"
" <xsl:for-each select=\"v:key\">\n"
" declare key_<xsl:apply-templates select=\"@column\" mode=\"internal_name\" /> any;\n"
" key_<xsl:apply-templates select=\"@column\" mode=\"internal_name\" /> := coalesce (<xsl:apply-templates select=\"@value\" mode=\"value\" />,\n"
" <xsl:choose><xsl:when test=\"@default!=''\"><xsl:value-of select=\"@default\" /></xsl:when>\n"
" <xsl:otherwise>NULL</xsl:otherwise></xsl:choose>);\n"
" </xsl:for-each>\n"
"<!--\n"
" <xsl:if test=\"@initial-enable like '-#-#%'\">\n"
" control.vc_enabled := <xsl:apply-templates select=\"@initial-enable\" mode=\"value\" />;\n"
" </xsl:if>\n"
"-->\n"
" control.uf_keys := vector (<xsl:for-each select=\"v:key\"> key_<xsl:apply-templates select=\"@column\" mode=\"internal_name\" /> <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each>);\n"
" control.uf_row := null;\n"
" <xsl:choose>\n"
" <xsl:when test=\"@data-source\">\n"
" <xsl:variable name=\"ds\" select=\"@data-source\" />\n"
" <xsl:for-each select=\"v:template//v:*[@column like '--%']\">\n"
" self.<xsl:value-of select=\"@name\"/>.ufl_column := <xsl:apply-templates select=\"@column\" mode=\"value\"/>;\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"v:template//v:*[@column]\">\n"
" self.<xsl:value-of select=\"@name\"/>.ufl_value := <xsl:value-of select=\"$ds\"/>.get_item_value (self.<xsl:value-of select=\"@name\"/>.ufl_column);\n"
" </xsl:for-each>\n"
" </xsl:when>\n"
" <xsl:when test=\"ancestor::v:template[@type='add' or @type='edit']\">\n"
" <xsl:if test=\"v:template//v:*[@column]\">\n"
" <xsl:for-each select=\"v:template//v:*[@column]\">\n"
" declare _<xsl:value-of select=\"@name\" /> any;\n"
" </xsl:for-each>\n"
" whenever not found goto none;\n"
" select <xsl:for-each select=\"v:template//v:*[@column]\"> <xsl:value-of select=\"@column\" /> <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each> into <xsl:for-each select=\"v:template//v:*[@column]\"> _<xsl:value-of select=\"@name\" /> <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each> from <xsl:value-of select=\"$table\" /> where <xsl:for-each select=\"key\"> <xsl:value-of select=\"@column\" /> = key_<xsl:apply-templates select=\"@column\" mode=\"internal_name\" /> <xsl:if test=\"position() != last()\"> and </xsl:if> </xsl:for-each>;\n"
" control.uf_row := vector (<xsl:for-each select=\"v:template//v:*[@column]\"> _<xsl:value-of select=\"@name\" /> <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each>);\n"
" {\n"
" declare template vspx_template;\n"
" declare i, l, inx int;\n"
" template := control.vc_find_control('<xsl:value-of select=\"v:template/@name\" />');\n"
" i := 0; l := length (control.uf_fields);\n"
" inx := 0;\n"
" while(i < l) {\n"
" declare uf vspx_control;\n"
" uf := template.vc_find_control(control.uf_fields[i]);\n"
" if(uf is not null and udt_instance_of(uf, fix_identifier_case ('vspx_field')) and (uf as vspx_field).ufl_column is not null)\n"
" {\n"
" declare field vspx_field;\n"
" field := uf;\n"
" field.ufl_value := control.uf_row[inx];\n"
" if (field.ufl_value is null and field.ufl_null_value is not null)\n"
" field.ufl_value := field.ufl_null_value;\n"
" inx := inx + 1;\n"
" }\n"
" i := i + 1;\n"
" }\n"
" }\n"
" </xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:if test=\"v:template[@type='if-exists']//v:*[@column]\">\n"
" <xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\">\n"
" declare _<xsl:value-of select=\"@name\" /> any;\n"
" </xsl:for-each>\n"
" whenever not found goto none;\n"
" select <xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\"> <xsl:value-of select=\"@column\" /> <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each> into <xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\"> _<xsl:value-of select=\"@name\" /> <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each> from <xsl:value-of select=\"$table\" /> where <xsl:for-each select=\"key\"> <xsl:value-of select=\"@column\" /> = key_<xsl:apply-templates select=\"@column\" mode=\"internal_name\" /> <xsl:if test=\"position() != last()\"> and </xsl:if> </xsl:for-each>;\n"
" control.uf_row := vector (<xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\"> _<xsl:value-of select=\"@name\" /> <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each>);\n"
" {\n"
" declare template vspx_template;\n"
" declare i, l, inx int;\n"
" template := control.vc_find_control('<xsl:value-of select=\"v:template/@name\" />');\n"
" i := 0; l := length (control.uf_fields);\n"
" inx := 0;\n"
" while(i < l) {\n"
" declare uf vspx_control;\n"
" uf := template.vc_find_control (control.uf_fields[i]);\n"
" if (uf is not null and udt_instance_of (uf, fix_identifier_case ('vspx_field')) and (uf as vspx_field).ufl_column is not null) {\n"
" declare val any;\n"
" val := control.uf_row[inx];\n"
" (uf as vspx_field).ufl_value := val;\n"
" if (udt_instance_of (uf, fix_identifier_case ('vspx_check_box')) and not (uf as vspx_field).ufl_is_boolean)\n"
" {\n"
" (uf as vspx_field).ufl_selected := case\n"
" when val is null then 0\n"
" when (val <> 0) then 1\n"
" when (isstring (val) and lower(val) = 'yes') then 1\n"
" else 0 end;\n"
" if ((uf as vspx_field).ufl_selected)\n"
" (uf as vspx_field).ufl_value := 1;\n"
" else\n"
" (uf as vspx_field).ufl_value := 0;\n"
" }\n"
" <!--uf.vc_data_bound := 1;-->\n"
" inx := inx + 1;\n"
" }\n"
" i := i + 1;\n"
" }\n"
" }\n"
" </xsl:if>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"none:;\n"
"</xsl:template>\n"
"\n"
"\n"
"<!--\n"
"login bind method (url and cookie)\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:login[@mode='url' or @mode='cookie']\" mode=\"data_bind_method\">\n"
" --no_c_escapes-\n"
" declare usr, pass_clear, pass, sid varchar;\n"
" declare vars any;\n"
" if (control.vc_data_bound)\n"
" return 1;\n"
" control.vc_data_bound := 1;\n"
" usr := get_keyword ('username' , params, '');\n"
" pass := get_keyword ('password' , params, '');\n"
" <xsl:if test=\"@mode = 'url'\">\n"
" pass_clear := get_keyword ('password_plain' , params, '');\n"
" if (not length (pass))\n"
" pass := pass_clear;\n"
" </xsl:if>\n"
" <xsl:if test=\"@mode = 'cookie'\">\n"
" {\n"
" declare cookies any;\n"
" cookies := vspx_get_cookie_vec (lines);\n"
" self.sid := get_keyword ('sid', cookies);\n"
" self.realm := get_keyword ('realm', cookies);\n"
" self.vc_authentication_mode := 0;\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"@mode = 'url'\">\n"
" self.sid := get_keyword ('sid', params);\n"
" self.realm := get_keyword ('realm', params);\n"
" self.nonce := get_keyword ('nonce', params);\n"
" </xsl:if>\n"
"\n"
" if (length (self.sid))\n"
" {\n"
" vars := coalesce ((select deserialize (blob_to_string(VS_STATE)) from VSPX_SESSION where VS_SID = self.sid), NULL);\n"
" connection_vars_set (vars);\n"
" update VSPX_SESSION set VS_EXPIRY = now () where VS_SID = self.sid and VS_REALM = control.vl_realm;\n"
" if (row_count () = 0)\n"
" goto re_auth;\n"
" control.vl_authenticated := 1;\n"
" control.vl_sid := self.sid;\n"
" self.vc_authenticated := 1;\n"
" <xsl:for-each select=\"//v:variable[@persist = '1' or @persist = 'session']\">\n"
" self.<xsl:value-of select=\"@name\" /> := coalesce (connection_get ('<xsl:value-of select=\"@name\" />'), self.<xsl:value-of select=\"@name\" />);\n"
" </xsl:for-each>;\n"
" goto authenticated;\n"
" }\n"
"\n"
"re_auth:\n"
"\n"
" <xsl:if test=\"@mode = 'url'\">\n"
" if (length (self.nonce))\n"
" {\n"
" delete from VSPX_SESSION where VS_REALM = control.vl_realm\n"
" and VS_SID = self.nonce;\n"
" if (row_count () and not length (pass_clear))\n"
" {\n"
" connection_set ('vspx_nonce', self.nonce);\n"
" }\n"
" }\n"
" </xsl:if>\n"
"\n"
" <xsl:if test=\"@user-password-check\">\n"
" if (<xsl:value-of select=\"@user-password-check\" /> (usr, pass))\n"
" {\n"
" sid := md5 (concat (datestring (now ()), http_client_ip (), http_path ()));\n"
" insert into VSPX_SESSION (VS_REALM, VS_SID, VS_UID, VS_STATE, VS_EXPIRY) values (control.vl_realm, sid, usr, null, now());\n"
" control.vl_authenticated := 1;\n"
" self.vc_authenticated := 1;\n"
" self.sid := sid;\n"
" self.realm := control.vl_realm;\n"
" control.vl_sid := self.sid;\n"
" connection_set ('vspx_user', usr);\n"
" if (usr <> '')\n"
" {\n"
" control.vl_user := usr;\n"
" }\n"
" goto authenticated;\n"
" }\n"
" </xsl:if>\n"
"\n"
"\n"
"\n"
" control.vl_authenticated := 0;\n"
" self.vc_authenticated := 0;\n"
" self.sid := null;\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:template[@type='if-no-login']/@redirect\">\n"
" {\n"
" declare ex_path, sep, redir_url varchar;\n"
" <xsl:choose>\n"
" <xsl:when test=\"starts-with(v:template[@type='if-no-login']/@redirect, '--')\">\n"
" redir_url := <xsl:apply-templates select=\"v:template[@type='if-no-login']/@redirect\" mode=\"value\" />;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" redir_url := <xsl:apply-templates select=\"v:template[@type='if-no-login']/@redirect\" mode=\"static_value\" />;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" ex_path := WS.WS.EXPAND_URL (http_path (), redir_url);\n"
" if (ex_path <> http_path ())\n"
" {\n"
" declare pars, req_url, pars_arr, i, l any;\n"
" pars := http_request_get ('QUERY_STRING');\n"
" pars_arr := split_and_decode (pars);\n"
" l := length (pars_arr);\n"
" req_url := http_path ();\n"
" if (l > 0 and mod (l, 2) = 0)\n"
" {\n"
" req_url := req_url || '?';\n"
" for (i := 0; i < l; i := i + 2)\n"
" {\n"
" if (pars_arr [i] not in ('sid', 'realm'))\n"
" req_url := req_url || sprintf ('%U', pars_arr [i]) || '=' || sprintf ('%U', pars_arr [i+1]) || '&';\n"
" }\n"
" req_url := rtrim (req_url, '&');\n"
" }\n"
" sep := '?';\n"
" if (strchr (redir_url, sep) is not null)\n"
" sep := '&';\n"
" self.vc_redirect (concat (redir_url, sprintf ('%sURL=%U', sep, req_url)));\n"
" }\n"
" else\n"
" {\n"
" self.nonce := md5 (concat (datestring (now ()), http_client_ip (), http_path ()));\n"
" }\n"
" }\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" self.nonce := md5 (concat (datestring (now ()), http_client_ip (), http_path ()));\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:if test=\"@mode = 'url' and .//v:text[@name='password_plain']\">\n"
" if (length (self.nonce))\n"
" {\n"
" insert into VSPX_SESSION (VS_REALM, VS_SID, VS_EXPIRY)\n"
" values (control.vl_realm, self.nonce, dateadd ('minute', -110, now ()));\n"
" }\n"
" </xsl:if>\n"
"authenticated:;\n"
" <xsl:if test=\"@mode = 'cookie'\">\n"
" declare cook_str, expire varchar;\n"
" expire := date_rfc1123 (dateadd ('hour', 1, now()));\n"
" cook_str :=\n"
" sprintf ('Set-Cookie: sid=%s; path=%s; expires=%s;\\r\\nSet-Cookie: realm=%s; path=%s; expires=%s;\\r\\n',\n"
" self.sid, http_map_get ('domain'), expire, self.realm, http_map_get ('domain'), expire);\n"
"\n"
" if (http_header_get () is null)\n"
" cook_str := concat (http_header_get (), cook_str);\n"
" if (length (self.sid) > 0)\n"
" http_header (cook_str);\n"
" </xsl:if>\n"
" declare page_children any;\n"
" page_children := self.vc_children;\n"
" page_children[0] := null;\n"
" self.vc_children := page_children;\n"
" page_children := null;\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"login bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:login[@mode='digest']\" mode=\"data_bind_method\">\n"
" --no_c_escapes-\n"
" declare auth any;\n"
" if (control.vc_data_bound)\n"
" return 1;\n"
" control.vc_data_bound := 1;\n"
" auth := DB.DBA.vsp_auth_vec (lines);\n"
"\n"
" if (not isarray (auth) or 'digest' <> lower (get_keyword ('authtype' , auth, '')))\n"
" goto re_auth;\n"
"\n"
" declare usr, sid, pass varchar;\n"
" usr := get_keyword ('username' , auth, '');\n"
" sid := get_keyword ('opaque' , auth, get_keyword ('nonce', auth, ''));\n"
"\n"
" pass := <xsl:value-of select=\"@user-password\" /> (usr);\n"
"\n"
" if (vspx_verify_pass (auth, pass))\n"
" {\n"
" declare vars any;\n"
" vars := coalesce ((select deserialize (blob_to_string(VS_STATE)) from VSPX_SESSION where VS_SID = sid), NULL);\n"
" connection_vars_set (vars);\n"
" update VSPX_SESSION set VS_UID = usr, VS_EXPIRY = now () where VS_SID = sid and VS_REALM = control.vl_realm;\n"
" if (row_count () = 0)\n"
" goto re_auth;\n"
" if (not control.vl_authenticated)\n"
" connection_set ('vspx_user', usr);\n"
" control.vl_authenticated := 1;\n"
" control.vl_sid := sid;\n"
" self.sid := sid;\n"
" self.vc_authenticated := 1;\n"
" self.realm := control.vl_realm;\n"
" control.vl_user := usr;\n"
" <xsl:for-each select=\".//v:variable[@persist = '1' or @persist = 'session']\">\n"
" self.<xsl:value-of select=\"@name\" /> := connection_get ('<xsl:value-of select=\"@name\" />');\n"
" </xsl:for-each>;\n"
" goto authenticated;\n"
" }\n"
"\n"
"\n"
"re_auth:\n"
"\n"
" if ('<xsl:value-of select=\"v:login-form/@required\" />' = '1')\n"
" {\n"
" declare nonce , sid varchar;\n"
" nonce := sid := md5 (concat (datestring (now ()), http_client_ip (), http_path ()));\n"
" insert into VSPX_SESSION (VS_REALM, VS_SID, VS_UID, VS_STATE, VS_EXPIRY)\n"
" values (control.vl_realm, sid, null, null, now ());\n"
" control.vl_authenticated := 0;\n"
" self.vc_authenticated := 0;\n"
" self.sid := sid;\n"
" self.realm := control.vl_realm;\n"
" DB.DBA.vsp_auth_get (control.vl_realm, http_map_get ('domain'), nonce, sid, 'false', lines, 0);\n"
" }\n"
" <xsl:if test=\"v:template[@type='if-no-login']/@redirect\">\n"
" {\n"
" declare pars, req_url, pars_arr, i, l any;\n"
" pars := http_request_get ('QUERY_STRING');\n"
" pars_arr := split_and_decode (pars);\n"
" l := length (pars_arr);\n"
" req_url := http_path ();\n"
" if (l > 0 and mod (l, 2) = 0)\n"
" {\n"
" req_url := req_url || '?';\n"
" for (i := 0; i < l; i := i + 2)\n"
" {\n"
" if (pars_arr [i] not in ('sid', 'realm'))\n"
" req_url := req_url || sprintf ('%U', pars_arr [i]) || '=' || sprintf ('%U', pars_arr [i+1]) || '&';\n"
" }\n"
" req_url := rtrim (req_url, '&');\n"
" }\n"
"\n"
" http_request_status ('HTTP/1.1 302 Found');\n"
" http_header (concat ('Location: <xsl:value-of select=\"v:template[@type='if-no-login']/@redirect\" />',\n"
" sprintf ('?URL=%U\\r\\n', req_url)));\n"
" }\n"
" </xsl:if>\n"
"authenticated:;\n"
" declare page_children any;\n"
" page_children := self.vc_children;\n"
" page_children[0] := null;\n"
" self.vc_children := page_children;\n"
" page_children := null;\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"fields bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:field[@value]|v:textarea|v:text\" mode=\"data_bind_method\">\n"
"<!--\n"
" <xsl:if test=\"@value like '-#-#%'\">\n"
" if (not control.vc_data_bound and control.vc_enabled and control.vc_parent.vc_enabled)\n"
" {\n"
" control.ufl_value := <xsl:apply-templates select=\"@value\" mode=\"value\" />;\n"
" control.vc_data_bound := 1;\n"
" }\n"
" </xsl:if>\n"
"-->\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"checkbox control bind method\n"
";\n",
"-->\n"
"\n"
"\n"
"<!--\n"
"tree control bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:tree\" mode=\"data_bind_method\">\n"
" declare root, chil, childs, start_path any;\n"
" <xsl:choose>\n"
" <xsl:when test=\"starts-with(@start-path, '--')\">\n"
" start_path := <xsl:apply-templates select=\"@start-path\" mode=\"value\" />;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" start_path := <xsl:apply-templates select=\"@start-path\" mode=\"static_value\" />;\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" root := <xsl:value-of select=\"@root\" /> (start_path);\n"
" declare i, l int;\n"
" i := 0; l := length (root);\n"
" childs := make_array (l, 'any');\n"
" while (i < l) {\n"
" declare node, dummy vspx_tree_node;\n"
" dummy := null;\n"
" node := self.vc_data_bind_node_<xsl:value-of select=\"@name\"/> (control, dummy, e, root[i], start_path, i, 0);\n"
" aset (childs, i, node);\n"
" i := i + 1;\n"
" }\n"
" control.vc_children := childs;\n"
" self.vc_get_focus (e);\n"
" <xsl:if test=\"@multi-branch = '0'\">\n"
" i := 0;\n"
" while (i < l) {\n"
" declare node vspx_tree_node;\n"
" node := control.vc_children [i];\n"
" if (node.tn_open and not node.vc_focus and e.ve_is_post and control.vc_focus) {\n"
" node.tn_open := 0;\n"
" node.vc_close_all_childs ();\n"
" }\n"
" i := i + 1;\n"
" }\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"isql node control bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:isql\" mode=\"system_post\">\n"
" if(e.ve_is_post) {\n"
" -- late binding from controls, if they exist\n"
" control.isql_text := get_keyword ('<xsl:value-of select=\"@name\"/>_text', e.ve_params, control.isql_text);\n"
" control.isql_password := get_keyword ('<xsl:value-of select=\"@name\"/>_pwd', e.ve_params, control.isql_password);\n"
" control.isql_user := get_keyword ('<xsl:value-of select=\"@name\"/>_user', e.ve_params, control.isql_user);\n"
" control.isql_isolation := get_keyword ('<xsl:value-of select=\"@name\"/>_isolation', e.ve_params, control.isql_isolation);\n"
" control.isql_maxrows := cast( get_keyword('<xsl:value-of select=\"@name\"/>_maxrows', e.ve_params, cast(control.isql_maxrows as varchar)) as integer);\n"
" control.isql_explain := cast( get_keyword('<xsl:value-of select=\"@name\"/>_explain', e.ve_params, cast(control.isql_explain as varchar)) as integer);\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:isql\" mode=\"action_method\">\n"
"\n"
" declare templ_input, templ_result, templ_error vspx_template;\n"
"\n"
" if(control.isql_custom_exec = 1) {\n"
" return;\n"
" }\n"
"\n"
" templ_input := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='input']/@name\" />');\n"
" templ_result := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='result']/@name\" />');\n"
" templ_error := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='error']/@name\" />');\n"
"\n"
" if(get_keyword ('<xsl:value-of select=\"@name\"/>_submit', e.ve_params, NULL) is NULL) {\n"
" return;\n"
" }\n"
" if (e.ve_is_post) {\n"
"\n"
" control.isql_exec(); -- actual sql script execution\n"
"\n"
" if(length(control.vc_error_message) = 0 ) {\n"
" templ_input.vc_enabled := 1;\n"
" templ_result.vc_enabled := 0;\n"
" if (templ_error is not null)\n"
" templ_error.vc_enabled := 0;\n"
" templ_input.vc_data_bind (e);\n"
" }\n"
" else if(length(control.vc_error_message) = 1 and\n"
" control.vc_error_message[0][0] <> '00000' ) {\n"
" -- error occured in single statement execution\n"
" templ_input.vc_enabled := 0;\n"
" templ_result.vc_enabled := 0;\n"
" if (templ_error is not null and not control.isql_chunked)\n"
" {\n"
" templ_error.vc_enabled := 1;\n"
" templ_error.vc_data_bind (e);\n"
" }\n"
" }\n"
" else {\n"
" templ_input.vc_enabled := 0;\n"
" templ_result.vc_enabled := 1;\n"
" if (templ_error is not null)\n"
" {\n"
" templ_error.vc_enabled := 0;\n"
" }\n"
" templ_result.vc_data_bind (e);\n"
" }\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:calendar\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select='@name' />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:isql\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select='@name' />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='input']\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='result']\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
"\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='error']\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:radio-group\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"\n"
"<!--\n"
"tree node control bind method\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:tree\" mode=\"node_data_bind_method\">\n"
"create method vc_data_bind_node_<xsl:value-of select=\"@name\" />\n"
" (inout tree vspx_tree, inout control vspx_tree_node, inout e vspx_event, in nodeset any, in path any, in inx int, in level int)\n"
" for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare chil, childs, csum any;\n"
" declare parent_tree vspx_tree;\n"
" declare node vspx_tree_node;\n"
" declare parent vspx_control;\n"
" declare i int;\n"
" declare node_name, sel_img, not_sel_img, url varchar;\n"
"\n"
" parent_tree := tree;\n"
" if (control is null)\n"
" parent := tree;\n"
" else\n"
" parent := control;\n"
"\n"
" url := '';\n"
" i := inx;\n"
" if (isstring (nodeset)) {\n"
" node_name := nodeset;\n"
" chil := <xsl:value-of select=\"@child-function\" /> (path || '/' || node_name, node_name);\n"
" }\n"
" else {\n"
" node_name := xpath_eval ('@name', nodeset);\n"
" sel_img := xpath_eval ('@selected-image', nodeset);\n"
" not_sel_img := xpath_eval ('@not-selected-image', nodeset);\n"
" url := xpath_eval ('@url', nodeset);\n"
" if(length (url) > 0) {\n"
" if (self.vc_authentication_mode and length (self.sid))\n"
" url := DB.DBA.vspx_uri_add_parameters (cast (url as varchar), 'sid=' || self.sid || '&realm=' || self.realm);\n"
" url := WS.WS.EXPAND_URL(http_path(), cast (url as varchar));\n"
" }\n"
" chil := <xsl:value-of select=\"@child-function\" /> ('node', nodeset);\n"
" }\n"
" node := vspx_tree_node('<xsl:value-of select=\"@name\"/>_node', parent, case length(chil) when 0 then 1 else 0 end, i, level);\n"
" if(isentity(nodeset)) {\n"
" node.tn_element := xml_cut (nodeset);\n"
" }\n"
" else {\n"
" node.tn_element := nodeset;\n"
" }\n"
" node.tn_value := node_name;\n"
" declare tree_state any;\n"
" if(isentity (nodeset)) {\n"
" declare exit handler for sqlstate '*' {\n"
" goto recover_label;\n"
" };\n"
" if(node.tn_tree.vt_open_at is not null) {\n"
" if (xpath_eval (node.tn_tree.vt_open_at, xml_cut (nodeset), 1) is not null) {\n"
" node.tn_open := 1;\n"
" }\n"
" goto toggle_label;\n"
" }\n"
" }\n"
"recover_label:\n"
" tree_state := parent_tree.vc_get_control_state (vector());\n"
" if (parent_tree.vt_xpath_id is not null)\n"
" csum := xpath_eval (parent_tree.vt_xpath_id, node.tn_element);\n"
" else\n"
" csum := tree_md5 (serialize (node.tn_element), 1);\n"
" if(tree_state is not null and position (csum, tree_state)) {\n"
" node.tn_open := 1;\n"
" }\n"
" if(e.ve_is_post and\n"
" get_keyword (sprintf ('%s:<xsl:value-of select=\"@name\"/>_toggle$%d',\n"
" node.vc_instance_name, i) , e.ve_params) is not null)\n"
" {\n"
" if (node.tn_open)\n"
" {\n"
" node.tn_open := 0;\n"
" }\n"
" else\n"
" {\n"
" node.tn_open := 1;\n"
" }\n"
" }\n"
"toggle_label:\n"
" {\n"
" declare control vspx_tree_node;\n"
" -- in-scope variable to make proper children, vc_parent is a node\n"
" control := node;\n"
" if(node.tn_is_leaf) {\n"
" node.vc_children := vector (\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:leaf-template\">\n"
" <xsl:apply-templates select=\"v:leaf-template/*\" mode=\"form_childs_init\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"v:node-template/*\" mode=\"form_childs_init\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" NULL\n"
" );\n"
" }\n"
" else {\n"
" declare new_nodes vspx_control;\n"
" declare inx1, len1 int;\n"
" inx1 := 0; len1 := length (chil);\n"
" new_nodes := vector ();\n"
" if(node.tn_open) {\n"
" new_nodes := make_array (len1, 'any');\n"
" }\n"
" while(node.tn_open and inx1 < len1) {\n"
" declare new_node vspx_tree_node;\n"
" if(isstring (nodeset)) {\n"
" new_node := self.vc_data_bind_node_<xsl:value-of select=\"@name\"/>\n"
" (tree, node, e, chil[inx1], path || '/' || node_name , inx1, level + 1);\n"
" }\n"
" else {\n"
" new_node := self.vc_data_bind_node_<xsl:value-of select=\"@name\"/>\n"
" (tree, node, e, chil[inx1], 'node' , inx1, level + 1);\n"
" }\n"
" aset (new_nodes, inx1, new_node);\n"
" inx1 := inx1 + 1;\n"
" }\n"
" new_nodes := vector_concat (\n"
" vector (\n"
" <xsl:apply-templates select=\"v:node-template/*\" mode=\"form_childs_init\" />\n"
" NULL) , new_nodes);\n"
" node.vc_children := new_nodes;\n"
" }\n"
" {\n"
" declare inx, len int;\n"
" inx := 0; len := length (node.vc_children);\n"
" while (inx < len) {\n"
" declare ctrl vspx_control;\n"
" ctrl := node.vc_children[inx];\n"
" if (ctrl is not null and udt_instance_of (ctrl, fix_identifier_case ('vspx_button'))) {\n"
" declare btn vspx_button;\n"
" btn := node.vc_children[inx];\n"
" btn.bt_open_img := sel_img;\n"
" btn.bt_close_img := not_sel_img;\n"
" btn.bt_url := coalesce (url, '');\n"
" }\n"
" <!--\n"
" the vc_instance_name MUST be set in vc_init; not in the generated code\n"
" if(ctrl is not null and ctrl.vc_name = '<xsl:value-of select=\"@name\"/>_toggle') {\n"
" ctrl.vc_instance_name := sprintf ('%s$%d$%d' , ctrl.vc_name, i, level);\n"
" }\n"
" if(ctrl is not null and udt_instance_of(ctrl, fix_identifier_case ('vspx_button')) and ctrl.vc_instance_name is null) {\n"
" ctrl.vc_instance_name := sprintf ('%s$%d$%d' , ctrl.vc_name, i, level);\n"
" }\n"
" -->\n"
" inx := inx + 1;\n"
" }\n"
" }\n"
" }\n"
" return node;\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"node_data_bind_method\">\n"
"</xsl:template>\n"
"\n"
"<!-- XXX: refine ufl_value & rest -->\n"
"<xsl:template match=\"v:label\" mode=\"data_bind_method\">\n"
"<!--\n"
" <xsl:if test=\"@value like '-#-#%'\">\n"
" if(not control.vc_data_bound) {\n"
" control.ufl_value := <xsl:apply-templates select=\"@value\" mode=\"value\" />;\n"
" control.vc_data_bound := 1;\n"
" }\n"
" </xsl:if>\n"
"-->\n"
"</xsl:template>\n"
"\n"
"<!-- XXX: refine ufl_value & rest -->\n"
"<xsl:template match=\"v:url\" mode=\"data_bind_method\">\n"
" if (length(self.sid) and self.vc_authentication_mode)\n"
" control.vu_l_pars := sprintf ('sid=%s&realm=%s', self.sid, self.realm);\n"
"</xsl:template>\n"
"\n"
"<!-- XXX: refine ufl_value & rest -->\n"
"<xsl:template match=\"v:button[@action='simple']\" mode=\"data_bind_method\">\n"
" <xsl:if test=\"@url\">\n"
" if (length(self.sid) and self.vc_authentication_mode)\n"
" control.bt_l_pars := sprintf ('sid=%s&realm=%s', self.sid, self.realm);\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:radio-button\" mode=\"data_bind_method\">\n"
" <xsl:if test=\"ancestor::v:radio-group\">\n"
" if (udt_instance_of (control.vc_parent, fix_identifier_case ('vspx_radio_group')))\n"
" {\n"
" declare radio_group vspx_radio_group;\n"
" radio_group := control.vc_parent;\n"
" control.ufl_group := control.vc_parent.vc_name;\n"
" if (not radio_group.vc_focus and radio_group.ufl_value = control.ufl_value)\n"
" control.ufl_selected := 1;\n"
" }\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:browse-button|v:button[@action='browse']\" mode=\"data_bind_method\">\n"
" <xsl:if test=\"//v:login\">\n"
" if (length (self.sid) and self.vc_authentication_mode)\n"
" {\n"
" declare login_pars varchar;\n"
" login_pars := 'sid='|| self.sid || '&realm=' || self.realm;\n"
" control.vcb_selector := DB.DBA.vspx_uri_add_parameters (control.vcb_selector, login_pars);\n"
" }\n"
" </xsl:if>\n"
" <xsl:for-each select=\"v:field\">\n"
" <xsl:variable name=\"fld\" select=\"@name\"/>\n"
" <xsl:if test=\"ancestor::v:template[@type='browse']//v:*[@name=$fld and not parent::v:button[@action='browse']]\">\n"
" <!-- the field is under repeating group -->\n"
" {\n"
" declare tmpl, fld vspx_control;\n"
" tmpl := control.vc_find_parent_by_name (control, '<xsl:value-of select=\"ancestor::v:template[@type='browse']/@name\"/>');\n"
" fld := null;\n"
" if (tmpl is not null)\n"
" {\n"
" fld := tmpl.vc_find_control ('<xsl:value-of select=\"$fld/@name\"/>');\n"
" }\n"
" if (fld is not null)\n"
" {\n"
" declare pos int;\n"
" declare arr any;\n"
" arr := control.vcb_ref_fields;\n"
" pos := position ('<xsl:value-of select=\"$fld/@name\"/>', arr);\n"
" if (pos > 0)\n"
" {\n"
" arr[pos-1] := fld.vc_get_name ();\n"
" control.vcb_ref_fields := arr;\n"
" }\n"
" }\n"
" }\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:calendar\" mode=\"data_bind_method\">\n"
" declare i, l int;\n"
" declare rep vspx_template;\n"
" declare arr any;\n"
"\n"
" control.cal_meta := control.vc_get_date_array ();\n"
" rep := control.vc_find_control ('<xsl:value-of select=\"v:template[@type='repeat']/@name\" />');\n"
" rep.vc_children := null;\n"
" arr := control.cal_meta;\n"
" {\n"
" declare control vspx_control;\n"
" control := rep;\n"
" i := 0; l := length (arr);\n"
" while (i < l)\n"
" {\n"
" declare ctrl vspx_row_template;\n"
" ctrl := vspx_row_template ('<xsl:value-of select=\"v:template[@type='repeat']/v:template[@type='browse']/@name\" />', arr[i], control, i);\n"
" {\n"
" declare control vspx_control;\n"
" control := ctrl;\n"
" ctrl.vc_children := vector (\n"
" <xsl:apply-templates select=\"v:template[@type='repeat']//v:template[@type='browse']/*\" mode=\"form_childs_init\" />\n"
" NULL);\n"
" }\n"
" i := i + 1;\n"
" }\n"
" }\n"
" if (e.ve_button is null)\n"
" self.vc_get_focus (e);\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='browse']\" mode=\"data_bind_method\">\n"
" <xsl:if test=\"ancestor::v:data-set\">\n"
" declare ds vspx_data_set;\n"
" ds := control.vc_parent;\n"
" if (ds is not null and ds.ds_data_source is not null)\n"
" ds.ds_data_source.ds_current_inx := control.te_ctr;\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:tab[@style='custom']\" mode=\"data_bind_method\">\n"
" if (e.ve_button is null)\n"
" return;\n"
" if (e.ve_button.vc_name like '<xsl:value-of select=\"@name\"/>_switch_%')\n"
" {\n"
" declare template vspx_template;\n"
" declare template_name varchar;\n"
" template_name := subseq (e.ve_button.vc_name, length ('<xsl:value-of select=\"@name\"/>_switch_'),\n"
" length (e.ve_button.vc_name));\n"
" template := control.vc_find_control (template_name);\n"
" control.tb_active := template;\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"data_bind_method\" />\n"
"\n"
"<xsl:template name=\"inside_form\">\n"
" <xsl:if test=\"ancestor::v:data-set|ancestor::v:data-grid|ancestor::v:form|ancestor::v:login|ancestor::v:isql\">\n"
" control.vc_inside_form := 1;\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"form init method\n"
";\n",
"-->\n"
"<xsl:template match=\"v:form[@type='simple']\" mode=\"init_method\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@action != ''\">\n"
" <xsl:if test=\"not @action like '--%'\">\n"
" control.uf_action := '<xsl:value-of select = \"@action\"/>';\n"
" </xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" control.uf_action := http_path ();\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:call-template name=\"inside_form\" />\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:label[@format]\" mode=\"init_method\">\n"
" control.vl_format := <xsl:apply-templates select=\"@format\" mode=\"static_value\"/>;\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:url\" mode=\"init_method\">\n"
" <xsl:if test=\"@format\">\n"
" control.vu_format := <xsl:apply-templates select=\"@format\" mode=\"static_value\"/>;\n"
" </xsl:if>\n"
" control.vu_url := <xsl:apply-templates select=\"@url\" mode=\"static_value\"/>;\n"
" <xsl:if test=\"@is-local = '1'\">\n"
" control.vu_is_local := 1;\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:text|v:textarea|v:update-field\" mode=\"init_method\">\n"
" <xsl:if test=\"not @default_value like '--%'\">\n"
" control.tf_default := '<xsl:value-of select = \"@default_value\"/>';\n"
" </xsl:if>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@type='password'\">\n"
" control.tf_style := 1;\n"
" </xsl:when>\n"
" <xsl:when test=\"@type='hidden'\">\n"
" control.tf_style := 2;\n"
" </xsl:when>\n"
" <xsl:when test=\"@type != ''\">\n"
" control.tf_style := <xsl:apply-templates select=\"@type\" mode=\"static_value\"/>;\n"
" </xsl:when>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"buttons init method\n"
";\n",
"-->\n"
"<xsl:template match=\"v:button[@action='simple']|v:button[@action='delete']|v:button[@action='submit']|v:button[@action='logout']\" mode=\"init_method\">\n"
" <xsl:if test=\"@style\">\n"
" control.bt_style := '<xsl:value-of select=\"@style\" />';\n"
" control.bt_close_img := '<xsl:value-of select=\"@not-selected-image\" />';\n"
" control.bt_open_img := '<xsl:value-of select=\"@selected-image\" />';\n"
" <xsl:if test=\"@url and not (@url like '--%')\">\n"
" control.bt_url := '<xsl:value-of select=\"@url\" />';\n"
" </xsl:if>\n"
" </xsl:if>\n"
" <xsl:if test=\"@anchor='1' or $this_page/@button-anchors = '1'\">\n"
" control.bt_anchor := 1;\n"
" </xsl:if>\n"
" <xsl:if test=\"@text and not (@text like '--%')\">\n"
" control.bt_text := '<xsl:value-of select=\"@text\" />';\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<!-- XXX: refine ufl_value & rest -->\n"
"<xsl:template match=\"v:browse-button|v:button[@action='browse']\" mode=\"init_method\">\n"
" <xsl:if test=\"not (@value like '--%')\">\n"
" control.ufl_value := '<xsl:value-of select=\"@value\" />';\n"
" </xsl:if>\n"
" <xsl:if test=\"not @selector like '--%'\">\n"
" control.vcb_selector := '<xsl:value-of select = \"@selector\"/>';\n"
" </xsl:if>\n"
" control.vcb_fields := vector (\n"
" <xsl:for-each select=\"v:field\">\n"
" '<xsl:value-of select=\"@name\"/>' <xsl:if test=\"position() < last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
" control.vcb_ref_fields := vector (\n"
" <xsl:for-each select=\"v:field\">\n"
" <xsl:text>'</xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@ref\"><xsl:value-of select=\"@ref\"/></xsl:when>\n"
" <xsl:otherwise><xsl:value-of select=\"@name\"/></xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:text>'\n"
" </xsl:text>\n"
" <xsl:if test=\"position() < last()\"><xsl:text>, </xsl:text></xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
" <xsl:if test=\"./v:parameter\">\n"
" control.vcb_params := vector (\n"
" <xsl:for-each select=\"v:parameter\">\n"
" '<xsl:value-of select=\"@name\"/>' <xsl:if test=\"position() < last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
" </xsl:if>\n"
" control.vcb_chil_options := '<xsl:value-of select=\"@child-window-options\"/>';\n"
" <xsl:if test=\"@browser-options and not @browser-options like '--%'\">\n"
" control.vcb_browser_options := '<xsl:value-of select=\"@browser-options\" />';\n"
" </xsl:if>\n"
" <xsl:if test=\"@browser-type = 'dav' or @browser-type = 'os'\">\n"
" control.vcb_system := '<xsl:value-of select=\"@browser-type\" />';\n"
" control.vcb_browser_mode := '<xsl:value-of select=\"@browser-mode\" />';\n"
" control.vcb_xfer := '<xsl:value-of select=\"@browser-xfer\" />';\n"
" control.vcb_list_mode := '<xsl:value-of select=\"@browser-list\" />';\n"
" control.vcb_filter := '<xsl:value-of select=\"@browser-filter\" />';\n"
" control.vcb_current := <xsl:value-of select=\"number(@browser-current)\" />;\n"
" </xsl:if>\n"
" <xsl:if test=\"@style\">\n"
" control.bt_style := '<xsl:value-of select=\"@style\" />';\n"
" </xsl:if>\n"
" <xsl:if test=\"@text and not (@text like '--%')\">\n"
" control.bt_text := '<xsl:value-of select=\"@text\" />';\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"init method for all under forms\n"
";\n",
"-->\n"
"<xsl:template name=\"vars_init\">\n"
" (self.\"<xsl:value-of select=\"@name\" />\":=</xsl:template>\n"
"<xsl:template name=\"vars_ret\">).\"<xsl:value-of select=\"@name\" />\"</xsl:template>\n"
"\n"
"<xsl:template\n"
" match=\"v:label|v:check-box|v:text|v:textarea|v:data-list|v:select-list|v:tree|v:button[@action='simple']|v:button[@action='delete']|v:update-field|v:button[@action='submit']|v:button[@action='return']|v:radio-button|v:data-grid|v:browse-button|v:button[@action='browse']|v:isql|v:template[@type='input']|v:template[@type='result']|v:template[@type='error']|v:template[@type='simple']|v:template[@type='repeat']|v:template[@type='if-not-exists']|v:url|v:data-set|v:calendar|v:data-source|v:local-variable\"\n"
" mode=\"form_childs_init\">\n"
" <xsl:call-template name=\"vars_init\" /><xsl:value-of select=\"@control-udt\"/> ('<xsl:value-of select=\"@name\" />', control)<xsl:call-template name=\"vars_ret\" />,\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:login\" mode=\"form_childs_init\">\n"
" self.\"<xsl:value-of select=\"@name\"/>\",\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='if-login']|v:template[@type='if-no-login']\" mode=\"form_childs_init\">\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
"</xsl:template>\n"
"\n"
"<!-- ches fk -->\n"
"<xsl:template match=\"v:fk-child-window\" mode=\"form_childs_init\">\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
"</xsl:template>\n"
"<!-- ches fk -->\n"
"\n"
"<xsl:template match=\"v:template[@type='add']|v:template[@type='edit']\" mode=\"form_childs_init\">\n"
" <xsl:if test=\"not v:form[@type='update']\">\n"
" <xsl:call-template name=\"vars_init\" /><xsl:value-of select=\"@control-udt\"/> ('<xsl:value-of select=\"@name\" />', control)<xsl:call-template name=\"vars_ret\" />,\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:radio-group|v:template[@type='if-not-exists']\" mode=\"form_childs_init\">\n"
" <xsl:call-template name=\"vars_init\" /><xsl:value-of select=\"@control-udt\"/> ('<xsl:value-of select=\"@name\" />', control)<xsl:call-template name=\"vars_ret\" />,\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='page-navigator']\" mode=\"form_childs_init\">\n"
" <xsl:call-template name=\"vars_init\" /><xsl:value-of select=\"@control-udt\"/> ('<xsl:value-of select=\"@name\" />', control)<xsl:call-template name=\"vars_ret\" />,\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:form[@type='simple']|v:form[@type='update']|v:tab|v:template[@type='if-exists']\" mode=\"form_childs_init\">\n"
" <xsl:call-template name=\"vars_init\" /><xsl:value-of select=\"@control-udt\"/> ('<xsl:value-of select=\"@name\" />', control)<xsl:call-template name=\"vars_ret\" />,\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:login\" mode=\"login_child\">\n"
" <xsl:call-template name=\"vars_init\" /><xsl:value-of select=\"@control-udt\"/> ('<xsl:value-of select=\"@name\" />', control)<xsl:call-template name=\"vars_ret\" />,\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:vscx\" mode=\"form_childs_init\">\n"
" <xsl:call-template name=\"vars_init\" /><xsl:value-of select=\"@control-udt\"/> ('<xsl:value-of select=\"@name\" />', control, '<xsl:value-of select=\"@url\" />')<xsl:call-template name=\"vars_ret\" />,\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"form_childs_init\" />\n"
"\n"
"<xsl:template match=\"*\" mode=\"form_childs_init\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:vcc_exists (name())\">\n"
" <xsl:call-template name=\"vars_init\" />self.vcc_init_<xsl:value-of select=\"@name\" /> ('<xsl:value-of select=\"@name\" />', control)<xsl:call-template name=\"vars_ret\" />,\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
"init method for update-form\n"
";\n",
"-->\n"
"<xsl:template match=\"v:form[@type='update']\" mode=\"init_method\">\n"
" <xsl:variable name=\"acturi\" select=\"@action\" />\n"
" <xsl:choose>\n"
" <xsl:when test=\"$acturi != ''\">\n"
" control.uf_action := '<xsl:value-of select=\"@action\"/>';\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" control.uf_action := http_path ();\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:call-template name=\"inside_form\" />\n"
" <xsl:if test=\"true (number (@concurrency))\" >\n"
" control.uf_concurrency := 1;\n"
" </xsl:if>\n"
" <xsl:choose>\n"
" <xsl:when test=\"ancestor::v:template[@type='add' or @type='edit']\">\n"
" control.uf_fields := vector (<xsl:for-each select=\"v:template//v:*[@column]\">'<xsl:value-of select=\"@name\" />' <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each>);\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" control.uf_fields := vector (<xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\">'<xsl:value-of select=\"@name\" />' <xsl:if test=\"position() != last()\">,</xsl:if> </xsl:for-each>);\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" control.uf_columns := vector (\n"
" <xsl:for-each select=\"v:template//v:*[@column]\">\n"
" '<xsl:value-of select=\"@column\" />' <xsl:if test=\"position() != last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-source\" mode=\"init_method\">\n"
" control.ds_nrows := <xsl:apply-templates select=\"@nrows\" mode=\"value\"/>;\n"
" if(control.ds_nrows < 1) control.ds_nrows := 524288;\n"
" control.ds_sql_type := <xsl:apply-templates select=\"@expression-type\" mode=\"static_value\"/>;\n"
" control.ds_rows_offs := <xsl:apply-templates select=\"@initial-offset\" mode=\"value\"/>;\n"
" control.ds_columns := vector (<xsl:for-each select=\"v:column\">\n"
" vspx_column ('<xsl:value-of select=\"@name\"/>', '<xsl:value-of select=\"@label\"/>', '<xsl:value-of select=\"@output-format\"/>', '<xsl:value-of select=\"@output-format\"/>', control)<xsl:if test=\"position () != last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
"</xsl:template>\n"
"<!--\n"
"init method for data-set\n"
";\n",
"-->\n"
"<xsl:template match=\"v:data-set\" mode=\"init_method\">\n"
" <xsl:if test=\"not @data-source\">\n"
" control.ds_nrows := <xsl:apply-templates select=\"@nrows\" mode=\"value\"/>;\n"
" if(control.ds_nrows < 1) control.ds_nrows := 524288;\n"
" </xsl:if>\n"
" control.ds_scrollable := <xsl:value-of select=\"@scrollable\" />;\n"
" <xsl:if test=\"@data-source\">\n"
" <!--XXX: refine this as may be data-bound -->\n"
" control.ds_data_source := <xsl:apply-templates select=\"@data-source\" mode=\"value\"/>;\n"
" </xsl:if>\n"
" <xsl:if test=\"@edit = '0' or @edit = '1'\" >\n"
" control.ds_editable := <xsl:value-of select=\"@edit\" />;\n"
" </xsl:if>\n"
" control.vc_children := vector (\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
" <!-- TODO: this, edit and add must me done by templates, no html allowed in current case -->\n"
" <xsl:apply-templates select=\"v:template/v:template[@type='if-not-exists']\" mode=\"form_childs_init\" />\n"
" NULL\n"
" );\n"
" <xsl:if test=\".//v:template[@type='edit']//v:form[@type='update']\">\n"
" { -- Initialization of an 'update' form inside 'edit' template.\n"
" declare chils any;\n"
" declare uf vspx_update_form;\n"
" chils := control.vc_children;\n"
" uf := vspx_update_form('<xsl:value-of select=\".//v:template[@type='edit']//v:form[@type='update']/@name\"/>', control);\n"
" uf.vc_enabled := 0;\n"
" uf.vc_inside_form := 1;\n"
" chils := vector_concat(chils, vector (uf));\n"
" control.vc_children := chils;\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\".//v:template[@type='add']//v:form[@type='update']\">\n"
" { -- Initialization of an 'update' form inside 'add' template.\n"
" declare chils any;\n"
" declare uf vspx_update_form;\n"
" chils := control.vc_children;\n"
" uf := vspx_update_form('<xsl:value-of select=\".//v:template[@type='add']//v:form[@type='update']/@name\"/>', control);\n"
" uf.vc_enabled := 1;\n"
" uf.vc_inside_form := 1;\n"
" chils := vector_concat (chils, vector (uf));\n"
" control.vc_children := chils;\n"
" }\n"
" </xsl:if>\n"
"<!--\n"
" <xsl:if test=\"@initial-enable = '0'\">\n"
" control.vc_enabled := 0;\n"
" </xsl:if>\n"
"-->\n"
" <xsl:call-template name=\"inside_form\" />\n"
"</xsl:template>\n"
"\n"
"<!--\n"
" Init of the v:data-grid\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:data-grid\" mode=\"init_method\">\n"
" <xsl:if test=\"@nrows\">\n"
" control.dg_nrows := <xsl:value-of select=\"@nrows\" />;\n"
" </xsl:if>\n"
" <xsl:if test=\"@scrollable\">\n"
" control.dg_scrollable := <xsl:value-of select=\"@scrollable\" />;\n"
" </xsl:if>\n"
" <xsl:if test=\"@edit = '0' or @edit = '1'\" >\n"
" control.dg_editable := <xsl:value-of select=\"@edit\" />;\n"
" </xsl:if>\n"
" control.vc_children := vector (\n"
" <xsl:apply-templates select=\"v:template[@type='frame']//v:*[@name]\" mode=\"form_childs_init\" />\n"
" <xsl:apply-templates select=\"v:template[@type='edit']\" mode=\"form_childs_init\" />\n"
" <xsl:apply-templates select=\"v:template[@type='add']\" mode=\"form_childs_init\" />\n"
" <xsl:apply-templates select=\"v:template[@type='if-not-exists']\" mode=\"form_childs_init\" />\n"
" NULL\n"
" );\n"
" <xsl:if test=\"v:template[@type='edit']/v:form[@type='update']\">\n"
" {\n"
" declare chils any;\n"
" declare uf vspx_update_form;\n"
" chils := control.vc_children;\n"
" uf := vspx_update_form ('<xsl:value-of select=\"v:template[@type='edit']/v:form[@type='update']/@name\"/>', control);\n"
" uf.vc_enabled := 0;\n"
" uf.vc_inside_form := 1;\n"
" chils := vector_concat (chils, vector (uf));\n"
" control.vc_children := chils;\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"v:template[@type='add']/v:form[@type='update']\">\n"
" {\n"
" declare chils any;\n"
" declare uf vspx_update_form;\n"
" chils := control.vc_children;\n"
" uf := vspx_update_form ('<xsl:value-of select=\"v:template[@type='add']/v:form[@type='update']/@name\"/>', control);\n"
" uf.vc_enabled := 1;\n"
" uf.vc_inside_form := 1;\n"
" chils := vector_concat (chils, vector (uf));\n"
" control.vc_children := chils;\n"
" }\n"
" </xsl:if>\n"
"<!--\n"
" <xsl:if test=\"@initial-enable = '0'\">\n"
" control.vc_enabled := 0;\n"
" </xsl:if>\n"
"-->\n"
" <xsl:call-template name=\"inside_form\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:login\" mode=\"init_method\">\n"
" control.vl_realm := '<xsl:value-of select=\"@realm\"/>';\n"
" control.vl_mode := '<xsl:value-of select=\"@mode\"/>';\n"
" control.vl_pwd_get := '<xsl:value-of select=\"@user-password\"/>';\n"
" control.vl_usr_check := '<xsl:value-of select=\"@user-password-check\"/>';\n"
" <xsl:if test=\"v:template[@type='if-no-login']/@redirect and not v:template[@type='if-no-login']/@redirect like '--%'\">\n"
" control.vl_no_login_redirect := <xsl:apply-templates select=\"v:template[@type='if-no-login']/@redirect\" mode=\"static_value\" />;\n"
" </xsl:if>\n"
" control.vc_children := vector (\n"
" <xsl:apply-templates select=\"descendant::v:*\" mode=\"login_childs_init\" />\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
" NULL\n"
" );\n"
" <xsl:call-template name=\"inside_form\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@action='return']\" mode=\"init_method\">\n"
" control.bt_style := '<xsl:value-of select=\"@style\" />';\n"
" control.vc_children := vector (\n"
" <xsl:for-each select=\"v:field\">\n"
" vspx_field ('<xsl:value-of select=\"@name\"/>', control),\n"
" </xsl:for-each>\n"
" null\n"
" );\n"
" <xsl:if test=\"@text and not (@text like '--%')\">\n"
" control.bt_text := '<xsl:value-of select=\"@text\" />';\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
" Init of the v:tab\n"
";\n",
"-->\n"
"\n"
"<xsl:template name=\"tab_label\">\n"
" <xsl:text>'</xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@title\">\n"
" <xsl:value-of select=\"@title\"/>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:value-of select=\"@name\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:text>'</xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:tab\" mode=\"init_method\">\n"
" declare init_active_template vspx_template;\n"
" declare childs any;\n"
" childs := vector (NULL,\n"
" <!--xsl:for-each select=\"v:template[@type='simple']\"-->\n"
" <xsl:apply-templates select=\"*\" mode=\"form_childs_init\" />\n"
" <!--/xsl:for-each-->\n"
" NULL\n"
" );\n"
" <xsl:if test=\"@style\">\n"
" control.tb_style := '<xsl:value-of select=\"@style\"/>';\n"
" </xsl:if>\n"
"\n"
" if (control.tb_style = 'list')\n"
" {\n"
" declare items, itemsv any;\n"
" items := vector (\n"
" <xsl:for-each select=\"v:template[@type='simple']\">\n"
" '<xsl:value-of select=\"@name\" />' <xsl:if test=\"position() != last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
" itemsv := vector (\n"
" <xsl:for-each select=\"v:template[@type='simple']\">\n"
" <xsl:call-template name=\"tab_label\"/>\n"
" <xsl:if test=\"position() != last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
" declare tab_switch vspx_select_list;\n"
" tab_switch := vspx_select_list ('<xsl:value-of select=\"@name\"/>_switch', control);\n"
" tab_switch.vsl_items := itemsv;\n"
" tab_switch.vsl_item_values := items;\n"
" tab_switch.vsl_change_script := 1;\n"
" aset (childs, 0, tab_switch);\n"
" }\n"
" else if (control.tb_style = 'radio')\n"
" {\n"
" declare rg vspx_radio_group;\n"
" declare rg_chil vspx_radio_button;\n"
" rg := vspx_radio_group ('<xsl:value-of select=\"@name\"/>_switch', control);\n"
" rg_chil := vector (\n"
" <xsl:variable name=\"tab_name\" select=\"@name\"/>\n"
" <xsl:for-each select=\"v:template[@type='simple']\">\n"
" vspx_label ('<xsl:value-of select=\"$tab_name\"/>_label_<xsl:value-of select=\"@name\"/>', rg).ufl_value := <xsl:call-template name=\"tab_label\"/>,\n"
" vspx_radio_button ('<xsl:value-of select=\"$tab_name\"/>_switch_<xsl:value-of select=\"@name\"/>', rg).ufl_value := '<xsl:value-of select=\"@name\"/>'\n"
" <xsl:if test=\"position() != last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" );\n"
" for (declare i int, i := 0; i < length (rg_chil); i := i + 1)\n"
" {\n"
" declare ctr vspx_field;\n"
" ctr := rg_chil[i];\n"
" if (udt_instance_of (ctr, 'vspx_radio_button'))\n"
" {\n"
" ctr.ufl_group := rg.vc_name;\n"
" ctr.ufl_auto_submit := 1;\n"
" if (not self.vc_is_postback and ctr.ufl_value = '<xsl:value-of select=\"@initial-active\"/>')\n"
" ctr.ufl_selected := 1;\n"
" }\n"
" }\n"
" rg.vc_children := rg_chil;\n"
" aset (childs, 0, rg);\n"
" }\n"
" control.vc_children := childs;\n"
" init_active_template := control.vc_find_control ('<xsl:value-of select=\"@initial-active\"/>');\n"
" control.tb_active := init_active_template;\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:calendar\" mode=\"init_method\">\n"
" control.cal_date := <xsl:apply-templates select=\"@initial-date\" mode=\"value\" />;\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:vscx\" mode=\"init_method\">\n"
" declare page vspx_page;\n"
" page := control.vc_children[0];\n"
" <xsl:for-each select=\"@*[local-name() != 'name'\n"
" and local-name() != 'url'\n"
" and local-name() != 'control-udt'\n"
" and not starts-with (local-name(), 'debug-')\n"
" and not starts-with (local-name(), 'xhtml_')\n"
" and not (. like '--%') ]\">\n"
" if (udt_defines_field (page, '<xsl:value-of select=\"local-name ()\"/>'))\n"
" udt_set (page, '<xsl:value-of select=\"local-name ()\"/>', <xsl:value-of select=\".\"/>);\n"
" </xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:vscx\" mode=\"data_bind_method\">\n"
" declare page vspx_page;\n"
" page := control.vc_children[0];\n"
" <xsl:for-each select=\"@*[local-name() != 'name'\n"
" and local-name() != 'url'\n"
" and local-name() != 'control-udt'\n"
" and not starts-with (local-name(), 'debug-')\n"
" and not starts-with (local-name(), 'xhtml_')\n"
" and . like '--%' ]\">\n"
" if (udt_defines_field (page, '<xsl:value-of select=\"local-name ()\"/>'))\n"
" udt_set (page, '<xsl:value-of select=\"local-name ()\"/>', <xsl:apply-templates select=\".\" mode=\"value\"/>);\n"
" </xsl:for-each>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"init_method\">\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:login-form\" mode=\"login_childs_init\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"count (descendant::v:*) = 0\">\n"
" vspx_login_form (\n"
" '<xsl:value-of select=\"@name\" />',\n"
" '<xsl:value-of select=\"@title\" />',\n"
" '<xsl:value-of select=\"@user-title\" />',\n"
" '<xsl:value-of select=\"@password-title\" />',\n"
" '<xsl:value-of select=\"@submit-title\" />',\n"
" control\n"
" ),\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" vspx_login_form ('<xsl:value-of select=\"@name\" />', control),\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@action='logout']\" mode=\"login_childs_init\">\n"
" vspx_logout_button ('<xsl:value-of select=\"@name\" />', control),\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"login_childs_init\"/>\n"
"\n"
"<xsl:template name=\"concurrency_check\">\n"
" <xsl:if test=\"ancestor::v:form[@type='update'][boolean(number (@concurrency))]\">\n"
" if (control.ufl_value <> control.vc_get_control_state (null))\n"
" {\n"
" declare error_msg any;\n"
" error_msg := 'Field was changed from another client, please re-enter the data';\n"
" control.vc_page.vc_is_valid := 0;\n"
" control.vc_error_message := error_msg;\n"
" control.ufl_error := error_msg;\n"
" control.ufl_failed := 1;\n"
" return;\n"
" }\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:update-field|v:text|v:textarea|v:field[@value]\" mode=\"system_post\">\n"
" <xsl:call-template name=\"concurrency_check\" />\n"
" <!-- if you remove this, the control will be always reloaded with its value, so visible value cannot be changed from code -->\n"
" if(control.vc_data_bound = 0) {\n"
" control.ufl_value := get_keyword (control.vc_get_name (), e.ve_params, control.ufl_value);\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:select-list|v:data-list|v:check-box|v:update-field|v:text|v:textarea|v:field[@value]\" mode=\"simple_validators\">\n"
" if(control.vc_enabled) {\n"
" control.vc_validate();\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"simple_validators\" />\n"
"\n"
"<xsl:template match=\"v:check-box\" mode=\"system_post\">\n"
" declare form vspx_form;\n"
" declare grp_name varchar;\n"
" if (control.ufl_group is not null and control.ufl_group <> '') {\n"
" grp_name := control.ufl_group;\n"
" }\n"
" else {\n"
" grp_name := control.vc_name;\n"
" }\n"
" form := control.vc_find_parent_form (control);\n"
" if (form is not null and e.ve_is_post and form.vc_focus) {\n"
" if (get_keyword (grp_name, e.ve_params) is not null)\n"
" control.ufl_selected := 1;\n"
" else\n"
" control.ufl_selected := 0;\n"
" if (control.ufl_is_boolean)\n"
" control.ufl_value := case control.ufl_selected when 0 then control.ufl_false_value else control.ufl_true_value end;\n"
" }\n"
" <xsl:choose>\n"
" <xsl:when test=\"ancestor::v:form[@type='update']\"> <!-- or rather @column -->\n"
" <xsl:call-template name=\"concurrency_check\" />\n"
" if (not control.ufl_is_boolean)\n"
" {\n"
" declare val any;\n"
" val := control.ufl_value;\n"
" control.ufl_value := get_keyword (control.vc_get_name (), e.ve_params, null);\n"
" if(control.ufl_value is null) {\n"
" control.ufl_value := case when isstring (val) then 'no' when isinteger (val) then 0 else NULL end;\n"
" }\n"
" else {\n"
" control.ufl_value := case when isstring (val) then 'yes' when isinteger (val) then 1 else val end;\n"
" }\n"
" }\n"
" </xsl:when>\n"
" <xsl:when test=\"@value and @value like '--%'\">\n"
" control.ufl_value := <xsl:apply-templates select=\"@value\" mode=\"value\" />;\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" control.ufl_value := get_keyword (control.vc_get_name (), e.ve_params, control.ufl_value);\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" if(control.vc_enabled) {\n"
" control.vc_validate();\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"system_post\">\n"
"</xsl:template>\n"
"\n"
"<!--\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:form[@type='update']\" mode=\"action_method\">\n"
" if (not self.vc_is_valid) {\n"
" return;\n"
" }\n"
" <xsl:param name=\"table\" select=\"@table\" />\n"
" if (not control.vc_focus) {\n"
" return;\n"
" }\n"
" <xsl:choose>\n"
" <xsl:when test=\"@data-source\">\n"
" <xsl:variable name=\"ds\" select=\"@data-source\" />\n"
" declare is_update int;\n"
" is_update := 1;\n"
" if (<xsl:value-of select=\"$ds\"/>.ds_update_inx < 0)\n"
" {\n"
" <xsl:value-of select=\"$ds\"/>.ds_update_inx := 0;\n"
" if (not length (<xsl:value-of select=\"$ds\"/>.ds_row_data))\n"
" <xsl:value-of select=\"$ds\"/>.ds_row_data :=\n"
" vector (make_array (length (<xsl:value-of select=\"$ds\"/>.ds_row_meta), 'any'));\n"
" is_update := 0;\n"
" }\n"
"\n"
" <xsl:for-each select=\"v:template//v:*[@column]\">\n"
" <xsl:value-of select=\"$ds\"/>.set_item_value (self.<xsl:value-of select=\"@name\" />.ufl_column, self.<xsl:value-of select=\"@name\" />.ufl_value);\n"
" </xsl:for-each>\n"
" if (is_update)\n"
" {\n"
" <xsl:value-of select=\"$ds\"/>.ds_update (e);\n"
" }\n"
" else\n"
" {\n"
" <xsl:value-of select=\"$ds\"/>.ds_insert (e);\n"
" <xsl:value-of select=\"$ds\"/>.ds_update_inx := -1;\n"
" }\n"
" <xsl:if test=\"ancestor::data-set\">\n"
" {\n"
" declare ds vspx_data_set;\n"
" ds := control.vc_parent;\n"
" if (ds.ds_data_source)\n"
" ds.ds_data_source.vc_data_bind(e);\n"
" ds.vc_data_bind(e);\n"
" }\n"
" </xsl:if>\n"
" control.vc_data_bind(e);\n"
" </xsl:when>\n"
" <xsl:when test=\"ancestor::template[@type='add' or @type = 'edit']\">\n"
" declare template vspx_template;\n"
" template := control.vc_find_control ('<xsl:value-of select=\"v:template/@name\" />');\n"
" if (template is null or not template.vc_focus)\n"
" {\n"
" return;\n"
" }\n"
" <xsl:if test=\"v:template//v:*[@column]\">\n"
"\n"
" {\n"
" <!-- ensure data types on update, this is to work FK constraints -->\n"
" <xsl:for-each select=\"v:template//v:*[@column]\">\n"
" declare _<xsl:value-of select=\"@name\" /> any;\n"
" _<xsl:value-of select=\"@name\" /> := (template.vc_find_control ('<xsl:value-of select=\"@name\" />') as vspx_field).ufl_value;\n"
" <xsl:if test=\"function-available('v:columns_type')\">\n"
" _<xsl:value-of select=\"@name\" /> := cast (_<xsl:value-of select=\"@name\" /> as <xsl:value-of select=\"v:columns_type (@column,$table)\" />);\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
" <xsl:if test=\"@triggers='off'\">\n"
" SET TRIGGERS OFF;\n"
" </xsl:if>\n"
" update <xsl:value-of select=\"$table\" /> set\n"
" <xsl:for-each select=\"v:template//v:*[@column]\">\n"
" <xsl:value-of select=\"@column\" /> = _<xsl:value-of select=\"@name\" />\n"
" <xsl:if test=\"position() != last()\">, </xsl:if>\n"
" </xsl:for-each>\n"
" where\n"
" <xsl:for-each select=\"key\">\n"
" <xsl:value-of select=\"@column\" /> = control.uf_keys[<xsl:value-of select=\"position()-1\" />]\n"
" <xsl:if test=\"position() != last()\"> and </xsl:if>\n"
" </xsl:for-each> ;\n"
" }\n"
" <xsl:if test=\"@if-not-exists = 'insert'\">\n"
" if(not row_count ()) {\n"
" <xsl:if test=\"@triggers='off'\">\n"
" SET TRIGGERS OFF;\n"
" </xsl:if>\n"
" insert into <xsl:value-of select=\"$table\" />\n"
" (<xsl:for-each select=\"v:template//v:*[@column]\"><xsl:value-of select=\"@column\" /><xsl:if test=\"position () != last()\">, </xsl:if></xsl:for-each>)\n"
" values\n"
" (<xsl:for-each select=\"v:template//v:*[@column]\">(template.vc_find_control ('<xsl:value-of select=\"@name\" />') as vspx_field).ufl_value<xsl:if test=\"position () != last()\">,\n"
" </xsl:if></xsl:for-each>);\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"ancestor::v:data-set\">\n"
" {\n"
" declare ds vspx_data_set;\n"
" <!--ds := self.vc_find_control('<xsl:value-of select=\"ancestor::v:data-set/@name\"/>'); -->\n"
" ds := control.vc_parent;\n"
" if (ds.ds_data_source)\n"
" ds.ds_data_source.vc_data_bind(e);\n"
" ds.vc_data_bind(e);\n"
" ds.ds_current_row := null;\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"ancestor::v:data-grid\">\n"
" {\n"
" declare grid vspx_data_grid;\n"
" grid := control.vc_find_parent (control, 'vspx_data_grid');\n"
" grid.vc_data_bind (e);\n"
" }\n"
" </xsl:if>\n"
" control.vc_data_bind(e);\n"
" </xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:if test=\"v:template[@type='if-exists']//v:*[@column]\">\n"
" declare template vspx_template;\n"
" template := control.vc_find_control ('<xsl:value-of select=\"v:template/@name\" />');\n"
" if (template is null or not template.vc_focus)\n"
" {\n"
" return;\n"
" }\n"
" {\n"
" <!-- ensure data types on update, this is to work FK constraints -->\n"
" <xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\">\n"
" declare _<xsl:value-of select=\"@name\" /> any;\n"
" _<xsl:value-of select=\"@name\" /> := (template.vc_find_control ('<xsl:value-of select=\"@name\" />') as vspx_field).ufl_value;\n"
" <xsl:if test=\"function-available('v:columns_type')\">\n"
" _<xsl:value-of select=\"@name\" /> := cast (_<xsl:value-of select=\"@name\" /> as <xsl:value-of select=\"v:columns_type (@column,$table)\" />);\n"
" </xsl:if>\n"
" </xsl:for-each>\n"
" <xsl:if test=\"@triggers='off'\">\n"
" SET TRIGGERS OFF;\n"
" </xsl:if>\n"
" update <xsl:value-of select=\"$table\" /> set\n"
" <xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\">\n"
" <xsl:value-of select=\"@column\" /> = _<xsl:value-of select=\"@name\" />\n"
" <xsl:if test=\"position() != last()\">, </xsl:if>\n"
" <xsl:text> </xsl:text>\n"
" </xsl:for-each> where\n"
" <xsl:for-each select=\"key\">\n"
" <xsl:value-of select=\"@column\" /> = control.uf_keys[<xsl:value-of select=\"position()-1\" />] <xsl:if test=\"position() != last()\"> and </xsl:if>\n"
" </xsl:for-each>;\n"
" <xsl:if test=\"@if-not-exists = 'insert'\">\n"
" if (not row_count ())\n"
" {\n"
" insert into <xsl:value-of select=\"$table\" />\n"
" (<xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\">\n"
" <xsl:value-of select=\"@column\" /><xsl:if test=\"position () != last()\">, </xsl:if>\n"
" <xsl:text> </xsl:text>\n"
" </xsl:for-each>)\n"
" values\n"
" (<xsl:for-each select=\"v:template[@type='if-exists']//v:*[@column]\">\n"
" _<xsl:value-of select=\"@name\" /><xsl:if test=\"position () != last()\">, </xsl:if>\n"
" </xsl:for-each>);\n"
" }\n"
" </xsl:if>\n"
" }\n"
" <xsl:if test=\"ancestor::v:data-grid\">\n"
" {\n"
" declare grid vspx_data_grid;\n"
" grid := control.vc_find_parent (control, 'vspx_data_grid');\n"
" grid.vc_data_bind (e);\n"
" }\n"
" </xsl:if>\n"
" control.vc_data_bind (e);\n"
" </xsl:if>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:select-list|v:data-list\" mode=\"system_post\">\n"
" declare value varchar;\n"
" if (not control.vsl_multiple)\n"
" value := get_keyword (control.vc_get_name (), e.ve_params);\n"
" else\n"
" {\n"
" declare pos, spos int;\n"
" declare pars any;\n"
" pars := e.ve_params;\n"
" pos := 0; spos := 0;\n"
" value := vector ();\n"
" while ((pos := position (control.vc_get_name (), pars, spos, 2)))\n"
" {\n"
" spos := pos + 2;\n"
" value := vector_concat (value, vector (pars[pos]));\n"
" }\n"
" }\n"
" if (not self.vc_is_valid)\n"
" {\n"
" return;\n"
" }\n"
" if (value is not null)\n"
" {\n"
" control.ufl_value := value;\n"
" if (control.vsl_item_values is not null)\n"
" {\n"
" control.vs_set_selected ();\n"
" }\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@action='logout']\" mode=\"action_method\">\n"
" declare login_control vspx_login;\n"
" if (not self.vc_is_valid) {\n"
" return;\n"
" }\n"
" if(0 = control.vc_focus) {\n"
" return;\n"
" }\n"
" login_control := control.vc_find_parent(control, 'vspx_login');\n"
" if (login_control is null) {\n"
" signal('42000', 'Pressed a logout button w/o corresponding vspx_login as parent', 'VSPX0');\n"
" }\n"
" if(0 and login_control.vl_logout_in_progress) {\n"
" login_control.vl_logout_in_progress := 0;\n"
" return;\n"
" }\n"
"\n"
" delete from VSPX_SESSION where VS_REALM = self.realm and VS_SID = self.sid;\n"
" login_control.vl_authenticated := 0;\n"
" self.vc_authenticated := 0;\n"
" <!-- ches 2004-05-12 fix\n"
" cookie have to be eliminated from browser storage -->\n"
" <xsl:if test=\"ancestor::v:login[@mode = 'cookie']\">\n"
" {\n"
" declare cook_str, expire varchar;\n"
" expire := date_rfc1123(now());\n"
" cook_str := sprintf(\n"
" 'Set-Cookie: sid=%s; path=%s; expires=%s;\\r\\n Set-Cookie: realm=%s; path=%s; expires=%s;\\r\\n',\n"
" '',\n"
" http_map_get('domain'),\n"
" expire,\n"
" '',\n"
" http_map_get('domain'),\n"
" expire);\n"
"\n"
" if (http_header_get () is null) {\n"
" cook_str := concat (http_header_get (), cook_str);\n"
" }\n"
" http_header(cook_str);\n"
" }\n"
" </xsl:if>\n"
" if(row_count()) {\n"
" login_control.vl_logout_in_progress := 1;\n"
" <xsl:if test=\"ancestor::v:login/@mode='url' or ancestor::v:login/@mode='cookie'\">\n"
" login_control.vc_data_bound := 0;\n"
" login_control.vc_data_bind (e);\n"
" </xsl:if>\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:update-field|v:text\" mode=\"action_method\">\n"
" <xsl:if test=\"v:validator\">\n"
" <xsl:if test=\"ancestor::v:data-grid and ancestor::v:template[@type='edit']\">\n"
" if (not self.vc_is_valid) {\n"
" declare grid vspx_data_grid;\n"
" declare templ vspx_row_template;\n"
" declare uf vspx_update_form;\n"
" grid := control.vc_find_parent (control, 'vspx_data_grid');\n"
" uf := control.vc_find_parent (control, 'vspx_update_form');\n"
" templ := grid.vc_find_rpt_control (sprintf ('<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='row']/@name\" />$%d', grid.dg_rowno_edit));\n"
" if (templ is not null) {\n"
" grid.dg_current_row := templ;\n"
" templ.te_editable := 1;\n"
" if(uf is not null) {\n"
" uf.vc_focus := 1;\n"
" uf.vc_enabled := 1;\n"
" }\n"
" }\n"
" }\n"
" </xsl:if>\n"
" <xsl:if test=\"ancestor::v:data-set and ancestor::v:template[@type='edit']\">\n"
" if (not self.vc_is_valid) {\n"
" declare ds vspx_data_set;\n"
" declare templ vspx_row_template;\n"
" declare uf vspx_update_form;\n"
" ds := control.vc_parent.vc_parent.vc_parent;\n"
" uf := control.vc_parent.vc_parent;\n"
" templ := ds.vc_find_rpt_control(sprintf('<xsl:value-of select=\"ancestor::v:data-set//v:template[@type='browse']/@name\"/>$%d', ds.ds_rowno_edit));\n"
" if(templ is not null) {\n"
" ds.ds_current_row := templ;\n"
" templ.te_editable := 1;\n"
" if(uf is not null) {\n"
" uf.vc_focus := 1;\n"
" uf.vc_enabled := 1;\n"
" <!--uf.vc_data_bind (e);-->\n"
" }\n"
" }\n"
" }\n"
" </xsl:if>\n"
" </xsl:if>\n"
" <xsl:if test=\"@element-value\">\n"
" control.vc_put_value_to_element();\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:radio-button\" mode=\"system_post\">\n"
" declare form vspx_form;\n"
" form := control.vc_find_parent_form (control);\n"
" if (e.ve_is_post and form is not null and form.vc_focus) {\n"
" if (get_keyword (control.ufl_group, params) = control.ufl_value)\n"
" control.ufl_selected := 1;\n"
" else\n"
" control.ufl_selected := 0;\n"
" }\n"
" <xsl:if test=\"ancestor::v:radio-group\">\n"
" if (control.ufl_selected) {\n"
" if (control.vc_parent.vc_name = control.ufl_group\n"
" and udt_instance_of (control.vc_parent, fix_identifier_case('vspx_radio_group')))\n"
" (control.vc_parent as vspx_radio_group).ufl_value := control.ufl_value;\n"
" }\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:tab\" mode=\"action_method\">\n"
" if (control.tb_style = 'list' or control.tb_style = 'radio')\n"
" {\n"
" declare template vspx_template;\n"
" declare template_name varchar;\n"
" template_name := get_keyword ('<xsl:value-of select=\"@name\"/>_switch', params);\n"
" if (length (template_name))\n"
" {\n"
" template := control.vc_find_control (template_name);\n"
" control.tb_active := template;\n"
" if (control.tb_style = 'list')\n"
" {\n"
" declare sel_list vspx_select_list;\n"
" sel_list := control.vc_children [0];\n"
" sel_list.vsl_selected_inx := position (template_name, sel_list.vsl_item_values) - 1;\n"
" }\n"
" else if (control.tb_style = 'radio')\n"
" {\n"
" declare rg vspx_control;\n"
" rg := control.vc_children [0];\n"
" for (declare i int, i := 0; i < length(rg.vc_children); i := i + 1)\n"
" {\n"
" declare rb vspx_field;\n"
" rb := rg.vc_children[i];\n"
" if (rb is not null and udt_instance_of (rb, 'vspx_radio_button'))\n"
" {\n"
" if (rb.ufl_value = template_name)\n"
" rb.ufl_selected := 1;\n"
" else\n"
" rb.ufl_selected := 0;\n"
" }\n"
" }\n"
" }\n"
" }\n"
"\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:calendar\" mode=\"system_post\">\n"
" if (e.ve_is_post and control.vc_focus) {\n"
" if (e.ve_button is not null and udt_instance_of (e.ve_button, fix_identifier_case ('vspx_button'))) {\n"
" declare btn vspx_button;\n"
" btn := e.ve_button;\n"
" <xsl:if test=\"count(v:template[@type='repeat']//v:template[@type='browse']//v:button) > 0\">\n"
" if (btn.vc_name in (\n"
" <xsl:for-each select=\"v:template[@type='repeat']//v:template[@type='browse']//v:button\">\n"
" '<xsl:value-of select=\"@name\"/>'<xsl:if test=\"position()!=last()\">,</xsl:if>\n"
" </xsl:for-each>\n"
" ) ) {\n"
" declare tmp varchar;\n"
" tmp := sprintf ('%d-%d-%s', year (control.cal_date), month (control.cal_date), btn.ufl_value);\n"
" control.cal_selected := stringdate (tmp);\n"
" }\n"
" </xsl:if>\n"
" }\n"
" }\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"action_method\">\n"
" <xsl:if test=\"@element-value\">\n"
" control.vc_put_value_to_element();\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:validator[@test='sql' and not @expression]\" mode=\"validate\">\n"
" if (self.vc_is_valid and self.vc_validate_<xsl:value-of select=\"parent::v:*/@name\" /> (control))\n"
" {\n"
" self.vc_is_valid := 0;\n"
" control.vc_error_message := '<xsl:value-of select=\"@message\" />';\n"
" if (udt_instance_of (control, 'vspx_field'))\n"
" control.ufl_failed := 1;\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:validator[@test='sql' and @expression]\" mode=\"validate\">\n"
" if (self.vc_is_valid and <xsl:apply-templates select=\"@expression\" mode=\"value\" />)\n"
" {\n"
" self.vc_is_valid := 0;\n"
" control.vc_error_message := '<xsl:value-of select=\"@message\" />';\n"
" if (udt_instance_of (control, 'vspx_field'))\n"
" control.ufl_failed := 1;\n"
" }\n"
"</xsl:template>\n"
"\n"
"<!--\n"
" Validator handler\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"v:*[v:validator[@test='sql' and not @expression]]\" mode=\"validator_handler\">\n"
"create method vc_validate_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:for-each select=\"v:validator[@test='sql' and not @expression]\">\n"
" <xsl:value-of select=\".\" />\n"
" </xsl:for-each>\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:before-render|v:before-render-container\" mode=\"pre_render\">\n"
" --no_c_escapes-\n"
" {\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:script\">\n"
" <xsl:value-of select=\"v:script\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:value-of select=\".\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:before-data-bind|v:before-data-bind-container\" mode=\"data_bind\">\n"
" --no_c_escapes-\n"
" {\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:script\">\n"
" <xsl:value-of select=\"v:script\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:value-of select=\".\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:after-data-bind|v:after-data-bind-container\" mode=\"data_bind\">\n"
" --no_c_escapes-\n"
" {\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:script\">\n"
" <xsl:value-of select=\"v:script\" />\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:value-of select=\".\" />\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" }\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:on-post|v:on-post-container\" mode=\"render_all\" />\n"
"<xsl:template match=\"v:before-render|v:before-render-container\" mode=\"render_all\" />\n"
"<xsl:template match=\"v:before-data-bind|v:before-data-bind-container\" mode=\"render_all\" />\n"
"<xsl:template match=\"v:after-data-bind|v:after-data-bind-container\" mode=\"render_all\" />\n"
"<xsl:template match=\"v:on-init|v:on-init-container\" mode=\"render_all\" />\n"
"<xsl:template match=\"v:validator\" mode=\"render_all\" />\n"
"<xsl:template match=\"v:method\" mode=\"render_all\" />\n"
"\n"
"<!--xsl:template match=\"v:template[@type='if-exists']\" mode=\"render_all\" >\n"
" <!- -xsl:apply-templates select=\"node()\" mode=\"render_all\" /- ->\n"
" <xsl:variable name=\"name_to_remove\" select=\"@name-to-remove\"/>\n"
" <xsl:variable name=\"set_to_remove\" select=\"@set-to-remove\"/>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:call-template name=\"inside_template\">\n"
" <xsl:with-param name=\"name_to_remove\" select=\"$name_to_remove\"/>\n"
" <xsl:with-param name=\"set_to_remove\" select=\"$set_to_remove\"/>\n"
" </xsl:call-template>\n"
" </xsl:for-each>\n"
"</xsl:template-->\n"
"\n"
"<xsl:template match=\"v:button[@action='simple']|v:button[@action='delete']|v:browse-button|v:button[@action='browse']\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@name = concat(ancestor::v:data-grid/@name, '_edit')\">\n"
" {\n"
" declare grid vspx_data_grid;\n"
" declare current_row vspx_row_template;\n"
" grid := control.vc_parent;\n"
" if(grid.dg_editable) {\n"
" control.vc_render('<xsl:value-of select='@name'/>');\n"
" }\n"
" }\n"
" </xsl:when>\n"
" <xsl:when test=\"@name = concat(ancestor::v:data-set/@name, '_edit')\">\n"
" {\n"
" declare current_row vspx_row_template;\n"
" declare ds vspx_data_set;\n"
" ds := control.vc_parent;\n"
" if(ds.ds_editable) {\n"
" control.vc_render('<xsl:value-of select='@name'/>');\n"
" }\n"
" }\n"
" </xsl:when>\n"
" <xsl:when test=\"@name = concat(ancestor::v:data-grid/@name, '_delete')\">\n"
" {\n"
" declare grid vspx_data_grid;\n"
" declare current_row vspx_row_template;\n"
" grid := control.vc_parent;\n"
" if(grid.dg_editable) {\n"
" control.vc_render('<xsl:value-of select='@name'/>');\n"
" }\n"
" }\n"
" </xsl:when>\n"
" <xsl:when test=\"@name = concat(ancestor::v:data-set/@name, '_delete')\">\n"
" {\n"
" declare current_row vspx_row_template;\n"
" declare ds vspx_data_set;\n"
" ds := control.vc_parent;\n"
" if(ds.ds_editable) {\n"
" control.vc_render('<xsl:value-of select='@name'/>');\n"
" }\n"
" }\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" control.vc_render('<xsl:value-of select='@name'/>');\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[@action='return']\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" control.vc_render ('<xsl:value-of select='@name' />');\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:label\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select='@name' />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:radio-button\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select='@name' />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:url\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select='@name' />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:rowset\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" self.vc_rows_render_<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='row']/@name\" /> (control);\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:form[@type='add']\" mode=\"render_all\" >\n"
" <xsl:if test=\"ancestor::v:data-grid and ancestor::v:data-grid/v:template[@type='add']/v:form[@type='update']\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" declare grid vspx_data_grid;\n"
" grid := control;\n"
" if (grid.dg_editable)\n"
" {\n"
" self.vc_render_<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='add']/v:form[@type='update']/@name\" /> (control.vc_find_control ('<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='add']/v:form[@type='update']/@name\" />'));\n"
" }\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
" </xsl:if>\n"
" <xsl:if test=\"ancestor::v:data-set and ancestor::v:data-set/v:template[@type='add']/v:form[@type='update']\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" declare ds vspx_data_set;\n"
" ds := control;\n"
" if (ds.ds_editable) {\n"
" self.vc_render_<xsl:value-of select=\"ancestor::v:data-set/v:template[@type='add']/v:form[@type='update']/@name\" /> (control.vc_find_control ('<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='add']/v:form[@type='update']/@name\" />'));\n"
" }\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-source\" mode=\"render_all\" />\n"
"\n"
"<xsl:template match=\"v:template[@type='frame']\" mode=\"render_method\">\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='simple']\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:choose>\n"
" <xsl:when test=\"@condition\">\n"
" if(<xsl:value-of select=\"@condition\"/>) {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:variable name=\"name_to_remove\" select=\"@name-to-remove\"/>\n"
" <xsl:variable name=\"set_to_remove\" select=\"@set-to-remove\"/>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:call-template name=\"inside_template\">\n"
" <xsl:with-param name=\"name_to_remove\" select=\"$name_to_remove\"/>\n"
" <xsl:with-param name=\"set_to_remove\" select=\"$set_to_remove\"/>\n"
" </xsl:call-template>\n"
" </xsl:for-each>\n"
" <!--xsl:apply-templates select=\"node()\" mode=\"render_all\" /-->\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:variable name=\"name_to_remove\" select=\"@name-to-remove\"/>\n"
" <xsl:variable name=\"set_to_remove\" select=\"@set-to-remove\"/>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:call-template name=\"inside_template\">\n"
" <xsl:with-param name=\"name_to_remove\" select=\"$name_to_remove\"/>\n"
" <xsl:with-param name=\"set_to_remove\" select=\"$set_to_remove\"/>\n"
" </xsl:call-template>\n"
" </xsl:for-each>\n"
" <!--xsl:apply-templates select=\"node()\" mode=\"render_all\" /-->\n"
" <xsl:text><?vsp </xsl:text>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<!--xsl:template match=\"v:template[@type='simple']\" mode=\"render_all\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@condition\">\n"
" <?vsp\n"
" if(<xsl:value-of select=\"@condition\"/>) {\n"
" ?>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <?vsp\n"
" }\n"
" ?>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" ?>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <?vsp\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template-->\n"
"\n"
"<xsl:template match=\"v:template[@type='row']\" mode=\"render_method\">\n"
"create method vc_rows_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"../@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare i, l int;\n"
" i := 0; l := length (control.vc_children);\n"
" while (i < l)\n"
" {\n"
" if (control.vc_children[i] is not null and udt_instance_of (control.vc_children[i], fix_identifier_case('vspx_row_template')))\n"
" {\n"
" declare child vspx_row_template;\n"
" declare grid vspx_data_grid;\n"
" child := control.vc_children[i];\n"
" grid := control;\n"
" grid.dg_current_row := control.vc_children[i];\n"
" if (grid.dg_current_row.vc_enabled)\n"
" {\n"
" <xsl:if test=\"ancestor::v:data-grid/v:template[@type='edit']\">\n"
" if (child.te_editable)\n"
" {\n"
" <xsl:choose>\n"
" <xsl:when test=\"ancestor::v:data-grid/v:template[@type='edit']/v:form[@type='update']\">\n"
" self.vc_render_<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='edit']/v:form[@type='update']/@name\" /> (control.vc_find_control ('<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='edit']/v:form[@type='update']/@name\" />'));\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" self.vc_render_<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='edit']/@name\"/> (control.vc_find_control ('<xsl:value-of select=\"ancestor::v:data-grid/v:template[@type='edit']/@name\"/>'));\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" }\n"
" else\n"
" </xsl:if>\n"
" {\n"
" declare control vspx_row_template;\n"
" control := child;\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" }\n"
" }\n"
" i := i + 1;\n"
" }\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"@*\" mode=\"field_value\">\n"
"#line <xsl:value-of select=\"ancestor::*/@debug-srcline\" /> \"<xsl:value-of select=\"ancestor::*/@debug-srcfile\" />\"\n"
" control.<xsl:call-template name=\"attr_name\" /> := <xsl:apply-templates select=\".\" mode=\"value_without_pragmas\"/>; -- (from attribute '<xsl:value-of select=\"name()\" />' of control <<xsl:value-of select=\"local-name(ancestor::*)\" /><xsl:if test=\"ancestor::*/@name\"> name='<xsl:value-of select=\"ancestor::*/@name\"/>' ...</xsl:if>>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"@*\" mode=\"value\">\n"
" <xsl:if test=\"ancestor::*/@debug-srcline\">\n"
"-- (The following expression is from attribute '<xsl:value-of select=\"name()\" />' of control <<xsl:value-of select=\"local-name(ancestor::*)\" /><xsl:if test=\"ancestor::*/@name\"> name='<xsl:value-of select=\"ancestor::*/@name\"/>' ...</xsl:if>>\n"
"#line <xsl:value-of select=\"ancestor::*/@debug-srcline\" /> \"<xsl:value-of select=\"ancestor::*/@debug-srcfile\" />\"\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\".\" mode=\"value_without_pragmas\"/>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"@*\" mode=\"value_without_pragmas\">\n"
" <xsl:choose>\n"
" <xsl:when test=\". like '--after:%'\"><xsl:value-of select=\"substring (., 9, string-length(.))\" /></xsl:when>\n"
" <xsl:when test=\". like '--%'\"><xsl:value-of select=\"substring (., 3, string-length(.))\" /></xsl:when>\n"
" <xsl:otherwise><xsl:value-of select=\".\" /></xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"@*\" mode=\"static_value\">\n"
" <xsl:choose>\n"
" <xsl:when test=\". like '--%' or . = ''\">NULL</xsl:when>\n"
" <xsl:when test=\". like '\\'%\\''\"><xsl:value-of select=\".\" /></xsl:when>\n"
" <!--xsl:when test=\" . = '0' or . = '1'\"> <xsl:value-of select=\".\" /> </xsl:when-->\n"
"<!-- <xsl:otherwise> '<xsl:value-of select=\"replace(.,"'","''")\" />' </xsl:otherwise> -->\n"
" <xsl:otherwise>'<xsl:value-of select=\".\" />'</xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template match=\"v:template[@type='frame']\" mode=\"render_all\" />\n"
"\n"
"\n"
"<xsl:template match=\"v:form[@type='update']|v:data-grid|v:select-list|v:data-list|v:form[@type='simple']|v:login|v:tree|v:tab\" mode=\"render_all\" >\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:update-field|v:button[@action='submit']|v:text|v:check-box|v:textarea\" mode=\"render_all\" >\n"
" <xsl:text><?vsp control.vc_render ('</xsl:text>\n"
" <xsl:value-of select=\"@name\" />\n"
" <xsl:text>'); ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:vscx\" mode=\"render_all\" >\n"
" <xsl:text><?vsp control.vc_render ('</xsl:text>\n"
" <xsl:value-of select=\"@name\" />\n"
" <xsl:text>'); ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:error-summary\" mode=\"render_all\" >\n"
" <xsl:text><?vsp self.vc_error_summary (</xsl:text>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@escape = '0'\">0</xsl:when>\n"
" <xsl:otherwise>1</xsl:otherwise>\n"
" </xsl:choose>\n"
" <xsl:if test=\"@match != ''\">, '<xsl:value-of select=\"@match\" />'</xsl:if>\n"
" <xsl:text>); ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"processing-instruction()\" mode=\"render_all\" >\n"
" <xsl:copy-of select=\".\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:*\" mode=\"render_all\">\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*\" mode=\"render_all\" >\n"
" <xsl:choose>\n"
" <xsl:when test=\"v:vcc_exists (name())\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" <xsl:text> ?></xsl:text>\n"
" </xsl:when>\n"
" <xsl:when test=\"not (* or text() or processing-instruction())\">\n"
" <xsl:text><</xsl:text>\n"
" <xsl:value-of select=\"local-name()\"/>\n"
" <xsl:for-each select=\"@*[not(local-name() like 'debug-%')]\">\n"
" <xsl:text> </xsl:text>\n"
" <xsl:value-of select=\"local-name()\"/><xsl:text>=\"</xsl:text>\n"
" <xsl:value-of select=\".\"/><xsl:text>\"</xsl:text></xsl:for-each>\n"
" <xsl:text> /></xsl:text>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:text><</xsl:text>\n"
" <xsl:value-of select=\"local-name()\"/>\n"
" <xsl:for-each select=\"@*[not(local-name() like 'debug-%')]\">\n"
" <xsl:text> </xsl:text>\n"
" <xsl:value-of select=\"local-name()\"/>\n"
" <xsl:text>=\"</xsl:text><xsl:value-of select=\".\"/><xsl:text>\"</xsl:text>\n"
" </xsl:for-each>\n"
" <xsl:if test=\"local-name()='html'\"><xsl:text><?vsp vspx_print_html_attrs (self); ?></xsl:text></xsl:if>\n"
" <xsl:text>></xsl:text>\n"
" <xsl:if test=\"local-name() = 'body' and not descendant::v:page\">\n"
" <xsl:call-template name=\"gen_javascript\" />\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text></</xsl:text><xsl:value-of select=\"local-name()\"/><xsl:text>></xsl:text>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<!-- render method for the page -->\n"
"<xsl:template name=\"page_render_method\">\n"
"create method vc_render_<xsl:value-of select=\"$vspx_local_class_name\" /> (inout control vspx_page) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" --no_c_escapes-\n"
" declare path, params, lines any;\n"
" declare hdr, page_state varchar;\n"
" path := self.vc_event.ve_path;\n"
" params := self.vc_event.ve_params;\n"
" lines := self.vc_event.ve_lines;\n"
" hdr := http_header_get ();\n"
" declare hdr_add varchar;\n"
" hdr_add := 'Cache-Control: no-cache, must-revalidate\\r\\nPragma: no-cache\\r\\nExpires: -1;\\r\\n';\n"
" if (strcasestr (http_request_header (lines, 'User-Agent', NULL, ''), 'MSIE') is not null)\n"
" hdr_add := 'Cache-Control: Public\\r\\nPragma: no-cache\\r\\nExpires: -1;\\r\\n';\n"
" if (hdr is null)\n"
" http_header (hdr_add);\n"
" else if (strcasestr (hdr, 'Cache-Control:') is null)\n"
" {\n"
" hdr := concat (hdr, hdr_add);\n"
" http_header (hdr);\n"
" }\n"
" <!-- comment out these to get all non-set vars in page state -->\n"
" page_state := self.vc_view_state;\n"
" self.vc_view_state := DB.DBA.vspx_do_compact (page_state);\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:if test=\"@xml-preamble = 'yes'\">\n"
" <xsl:text><?xml version=\"1.0\" encoding=\"<?V http_current_charset () ?>\" ?> </xsl:text>\n"
" </xsl:if>\n"
" <xsl:if test=\"@doctype\">\n"
" <xsl:text><!DOCTYPE html PUBLIC \"</xsl:text><xsl:value-of select=\"@doctype\"/>\"<xsl:if test=\"@doctype-system\"> \"<xsl:value-of select=\"@doctype-system\"/>\"</xsl:if><xsl:text>> </xsl:text>\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"/node()\" mode=\"render_all_top\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
"\n"
" if (length (self.sid))\n"
" {\n"
" declare vars any;\n"
" <xsl:for-each select=\".//v:variable[@persist = '1' or @persist = 'session']\">\n"
" connection_set ('<xsl:value-of select=\"@name\" />', self.<xsl:value-of select=\"@name\" />);\n"
" </xsl:for-each>;\n"
" vars := connection_vars ();\n"
" if (connection_is_dirty ())\n"
" {\n"
" update VSPX_SESSION set VS_STATE = serialize (vars) where VS_SID = self.sid and VS_REALM = self.realm;\n"
" }\n"
" }\n"
"\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<!--\n"
" JS generation\n"
";\n",
"-->\n"
"<xsl:template name=\"gen_javascript\">\n"
" <xsl:if test=\"//v:button[@action='return']/v:field\">\n"
" <script type=\"text/javascript\">\n"
" <xsl:for-each select=\"//v:button[@action='return']\">\n"
" function selectRow_<xsl:value-of select=\"@name\"/> (frm_name, <xsl:for-each select=\"v:field\">__<xsl:value-of select=\"@name\"/> <xsl:if test=\"position() < last()\">, </xsl:if></xsl:for-each>)\n"
" {\n"
" if (opener == null)\n"
" return;\n"
" <xsl:for-each select=\"v:field[not boolean(@ref)]\">\n"
" this.<xsl:value-of select=\"@name\"/> = opener.<xsl:value-of select=\"@name\"/>;\n"
" if (<xsl:value-of select=\"@name\"/> != null)\n"
" <xsl:value-of select=\"@name\"/>.value = __<xsl:value-of select=\"@name\"/>;\n"
" </xsl:for-each>\n"
" <xsl:for-each select=\"v:field[boolean(@ref)]\">\n"
" this.<xsl:value-of select=\"@name\"/> = opener.<xsl:value-of select=\"@name\"/>;\n"
" if (<xsl:value-of select=\"@name\"/> != null && frm_name != '')\n"
" <xsl:value-of select=\"@name\"/>.value = document.forms[frm_name].<xsl:value-of select=\"@ref\"/>.value;\n"
" </xsl:for-each>\n"
" opener.focus();\n"
" close();\n"
" }\n"
" </xsl:for-each>\n"
" </script>\n"
" </xsl:if>\n"
"\n"
" <xsl:if test=\"//v:button[@style = 'image'] or //v:button[@style = 'url']\">\n"
" <script type=\"text/javascript\">\n"
" function doPost (frm_name, name)\n"
" {\n"
" var frm = document.forms[frm_name];\n"
" frm.__submit_func.value = '__submit__';\n"
" frm.__submit_func.name = name;\n"
" frm.submit ();\n"
" }\n"
"\n"
" function doPostValue (frm_name, name, value)\n"
" {\n"
" var frm = document.forms[frm_name];\n"
" frm.__submit_func.value = value;\n"
" frm.__submit_func.name = name;\n"
" frm.submit ();\n"
" }\n"
" </script>\n"
" </xsl:if>\n"
"\n"
" <xsl:if test=\"//v:*[@auto-submit='1'] or //v:tab\">\n"
" <script type=\"text/javascript\">\n"
" function doAutoSubmit (frm, ctrl)\n"
" {\n"
" frm.__event_target.value = frm.name;\n"
" frm.__event_initiator.value = ctrl.name;\n"
" frm.submit ();\n"
" }\n"
" </script>\n"
" </xsl:if>\n"
"\n"
" <xsl:if test=\"//v:validator[@runat='client']\">\n"
" <script type=\"text/javascript\">\n"
" <xsl:for-each select=\"//v:*[v:validator[@runat='client']]\">\n"
" function vv_validate_<xsl:value-of select=\"@name\" /> (ctr)\n"
" {\n"
" var err;\n"
" var reg, res;\n"
" err = '';\n"
" <xsl:for-each select=\"v:validator[@runat='client']\">\n"
" <xsl:choose>\n"
" <xsl:when test=\"@test = 'regexp'\">\n"
" reg = new RegExp(\"<xsl:value-of select=\"@regexp\" />\");\n"
" res = reg.exec (ctr.value);\n"
" if (res == null)\n"
" err = '<xsl:apply-templates select=\"@message\" mode=\"escaped_string\"/>';\n"
" </xsl:when>\n"
" <xsl:when test=\"@test = 'length'\">\n"
" if (ctr.value.length < <xsl:value-of select=\"@min\"/> || ctr.value.length > <xsl:value-of select=\"@max\"/>)\n"
" err = '<xsl:apply-templates select=\"@message\" mode=\"escaped_string\"/>';\n"
" </xsl:when>\n"
" <xsl:when test=\"@test = 'value'\">\n"
" if (ctr.value < <xsl:value-of select=\"@min\"/> || ctr.value > <xsl:value-of select=\"@max\"/>)\n"
" err = '<xsl:apply-templates select=\"@message\" mode=\"escaped_string\"/>';\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
" if (err != '')\n"
" {\n"
" ctr.value = ctr.defaultValue;\n"
" alert (err);\n"
" return;\n"
" }\n"
" </xsl:for-each>\n"
" }\n"
" </xsl:for-each>\n"
" </script>\n"
" </xsl:if>\n"
"\n"
" <!--xsl:if test=\"//v:tab\">\n"
" <script type=\"text/javascript\">\n"
" function doSelPost (frm_name)\n"
" {\n"
" var frm = document.forms[frm_name];\n"
" frm.submit ();\n"
" }\n"
" </script>\n"
" </xsl:if-->\n"
"\n"
" <xsl:if test=\"//v:button[@action='simple'][@style = 'image'] or //v:button[@action='simple'][@style = 'url'] or //v:tab or //v:browse-button or //v:button[@action='browse'] or //v:validator[@runat='client']\">\n"
" <xsl:if test=\"//v:page/@no-script-function\">\n"
" <xsl:text/><?vsp if (<xsl:value-of select=\"//v:page/@no-script-function\"/> (self.vc_event.ve_lines)) { ?><xsl:text/>\n"
" </xsl:if>\n"
" <noscript>\n"
" Your browser either does not support JavaScript or it is\n"
" disabled in your browser's settings. Please consult your browser's\n"
" documentation for information about enabling this feature.\n"
" <!--\n"
" Warning: Your browser either does not support JavaScript or it is disabled in your browser's settings. Some controls on this page may not work properly. Please refer to your browser's documentation to find out more about JavaScript.\n"
" -->\n"
" </noscript>\n"
" <xsl:if test=\"//v:page/@no-script-function\">\n"
" <xsl:text><?vsp } ?></xsl:text>\n"
" </xsl:if>\n"
" </xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:page\" mode=\"render_all_top\" priority=\"100\">\n"
" <xsl:if test=\"not descendant::body\">\n"
" <xsl:call-template name=\"gen_javascript\" />\n"
" </xsl:if>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"*[local-name() != '']\" mode=\"render_all_top\" priority=\"10\">\n"
" <xsl:text><</xsl:text>\n"
" <xsl:value-of select=\"local-name()\"/>\n"
" <xsl:for-each select=\"@*[not(local-name() like 'debug-%')]\">\n"
" <xsl:text> </xsl:text><xsl:value-of select=\"local-name()\"/>\n"
" <xsl:text>=\"</xsl:text><xsl:value-of select=\".\"/><xsl:text>\"</xsl:text>\n"
" </xsl:for-each>\n"
" <xsl:if test=\"local-name()='html'\">\n"
" <xsl:text><?vsp vspx_print_html_attrs (self); ?></xsl:text>\n"
" </xsl:if>\n"
" <xsl:text>></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all_top\" />\n"
" <xsl:text></</xsl:text>\n"
" <xsl:value-of select=\"local-name()\"/>\n"
" <xsl:text>></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"node()\" mode=\"render_all_top\" priority=\"0\">\n"
" <xsl:copy>\n"
" <xsl:copy-of select=\"@*[not (local-name() like 'debug-%')]\" />\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all_top\" />\n"
" </xsl:copy>\n"
"</xsl:template>\n"
"\n"
"<!--\n"
" sql statement characters translation\n"
";\n",
"-->\n"
"\n"
"<xsl:template match=\"@*\" mode=\"make_sql_statement\">\n"
" <xsl:value-of select=\"translate (., ':', '')\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"@*\" mode=\"escaped_string\">\n"
" <xsl:value-of select=\"replace (@message, "'", "\\\\'")\" />\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-set//v:form[@type='update']|v:data-set//v:form[@type='simple']\" mode=\"render_method\">\n"
" --no_c_escapes-\n"
" declare form vspx_form;\n"
" form := control;\n"
" form.vc_inside_form := 1;\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-set//v:form\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:data-set\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='browse']\" mode=\"rpt_render\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" if (control is not null)\n"
" control.vc_render ();\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='repeat']\" mode=\"rpt_render\" />\n"
"\n"
"<xsl:template match=\"*\" mode=\"rpt_render\">\n"
" <xsl:apply-templates select=\"*\" mode=\"rpt_render\"/>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='browse']\" mode=\"render_all\" />\n"
"\n"
"<xsl:template match=\"v:template[@type='page-navigator']\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='row'][parent::v:data-set]\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" self.vc_rows_render_<xsl:value-of select=\"@name\" /> (data_set);\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:radio-group\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" control.vc_render ('<xsl:value-of select=\"@name\" />');\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"\n"
"<xsl:template name=\"inside_template\">\n"
" <xsl:param name=\"name_to_remove\"/>\n"
" <xsl:param name=\"set_to_remove\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"name()=$name_to_remove and name()!=''\">\n"
" <xsl:if test=\"$set_to_remove != 'both'\">\n"
" <xsl:if test=\"$set_to_remove != 'top'\">\n"
" <xsl:text><</xsl:text>\n"
" <xsl:value-of select=\"$name_to_remove\"/>\n"
" <xsl:for-each select=\"@*\"><xsl:text> </xsl:text><xsl:value-of select=\"name()\"/>=\"<xsl:value-of select=\".\"/>\"</xsl:for-each>\n"
" <xsl:text>></xsl:text>\n"
" </xsl:if>\n"
" </xsl:if>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:apply-templates select=\".\" mode=\"render_all\"/>\n"
" </xsl:for-each>\n"
" <xsl:if test=\"$set_to_remove != 'both'\">\n"
" <xsl:if test=\"$set_to_remove != 'bottom'\">\n"
" <xsl:text></</xsl:text>\n"
" <xsl:value-of select=\"$name_to_remove\"/>\n"
" <xsl:text>></xsl:text>\n"
" </xsl:if>\n"
" </xsl:if>\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:apply-templates select=\".\" mode=\"render_all\"/>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='page-navigator'][ancestor::v:data-set[@data-source]]\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" />(inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
"<!--ches-->\n"
" declare _ds vspx_data_set;\n"
" _ds := self.<xsl:value-of select=\"ancestor::v:data-set[@data-source]/@name\"/>;\n"
" _ds.ds_data_source.ds_current_pager_idx := _ds.ds_data_source.ds_first_page;\n"
" while(_ds.ds_data_source.ds_current_pager_idx < _ds.ds_data_source.ds_last_page + 1) {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"node()\" mode=\"render_all\" />\n"
" <xsl:text><?vsp </xsl:text>\n"
" _ds.ds_data_source.ds_current_pager_idx := _ds.ds_data_source.ds_current_pager_idx + 1;\n"
" }\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:button[ancestor::v:template[@type='page-navigator']]\" mode=\"render_all\">\n"
" <xsl:text><?vsp </xsl:text>\n"
" {\n"
" <!--ches-->\n"
" declare _idx integer;\n"
" declare _name varchar;\n"
" declare _btn vspx_button;\n"
" declare _evn vspx_event;\n"
" _idx := self.<xsl:value-of select=\"ancestor::v:data-set[@data-source]/@name\"/>.ds_data_source.ds_current_pager_idx;\n"
" _name := sprintf('<xsl:value-of select=\"@name\"/>_%d', _idx);\n"
" _btn := NULL;\n"
" _btn := control.vc_find_control(_name);\n"
" if(_btn is not NULL) {\n"
" <!-- dbg_obj_print(_btn); -->\n"
" _btn.vc_render();\n"
" }\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
"</xsl:template>\n"
"\n"
"\n"
"\n"
" <!--\n"
"render method for repeat template, this control do not contains childs,\n"
"they are childs of data-set. this is to skip one level of traversing\n"
";\n",
"-->\n"
"<xsl:template match=\"v:template[@type='repeat'][ancestor::v:data-set]\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" />(inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare saved vspx_control;\n"
" saved := control;\n"
" declare control vspx_control;\n"
" control := saved.vc_parent;\n"
" declare i, rows_count int;\n"
" declare ds vspx_data_set;\n"
" <!--ds := self.vc_find_control('<xsl:value-of select=\"ancestor::v:data-set/@name\"/>');-->\n"
" ds := control;\n"
" i := 0;\n"
" rows_count := ds.ds_rows_fetched;\n"
" <xsl:variable name=\"name_to_remove\" select=\"@name-to-remove\"/>\n"
" <xsl:variable name=\"set_to_remove\" select=\"@set-to-remove\"/>\n"
" if(rows_count > 0) {\n"
" while(i < rows_count) {\n"
" ds.ds_current_row := ds.ds_rows_cache[i];\n"
" if(ds.ds_data_source is not null) {\n"
" ds.ds_data_source.ds_current_inx := i;\n"
" }\n"
" if (ds.ds_current_row.vc_enabled) {\n"
" if (ds.ds_current_row.te_editable) {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\".//v:template[@type='edit']//v:form[@type='update']\" mode=\"render_all\"/>\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" else {\n"
" declare control vspx_control;\n"
" control := ds.ds_current_row;\n"
" <!-- ds.vc_find_rpt_control (sprintf ('<xsl:value-of select=\".//v:template[@type='browse']/@name\" />$%d', i)); -->\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\"*\" mode=\"rpt_render\"/>\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" }\n"
" i := i + 1;\n"
" }\n"
" if (ds.ds_data_source is not null) {\n"
" ds.ds_data_source.ds_current_inx := -1;\n"
" }\n"
" }\n"
" else\n"
" { <!-- FIXME: all descendant MUST not be used at all -->\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\".//v:template[@type='if-not-exists']\" mode=\"render_all\"/>\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:apply-templates select=\".//v:template[@type='add']//v:form[@type='update']\" mode=\"render_all\"/>\n"
" <xsl:text><?vsp </xsl:text>\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='repeat'][ancestor::v:calendar]\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" />(inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" declare cal vspx_calendar;\n"
" declare i, l int;\n"
" cal := control.vc_parent;\n"
" i := 0; l := length (cal.cal_meta);\n"
" while (i < l)\n"
" {\n"
" declare rep vspx_control;\n"
" rep := control.vc_find_rpt_control (sprintf ('<xsl:value-of select=\".//v:template[@type='browse']/@name\" />$%d', i));\n"
" if (rep is not null)\n"
" rep.vc_render ();\n"
" i := i + 1;\n"
" }\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template[@type='repeat'][ancestor::v:template[@type='result']]\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" />(inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:variable name=\"name_to_remove\" select=\"@name-to-remove\"/>\n"
" <xsl:variable name=\"set_to_remove\" select=\"@set-to-remove\"/>\n"
" declare isql vspx_isql;\n"
" declare inx, maxres, render_head int;\n"
" declare stmt, stat, msg varchar;\n"
" declare h, mtd, dta, qual any;\n"
"\n"
" isql := control.vc_parent.vc_parent;\n"
"\n"
" stmt := isql.isql_current_stmt;\n"
" maxres := isql.isql_maxrows;\n"
" inx := 0;\n"
" stat := '00000'; msg := null;\n"
" if (exists (select 1 from db.dba.sys_users where u_name = isql.isql_user and u_sql_enable = 1))\n"
" {\n"
" if (exists( select 1 from db.dba.sys_users where U_NAME = connection_get ('vspx_user') and\n"
" (U_ID = 0 or U_GROUP = 0) ) )\n"
" __set_user_id (isql.isql_user, 1);\n"
" else\n"
" __set_user_id (isql.isql_user, 1, coalesce (isql.isql_password, ''));\n"
" }\n"
" else\n"
" {\n"
" __set_user_id (connection_get ('vspx_user'), 1);\n"
" }\n"
" set isolation=isql.isql_isolation;\n"
" commit work;\n"
" h := null;\n"
" render_head := 0;\n"
" mtd := isql.isql_current_meta;\n"
"\n"
" qual := coalesce (connection_get ('vspx_isql_qual'), dbname ());\n"
" if (qual <> dbname ())\n"
" set_qualifier (qual);\n"
"\n"
" if (mtd = 0)\n"
" {\n"
" declare mtd1 any;\n"
" exec (stmt, stat, msg, vector (), isql.isql_maxrows, mtd1, dta);\n"
" if (stat <> '00000')\n"
" {\n"
" rollback work;\n"
" }\n"
" mtd := mtd1;\n"
" if (not isarray (dta))\n"
" dta := null;\n"
" isql.isql_current_meta := mtd;\n"
" render_head := 1;\n"
" }\n"
" else if (isarray (mtd) and isarray (isql.isql_res [isql.isql_current_pos]))\n"
" {\n"
" dta := isql.isql_res [isql.isql_current_pos];\n"
" mtd := isql.isql_current_meta;\n"
" }\n"
" else\n"
" {\n"
" exec (stmt, stat, msg, vector (), 0, mtd, dta, h);\n"
" if (stat <> '00000')\n"
" {\n"
" rollback work;\n"
" }\n"
" }\n"
" if (qual <> dbname ())\n"
" connection_set ('vspx_isql_qual', dbname ());\n"
" if (stat <> '00000')\n"
" {\n"
" isql.isql_current_state := vector (stat, msg);\n"
" goto err;\n"
" }\n"
"\n"
" if (h is null and mtd <> 0)\n"
" {\n"
" declare i, l int;\n"
" isql.isql_current_meta := mtd;\n"
" l := length (dta);\n"
" for (i := 0; i < l; i := i + 1)\n"
" {\n"
" isql.isql_res := vector (dta[i]);\n"
" isql.isql_current_row := i;\n"
" <xsl:text>?> </xsl:text>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:call-template name=\"inside_template\">\n"
" <xsl:with-param name=\"name_to_remove\" select=\"$name_to_remove\"/>\n"
" <xsl:with-param name=\"set_to_remove\" select=\"$set_to_remove\"/>\n"
" </xsl:call-template>\n"
" </xsl:for-each>\n"
" <xsl:text><?vsp ;</xsl:text>\n"
" }\n"
" isql.isql_rows_fetched := i;\n"
" goto nores;\n"
" }\n"
"\n"
" if (mtd = 0)\n"
" {\n"
" goto nores;\n"
" }\n"
"\n"
" while (0 = exec_next (h, stat, msg, dta))\n"
" {\n"
" if (stat <> '00000')\n"
" {\n"
" rollback work;\n"
" isql.isql_current_state := vector (stat, msg);\n"
" goto err;\n"
" }\n"
" isql.isql_res := vector (dta);\n"
" isql.isql_current_row := inx;\n"
" <xsl:text>?> </xsl:text>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:call-template name=\"inside_template\">\n"
" <xsl:with-param name=\"name_to_remove\" select=\"$name_to_remove\"/>\n"
" <xsl:with-param name=\"set_to_remove\" select=\"$set_to_remove\"/>\n"
" </xsl:call-template>\n"
" </xsl:for-each>\n"
" <xsl:text><?vsp ;</xsl:text>\n"
" inx := inx + 1;\n"
" if (isql.isql_maxrows > 0 and inx >= isql.isql_maxrows)\n"
" goto fin;\n"
" }\n"
" fin:\n"
" isql.isql_rows_fetched := inx;\n"
" exec_close (h);\n"
" nores:\n"
" commit work;\n"
" err:\n"
" set isolation='committed';\n"
"}\n"
";\n",
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:template\" mode=\"render_method\">\n"
"create method vc_render_<xsl:value-of select=\"@name\" /> (inout control <xsl:value-of select=\"@control-udt\"/>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:variable name=\"name_to_remove\" select=\"@name-to-remove\"/>\n"
" <xsl:variable name=\"set_to_remove\" select=\"@set-to-remove\"/>\n"
" <xsl:choose>\n"
" <xsl:when test=\"@condition\">\n"
" if(<xsl:value-of select=\"@condition \"/>) {\n"
" <xsl:text> ?></xsl:text>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:call-template name=\"inside_template\">\n"
" <xsl:with-param name=\"name_to_remove\" select=\"$name_to_remove\"/>\n"
" <xsl:with-param name=\"set_to_remove\" select=\"$set_to_remove\"/>\n"
" </xsl:call-template>\n"
" </xsl:for-each>\n"
" <xsl:text><?vsp </xsl:text>\n"
" }\n"
" </xsl:when>\n"
" <xsl:otherwise>\n"
" <xsl:text>?> </xsl:text>\n"
" <xsl:for-each select=\"node()|@*\">\n"
" <xsl:call-template name=\"inside_template\">\n"
" <xsl:with-param name=\"name_to_remove\" select=\"$name_to_remove\"/>\n"
" <xsl:with-param name=\"set_to_remove\" select=\"$set_to_remove\"/>\n"
" </xsl:call-template>\n"
" </xsl:for-each>\n"
" <xsl:text><?vsp ;</xsl:text>\n"
" </xsl:otherwise>\n"
" </xsl:choose>\n"
"<xsl:text>}\n"
";</xsl:text>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"v:vscx\" mode=\"render_method\">\n"
" --no_c_escapes-\n"
" control.prologue_render (self.sid, self.realm, self.nonce);\n"
" declare page vspx_page;\n"
" page := control.vc_children[0];\n"
" page.vc_render ();\n"
" control.epilogue_render ();\n"
"</xsl:template>\n"
"\n"
"<!-- SCRIPTS FOR v:page; these can be in any other content except children controls -->\n"
"\n"
"<xsl:template name=\"script_declare\">\n"
"<xsl:if test=\"key($methodkey,@name)\">\n"
"<xsl:text/>method vc_<xsl:value-of select=\"$methodname\" />_<xsl:value-of select=\"$vspx_local_class_name\" /> (ctrl vspx_page <xsl:if test=\"not ($methodkey='before-render')\">, e vspx_event</xsl:if>) returns any,<xsl:text/>\n"
"</xsl:if>\n"
"</xsl:template>\n"
"\n"
"<xsl:template name=\"script_define\">\n"
"<xsl:if test=\"key($methodkey,@name)\">\n"
"create method vc_<xsl:value-of select=\"$methodname\" />_<xsl:value-of select=\"$vspx_local_class_name\" /> (inout control vspx_page <xsl:if test=\"not ($methodkey='before-render')\">, inout e vspx_event</xsl:if>) for <xsl:value-of select=\"$vspx_full_class_name\" />\n"
"{\n"
" <xsl:for-each select=\"key($methodkey,@name)\"><xsl:value-of select=\".\" /></xsl:for-each>\n"
"}\n"
";\n",
"</xsl:if>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\n"
"\n"
,
NULL };
static const char * xslt_define = "xslt_sheet (?, xtree_doc (?, 128, ?, 'LATIN-1', 'x-any', 'BuildStandalone=ENABLE'))";
static query_t *xslt_define_qr;
#define XSLT_DEFINE(name, text1) \
{ \
caddr_t text = NULL;\
static const char *elm;\
int inx, len = 0;\
for (inx = 0; ; inx++) { \
elm = text1[inx];\
if (!elm) break;\
len += (int) strlen (elm);\
}\
text = dk_alloc_box (len + 1, DV_STRING);\
text[0] = 0;\
for (inx = 0; ; inx++) { \
elm = text1[inx];\
if (!elm) break;\
strcat_box_ck (text, elm);\
}\
\
if (!xslt_define_qr) \
xslt_define_qr = sql_compile (xslt_define, bootstrap_cli, NULL, SQLC_DEFAULT); \
if (xslt_define_qr) \
{ \
caddr_t err = NULL; \
err = qr_quick_exec (xslt_define_qr, bootstrap_cli, NULL, NULL, 3, \
":0", name, QRP_STR, ":1", text, QRP_STR, ":2", name, QRP_STR); \
if (err) { \
log_error ("Error executing a server init statement : %s: %s -- %.50s", \
((caddr_t *) err)[QC_ERRNO], ((caddr_t *) err)[QC_ERROR_STRING], \
text); \
dk_free_tree (err); \
} \
local_commit (bootstrap_cli); \
} \
dk_free_box (text);\
}
static const char * xsd_define = "xml_reload_schema_decl (?, ?, 'UTF-8', 'x-any', ?)";
static query_t *xsd_define_qr;
#define XSD_DEFINE(name, text1) \
{ \
caddr_t text = NULL;\
static const char *elm;\
int inx, len = 0;\
for (inx = 0; ; inx++) { \
elm = text1[inx];\
if (!elm) break;\
len += strlen (elm);\
}\
text = dk_alloc_box (len + 1, DV_STRING);\
text[0] = 0;\
for (inx = 0; ; inx++) { \
elm = text1[inx];\
if (!elm) break;\
strcat_box_ck (text, elm);\
}\
\
if (!xsd_define_qr) \
xsd_define_qr = sql_compile (xsd_define, bootstrap_cli, NULL, SQLC_DEFAULT); \
if (xsd_define_qr) \
{ \
caddr_t err = NULL; \
err = qr_quick_exec (xsd_define_qr, bootstrap_cli, NULL, NULL, 3, \
":0", name, QRP_STR, ":1", name, QRP_STR, ":2", text, QRP_STR); \
if (err) { \
log_error ("Error executing a server init statement : %s: %s -- %.50s", \
((caddr_t *) err)[QC_ERRNO], ((caddr_t *) err)[QC_ERROR_STRING], \
text); \
dk_free_tree (err); \
} \
local_commit (bootstrap_cli); \
} \
dk_free_box (text);\
}
static int
sch_proc_def_exists (client_connection_t *cli, const char *proc_name, const int report)
{
query_t *proc = NULL;
char *full_name = sch_full_proc_name (isp_schema(NULL), proc_name,
cli->cli_qualifier, CLI_OWNER (cli));
if (full_name)
proc = sch_proc_def (isp_schema(NULL), full_name);
if (report && proc != NULL)
log_debug ("built-in procedure \"%s\" overruled by the RDBMS", proc_name);
return (proc != NULL);
}
#define DEFINE_PROC(name, proc) \
if (!sch_proc_def_exists (bootstrap_cli, (name), log_proc_overwrite)) \
ddl_std_proc_1 (proc, 0x0, 1)
#define DEFINE_PUBLIC_PROC(name, proc) \
if (!sch_proc_def_exists (bootstrap_cli, (name), log_proc_overwrite)) \
ddl_std_proc_1 (proc, 0x1, 1)
#define DEFINE_OVERWRITE_PROC(name, proc) \
ddl_std_proc_1 (proc, 0x1, 1)
static int
sch_udt_def_exists (client_connection_t *cli, const char *udt_name)
{
sql_class_t *udt = sch_name_to_type (isp_schema (NULL), udt_name);
if (udt && UDT_IS_INSTANTIABLE(udt))
{
return 1;
}
return 0;
}
#define DEFINE_UDT(name, udt) \
if (!sch_udt_def_exists (bootstrap_cli, (name))) \
ddl_ensure_table ("do this always", udt);
void
sqls_define_ws (void)
{
caddr_t saved_qualifier = bootstrap_cli->cli_qualifier;
/* vsp_auth.sql */
DEFINE_PROC ("islwsp", proc0);
DEFINE_PROC ("issep", proc1);
DEFINE_PROC ("skip_lwsp", proc2);
DEFINE_PROC ("skip_sep", proc3);
DEFINE_PROC ("skip_quote", proc4);
DEFINE_PROC ("vsp_auth_next_tok", proc5);
DEFINE_PROC ("vsp_auth_vec_compose", proc6);
DEFINE_PUBLIC_PROC ("vsp_auth_vec", proc7);
DEFINE_PROC ("vsp_ua_skip_lwsp", proc8);
DEFINE_PROC ("vsp_ua_match_hdr", proc9);
DEFINE_PUBLIC_PROC ("vsp_calculate_digest", proc10);
DEFINE_PROC ("vsp_ua_prop_init", proc11);
DEFINE_PROC ("vsp_ua_vec_init", proc12);
DEFINE_PROC ("vsp_ua_get_prop", proc13);
DEFINE_PUBLIC_PROC ("vsp_ua_get_props", proc14);
DEFINE_PROC ("vsp_ua_get_prop_list", proc15);
DEFINE_PROC ("inc", proc16);
DEFINE_PROC ("vsp_ua_prop_tbl", proc17);
DEFINE_PROC ("vsp_ua_id", proc18);
DEFINE_PROC ("vsp_ua_match_hdr_1", proc19);
DEFINE_PROC ("vsp_ua_get_cookie_str", proc20);
DEFINE_PROC ("vsp_ua_next_cookie", proc21);
DEFINE_PUBLIC_PROC ("vsp_ua_set_cookie", proc22);
DEFINE_PROC ("vsp_ua_app_cookie", proc23);
DEFINE_PUBLIC_PROC ("vsp_auth_get", proc24);
DEFINE_PUBLIC_PROC ("vsp_auth_verify_pass", proc25);
DEFINE_PROC ("vsp_ua_next_tok", proc26);
DEFINE_PUBLIC_PROC ("vsp_ua_get_cookie_vec", proc27);
DEFINE_PUBLIC_PROC ("vsp_ua_make_cookie", proc28);
/* soap.sql */
DEFINE_PUBLIC_PROC ("SOAP_CLIENT", proc29);
DEFINE_PUBLIC_PROC ("SOAP_ASYNC_CLIENT", proc30);
DEFINE_PROC ("WSSE_GET_NS_INFO", proc31);
DEFINE_PUBLIC_PROC ("WSSE_OASIS_URI", proc32);
DEFINE_PUBLIC_PROC ("WSSU_OASIS_URI", proc33);
DEFINE_PROC ("SOAP_DEFAULT_XENC_TEMPLATE", proc34);
DEFINE_PROC ("SOAP_CLIENT_WSS", proc35);
DEFINE_PUBLIC_PROC ("wsrp_error", proc36);
DEFINE_PROC ("WS_SOAP_GET_KEYINFO", proc37);
DEFINE_PROC ("WS_SECURITY_CHECK", proc38);
DEFINE_PROC ("WS_SECURITY_ADD", proc39);
DEFINE_PUBLIC_PROC ("WS_SOAP", proc40);
ddl_ensure_table ("DB.DBA.WS_REFERRALS", tbl0);
ddl_ensure_column ("DB.DBA.WS_REFERRALS", "R_STATIC", alter0, 0);
DEFINE_PROC ("DB.DBA.WS_SOAP_RF_HEADER", proc41);
DEFINE_PROC ("DB.DBA.WS_SOAP_RF_MESSAGE", proc42);
DEFINE_PROC ("SOAP_LOAD_SCH", proc43);
DEFINE_PUBLIC_PROC ("DB.DBA.WSDL_SPLIT_NAME", proc44);
ddl_ensure_table ("do this always", other0);
ddl_ensure_table ("do this always", other1);
DEFINE_PROC ("WSDL_IMPORT_TYPES", proc45);
DEFINE_PROC ("EXECUTE_SCRIPT", proc46);
DEFINE_PROC ("WSDL_IMPORT_UDT", proc47);
DEFINE_PUBLIC_PROC ("DB.DBA.XML_RPC_GET_PARAM_NAME", proc48);
DEFINE_PUBLIC_PROC ("DB.DBA.XML_RPC_MAKE_ELT_NAME", proc49);
ddl_ensure_table ("do this always", other2);
ddl_ensure_table ("do this always", other3);
ddl_ensure_table ("do this always", other4);
ddl_ensure_table ("do this always", other5);
DEFINE_PUBLIC_PROC ("DB.DBA.XML_RPC_DATE_CVT", proc50);
ddl_ensure_table ("do this always", other6);
ddl_ensure_table ("do this always", other7);
DEFINE_PROC ("XMLRPC_MAKE_ERROR", proc51);
DEFINE_PUBLIC_PROC ("XMLRPC_SERVER", proc52);
DEFINE_PROC ("XMLRPC2SOAP", proc53);
DEFINE_PROC ("SOAP2XMLRPC", proc54);
DEFINE_PUBLIC_PROC ("XMLRPC_CALL", proc55);
DEFINE_PUBLIC_PROC ("SOAP12_ROUTER", proc56);
DEFINE_PROC ("DB.DBA.SOAP_WS_TRUST_XENC_TEMPLATE", proc57);
ddl_ensure_table ("DB.DBA.SYS_SOAP_UDT_PUB", tbl1);
ddl_std_proc (trig0, 0x0);
ddl_std_proc (trig1, 0x0);
ddl_std_proc (trig2, 0x0);
ddl_std_proc (trig3, 0x0);
DEFINE_PUBLIC_PROC ("GET_XSD_EXTENSION", proc58);
ddl_ensure_table ("do this always", other8);
ddl_ensure_table ("do this always", other9);
DEFINE_PROC ("DB.DBA.WS_MIME_ENV", proc59);
DEFINE_PROC ("DB.DBA.WS_MIME_RESP_C", proc60);
DEFINE_PROC ("DB.DBA.WS_MIME_RESP", proc61);
ddl_ensure_table ("do this always", other10);
ddl_ensure_table ("do this always", other11);
DEFINE_PROC ("vsmx_user_check", proc62);
DEFINE_PUBLIC_PROC ("DB.DBA.SOAP_VSMX", proc63);
DEFINE_PROC ("WSDL_EXPAND", proc64);
DEFINE_PUBLIC_PROC ("DB.DBA.SOAP_WSDL_IMPORT", proc65);
DEFINE_PROC ("FIND_WSDL", proc66);
DEFINE_PROC ("WSDL_GET", proc67);
/* wsrp_ultim.xsl */
XSLT_DEFINE ("http://local.virt/wsrp_ultim", xsl3);
/* wsrp_resp.xsl */
XSLT_DEFINE ("http://local.virt/wsrp_resp", xsl4);
/* wsrp_interm.xsl */
XSLT_DEFINE ("http://local.virt/wsrp_interm", xsl5);
/* wsrp_error.xsl */
XSLT_DEFINE ("http://local.virt/wsrp_error", xsl6);
/* soap_sch.xsl */
XSLT_DEFINE ("http://local.virt/soap_sch", xsl7);
/* soap_import_sch.xsl */
XSLT_DEFINE ("http://local.virt/soap_import_sch", xsl8);
/* wsdl_expand.xsl */
XSLT_DEFINE ("http://local.virt/wsdl_expand", xsl9);
/* wsdl_parts.xsl */
XSLT_DEFINE ("http://local.virt/wsdl_parts", xsl10);
/* wsdl_import.xsl */
XSLT_DEFINE ("http://local.virt/wsdl_import", xsl11);
/* wsdl2rdf.xsl */
XSLT_DEFINE ("http://local.virt/wsdl2rdf", xsl12);
/* xmlrpc_soap.xsl */
XSLT_DEFINE ("http://local.virt/xmlrpc_soap", xsl13);
/* soap_xmlrpc.xsl */
XSLT_DEFINE ("http://local.virt/soap_xmlrpc", xsl14);
/* soap12_router.xsl */
XSLT_DEFINE ("http://local.virt/soap12_router", xsl15);
/* wsrm_ddl.sql */
DEFINE_UDT ("SOAP_CLIENT_REQ", udt0);
DEFINE_UDT ("WSA_CLI", udt1);
ddl_ensure_table ("do this always", other13);
ddl_ensure_table ("DB.DBA.SYS_WSRM_IN_MESSAGE_LOG", tbl2);
ddl_ensure_table ("DB.DBA.SYS_WSRM_IN_SEQUENCES", tbl3);
ddl_std_proc (trig4, 0x0);
ddl_ensure_table ("DB.DBA.SYS_WSRM_OUT_MESSAGE_LOG", tbl4);
ddl_ensure_table ("DB.DBA.SYS_WSRM_OUT_SEQUENCES", tbl5);
ddl_std_proc (trig5, 0x0);
DEFINE_UDT (case_mode == CM_UPPER ? "SOAP_PARAMETER" : "soap_parameter", udt2);
ddl_ensure_table ("do this always", other14);
ddl_ensure_table ("do this always", other15);
ddl_ensure_table ("do this always", other16);
ddl_ensure_table ("do this always", other17);
ddl_ensure_table ("do this always", other18);
ddl_ensure_table ("do this always", other19);
ddl_ensure_table ("do this always", other20);
ddl_ensure_table ("do this always", other21);
ddl_ensure_table ("do this always", other22);
ddl_ensure_table ("do this always", other23);
ddl_ensure_table ("do this always", other24);
ddl_ensure_table ("do this always", other25);
ddl_ensure_table ("do this always", other26);
ddl_ensure_table ("do this always", other27);
ddl_ensure_table ("do this always", other28);
ddl_ensure_table ("do this always", other29);
ddl_ensure_table ("do this always", other30);
ddl_ensure_table ("do this always", other31);
ddl_ensure_table ("do this always", other32);
ddl_ensure_table ("do this always", other33);
ddl_ensure_table ("do this always", other34);
DEFINE_PROC ("WSRM_ENSURE_SCH", proc68);
/* wsrm_xsd.sql */
DEFINE_PROC ("WSRM_WSRM_XSD", proc69);
DEFINE_PROC ("WSRM_WSP_XSD", proc70);
DEFINE_PROC ("WSRM_WSA_XSD", proc71);
DEFINE_PROC ("WSRM_UTILITY_XSD", proc72);
DEFINE_PROC ("WSRM_UTILITY200306_XSD", proc73);
DEFINE_PROC ("WSRM_WSS_XSD", proc74);
DEFINE_PROC ("WSRM_WSS0212_XSD", proc75);
DEFINE_PROC ("WSRM_WSA200403_XSD", proc76);
DEFINE_PROC ("WSRM_OASIS200401WSSUTILITY_XSD", proc77);
DEFINE_PROC ("WSRM_ORABPEL_XSD", proc78);
DEFINE_PROC ("WSRM_WSRM_2005_02_XSD", proc79);
DEFINE_PROC ("WSRM_WSA200408_XSD", proc80);
/* wsrmcli.sql */
DEFINE_UDT (case_mode == CM_UPPER ? "WSRM_CLI" : "wsrm_cli", udt3);
ddl_ensure_table ("do this always", other36);
ddl_ensure_table ("do this always", other37);
ddl_ensure_table ("do this always", other38);
ddl_ensure_table ("do this always", other39);
ddl_ensure_table ("do this always", other40);
ddl_ensure_table ("do this always", other41);
ddl_ensure_table ("do this always", other42);
ddl_ensure_table ("do this always", other43);
ddl_ensure_table ("do this always", other44);
ddl_ensure_table ("do this always", other45);
ddl_ensure_table ("do this always", other46);
DEFINE_PROC ("WSRM_CLIENT_POLICY", proc81);
DEFINE_PROC ("WSRM_CLIENT", proc82);
DEFINE_PROC ("WSRM_CLIENT_ERROR", proc83);
DEFINE_PROC ("WSRM_RESENDER", proc84);
DEFINE_PROC ("WSRM_ACKNOWLEDGEMENT_PROCESS", proc85);
DEFINE_PROC ("WSRM_UPDATE_CLIENT_TABLES", proc86);
DEFINE_PROC ("WSRM_CLIENT_ACKREQUESTED", proc87);
DEFINE_PROC ("WSRM_CLIENT_ACKTERMINATE", proc88);
ddl_ensure_table ("do this always", other47);
DEFINE_PROC ("WSRM_CLIENT_SCHEDULED_TASKS", proc89);
DEFINE_PROC ("WSRM_GET_IDENTIFIER", proc90);
DEFINE_PROC ("WSA_REQ", proc91);
/* wsrmsrv.sql */
DEFINE_PROC ("WSRM_INIT", proc92);
DEFINE_PROC ("WSRMSequence", proc93);
DEFINE_PROC ("WSRMSequenceTerminate", proc94);
DEFINE_PROC ("WSRMAckRequested", proc95);
DEFINE_PROC ("WSRM_ACKNOWLEDGEMENT", proc96);
DEFINE_PROC ("WSRM_SERVER_ERROR", proc97);
DEFINE_PROC ("WSRM_CHECK_POLICY", proc98);
DEFINE_PROC ("WSRM_MAKE_RANGES", proc99);
DEFINE_PROC ("WSRM_ASYNC_ACK_SEND", proc100);
DEFINE_PROC ("WSRM_ASYNC_PROCESS", proc101);
ddl_ensure_table ("do this always", other49);
DEFINE_PROC ("WSRM_SERVER_SCHEDULED_TASKS", proc102);
DEFINE_PROC ("WSRMSequenceAcknowledgement", proc103);
DEFINE_PROC ("WSRMCreateSequence", proc104);
DEFINE_PROC ("TerminateSequence", proc105);
/* wstr_ddl.sql */
DEFINE_UDT ("POLICY_STRUCT", udt4);
ddl_ensure_table ("DB.DBA.WST_SERVER_ISSUER_TOKENS", tbl6);
/* wstrcli.sql */
DEFINE_PROC ("WST_CLI", proc106);
DEFINE_PROC ("WST_GETRST", proc107);
DEFINE_PROC ("WS_TRUST_REQ", proc108);
/* wstrsrv.sql */
DEFINE_PROC ("WS.SOAP.RequestSecurityToken", proc109);
ddl_ensure_table ("do this always", other50);
DEFINE_PROC ("DB.DBA.WS_TRUST_TOKEN_GEN", proc110);
/* wsrmcall.xsl */
XSLT_DEFINE ("http://local.virt/wsrmcall", xsl23);
/* rdf_net.sql */
ddl_ensure_table ("do this always", other51);
ddl_ensure_table ("do this always", other52);
DEFINE_PROC ("rdf_net", proc111);
ddl_ensure_table ("do this always", other53);
DEFINE_PROC ("DB.DBA.HTTP_RDF_NET", proc112);
DEFINE_PROC ("rdf_net_format_mdta", proc113);
DEFINE_PROC ("rdf_net_make_xml", proc114);
DEFINE_PROC ("rdf_net_make_element", proc115);
DEFINE_PROC ("rdf_net_make_struct", proc116);
ddl_ensure_table ("do this always", other54);
/* simile.sql */
bootstrap_cli->cli_qualifier = box_string ("SIMILE");
DEFINE_PROC ("DB.DBA.SIMILE_INIT", proc117);
ddl_ensure_table ("do this always", other56);
ddl_ensure_table ("do this always", other57);
DEFINE_PROC ("simile_iri", proc118);
DEFINE_PROC ("SIMILE.SIMILE.simile", proc119);
DEFINE_PROC ("SIMILE.SIMILE.upload", proc120);
DEFINE_PROC ("SIMILE.SIMILE.create_u", proc121);
DEFINE_PROC ("SIMILE.SIMILE.remove_u", proc122);
DEFINE_PROC ("SIMILE.SIMILE.persist", proc123);
ddl_ensure_table ("do this always", other58);
dk_free_box (bootstrap_cli->cli_qualifier);
bootstrap_cli->cli_qualifier = saved_qualifier;
/* xrd2json.xsl */
XSLT_DEFINE ("http://local.virt/xrd2json", xsl26);
/* http_auth.sql */
DEFINE_PROC ("DB.DBA.HP_AUTH_SQL_USER", proc124);
DEFINE_PROC ("DB.DBA.HP_AUTH_DAV_ADMIN", proc125);
DEFINE_PROC ("DB.DBA.HP_AUTH_DAV_PROTOCOL", proc126);
DEFINE_PROC ("DB.DBA.HP_SES_VARS_STORE", proc127);
ddl_ensure_table ("do this always", other59);
DEFINE_PROC ("WS.WS.VSP_DEFINE", proc128);
ddl_ensure_table ("WS.WS.SESSION", tbl7);
DEFINE_PUBLIC_PROC ("WS.WS.SESSION_SAVE", proc129);
DEFINE_PUBLIC_PROC ("WS.WS.SESSION_TERMINATE", proc130);
DEFINE_PUBLIC_PROC ("WS.WS.DIGEST_AUTH", proc131);
DEFINE_PROC ("DB.DBA.HP_AUTH_SPARQL_USER", proc132);
/* xmla.sql */
DEFINE_UDT (case_mode == CM_UPPER ? "XMLA_DISCOVER" : "xmla_discover", udt5);
ddl_ensure_table ("do this always", other60);
ddl_ensure_table ("do this always", other61);
ddl_ensure_table ("do this always", other62);
ddl_ensure_table ("do this always", other63);
DEFINE_PROC ("xmla_get_property", proc133);
DEFINE_PROC ("xmla_result_xsd", proc134);
DEFINE_PROC ("xmla_session", proc135);
DEFINE_PROC ("xmla_make_codes", proc136);
DEFINE_PROC ("Discover", proc137);
DEFINE_PROC ("Execute", proc138);
DEFINE_PROC ("xmla_not_local_dsn", proc139);
DEFINE_PROC ("xmla_make_meta", proc140);
ddl_ensure_table ("do this always", other64);
ddl_ensure_table ("do this always", other65);
ddl_ensure_table ("do this always", other66);
ddl_ensure_table ("do this always", other67);
ddl_ensure_table ("do this always", other68);
ddl_ensure_table ("do this always", other69);
ddl_ensure_table ("do this always", other70);
DEFINE_PROC ("xmla_make_xsd", proc141);
DEFINE_PROC ("xmla_make_struct", proc142);
DEFINE_PROC ("xmla_make_element", proc143);
ddl_ensure_table ("do this always", other71);
ddl_ensure_table ("do this always", other72);
ddl_ensure_table ("do this always", other73);
ddl_ensure_table ("do this always", other74);
ddl_ensure_table ("do this always", other75);
ddl_ensure_table ("do this always", other76);
DEFINE_PROC ("xmla_get_schs", proc144);
DEFINE_PROC ("xmla_get_props", proc145);
DEFINE_PROC ("xmla_get_dsn_name", proc146);
DEFINE_PROC ("xmla_is_local_service", proc147);
DEFINE_PROC ("xmla_set_props", proc148);
DEFINE_PROC ("xmla_get_enums", proc149);
DEFINE_PROC ("xmla_get_literals", proc150);
DEFINE_PROC ("xmla_service_name", proc151);
DEFINE_PROC ("xmla_get_kwds", proc152);
DEFINE_PROC ("DB.DBA.xmla_vdd_dbschema_tables_rpoc", proc153);
DEFINE_PROC ("DB.DBA.xmla_vdd_dbschema_columns_rpoc", proc154);
ddl_ensure_table ("DB.DBA.XMLA_VDD_DBSCHEMA_COLUMNS", view0);
ddl_ensure_table ("DB.DBA.XMLA_VDD_DBSCHEMA_TABLES", view1);
ddl_ensure_table ("DB.DBA.XMLA_VDD_DBSCHEMA_PROVIDER_TYPES", view2);
DEFINE_PROC ("xmla_vdd_dbschema_provider_types_rpoc", proc155);
DEFINE_PROC ("mxla_fk_pk_check", proc156);
DEFINE_PROC ("mxla_fk_pk_check_local", proc157);
ddl_ensure_table ("DB.DBA.SYS_FOREIGN_KEYS_VIEW", view3);
ddl_ensure_table ("DB.DBA.SYS_PRIMARY_KEYS_VIEW", view4);
DEFINE_PROC ("DB.DBA.XMLA_GET_PK", proc158);
DEFINE_PROC ("DB.DBA.XMLA_GET_FK", proc159);
DEFINE_PROC ("XMLA_USER_INIT", proc160);
ddl_ensure_table ("do this always", other77);
ddl_ensure_table ("do this always", other78);
ddl_ensure_table ("do this always", other79);
ddl_ensure_table ("do this always", other80);
ddl_ensure_table ("do this always", other81);
ddl_ensure_table ("do this always", other82);
ddl_ensure_table ("do this always", other83);
ddl_ensure_table ("do this always", other84);
ddl_ensure_table ("do this always", other85);
ddl_ensure_table ("do this always", other86);
ddl_ensure_table ("do this always", other87);
ddl_ensure_table ("do this always", other88);
ddl_ensure_table ("do this always", other89);
ddl_ensure_table ("do this always", other90);
ddl_ensure_table ("do this always", other91);
ddl_ensure_table ("do this always", other92);
ddl_ensure_table ("do this always", other93);
DEFINE_PROC ("xmla_cursor_stmt_change", proc161);
DEFINE_PROC ("xmla_make_cursors_state", proc162);
DEFINE_PROC ("xmla_make_skip", proc163);
DEFINE_PROC ("xmla_get_version", proc164);
DEFINE_PROC ("xmla_format_mdta", proc165);
DEFINE_PROC ("xmla_get_rows_from_stmt", proc166);
DEFINE_PROC ("xmla_sparql_result", proc167);
/* openxml.sql */
DEFINE_PROC ("DB.DBA.OPENXML_DEFINE", proc168);
/* vspx.sql */
ddl_ensure_table ("DB.DBA.VSPX_SESSION", tbl8);
ddl_ensure_table ("WS.WS.HTTP_SES_TRAP_DISABLE", tbl9);
ddl_std_proc (trig6, 0x0);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_EVENT" : "vspx_event", udt6);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_CONTROL" : "vspx_control", udt7);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_ATTRIBUTE" : "vspx_attribute", udt8);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_PAGE" : "vspx_page", udt9);
ddl_ensure_table ("do this always", other94);
ddl_ensure_table ("do this always", other95);
ddl_ensure_table ("do this always", other96);
ddl_ensure_table ("do this always", other97);
ddl_ensure_table ("do this always", other98);
ddl_ensure_table ("do this always", other99);
ddl_ensure_table ("do this always", other100);
ddl_ensure_table ("do this always", other101);
ddl_ensure_table ("do this always", other102);
ddl_ensure_table ("do this always", other103);
ddl_ensure_table ("do this always", other104);
ddl_ensure_table ("do this always", other105);
ddl_ensure_table ("do this always", other106);
ddl_ensure_table ("do this always", other107);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_ROW_TEMPLATE" : "vspx_row_template", udt10);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_FORM" : "vspx_form", udt11);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_TAB" : "vspx_tab", udt12);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_TEMPLATE" : "vspx_template", udt13);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_UPDATE_FORM" : "vspx_update_form", udt14);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_LOGIN_FORM" : "vspx_login_form", udt15);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_FIELD_VALUE" : "vspx_field_value", udt16);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_FIELD" : "vspx_field", udt17);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_COLUMN" : "vspx_column", udt18);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_UPDATE_FIELD" : "vspx_update_field", udt19);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_ISQL" : "vspx_isql", udt20);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_TEXT" : "vspx_text", udt21);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_TEXTAREA" : "vspx_textarea", udt22);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_LABEL" : "vspx_label", udt23);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_CHECK_BOX" : "vspx_check_box", udt24);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_RADIO_BUTTON" : "vspx_radio_button", udt25);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_RADIO_GROUP" : "vspx_radio_group", udt26);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_URL" : "vspx_url", udt27);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_BUTTON" : "vspx_button", udt28);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_SUBMIT" : "vspx_submit", udt29);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_LOGOUT_BUTTON" : "vspx_logout_button", udt30);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_RETURN_BUTTON" : "vspx_return_button", udt31);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_DELETE_BUTTON" : "vspx_delete_button", udt32);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_CALENDAR" : "vspx_calendar", udt33);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_VALIDATOR" : "vspx_validator", udt34);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_RANGE_VALIDATOR" : "vspx_range_validator", udt35);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_DATA_SET" : "vspx_data_set", udt36);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_DATA_SOURCE" : "vspx_data_source", udt37);
ddl_ensure_table ("do this always", other108);
ddl_ensure_table ("do this always", other109);
ddl_ensure_table ("do this always", other110);
ddl_ensure_table ("do this always", other111);
ddl_ensure_table ("do this always", other112);
ddl_ensure_table ("do this always", other113);
ddl_ensure_table ("do this always", other114);
ddl_ensure_table ("do this always", other115);
ddl_ensure_table ("do this always", other116);
ddl_ensure_table ("do this always", other117);
ddl_ensure_table ("do this always", other118);
ddl_ensure_table ("do this always", other119);
ddl_ensure_table ("do this always", other120);
ddl_ensure_table ("do this always", other121);
ddl_ensure_table ("do this always", other122);
ddl_ensure_table ("do this always", other123);
ddl_ensure_table ("do this always", other124);
ddl_ensure_table ("do this always", other125);
ddl_ensure_table ("do this always", other126);
ddl_ensure_table ("do this always", other127);
ddl_ensure_table ("do this always", other128);
ddl_ensure_table ("do this always", other129);
ddl_ensure_table ("do this always", other130);
ddl_ensure_table ("do this always", other131);
ddl_ensure_table ("do this always", other132);
ddl_ensure_table ("do this always", other133);
ddl_ensure_table ("do this always", other134);
ddl_ensure_table ("do this always", other135);
ddl_ensure_table ("do this always", other136);
ddl_ensure_table ("do this always", other137);
ddl_ensure_table ("do this always", other138);
ddl_ensure_table ("do this always", other139);
ddl_ensure_table ("do this always", other140);
ddl_ensure_table ("do this always", other141);
ddl_ensure_table ("do this always", other142);
ddl_ensure_table ("do this always", other143);
ddl_ensure_table ("do this always", other144);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_DATA_GRID" : "vspx_data_grid", udt38);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_SELECT_LIST" : "vspx_select_list", udt39);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_DATA_LIST" : "vspx_data_list", udt40);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_LOGIN" : "vspx_login", udt41);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_BROWSE_BUTTON" : "vspx_browse_button", udt42);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_TREE" : "vspx_tree", udt43);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_TREE_NODE" : "vspx_tree_node", udt44);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_VSCX" : "vspx_vscx", udt45);
ddl_ensure_table ("do this always", other145);
DEFINE_PUBLIC_PROC ("vspx_state_serialize", proc169);
DEFINE_PUBLIC_PROC ("vspx_state_deserialize", proc170);
ddl_ensure_table ("do this always", other146);
ddl_ensure_table ("do this always", other147);
ddl_ensure_table ("do this always", other148);
ddl_ensure_table ("do this always", other149);
ddl_ensure_table ("do this always", other150);
ddl_ensure_table ("do this always", other151);
ddl_ensure_table ("do this always", other152);
ddl_ensure_table ("do this always", other153);
ddl_ensure_table ("do this always", other154);
ddl_ensure_table ("do this always", other155);
DEFINE_PROC ("vspx_unqualify", proc171);
DEFINE_PROC ("vspx_result_tbl_hdrs", proc172);
DEFINE_PROC ("vspx_result_row_render", proc173);
ddl_ensure_table ("do this always", other156);
ddl_ensure_table ("do this always", other157);
ddl_ensure_table ("do this always", other158);
ddl_ensure_table ("do this always", other159);
ddl_ensure_table ("do this always", other160);
ddl_ensure_table ("do this always", other161);
ddl_ensure_table ("do this always", other162);
ddl_ensure_table ("do this always", other163);
ddl_ensure_table ("do this always", other164);
ddl_ensure_table ("do this always", other165);
ddl_ensure_table ("do this always", other166);
ddl_ensure_table ("do this always", other167);
ddl_ensure_table ("do this always", other168);
ddl_ensure_table ("do this always", other169);
ddl_ensure_table ("do this always", other170);
ddl_ensure_table ("do this always", other171);
ddl_ensure_table ("do this always", other172);
ddl_ensure_table ("do this always", other173);
ddl_ensure_table ("do this always", other174);
ddl_ensure_table ("do this always", other175);
ddl_ensure_table ("do this always", other176);
ddl_ensure_table ("do this always", other177);
ddl_ensure_table ("do this always", other178);
ddl_ensure_table ("do this always", other179);
ddl_ensure_table ("do this always", other180);
ddl_ensure_table ("do this always", other181);
ddl_ensure_table ("do this always", other182);
ddl_ensure_table ("do this always", other183);
ddl_ensure_table ("do this always", other184);
ddl_ensure_table ("do this always", other185);
ddl_ensure_table ("do this always", other186);
ddl_ensure_table ("do this always", other187);
DEFINE_PROC ("vspx_xtext_node", proc174);
ddl_ensure_table ("do this always", other188);
ddl_ensure_table ("do this always", other189);
ddl_ensure_table ("do this always", other190);
ddl_ensure_table ("do this always", other191);
ddl_ensure_table ("do this always", other192);
ddl_ensure_table ("do this always", other193);
ddl_ensure_table ("do this always", other194);
ddl_ensure_table ("do this always", other195);
ddl_ensure_table ("do this always", other196);
ddl_ensure_table ("do this always", other197);
DEFINE_PUBLIC_PROC ("vspx_print_html_attrs", proc175);
ddl_ensure_table ("do this always", other198);
ddl_ensure_table ("do this always", other199);
ddl_ensure_table ("do this always", other200);
ddl_ensure_table ("do this always", other201);
ddl_ensure_table ("do this always", other202);
ddl_ensure_table ("do this always", other203);
ddl_ensure_table ("do this always", other204);
ddl_ensure_table ("do this always", other205);
ddl_ensure_table ("do this always", other206);
ddl_ensure_table ("do this always", other207);
ddl_ensure_table ("do this always", other208);
ddl_ensure_table ("do this always", other209);
ddl_ensure_table ("do this always", other210);
ddl_ensure_table ("do this always", other211);
ddl_ensure_table ("do this always", other212);
DEFINE_PROC ("XMLS_VALUE_OF_SUBTREE", proc176);
ddl_ensure_table ("do this always", other213);
ddl_ensure_table ("do this always", other214);
ddl_ensure_table ("do this always", other215);
ddl_ensure_table ("do this always", other216);
ddl_ensure_table ("do this always", other217);
ddl_ensure_table ("do this always", other218);
ddl_ensure_table ("do this always", other219);
ddl_ensure_table ("do this always", other220);
ddl_ensure_table ("do this always", other221);
ddl_ensure_table ("do this always", other222);
ddl_ensure_table ("do this always", other223);
ddl_ensure_table ("do this always", other224);
ddl_ensure_table ("do this always", other225);
ddl_ensure_table ("do this always", other226);
ddl_ensure_table ("do this always", other227);
ddl_ensure_table ("do this always", other228);
ddl_ensure_table ("do this always", other229);
ddl_ensure_table ("do this always", other230);
ddl_ensure_table ("do this always", other231);
ddl_ensure_table ("do this always", other232);
ddl_ensure_table ("do this always", other233);
ddl_ensure_table ("do this always", other234);
ddl_ensure_table ("do this always", other235);
ddl_ensure_table ("do this always", other236);
ddl_ensure_table ("do this always", other237);
ddl_ensure_table ("do this always", other238);
ddl_ensure_table ("do this always", other239);
ddl_ensure_table ("do this always", other240);
ddl_ensure_table ("do this always", other241);
ddl_ensure_table ("do this always", other242);
ddl_ensure_table ("do this always", other243);
ddl_ensure_table ("do this always", other244);
ddl_ensure_table ("do this always", other245);
ddl_ensure_table ("do this always", other246);
ddl_ensure_table ("do this always", other247);
ddl_ensure_table ("do this always", other248);
ddl_ensure_table ("do this always", other249);
ddl_ensure_table ("do this always", other250);
ddl_ensure_table ("do this always", other251);
ddl_ensure_table ("do this always", other252);
ddl_ensure_table ("do this always", other253);
ddl_ensure_table ("do this always", other254);
ddl_ensure_table ("do this always", other255);
ddl_ensure_table ("do this always", other256);
ddl_ensure_table ("do this always", other257);
ddl_ensure_table ("do this always", other258);
ddl_ensure_table ("do this always", other259);
ddl_ensure_table ("do this always", other260);
ddl_ensure_table ("do this always", other261);
ddl_ensure_table ("do this always", other262);
ddl_ensure_table ("do this always", other263);
ddl_ensure_table ("do this always", other264);
ddl_ensure_table ("do this always", other265);
ddl_ensure_table ("do this always", other266);
ddl_ensure_table ("do this always", other267);
ddl_ensure_table ("do this always", other268);
ddl_ensure_table ("do this always", other269);
ddl_ensure_table ("do this always", other270);
ddl_ensure_table ("do this always", other271);
ddl_ensure_table ("do this always", other272);
ddl_ensure_table ("do this always", other273);
ddl_ensure_table ("do this always", other274);
ddl_ensure_table ("do this always", other275);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_NODE_TEMPLATE" : "vspx_node_template", udt46);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_LEAF_TEMPLATE" : "vspx_leaf_template", udt47);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_HORIZONTAL_TEMPLATE" : "vspx_horizontal_template", udt48);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_XSD_STUB" : "vspx_xsd_stub", udt49);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_XSD_STUB_TOP" : "vspx_xsd_stub_top", udt50);
DEFINE_UDT (case_mode == CM_UPPER ? "VSPX_XSD_STUB_SCRIPT" : "vspx_xsd_stub_script", udt51);
DEFINE_PROC ("vspx_get_compiler_signature", proc177);
DEFINE_PROC ("vspx_make_temp_names", proc178);
DEFINE_PROC ("vspx_make_vspxm", proc179);
DEFINE_PROC ("vspx_make_sql", proc180);
DEFINE_PROC ("vspx_load_sql", proc181);
DEFINE_PROC ("vspx_src_get", proc182);
DEFINE_PROC ("vspx_src_store", proc183);
DEFINE_PROC ("vspx_base_url", proc184);
DEFINE_PROC ("vsxp_src_stat", proc185);
DEFINE_PROC ("vspx_url_stat", proc186);
DEFINE_PROC ("vspx_make_stat_vector", proc187);
DEFINE_PROC ("vspx_check_file_deps", proc188);
DEFINE_PROC ("vspx_get_subclass_name", proc189);
DEFINE_PROC ("vspx_get_class_name", proc190);
DEFINE_PROC ("vspx_get_signature", proc191);
DEFINE_PROC ("vspx_load_code", proc192);
DEFINE_PROC ("vspx_report_debug_log", proc193);
DEFINE_PROC ("vspx_get_user_info", proc194);
DEFINE_PROC ("vspx_dispatch", proc195);
DEFINE_PROC ("vspx_verify_pass", proc196);
DEFINE_PUBLIC_PROC ("vspx_get_cookie_vec", proc197);
DEFINE_PUBLIC_PROC ("vspx_do_compact", proc198);
DEFINE_PUBLIC_PROC ("DB.DBA.VSPX_COLUMNS_META", proc199);
ddl_ensure_table ("do this always", other276);
DEFINE_PUBLIC_PROC ("VSPX_COLUMNS_META_TYPES", proc200);
ddl_ensure_table ("do this always", other277);
DEFINE_PROC ("VSPX_PK_COLUMNS", proc201);
ddl_ensure_table ("do this always", other278);
ddl_ensure_table ("do this always", other279);
ddl_ensure_table ("do this always", other280);
ddl_ensure_table ("do this always", other281);
ddl_ensure_table ("do this always", other282);
ddl_ensure_table ("do this always", other283);
ddl_ensure_table ("do this always", other284);
DEFINE_PUBLIC_PROC ("dbg_vspx_control", proc202);
DEFINE_PUBLIC_PROC ("vspx_uri_compose", proc203);
DEFINE_PUBLIC_PROC ("vspx_uri_add_parameters", proc204);
DEFINE_PUBLIC_PROC ("vspx_xforms_params_parse", proc205);
ddl_ensure_table ("do this always", other285);
DEFINE_PROC ("VSPX_EXPIRE_SESSIONS", proc206);
DEFINE_PROC ("DB.DBA.sys_xpath_localfile_eval", proc207);
DEFINE_PROC ("DB.DBA.sys_save_http_history", proc208);
DEFINE_PROC ("cal_icell", proc209);
ddl_ensure_table ("do this always", other286);
ddl_ensure_table ("do this always", other287);
ddl_ensure_table ("do this always", other288);
ddl_ensure_table ("do this always", other289);
ddl_ensure_table ("do this always", other290);
ddl_ensure_table ("do this always", other291);
ddl_ensure_table ("do this always", other292);
ddl_ensure_table ("do this always", other293);
ddl_ensure_table ("do this always", other294);
ddl_ensure_table ("do this always", other295);
ddl_ensure_table ("do this always", other296);
ddl_ensure_table ("do this always", other297);
ddl_ensure_table ("do this always", other298);
ddl_ensure_table ("do this always", other299);
ddl_ensure_table ("do this always", other300);
ddl_ensure_table ("do this always", other301);
ddl_ensure_table ("do this always", other302);
ddl_ensure_table ("do this always", other303);
ddl_ensure_table ("do this always", other304);
ddl_ensure_table ("do this always", other305);
ddl_ensure_table ("do this always", other306);
ddl_ensure_table ("do this always", other307);
ddl_ensure_table ("do this always", other308);
ddl_ensure_table ("do this always", other309);
ddl_ensure_table ("do this always", other310);
ddl_ensure_table ("do this always", other311);
ddl_ensure_table ("do this always", other312);
ddl_ensure_table ("do this always", other313);
ddl_ensure_table ("do this always", other314);
ddl_ensure_table ("do this always", other315);
ddl_ensure_table ("do this always", other316);
ddl_ensure_table ("do this always", other317);
ddl_ensure_table ("do this always", other318);
ddl_ensure_table ("do this always", other319);
ddl_ensure_table ("do this always", other320);
ddl_ensure_table ("do this always", other321);
ddl_ensure_table ("do this always", other322);
ddl_ensure_table ("do this always", other323);
ddl_ensure_table ("do this always", other324);
ddl_ensure_table ("do this always", other325);
ddl_ensure_table ("DB.DBA.VSPX_CUSTOM_CONTROL", tbl10);
DEFINE_PUBLIC_PROC ("VSPX_CONTROL_EXISTS", proc210);
ddl_ensure_table ("do this always", other326);
DEFINE_PUBLIC_PROC ("VSPX_CUSTOM_CLASS_NAME", proc211);
ddl_ensure_table ("do this always", other327);
DEFINE_PUBLIC_PROC ("VSPX_CLASS_PARSER", proc212);
ddl_ensure_table ("do this always", other328);
ddl_ensure_table ("do this always", other329);
ddl_ensure_table ("do this always", other330);
ddl_ensure_table ("do this always", other331);
ddl_ensure_table ("do this always", other332);
ddl_ensure_table ("do this always", other333);
ddl_ensure_table ("do this always", other334);
DEFINE_PROC ("VSPX_REGISTER_CONTROL", proc213);
DEFINE_PUBLIC_PROC ("vspx_sid_generate", proc214);
DEFINE_PROC ("vspx_label_render", proc215);
DEFINE_PROC ("vspx_url_render", proc216);
DEFINE_PROC ("vspx_url_render_ex", proc217);
DEFINE_PUBLIC_PROC ("VSPX_ONE_CONTROL_UP", proc218);
ddl_ensure_table ("do this always", other335);
ddl_ensure_table ("do this always", other336);
ddl_ensure_table ("do this always", other337);
DEFINE_PROC ("VSPX_USER_LOGIN", proc219);
DEFINE_PROC ("VSPX_SESSION_IS_VALID", proc220);
/* vspx_add_locations.xsl */
XSLT_DEFINE ("http://local.virt/vspx_add_locations", xsl31);
/* vspx_expand.xsl */
XSLT_DEFINE ("http://local.virt/vspx_expand", xsl32);
/* vspx_pre_xsd.xsl */
XSLT_DEFINE ("http://local.virt/vspx_pre_xsd", xsl33);
/* vspx_pre_sql.xsl */
XSLT_DEFINE ("http://local.virt/vspx_pre_sql", xsl34);
/* vspx_log_format.xsl */
XSLT_DEFINE ("http://local.virt/vspx_log_format", xsl35);
/* vspx.xsd */
XSD_DEFINE ("http://local.virt/vspx.xsd", xsd36);
/* vspx.xsl */
XSLT_DEFINE ("http://local.virt/vspx", xsl37);
}
void
sqls_arfw_define_ws (void)
{
caddr_t saved_qualifier = bootstrap_cli->cli_qualifier;
/* soap.sql */
ddl_ensure_table ("do this always", other12);
/* wsrm_ddl.sql */
ddl_ensure_table ("do this always", other35);
/* wsrmsrv.sql */
ddl_ensure_table ("do this always", other48);
/* simile.sql */
bootstrap_cli->cli_qualifier = box_string ("SIMILE");
ddl_ensure_table ("do this always", other55);
dk_free_box (bootstrap_cli->cli_qualifier);
bootstrap_cli->cli_qualifier = saved_qualifier;
}
|