SVG – Learning by Coding

[ xml-xslt-bsp2.svg --> Grafik anzeigen ]

  1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
  2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
  3:   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
  4: <!-- generiert von zufallszahlen.xsl -->
  5: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  6:   <text x="50.00" y="30.00" style="font-size: 24px">Zufallszahlen-Verteilung
  7:    (500 Punkte)</text>
  8:   <polyline style="fill: none; stroke: #F00; stroke-width: 1.2px" points="50.00,213.27
  9:     51.20,62.24 52.40,164.29 53.60,196.94 54.80,188.78 56.00,82.65 57.20,50.00 58.40,123.47
 10:     59.60,123.47 60.80,70.41 62.00,62.24 63.20,82.65 64.40,82.65 65.60,90.82 66.80,160.20
 11:     68.00,50.00 69.20,221.43 70.40,94.90 71.60,86.73 72.80,90.82 74.00,184.69 75.20,139.80
 12:     76.40,201.02 77.60,209.18 78.80,213.27 80.00,221.43 81.20,78.57 82.40,115.31 83.60,139.80
 13:     84.80,58.16 86.00,184.69 87.20,209.18 88.40,94.90 89.60,172.45 90.80,180.61 92.00,225.51
 14:     93.20,74.49 94.40,131.63 95.60,172.45 96.80,217.35 98.00,201.02 99.20,127.55
 15:     100.40,135.71 101.60,160.20 102.80,70.41 104.00,196.94 105.20,103.06 106.40,221.43
 16:     107.60,131.63 108.80,135.71 110.00,62.24 111.20,192.86 112.40,156.12 113.60,156.12
 17:     114.80,103.06 116.00,119.39 117.20,160.20 118.40,78.57 119.60,111.22 120.80,213.27
 18:     122.00,147.96 123.20,50.00 124.40,74.49 125.60,143.88 126.80,123.47 128.00,70.41
 19:     129.20,176.53 130.40,119.39 131.60,143.88 132.80,90.82 134.00,176.53 135.20,78.57
 20:     136.40,164.29 137.60,143.88 138.80,103.06 140.00,241.84 141.20,147.96 142.40,90.82
 21:     143.60,119.39 144.80,66.33 146.00,164.29 147.20,205.10 148.40,160.20 149.60,123.47
 22:     150.80,115.31 152.00,58.16 153.20,225.51 154.40,139.80 155.60,58.16 156.80,74.49
 23:     158.00,188.78 159.20,54.08 160.40,115.31 161.60,172.45 162.80,82.65 164.00,192.86
 24:     165.20,205.10 166.40,172.45 167.60,225.51 168.80,213.27 170.00,127.55 171.20,119.39
 25:     172.40,111.22 173.60,86.73 174.80,50.00 176.00,156.12 177.20,205.10 178.40,172.45
 26:     179.60,147.96 180.80,217.35 182.00,213.27 183.20,123.47 184.40,237.76 185.60,98.98
 27:     186.80,131.63 188.00,160.20 189.20,152.04 190.40,127.55 191.60,70.41 192.80,131.63
 28:     194.00,54.08 195.20,107.14 196.40,127.55 197.60,119.39 198.80,143.88 200.00,94.90
 29:     201.20,139.80 202.40,103.06 203.60,70.41 204.80,58.16 206.00,160.20 207.20,147.96
 30:     208.40,74.49 209.60,225.51 210.80,115.31 212.00,196.94 213.20,111.22 214.40,143.88
 31:     215.60,241.84 216.80,82.65 218.00,221.43 219.20,78.57 220.40,50.00 221.60,131.63
 32:     222.80,90.82 224.00,168.37 225.20,98.98 226.40,86.73 227.60,66.33 228.80,94.90
 33:     230.00,192.86 231.20,164.29 232.40,115.31 233.60,241.84 234.80,123.47 236.00,196.94
 34:     237.20,245.92 238.40,139.80 239.60,54.08 240.80,209.18 242.00,58.16 243.20,241.84
 35:     244.40,196.94 245.60,50.00 246.80,152.04 248.00,62.24 249.20,176.53 250.40,172.45
 36:     251.60,225.51 252.80,233.67 254.00,196.94 255.20,201.02 256.40,241.84 257.60,209.18
 37:     258.80,172.45 260.00,225.51 261.20,70.41 262.40,86.73 263.60,156.12 264.80,180.61
 38:     266.00,188.78 267.20,135.71 268.40,229.59 269.60,86.73 270.80,221.43 272.00,66.33
 39:     273.20,131.63 274.40,147.96 275.60,143.88 276.80,62.24 278.00,98.98 279.20,237.76
 40:     280.40,139.80 281.60,172.45 282.80,103.06 284.00,139.80 285.20,241.84 286.40,119.39
 41:     287.60,168.37 288.80,164.29 290.00,86.73 291.20,90.82 292.40,205.10 293.60,245.92
 42:     294.80,196.94 296.00,184.69 297.20,188.78 298.40,131.63 299.60,156.12 300.80,94.90
 43:     302.00,164.29 303.20,205.10 304.40,164.29 305.60,62.24 306.80,74.49 308.00,147.96
 44:     309.20,176.53 310.40,127.55 311.60,78.57 312.80,152.04 314.00,94.90 315.20,62.24
 45:     316.40,217.35 317.60,111.22 318.80,90.82 320.00,62.24 321.20,229.59 322.40,131.63
 46:     323.60,152.04 324.80,143.88 326.00,225.51 327.20,119.39 328.40,205.10 329.60,135.71
 47:     330.80,180.61 332.00,233.67 333.20,192.86 334.40,233.67 335.60,172.45 336.80,164.29
 48:     338.00,139.80 339.20,160.20 340.40,147.96 341.60,229.59 342.80,152.04 344.00,139.80
 49:     345.20,103.06 346.40,192.86 347.60,209.18 348.80,107.14 350.00,66.33 351.20,58.16
 50:     352.40,62.24 353.60,188.78 354.80,217.35 356.00,143.88 357.20,119.39 358.40,50.00
 51:     359.60,86.73 360.80,237.76 362.00,201.02 363.20,107.14 364.40,147.96 365.60,176.53
 52:     366.80,119.39 368.00,119.39 369.20,205.10 370.40,66.33 371.60,66.33 372.80,225.51
 53:     374.00,74.49 375.20,241.84 376.40,229.59 377.60,205.10 378.80,111.22 380.00,205.10
 54:     381.20,237.76 382.40,66.33 383.60,147.96 384.80,58.16 386.00,152.04 387.20,229.59
 55:     388.40,156.12 389.60,229.59 390.80,135.71 392.00,131.63 393.20,184.69 394.40,50.00
 56:     395.60,237.76 396.80,225.51 398.00,160.20 399.20,156.12 400.40,233.67 401.60,245.92
 57:     402.80,209.18 404.00,66.33 405.20,168.37 406.40,143.88 407.60,127.55 408.80,147.96
 58:     410.00,152.04 411.20,66.33 412.40,103.06 413.60,66.33 414.80,54.08 416.00,86.73
 59:     417.20,217.35 418.40,180.61 419.60,217.35 420.80,192.86 422.00,119.39 423.20,172.45
 60:     424.40,66.33 425.60,74.49 426.80,180.61 428.00,111.22 429.20,115.31 430.40,225.51
 61:     431.60,62.24 432.80,131.63 434.00,94.90 435.20,221.43 436.40,94.90 437.60,90.82
 62:     438.80,209.18 440.00,221.43 441.20,147.96 442.40,123.47 443.60,127.55 444.80,50.00
 63:     446.00,168.37 447.20,172.45 448.40,123.47 449.60,115.31 450.80,147.96 452.00,139.80
 64:     453.20,66.33 454.40,205.10 455.60,201.02 456.80,103.06 458.00,217.35 459.20,107.14
 65:     460.40,192.86 461.60,160.20 462.80,229.59 464.00,156.12 465.20,143.88 466.40,241.84
 66:     467.60,131.63 468.80,245.92 470.00,70.41 471.20,86.73 472.40,139.80 473.60,217.35
 67:     474.80,119.39 476.00,123.47 477.20,205.10 478.40,152.04 479.60,176.53 480.80,62.24
 68:     482.00,184.69 483.20,229.59 484.40,115.31 485.60,135.71 486.80,160.20 488.00,172.45
 69:     489.20,156.12 490.40,156.12 491.60,131.63 492.80,119.39 494.00,172.45 495.20,205.10
 70:     496.40,70.41 497.60,54.08 498.80,209.18 500.00,237.76 501.20,139.80 502.40,127.55
 71:     503.60,221.43 504.80,62.24 506.00,225.51 507.20,213.27 508.40,94.90 509.60,201.02
 72:     510.80,58.16 512.00,135.71 513.20,213.27 514.40,241.84 515.60,221.43 516.80,192.86
 73:     518.00,172.45 519.20,196.94 520.40,143.88 521.60,209.18 522.80,119.39 524.00,111.22
 74:     525.20,160.20 526.40,82.65 527.60,147.96 528.80,209.18 530.00,131.63 531.20,115.31
 75:     532.40,196.94 533.60,225.51 534.80,139.80 536.00,103.06 537.20,86.73 538.40,221.43
 76:     539.60,115.31 540.80,196.94 542.00,147.96 543.20,98.98 544.40,156.12 545.60,192.86
 77:     546.80,94.90 548.00,168.37 549.20,135.71 550.40,233.67 551.60,139.80 552.80,127.55
 78:     554.00,168.37 555.20,143.88 556.40,86.73 557.60,237.76 558.80,229.59 560.00,70.41
 79:     561.20,107.14 562.40,78.57 563.60,152.04 564.80,127.55 566.00,217.35 567.20,172.45
 80:     568.40,176.53 569.60,233.67 570.80,119.39 572.00,180.61 573.20,90.82 574.40,180.61
 81:     575.60,201.02 576.80,111.22 578.00,86.73 579.20,115.31 580.40,233.67 581.60,176.53
 82:     582.80,209.18 584.00,98.98 585.20,86.73 586.40,62.24 587.60,90.82 588.80,123.47
 83:     590.00,225.51 591.20,147.96 592.40,90.82 593.60,54.08 594.80,127.55 596.00,90.82
 84:     597.20,86.73 598.40,225.51 599.60,172.45 600.80,107.14 602.00,74.49 603.20,241.84
 85:     604.40,119.39 605.60,123.47 606.80,188.78 608.00,245.92 609.20,152.04 610.40,192.86
 86:     611.60,127.55 612.80,54.08 614.00,205.10 615.20,107.14 616.40,209.18 617.60,164.29
 87:     618.80,160.20 620.00,213.27 621.20,176.53 622.40,78.57 623.60,168.37 624.80,156.12
 88:     626.00,54.08 627.20,156.12 628.40,160.20 629.60,168.37 630.80,131.63 632.00,209.18
 89:     633.20,184.69 634.40,245.92 635.60,180.61 636.80,241.84 638.00,180.61 639.20,164.29
 90:     640.40,184.69 641.60,196.94 642.80,82.65 644.00,135.71 645.20,107.14 646.40,86.73
 91:     647.60,70.41 648.80,74.49"/>
 92:   <line x1="50.00" x2="650.00" y1="245.92" y2="245.92"/>
 93:   <line x1="50.00" x2="650.00" y1="50.00" y2="50.00"/>
 94:   <text x="655.00" y="250.92">1</text>
 95:   <text x="655.00" y="55.00">49</text>
 96:   <text x="50.00" y="270.00">Diese Grafik wurde aus XML-Daten mittels XSLT erzeugt:</text>
 97:   <g style="font-size: 12px">
 98:   <a xlink:href="zufallszahlen.xml" target="_top">
 99:     <text x="50.00" y="290.00">XML-Dokument</text>
100:   </a>
101:   <a xlink:href="zufallszahlen.xsl" target="_top">
102:     <text x="150.00" y="290.00">XSL-Stylesheet</text>
103:   </a>
104:   <a xlink:href="zufallszahlen.htm" target="_top">
105:     <text x="250.00" y="290.00">PHP-Script zur Datengenerierung</text>
106:   </a>
107:   </g>
108: </svg>

[zum Anfang]