Source

svgwrite / svgwrite / data / full11.py

Full commit
   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
#!/usr/bin/env python
#coding:utf-8
# Author:  mozman --<mozman@gmx.at>
# Purpose: full11 data
# Created: 15.10.2010
# Copyright (C) 2010, Manfred Moitzi
# License: MIT License

from svgwrite.data.types import SVGAttribute, SVGMultiAttribute
from svgwrite.data.types import SVGElement
from svgwrite.data.typechecker import Full11TypeChecker as TypeChecker

empty_list = []

attributes = {
'accent-height': SVGAttribute('accent-height', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'accumulate': SVGAttribute('accumulate', anim=False,
    types=empty_list,
    const=frozenset(['none', 'sum'])),
'additive': SVGAttribute('additive', anim=False,
    types=empty_list,
    const=frozenset(['sum', 'replace'])),
'alignment-baseline': SVGAttribute('alignment-baseline', anim=True,
    types=empty_list,
    const=frozenset(['mathematical', 'before-edge', 'central', 'baseline',
                     'auto', 'hanging', 'ideographic', 'inherit', 'middle',
                     'alphabetic', 'text-before-edge', 'text-after-edge',
                     'after-edge'])),
'alphabetic': SVGAttribute('alphabetic', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'amplitude': SVGAttribute('amplitude', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'arabic-form': SVGAttribute('arabic-form', anim=False,
    types=empty_list,
    const=frozenset(['terminal', 'initial', 'isolated', 'medial'])),
'ascent': SVGAttribute('ascent', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'attributeName': SVGAttribute('attributeName', anim=False,
    types=frozenset(['name']),
    const=empty_list),
'attributeType': SVGAttribute('attributeType', anim=False,
    types=empty_list,
    const=frozenset(['XML', 'auto', 'CSS'])),
'azimuth': SVGAttribute('azimuth', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'baseFrequency': SVGAttribute('baseFrequency', anim=True,
    types=frozenset(['number-optional-number']),
    const=empty_list),
'baseline-shift': SVGAttribute('baseline-shift', anim=True,
    types=frozenset(['percentage', 'length']),
    const=frozenset(['super', 'baseline', 'inherit', 'sub'])),
'baseProfile': SVGAttribute('baseProfile', anim=False,
    types=empty_list,
    const=frozenset(['full', 'tiny', 'basic', 'none'])),
'bbox': SVGAttribute('bbox', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'begin': SVGAttribute('begin', anim=True,
    types=frozenset(['timing-value-list']),
    const=frozenset(['indefinite'])),
'bias': SVGAttribute('bias', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'by': SVGAttribute('by', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'calcMode': SVGAttribute('calcMode', anim=False,
    types=empty_list,
    const=frozenset(['discrete', 'linear', 'paced', 'spline'])),
'cap-height': SVGAttribute('cap-height', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'class': SVGAttribute('class', anim=True,
    types=frozenset(['list-of-name']),
    const=empty_list),
'clip': SVGAttribute('clip', anim=True,
    types=frozenset(['shape']),
    const=frozenset(['auto', 'inherit'])),
'clip-path': SVGAttribute('clip-path', anim=True,
    types=frozenset(['IRI']),
    const=frozenset(['none', 'inherit'])),
'clip-rule': SVGAttribute('clip-rule', anim=True,
    types=empty_list,
    const=frozenset(['nonzero', 'evenodd', 'inherit'])),
'clipPathUnits': SVGAttribute('clipPathUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'color': SVGAttribute('color', anim=True,
    types=frozenset(['color']),
    const=frozenset(['inherit'])),
'color-interpolation': SVGAttribute('color-interpolation', anim=True,
    types=empty_list,
    const=frozenset(['auto', 'sRGB', 'inherit', 'linearRGB'])),
'color-interpolation-filters': SVGAttribute('color-interpolation-filters', anim=True,
    types=empty_list,
    const=frozenset(['auto', 'sRGB', 'inherit', 'linearRGB'])),
'color-profile': SVGAttribute('color-profile', anim=True,
    types=frozenset(['FuncIRI', 'name']),
    const=frozenset(['auto', 'sRGB', 'inherit'])),
'color-rendering': SVGAttribute('color-rendering', anim=True,
    types=empty_list,
    const=frozenset(['auto', 'optimizeQuality', 'optimizeSpeed', 'inherit'])),
'contentScriptType': SVGAttribute('contentScriptType', anim=True,
    types=frozenset(['string']),
    const=empty_list),
'contentStyleType': SVGAttribute('contentStyleType', anim=True,
    types=frozenset(['string']),
    const=empty_list),
'cursor': SVGAttribute('cursor', anim=True,
    types=frozenset(['list-of-FuncIRI']),
    const=frozenset(['sw-resize', 'n-resize', 'help', 'text', 'move', 'auto',
                     'w-resize', 'pointer', 'wait', 's-resize', 'e-resize',
                     'default', 'inherit', 'nw-resize', 'ne-resize',
                     'crosshair', 'se-resize'])),
'cx': SVGAttribute('cx', anim=True,
    types=frozenset(['coordinate']),
    const=empty_list),
'cy': SVGAttribute('cy', anim=True,
    types=frozenset(['coordinate']),
    const=empty_list),
'd': SVGMultiAttribute({
    '* path': SVGAttribute( # '*' means default attribute
        'd', anim=True,
        types=frozenset(['path-data']),
        const=empty_list
        ),
    'glyph missing-glyph': SVGAttribute(
        'd', anim=False,
        types=frozenset(['path-data']),
        const=empty_list
        ),
    }),
'descent': SVGAttribute('descent', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'diffuseConstant': SVGAttribute('diffuseConstant', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'direction': SVGAttribute('direction', anim=False,
    types=empty_list,
    const=frozenset(['ltr', 'inherit', 'rtl'])),
'display': SVGAttribute('display', anim=True,
    types=empty_list,
    const=frozenset(['inline-table', 'table-header-group', 'table-footer-group',
                     'none', 'table-row', 'table-caption', 'table-column',
                     'marker', 'table', 'compact', 'table-row-group', 'run-in',
                     'inherit', 'list-item', 'table-cell', 'inline',
                     'block', 'table-column-group'])),
'divisor': SVGAttribute('divisor', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'dominant-baseline': SVGAttribute('dominant-baseline', anim=True,
    types=empty_list,
    const=frozenset(['mathematical', 'use-script', 'ideographic', 'central',
                     'reset-size', 'auto', 'hanging', 'inherit', 'middle',
                     'alphabetic', 'text-before-edge', 'text-after-edge',
                     'no-change'])),
'dur': SVGAttribute('dur', anim=True,
    types=frozenset(['time']),
    const=frozenset(['media', 'indefinite'])),
'dx': SVGMultiAttribute({
    '* altGlyph text tref tspan': SVGAttribute(
        'dx', anim=True,
        types=frozenset(['list-of-length']),
        const=empty_list),
    'feOffset': SVGAttribute(
        'dx', anim=True,
        types=frozenset(['number']),
        const=empty_list),
    'glyphRef': SVGAttribute(
        'dx', anim=False,
        types=frozenset(['number']),
        const=empty_list),
    }),
'dy': SVGMultiAttribute({
    '* altGlyph text tref tspan': SVGAttribute(
        'dy', anim=True,
        types=frozenset(['list-of-length']),
        const=empty_list),
    'feOffset': SVGAttribute(
        'dy', anim=True,
        types=frozenset(['number']),
        const=empty_list),
    'glyphRef': SVGAttribute(
        'dy', anim=False,
        types=frozenset(['number']),
        const=empty_list),
    }),
'edgeMode': SVGAttribute('edgeMode', anim=True,
    types=empty_list,
    const=frozenset(['wrap', 'duplicate', 'none'])),
'elevation': SVGAttribute('elevation', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'enable-background': SVGAttribute('enable-background', anim=True,
    types=frozenset(['string']),
    const=frozenset(['accummulate', 'new', 'inherit'])),
'end': SVGAttribute('end', anim=False,
    types=frozenset(['timing-value-list']),
    const=frozenset(['indefinite'])),
'exponent': SVGAttribute('exponent', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'externalResourcesRequired': SVGAttribute('externalResourcesRequired', anim=True,
    types=empty_list,
    const=frozenset(['true', 'false'])),
'fill': SVGMultiAttribute({
    '*': SVGAttribute(
        'fill', anim=True,
        types=frozenset(['paint']),
        const=empty_list),
    'set animateMotion animate animateColor animateTransform': SVGAttribute(
        'fill', anim=False,
        types=empty_list,
        const=frozenset(['freeze', 'remove']))
    }),
'fill-opacity': SVGAttribute('fill-opacity', anim=True,
    types=frozenset(['number']),
    const=frozenset(['inherit'])),
'fill-rule': SVGAttribute('fill-rule', anim=True,
    types=empty_list,
    const=frozenset(['nonzero', 'evenodd', 'inherit'])),
'filter': SVGAttribute('filter', anim=True,
    types=frozenset(['FuncIRI']),
    const=frozenset(['none', 'inherit'])),
'filterRes': SVGAttribute('filterRes', anim=True,
    types=frozenset(['number-optional-number']),
    const=empty_list),
'filterUnits': SVGAttribute('filterUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'flood-color': SVGAttribute('flood-color', anim=True,
    types=frozenset(['color', 'icccolor']),
    const=frozenset(['currentColor', 'inherit'])),
'flood-opacity': SVGAttribute('flood-opacity', anim=True,
    types=frozenset(['number']),
    const=frozenset(['inherit'])),
'font': SVGAttribute('font', anim=True,
    types=frozenset(['string']),
    const=empty_list),
'font-family': SVGAttribute('font-family', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'font-size': SVGAttribute('font-size', anim=False,
    types=frozenset(['length']),
    const=frozenset(['inherit'])),
'font-size-adjust': SVGAttribute('font-size-adjust', anim=True,
    types=frozenset(['number']),
    const=frozenset(['none', 'inherit'])),
'font-stretch': SVGAttribute('font-stretch', anim=False,
    types=empty_list,
    const=frozenset(['condensed', 'normal', 'ultra-condensed', 'expanded',
                     'narrower', 'inherit', 'semi-condensed', 'extra-condensed',
                     'ultra-expanded', 'wider', 'semi-expanded', 'extra-expanded'])),
'font-style': SVGAttribute('font-style', anim=False,
    types=empty_list,
    const=frozenset(['oblique', 'inherit', 'italic', 'normal'])),
'font-variant': SVGAttribute('font-variant', anim=False,
    types=empty_list,
    const=frozenset(['small-caps', 'inherit', 'normal'])),
'font-weight': SVGAttribute('font-weight', anim=False,
    types=empty_list,
    const=frozenset(['200', '900', 'bold', 'bolder', 'normal', '300', '700',
                     'inherit', 'lighter', '400', '100', '800', '500', '600'])),
'format': SVGAttribute('format', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'from': SVGAttribute('from', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'fx': SVGAttribute('fx', anim=True,
    types=frozenset(['coordinate']),
    const=empty_list),
'fy': SVGAttribute('fy', anim=True,
    types=frozenset(['coordinate']),
    const=empty_list),
'g1': SVGAttribute('g1', anim=False,
    types=frozenset(['list-of-name']),
    const=empty_list),
'g2': SVGAttribute('g2', anim=False,
    types=frozenset(['list-of-name']),
    const=empty_list),
'glyph-name': SVGAttribute('glyph-name', anim=False,
    types=frozenset(['list-of-name']),
    const=empty_list),
'glyph-orientation-horizontal': SVGAttribute('glyph-orientation-horizontal', anim=True,
    types=frozenset(['angle']),
    const=frozenset(['inherit'])),
'glyph-orientation-vertical': SVGAttribute('glyph-orientation-vertical', anim=True,
    types=frozenset(['angle']),
    const=frozenset(['auto', 'inherit'])),
'glyphRef': SVGAttribute('glyphRef', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'gradientTransform': SVGAttribute('gradientTransform', anim=True,
    types=frozenset(['transform-list']),
    const=empty_list),
'gradientUnits': SVGAttribute('gradientUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'hanging': SVGAttribute('hanging', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'height': SVGAttribute('height', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'horiz-adv-x': SVGAttribute('horiz-adv-x', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'horiz-origin-x': SVGAttribute('horiz-origin-x', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'horiz-origin-y': SVGAttribute('horiz-origin-y', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'id': SVGAttribute('id', anim=False,
    types=frozenset(['name']),
    const=empty_list),
'ideographic': SVGAttribute('ideographic', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'image-rendering': SVGAttribute('image-rendering', anim=True,
    types=empty_list,
    const=frozenset(['auto', 'optimizeQuality', 'optimizeSpeed', 'inherit'])),
'in': SVGAttribute('in', anim=True,
    types=frozenset(['name']),
    const=frozenset(['SourceAlpha', 'SourceGraphic', 'BackgroundAlpha',
                     'BackgroundImage', 'StrokePaint', 'FillPaint'])),
'in2': SVGAttribute('in2', anim=True,
    types=frozenset(['name']),
    const=frozenset(['SourceAlpha', 'SourceGraphic', 'BackgroundAlpha',
                     'BackgroundImage', 'StrokePaint', 'FillPaint'])),
'intercept': SVGAttribute('intercept', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'k': SVGAttribute('k', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'k1': SVGAttribute('k1', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'k2': SVGAttribute('k2', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'k3': SVGAttribute('k3', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'k4': SVGAttribute('k4', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'kernelMatrix': SVGAttribute('kernelMatrix', anim=True,
    types=frozenset(['list-of-number']),
    const=empty_list),
'kernelUnitLength': SVGAttribute('kernelUnitLength', anim=True,
    types=frozenset(['number-optional-number']),
    const=empty_list),
'kerning': SVGAttribute('kerning', anim=True,
    types=frozenset(['length']),
    const=frozenset(['auto', 'inherit'])),
'keyPoints': SVGAttribute('keyPoints', anim=False,
    types=frozenset(['semicolon-list']),
    const=empty_list),
'keySplines': SVGAttribute('keySplines', anim=False,
    types=frozenset(['semicolon-list']),
    const=empty_list),
'keyTimes': SVGAttribute('keyTimes', anim=False,
    types=frozenset(['semicolon-list']),
    const=empty_list),
'lang': SVGAttribute('lang', anim=False,
    types=frozenset(['name']),
    const=empty_list),
'lengthAdjust': SVGAttribute('lengthAdjust', anim=True,
    types=empty_list,
    const=frozenset(['spacingAndGlyphs', 'spacing'])),
'letter-spacing': SVGAttribute('letter-spacing', anim=True,
    types=frozenset(['length']),
    const=frozenset(['inherit', 'normal'])),
'lighting-color': SVGAttribute('lighting-color', anim=True,
    types=frozenset(['color', 'icccolor']),
    const=frozenset(['currentColor', 'inherit'])),
'limitingConeAngle': SVGAttribute('limitingConeAngle', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'local': SVGAttribute('local', anim=True,
    types=frozenset(['string']),
    const=empty_list),
'marker': SVGAttribute('marker', anim=True,
    types=frozenset(['FuncIRI']),
    const=frozenset(['none', 'inherit'])),
'marker-end': SVGAttribute('marker-end', anim=True,
    types=frozenset(['FuncIRI']),
    const=frozenset(['none', 'inherit'])),
'marker-mid': SVGAttribute('marker-mid', anim=True,
    types=frozenset(['FuncIRI']),
    const=frozenset(['none', 'inherit'])),
'marker-start': SVGAttribute('marker-start', anim=True,
    types=frozenset(['FuncIRI']),
    const=frozenset(['none', 'inherit'])),
'markerHeight': SVGAttribute('markerHeight', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'markerUnits': SVGAttribute('markerUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'strokeWidth'])),
'markerWidth': SVGAttribute('markerWidth', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'mask': SVGAttribute('mask', anim=True,
    types=frozenset(['FuncIRI']),
    const=frozenset(['none', 'inherit'])),
'maskContentUnits': SVGAttribute('maskContentUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'maskUnits': SVGAttribute('maskUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'mathematical': SVGAttribute('mathematical', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'max': SVGAttribute('max', anim=False,
    types=frozenset(['time']),
    const=frozenset(['media'])),
'media': SVGAttribute('media', anim=False,
    types=empty_list,
    const=frozenset(['all', 'aureal', 'braille', 'embossed', 'handheld', 'print',
                     'projection', 'screen', 'tty', 'tv'])),
'method': SVGAttribute('method', anim=True,
    types=empty_list,
    const=frozenset(['stretch', 'align'])),
'min': SVGAttribute('min', anim=False,
    types=frozenset(['time']),
    const=frozenset(['media'])),
'mode': SVGAttribute('mode', anim=True,
    types=empty_list,
    const=frozenset(['multiply', 'screen', 'darken', 'lighten', 'normal'])),
'name': SVGMultiAttribute({
    '* font-face-name': SVGAttribute(
        'name', anim=False,
        types=frozenset(['anything']),
        const=empty_list),
    'color-profile': SVGAttribute(
        'name', anim=False,
        types=frozenset(['name']),
        const=empty_list),
    }),
'numOctaves': SVGAttribute('numOctaves', anim=True,
    types=frozenset(['integer']),
    const=empty_list),
'offset': SVGMultiAttribute({
    '*': SVGAttribute(
        'offset', anim=True,
        types=frozenset(['number']),
        const=empty_list),
    'stop': SVGAttribute(
        'offset', anim=True,
        types=frozenset(['number', 'percentage']),
        const=empty_list),
    }),
'onabort': SVGAttribute('onabort', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onactivate': SVGAttribute('onactivate', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onbegin': SVGAttribute('onbegin', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onclick': SVGAttribute('onclick', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onend': SVGAttribute('onend', anim=True,
    types=frozenset(['anything']),
    const=empty_list),
'onerror': SVGAttribute('onerror', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onfocusin': SVGAttribute('onfocusin', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onfocusout': SVGAttribute('onfocusout', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onload': SVGAttribute('onload', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onmousedown': SVGAttribute('onmousedown', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onmousemove': SVGAttribute('onmousemove', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onmouseout': SVGAttribute('onmouseout', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onmouseover': SVGAttribute('onmouseover', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onmouseup': SVGAttribute('onmouseup', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onrepeat': SVGAttribute('onrepeat', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onresize': SVGAttribute('onresize', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onscroll': SVGAttribute('onscroll', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onunload': SVGAttribute('onunload', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'onzoom': SVGAttribute('onzoom', anim=False,
    types=frozenset(['anything']),
    const=empty_list),
'opacity': SVGAttribute('opacity', anim=True,
    types=frozenset(['number']),
    const=frozenset(['inherit'])),
'operator': SVGMultiAttribute({
    '* feComposite': SVGAttribute(
        'operator', anim=True,
        types=empty_list,
        const=frozenset(['xor', 'in', 'over', 'atop', 'arithmetic', 'out'])),
    'feMorphology': SVGAttribute(
        'operator', anim=True,
        types=empty_list,
        const=frozenset(['erode', 'dilate'])),
    }),
'order': SVGAttribute('order', anim=True,
    types=frozenset(['number-optional-number']),
    const=empty_list),
'orient': SVGAttribute('orient', anim=True,
    types=frozenset(['angle']),
    const=frozenset(['auto'])),
'orientation': SVGAttribute('orientation', anim=False,
    types=empty_list,
    const=frozenset(['h', 'v'])),
'origin': SVGAttribute('origin', anim=False,
    types=empty_list,
    const=frozenset(['default'])),
'overflow': SVGAttribute('overflow', anim=True,
    types=empty_list,
    const=frozenset(['visible', 'hidden', 'scroll', 'inherit', 'auto'])),
'overline-position': SVGAttribute('overline-position', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'overline-thickness': SVGAttribute('overline-thickness', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'panose-1': SVGAttribute('panose-1', anim=False,
    types=frozenset(['list-of-integer']),
    const=empty_list),
'path': SVGAttribute('path', anim=False,
    types=frozenset(['path-data']),
    const=empty_list),
'pathLength': SVGAttribute('pathLength', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'patternContentUnits': SVGAttribute('patternContentUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'patternTransform': SVGAttribute('patternTransform', anim=True,
    types=frozenset(['transform-list']),
    const=empty_list),
'patternUnits': SVGAttribute('patternUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'pointer-events': SVGAttribute('pointer-events', anim=True,
    types=empty_list,
    const=frozenset(['all', 'visibleStroke', 'painted', 'none', 'visibleFill',
                     'visible', 'stroke', 'inherit', 'visiblePainted', 'fill'])),
'points': SVGAttribute('points', anim=True,
    types=frozenset(['list-of-number']),
    const=empty_list),
'pointsAtX': SVGAttribute('pointsAtX', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'pointsAtY': SVGAttribute('pointsAtY', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'pointsAtZ': SVGAttribute('pointsAtZ', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'preserveAlpha': SVGAttribute('preserveAlpha', anim=True,
    types=empty_list,
    const=frozenset(['true', 'false'])),
'preserveAspectRatio': SVGAttribute('preserveAspectRatio', anim=True,
    types=frozenset('string'),
    const=empty_list),
'primitiveUnits': SVGAttribute('primitiveUnits', anim=True,
    types=empty_list,
    const=frozenset(['userSpaceOnUse', 'objectBoundingBox'])),
'r': SVGAttribute('r', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'radius': SVGAttribute('radius', anim=True,
    types=frozenset(['number-optional-number']),
    const=empty_list),
'refX': SVGAttribute('refX', anim=True,
    types=frozenset(['coordinate']),
    const=empty_list),
'refY': SVGAttribute('refY', anim=True,
    types=frozenset(['coordinate']),
    const=empty_list),
'rendering-intent': SVGAttribute('rendering-intent', anim=False,
    types=empty_list,
    const=frozenset(['auto', 'saturation', 'perceptual', 'relative-colorimetric',
                     'absolute-colorimetric'])),
'repeatCount': SVGAttribute('repeatCount', anim=False,
    types=frozenset(['number']),
    const=frozenset(['indefinite'])),
'repeatDur': SVGAttribute('repeatDur', anim=False,
    types=frozenset(['time']),
    const=frozenset(['indefinite'])),
'requiredExtensions': SVGAttribute('requiredExtensions', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'requiredFeatures': SVGAttribute('requiredFeatures', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'restart': SVGAttribute('restart', anim=False,
    types=empty_list,
    const=frozenset(['always', 'never', 'whenNotActive'])),
'result': SVGAttribute('result', anim=True,
    types=frozenset(['list-of-name']),
    const=empty_list),
'rotate': SVGMultiAttribute({
    '* altGlyph text tref tspan': SVGAttribute(
        'rotate', anim=True,
        types=frozenset(['list-of-number']),
        const=empty_list),
    'animateMotion': SVGAttribute(
        'rotate', anim=False,
        types=frozenset(['number']),
        const=frozenset(['auto', 'auto-reverse'])),
    }),
'rx': SVGAttribute('rx', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'ry': SVGAttribute('ry', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'scale': SVGAttribute('scale', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'seed': SVGAttribute('seed', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'shape-rendering': SVGAttribute('shape-rendering', anim=True,
    types=empty_list,
    const=frozenset(['auto', 'optimizeSpeed', 'inherit', 'geometricPrecision',
                     'crispEdges'])),
'slope': SVGMultiAttribute({
    '*': SVGAttribute(
        'slope', anim=True,
        types=frozenset(['number']),
        const=empty_list),
    'font-face': SVGAttribute(
        'slope', anim=False,
        types=frozenset(['number']),
        const=empty_list),
    }),
'spacing': SVGAttribute('spacing', anim=True,
    types=empty_list,
    const=frozenset(['auto', 'exact'])),
'specularConstant': SVGAttribute('specularConstant', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'specularExponent': SVGAttribute('specularExponent', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'spreadMethod': SVGAttribute('spreadMethod', anim=True,
    types=empty_list,
    const=frozenset(['reflect', 'repeat', 'pad'])),
'startOffset': SVGAttribute('startOffset', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'stdDeviation': SVGAttribute('stdDeviation', anim=True,
    types=frozenset(['number-optional-number']),
    const=empty_list),
'stemh': SVGAttribute('stemh', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'stemv': SVGAttribute('stemv', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'stitchTiles': SVGAttribute('stitchTiles', anim=True,
    types=empty_list,
    const=frozenset(['noStitch', 'stitch'])),
'stop-color': SVGAttribute('stop-color', anim=True,
    types=frozenset(['color', 'icccolor']),
    const=frozenset(['currentColor', 'inherit'])),
'stop-opacity': SVGAttribute('stop-opacity', anim=True,
    types=frozenset(['number']),
    const=frozenset(['inherit'])),
'strikethrough-position': SVGAttribute('strikethrough-position', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'strikethrough-thickness': SVGAttribute('strikethrough-thickness', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'string': SVGAttribute('string', anim=False,
    types=frozenset('anything'),
    const=empty_list),
'stroke': SVGAttribute('stroke', anim=True,
    types=frozenset(['paint']),
    const=empty_list),
'stroke-dasharray': SVGAttribute('stroke-dasharray', anim=True,
    types=frozenset(['list-of-length']),
    const=frozenset(['none', 'inherit'])),
'stroke-dashoffset': SVGAttribute('stroke-dashoffset', anim=True,
    types=frozenset(['length']),
    const=frozenset(['inherit'])),
'stroke-linecap': SVGAttribute('stroke-linecap', anim=True,
    types=empty_list,
    const=frozenset(['square', 'round', 'inherit', 'butt'])),
'stroke-linejoin': SVGAttribute('stroke-linejoin', anim=True,
    types=empty_list,
    const=frozenset(['bevel', 'miter', 'round', 'inherit'])),
'stroke-miterlimit': SVGAttribute('stroke-miterlimit', anim=True,
    types=frozenset(['number']),
    const=frozenset(['inherit'])),
'stroke-opacity': SVGAttribute('stroke-opacity', anim=True,
    types=frozenset(['number']),
    const=frozenset(['inherit'])),
'stroke-width': SVGAttribute('stroke-width', anim=True,
    types=frozenset(['length']),
    const=frozenset(['inherit'])),
'style': SVGAttribute('style', anim=False,
    types=frozenset('anything'),
    const=empty_list),
'surfaceScale': SVGAttribute('surfaceScale', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'systemLanguage': SVGAttribute('systemLanguage', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'tableValues': SVGAttribute('tableValues', anim=True,
    types=frozenset(['list-of-number']),
    const=empty_list),
'target': SVGAttribute('target', anim=True,
    types=frozenset(['XML-Name']),
    const=frozenset(['_replace', '_self', '_parent', '_top', '_blank'])),
'targetX': SVGAttribute('targetX', anim=True,
    types=frozenset(['integer']),
    const=empty_list),
'targetY': SVGAttribute('targetY', anim=True,
    types=frozenset(['integer']),
    const=empty_list),
'text-anchor': SVGAttribute('text-anchor', anim=True,
    types=empty_list,
    const=frozenset(['start', 'end', 'inherit', 'middle'])),
'text-decoration': SVGAttribute('text-decoration', anim=True,
    types=empty_list,
    const=frozenset(['', 'overline', 'none', 'underline', 'line-through',
                     'inherit', 'blink'])),
'text-rendering': SVGAttribute('text-rendering', anim=True,
    types=empty_list,
    const=frozenset(['auto', 'optimizeSpeed', 'optimizeLegibility',
                     'geometricPrecision', 'inherit'])),
'textLength': SVGAttribute('textLength', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'title': SVGAttribute('title', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'to': SVGAttribute('to', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'transform': SVGAttribute('transform', anim=True,
    types=frozenset(['transform-list']),
    const=empty_list),
'type': SVGMultiAttribute({
    '* feColorMatrix': SVGAttribute(
        'type', anim=True,
        types=empty_list,
        const=frozenset(['matrix', 'saturate', 'hueRotate', 'luminanceToAlpha'])),
    'feTurbulence': SVGAttribute(
        'type', anim=True,
        types=empty_list,
        const=frozenset(['fractalNoise', 'turbulence'])),
    'feFuncR feFuncG feFuncB feFuncA': SVGAttribute(
        'type', anim=True,
        types=empty_list,
        const=frozenset(['identity', 'table', 'discrete', 'linear', 'gamma'])),
    'script style': SVGAttribute(
        'type', anim=False,
        types=frozenset(['content-type']),
        const=empty_list),
    'animateTransform': SVGAttribute(
        'type', anim=False,
        types=empty_list,
        const=frozenset(['translate', 'scale', 'rotate', 'skewX', 'skewY'])),
    }),
'u1': SVGAttribute('u1', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'u2': SVGAttribute('u2', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'underline-position': SVGAttribute('underline-position', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'underline-thickness': SVGAttribute('underline-thickness', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'unicode': SVGAttribute('unicode', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'unicode-bidi': SVGAttribute('unicode-bidi', anim=False,
    types=empty_list,
    const=frozenset(['embed', 'inherit', 'bidi-override', 'normal'])),
'unicode-range': SVGAttribute('unicode-range', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'units-per-em': SVGAttribute('units-per-em', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'v-alphabetic': SVGAttribute('v-alphabetic', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'v-hanging': SVGAttribute('v-hanging', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'v-ideographic': SVGAttribute('v-ideographic', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'v-mathematical': SVGAttribute('v-mathematical', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'values': SVGMultiAttribute({
    '*': SVGAttribute(
        'values', anim=False,
        types=frozenset(['semicolon-list']),
        const=empty_list),
    'feColorMatrix': SVGAttribute(
        'values', anim=True,
        types=frozenset(['list-of-number']),
        const=empty_list),
    }),
'version': SVGAttribute('version', anim=False,
    types=empty_list,
    const=frozenset(['1.1', '1.2'])),
'vert-adv-y': SVGAttribute('vert-adv-y', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'vert-origin-x': SVGAttribute('vert-origin-x', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'vert-origin-y': SVGAttribute('vert-origin-y', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'viewBox': SVGAttribute('viewBox', anim=True,
    types=frozenset(['four-numbers']),
    const=empty_list),
'viewTarget': SVGAttribute('viewTarget', anim=False,
    types=frozenset(['list-of-XML-Name']),
    const=empty_list),
'visibility': SVGAttribute('visibility', anim=True,
    types=empty_list,
    const=frozenset(['visible', 'hidden', 'collapse', 'inherit'])),
'width': SVGAttribute('width', anim=True,
    types=frozenset(['length']),
    const=empty_list),
'widths': SVGAttribute('widths', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'word-spacing': SVGAttribute('word-spacing', anim=True,
    types=frozenset(['length']),
    const=frozenset(['inherit', 'normal'])),
'writing-mode': SVGAttribute('writing-mode', anim=False,
    types=empty_list,
    const=frozenset(['rl-tb', 'lr', 'rl', 'tb-rl', 'lr-tb', 'inherit', 'tb'])),
'x': SVGMultiAttribute({
    '*': SVGAttribute(
        'x', anim=True,
        types=frozenset(['coordinate']),
        const=empty_list),
    'altGlyph text tref tspan': SVGAttribute(
        'x', anim=True,
        types=frozenset(['list-of-coordinate']),
        const=empty_list),
    'fePointLight feSpotLight glyphRef': SVGAttribute(
        'x', anim=True,
        types=frozenset(['number']),
        const=empty_list),
    }),
'x-height': SVGAttribute('x-height', anim=False,
    types=frozenset(['number']),
    const=empty_list),
'x1': SVGAttribute('x1', anim=True,
    types=frozenset(['list-of-coordinate']),
    const=empty_list),
'x2': SVGAttribute('x2', anim=True,
    types=frozenset(['list-of-coordinate']),
    const=empty_list),
'xChannelSelector': SVGAttribute('xChannelSelector', anim=True,
    types=empty_list,
    const=frozenset(['A', 'B', 'R', 'G'])),
'xlink:actuate': SVGMultiAttribute({
    '*': SVGAttribute(
        'xlink:actuate', anim=False,
        types=empty_list,
        const=frozenset(['onLoad'])),
    'a': SVGAttribute(
        'xlink:actuate', anim=False,
        types=empty_list,
        const=frozenset(['onRequest'])),
    }),
'xlink:arcrole': SVGAttribute('xlink:arcrole', anim=False,
    types=frozenset(['IRI']),
    const=empty_list),
'xlink:href': SVGAttribute('xlink:href', anim=False,
    types=frozenset(['IRI']),
    const=empty_list),
'xlink:role': SVGAttribute('xlink:role', anim=False,
    types=frozenset(['IRI']),
    const=empty_list),
'xlink:show': SVGMultiAttribute({
    '*': SVGAttribute(
        'xlink:show', anim=False,
        types=empty_list,
        const=frozenset(['other', 'new', 'replace', 'none', 'embed'])),
    'a': SVGAttribute(
        'xlink:show', anim=False,
        types=empty_list,
        const=frozenset(['new', 'replace'])),
    }),
'xlink:title': SVGAttribute('xlink:title', anim=False,
    types=frozenset(['string']),
    const=empty_list),
'xlink:type': SVGAttribute('xlink:type', anim=False,
    types=empty_list,
    const=frozenset(['simple'])),
'xmlns': SVGAttribute('xmlns', anim=False,
    types=frozenset(['IRI']),
    const=empty_list),
'xmlns:xlink': SVGAttribute('xmlns:xlink', anim=False,
    types=frozenset(['IRI']),
    const=empty_list),
'xmlns:ev': SVGAttribute('xmlns:ev', anim=False,
    types=frozenset(['IRI']),
    const=empty_list),
'xml:base': SVGAttribute('xml:base', anim=False,
    types=frozenset(['IRI']),
    const=empty_list),
'xml:lang': SVGAttribute('xml:lang', anim=False,
    types=frozenset(['name']),
    const=empty_list),
'xml:space': SVGAttribute('xml:space', anim=False,
    types=empty_list,
    const=frozenset(['default', 'preserve'])),
'y': SVGMultiAttribute({
    '*': SVGAttribute(
        'y', anim=True,
        types=frozenset(['coordinate']),
        const=empty_list),
    'altGlyph text tref tspan': SVGAttribute(
        'y', anim=True,
        types=frozenset(['list-of-coordinate']),
        const=empty_list),
    'fePointLight feSpotLight glyphRef': SVGAttribute(
        'y', anim=True,
        types=frozenset(['number']),
        const=empty_list),
    }),
'y1': SVGAttribute('y1', anim=True,
    types=frozenset(['list-of-coordinate']),
    const=empty_list),
'y2': SVGAttribute('y2', anim=True,
    types=frozenset(['list-of-coordinate']),
    const=empty_list),
'yChannelSelector': SVGAttribute('yChannelSelector', anim=True,
    types=empty_list,
    const=frozenset(['A', 'B', 'R', 'G'])),
'z': SVGAttribute('z', anim=True,
    types=frozenset(['number']),
    const=empty_list),
'zoomAndPan': SVGAttribute('zoomAndPan', anim=False,
    types=empty_list,
    const=frozenset(['disable', 'magnify'])),
}

presentation_attributes = frozenset([ "alignment-baseline", "baseline-shift",
    "clip", "clip-path", "clip-rule", "color", "color-interpolation",
    "color-interpolation-filters", "color-profile", "color-rendering", "cursor",
    "direction", "display", "dominant-baseline", "enable-background",
    "fill", "fill-opacity", "fill-rule", "filter", "flood-color",
    "flood-opacity", "font-family", "font-size", "font-size-adjust",
    "font-stretch", "font-style", "font-variant", "font-weight",
    "glyph-orientation-horizontal", "glyph-orientation-vertical",
    "image-rendering", "kerning", "letter-spacing", "lighting-color", "marker",
    "marker-end", "marker-mid", "marker-start", "mask", "opacity",
    "overflow", "pointer-events", "shape-rendering", "stop-color",
    "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset",
    "stroke-linecap", "stroke-linejoin", "stroke-miterlimit",
    "stroke-opacity", "stroke-width", "text-anchor", "text-decoration",
    "text-rendering", "unicode-bidi", "visibility", "word-spacing",
    "writing-mode"])

elements = {
    'a': SVGElement('a',
    attributes=frozenset(['xlink:title', 'xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'xlink:href', 'systemLanguage', 'onmouseover', 'xlink:type', 'externalResourcesRequired', 'id', 'xlink:actuate', 'onload', 'style', 'xlink:show', 'target', 'onactivate', 'nmousedown', 'transform', 'class', 'xlink:role', 'requiredFeatures', 'xml:lang', 'onmousemove', 'xmlns:xlink', 'onclick', 'xlink:arcrole', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'altGlyph': SVGElement('altGlyph',
    attributes=frozenset(['requiredExtensions', 'onfocusout', 'xml:space', 'xlink:href', 'id', 'onload', 'style', 'nmousedown', 'onmousemove', 'onclick', 'xlink:arcrole', 'onfocusin', 'xml:base', 'onmouseup', 'onmouseout', 'format', 'xlink:title', 'systemLanguage', 'onmouseover', 'dx', 'dy', 'xlink:type', 'externalResourcesRequired', 'class', 'xlink:actuate', 'xlink:show', 'onactivate', 'glyphRef', 'xlink:role', 'requiredFeatures', 'xml:lang', 'y', 'x', 'rotate']),
    properties=presentation_attributes,
    children=empty_list),

    'altGlyphDef': SVGElement('altGlyphDef',
    attributes=frozenset(['xml:space', 'xml:lang', 'xml:base', 'id']),
    properties=empty_list,
    children=frozenset(['*'])),

    'altGlyphItem': SVGElement('altGlyphItem',
    attributes=frozenset(['xml:space', 'xml:lang', 'xml:base', 'id']),
    properties=empty_list,
    children=frozenset(['*'])),

    'animate': SVGElement('animate',
    attributes=frozenset(['requiredExtensions', 'from', 'repeatCount', 'xml:space', 'xlink:href', 'xlink:type', 'attributeType', 'repeatDur', 'id', 'fill', 'onload', 'additive', 'calcMode', 'min', 'keySplines', 'to', 'dur', 'xlink:arcrole', 'onend', 'begin', 'xml:base', 'max', 'xlink:title', 'attributeName', 'onbegin', 'systemLanguage', 'accumulate', 'end', 'externalResourcesRequired', 'by', 'restart', 'xlink:actuate', 'xlink:show', 'xlink:role', 'requiredFeatures', 'xml:lang', 'values', 'keyTimes', 'onrepeat']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'animateColor': SVGElement('animateColor',
    attributes=frozenset(['requiredExtensions', 'from', 'repeatCount', 'xml:space', 'xlink:href', 'xlink:type', 'attributeType', 'repeatDur', 'id', 'fill', 'onload', 'additive', 'calcMode', 'min', 'keySplines', 'to', 'dur', 'xlink:arcrole', 'onend', 'begin', 'xml:base', 'max', 'xlink:title', 'attributeName', 'onbegin', 'systemLanguage', 'accumulate', 'end', 'externalResourcesRequired', 'by', 'restart', 'xlink:actuate', 'xlink:show', 'xlink:role', 'requiredFeatures', 'xml:lang', 'values', 'keyTimes', 'onrepeat']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'animateMotion': SVGElement('animateMotion',
    attributes=frozenset(['origin', 'requiredExtensions', 'from', 'repeatCount', 'xml:space', 'xlink:href', 'xlink:type', 'repeatDur', 'id', 'fill', 'onload', 'additive', 'calcMode', 'min', 'keySplines', 'to', 'dur', 'xlink:arcrole', 'onend', 'begin', 'xlink:title', 'xml:base', 'max', 'end', 'keyPoints', 'onbegin', 'systemLanguage', 'accumulate', 'path', 'externalResourcesRequired', 'by', 'restart', 'xlink:actuate', 'xlink:show', 'xlink:role', 'requiredFeatures', 'xml:lang', 'values', 'keyTimes', 'onrepeat', 'rotate']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'mpath', 'title'])),

    'animateTransform': SVGElement('animateTransform',
    attributes=frozenset(['requiredExtensions', 'from', 'repeatCount', 'xml:space', 'xlink:href', 'xlink:type', 'attributeType', 'repeatDur', 'id', 'fill', 'onload', 'additive', 'calcMode', 'min', 'keySplines', 'to', 'dur', 'xlink:arcrole', 'type', 'onend', 'begin', 'xml:base', 'max', 'xlink:title', 'attributeName', 'onbegin', 'systemLanguage', 'accumulate', 'end', 'externalResourcesRequired', 'by', 'restart', 'xlink:actuate', 'xlink:show', 'xlink:role', 'requiredFeatures', 'xml:lang', 'values', 'keyTimes', 'onrepeat']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'circle': SVGElement('circle',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'cy', 'cx', 'onmouseover', 'externalResourcesRequired', 'id', 'onload', 'style', 'onactivate', 'nmousedown', 'transform', 'class', 'requiredFeatures', 'r', 'onmousemove', 'onclick', 'xml:lang', 'onfocusin', 'systemLanguage']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'metadata', 'desc'])),

    'clipPath': SVGElement('clipPath',
    attributes=frozenset(['clipPathUnits', 'style', 'xml:base', 'requiredExtensions', 'xml:space', 'transform', 'id', 'requiredFeatures', 'xml:lang', 'externalResourcesRequired', 'class', 'systemLanguage']),
    properties=presentation_attributes,
    children=frozenset(['set', 'animate', 'text', 'use', 'animateColor', 'polyline', 'path', 'line', 'ellipse', 'rect', 'desc', 'animateMotion', 'polygon', 'title', 'animateTransform', 'circle', 'metadata'])),

    'color-profile': SVGElement('color-profile',
    attributes=frozenset(['xlink:actuate', 'xlink:show', 'xml:base', 'name', 'rendering-intent', 'xml:space', 'xlink:href', 'xlink:role', 'xml:lang', 'xlink:type', 'xlink:title', 'xlink:arcrole', 'local', 'id']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'cursor': SVGElement('cursor',
    attributes=frozenset(['xlink:title', 'xml:base', 'requiredExtensions', 'xml:space', 'xlink:href', 'systemLanguage', 'xlink:type', 'externalResourcesRequired', 'id', 'xlink:actuate', 'xlink:show', 'xlink:role', 'requiredFeatures', 'xml:lang', 'y', 'x', 'xlink:arcrole']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'defs': SVGElement('defs',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'class', 'onload', 'style', 'onactivate', 'nmousedown', 'transform', 'id', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'desc': SVGElement('desc',
    attributes=frozenset(['style', 'xml:lang', 'xml:base', 'xml:space', 'class', 'id']),
    properties=empty_list,
    children=frozenset(['*'])),

    'ellipse': SVGElement('ellipse',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'ry', 'cy', 'cx', 'onmouseover', 'externalResourcesRequired', 'id', 'onload', 'style', 'onactivate', 'nmousedown', 'rx', 'transform', 'class', 'requiredFeatures', 'systemLanguage', 'onmousemove', 'onclick', 'xml:lang', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'desc', 'metadata'])),

    'feBlend': SVGElement('feBlend',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'in2', 'height', 'width', 'xml:lang', 'id', 'result', 'in', 'y', 'x', 'class', 'mode']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feColorMatrix': SVGElement('feColorMatrix',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'id', 'height', 'width', 'xml:lang', 'values', 'result', 'in', 'y', 'x', 'type', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feComponentTransfer': SVGElement('feComponentTransfer',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'height', 'width', 'xml:lang', 'id', 'result', 'in', 'y', 'x', 'class']),
    properties=presentation_attributes,
    children=frozenset(['feFuncA', 'feFuncR', 'feFuncB', 'feFuncG'])),

    'feComposite': SVGElement('feComposite',
    attributes=frozenset(['xml:base', 'xml:space', 'in2', 'height', 'result', 'in', 'operator', 'class', 'style', 'width', 'id', 'k3', 'k2', 'k1', 'xml:lang', 'k4', 'y', 'x']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feConvolveMatrix': SVGElement('feConvolveMatrix',
    attributes=frozenset(['xml:base', 'xml:space', 'kernelUnitLength', 'edgeMode', 'height', 'bias', 'result', 'in', 'preserveAlpha', 'id', 'style', 'divisor', 'kernelMatrix', 'width', 'xml:lang', 'targetX', 'targetY', 'y', 'x', 'class2', 'order']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feDiffuseLighting': SVGElement('feDiffuseLighting',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'diffuseConstant', 'height', 'kernelUnitLength', 'width', 'xml:lang', 'id', 'result', 'in', 'y', 'x', 'class', 'surfaceScale']),
    properties=presentation_attributes,
    children=frozenset(['fePointLight', 'feSpotLight', 'title', 'metadata', 'feDistantLight', 'desc'])),

    'feDisplacementMap': SVGElement('feDisplacementMap',
    attributes=frozenset(['xml:base', 'xml:space', 'yChannelSelector', 'in2', 'height', 'result', 'in', 'class', 'style', 'scale', 'id', 'width', 'xml:lang', 'xChannelSelector', 'y', 'x']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feDistantLight': SVGElement('feDistantLight',
    attributes=frozenset(['xml:lang', 'elevation', 'azimuth', 'xml:base', 'xml:space', 'id']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feFlood': SVGElement('feFlood',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'height', 'width', 'xml:lang', 'id', 'result', 'y', 'x', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set', 'animateColor'])),

    'feFuncA': SVGElement('feFuncA',
    attributes=frozenset(['slope', 'xml:base', 'tableValues', 'xml:space', 'xml:lang', 'intercept', 'amplitude', 'offset', 'type', 'id', 'exponent']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feFuncB': SVGElement('feFuncB',
    attributes=frozenset(['slope', 'xml:base', 'tableValues', 'xml:space', 'xml:lang', 'intercept', 'amplitude', 'offset', 'type', 'id', 'exponent']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feFuncG': SVGElement('feFuncG',
    attributes=frozenset(['slope', 'xml:base', 'tableValues', 'xml:space', 'xml:lang', 'intercept', 'amplitude', 'offset', 'type', 'id', 'exponent']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feFuncR': SVGElement('feFuncR',
    attributes=frozenset(['slope', 'xml:base', 'tableValues', 'xml:space', 'xml:lang', 'intercept', 'amplitude', 'offset', 'type', 'id', 'exponent']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feGaussianBlur': SVGElement('feGaussianBlur',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'height', 'width', 'xml:lang', 'id', 'result', 'in', 'y', 'x', 'stdDeviation', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feImage': SVGElement('feImage',
    attributes=frozenset(['xlink:title', 'xml:base', 'xml:space', 'xlink:href', 'height', 'result', 'xlink:type', 'externalResourcesRequired', 'preserveAsectRatio', 'class', 'xlink:actuate', 'style', 'xlink:show', 'id', 'xlink:role', 'width', 'xml:lang', 'y', 'x', 'xlink:arcrole']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set', 'animateColor'])),

    'feMerge': SVGElement('feMerge',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'height', 'width', 'xml:lang', 'id', 'result', 'y', 'x', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set', 'feMergeNode'])),

    'feMergeNode': SVGElement('feMergeNode',
    attributes=frozenset(['xml:space', 'xml:lang', 'xml:base', 'id', 'in']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feMorphology': SVGElement('feMorphology',
    attributes=frozenset(['style', 'xml:base', 'y', 'xml:space', 'id', 'height', 'width', 'xml:lang', 'radius', 'result', 'in', 'operator', 'x', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feOffset': SVGElement('feOffset',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'in', 'height', 'width', 'xml:lang', 'id', 'result', 'dx', 'dy', 'y', 'x', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'fePointLight': SVGElement('fePointLight',
    attributes=frozenset(['xml:lang', 'xml:base', 'y', 'x', 'xml:space', 'z', 'id']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feSpecularLighting': SVGElement('feSpecularLighting',
    attributes=frozenset(['specularConstant', 'xml:base', 'xml:space', 'kernelUnitLength', 'height', 'result', 'in', 'class', 'style', 'id', 'width', 'xml:lang', 'specularExponent', 'y', 'x', 'surfaceScale']),
    properties=presentation_attributes,
    children=frozenset(['fePointLight', 'feSpotLight', 'title', 'metadata', 'feDistantLight', 'desc'])),

    'feSpotLight': SVGElement('feSpotLight',
    attributes=frozenset(['pointsAtX', 'xml:base', 'xml:space', 'limitingConeAngle', 'xml:lang', 'specularExponent', 'pointsAtZ', 'y', 'x', 'pointsAtY', 'z', 'id']),
    properties=empty_list,
    children=frozenset(['animate', 'set'])),

    'feTile': SVGElement('feTile',
    attributes=frozenset(['style', 'xml:base', 'xml:space', 'height', 'width', 'xml:lang', 'id', 'result', 'in', 'y', 'x', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set'])),

    'feTurbulence': SVGElement('feTurbulence',
    attributes=frozenset(['xml:base', 'baseFrequency', 'xml:space', 'stitchTiles', 'height', 'width', 'xml:lang', 'id', 'result', 'x', 'y', 'numOctaves', 'type', 'seed']),
    properties=presentation_attributes,
    children=empty_list),

    'filter': SVGElement('filter',
    attributes=frozenset(['xlink:title', 'xml:base', 'xml:space', 'xlink:href', 'height', 'xlink:type', 'externalResourcesRequired', 'class', 'xlink:actuate', 'style', 'xlink:show', 'filterRes', 'primitiveUnits', 'id', 'xlink:role', 'width', 'xml:lang', 'y', 'x', 'xlink:arcrole', 'filterUnits']),
    properties=presentation_attributes,
    children=frozenset(['set', 'animate', 'metadata', 'desc', 'feBlend', 'feColorMatrix', 'feComponentTransfer',
                               'feComposite', 'feConvolveMatrix', 'feDiffuseLighting',
                               'feDisplacementMap', 'feFlood', 'feGaussianBlur',
                               'feImage', 'feMerge', 'feMorphology', 'feOffset',
                               'feSpecularLighting', 'feTile', 'feTurbulence'])),
    'font': SVGElement('font',
    attributes=frozenset(['xml:space', 'id', 'xml:lang', 'xml:base', 'class', 'style', 'externalResourcesRequired', 'horiz-origin-x', 'horiz-origin-y', 'horiz-adv-x', 'vert-origin-x', 'vert-origin-y', 'vert-adv-y']),
    properties=presentation_attributes,
    children=frozenset(['title', 'metadata', 'missing-glyph', 'font-face', 'vkern', 'hkern', 'glyph', 'desc'])),

    'font-face': SVGElement('font-face',
    attributes=frozenset(['mathematical', 'slope', 'font-size', 'xml:space', 'v-hanging', 'hanging', 'overline-thickness', 'ascent', 'id', 'strikethrough-position', 'underline-position', 'descent', 'cap-height', 'units-per-em', 'font-style', 'unicode-range', 'font-stretch', 'font-variant', 'x-height', 'font-weight', 'xml:base', 'panose-1', 'strikethrough-thickness', 'stemh', 'v-alphabetic', 'stemv', 'bbox', 'underline-thickness', 'font-family', 'v-mathematical', 'v-ideographic', 'ideographic', 'overline-position', 'widths', 'xml:lang', 'accent-height', 'alphabetic']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'font-face-src', 'title'])),

    'font-face-format': SVGElement('font-face-format',
    attributes=frozenset(['xml:space', 'xml:lang', 'xml:base', 'id']),
    properties=empty_list,
    children=empty_list),

    'font-face-name': SVGElement('font-face-name',
    attributes=frozenset(['xml:space', 'xml:lang', 'xml:base', 'id', 'name']),
    properties=empty_list,
    children=empty_list),

    'font-face-uri': SVGElement('font-face-uri',
    attributes=frozenset(['xlink:actuate', 'xlink:show', 'xml:base', 'xml:space', 'xlink:href', 'xlink:role', 'xml:lang', 'xlink:type', 'xlink:title', 'xlink:arcrole', 'id']),
    properties=empty_list,
    children=frozenset(['font-face-format'])),

    'foreignObject': SVGElement('foreignObject',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'height', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'id', 'onload', 'style', 'onactivate', 'nmousedown', 'transform', 'class', 'width', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'y', 'x', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['*'])),

    'g': SVGElement('g',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'class', 'onload', 'style', 'onactivate', 'nmousedown', 'transform', 'id', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'glyph': SVGElement('glyph',
    attributes=frozenset(['xml:base', 'xml:space', 'id', 'xml:lang', 'class', 'style','d','horiz-adv-x', 'vert-origin-x', 'vert-origin-y', 'vert-adv-y', 'unicode', 'glyph-name', 'orientation', 'arabic-form', 'lang']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'glyphRef': SVGElement('glyphRef',
    attributes=frozenset(['xlink:title', 'xml:base', 'format', 'xml:space', 'xlink:href', 'dx', 'dy', 'xlink:type', 'class', 'xlink:actuate', 'style', 'xlink:show', 'id', 'xlink:role', 'xml:lang', 'y', 'x', 'xlink:arcrole', 'glyphRef']),
    properties=presentation_attributes,
    children=empty_list),

    'hkern': SVGElement('hkern',
    attributes=frozenset(['xml:base', 'g2', 'g1', 'xml:space', 'u1', 'u2', 'xml:lang', 'id', 'k']),
    properties=empty_list,
    children=empty_list),

    'image': SVGElement('image',
    attributes=frozenset(['requiredExtensions', 'onfocusout', 'xml:space', 'xlink:href', 'height', 'id', 'onload', 'style', 'nmousedown', 'transform', 'width', 'onmousemove', 'onclick', 'xlink:arcrole', 'onfocusin', 'xml:base', 'onmouseup', 'onmouseout', 'xlink:title', 'systemLanguage', 'onmouseover', 'xlink:type', 'externalResourcesRequired', 'class', 'xlink:actuate', 'xlink:show', 'onactivate', 'xlink:role', 'requiredFeatures', 'xml:lang', 'y', 'x', 'preserveAspectRatio']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'desc', 'metadata'])),

    'line': SVGElement('line',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'x2', 'systemLanguage', 'onmouseover', 'y1', 'externalResourcesRequired', 'y2', 'id', 'onload', 'style', 'x1', 'onactivate', 'nmousedown', 'transform', 'class', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'desc', 'metadata'])),

    'linearGradient': SVGElement('linearGradient',
    attributes=frozenset(['xlink:title', 'xml:base', 'xml:space', 'xlink:href', 'x2', 'y1', 'externalResourcesRequired', 'y2', 'class', 'xlink:actuate', 'xlink:role', 'style', 'xlink:show', 'spreadMethod', 'id', 'gradientUnits', 'xml:lang', 'gradientTransform', 'xlink:type', 'xlink:arcrole', 'x1']),
    properties=presentation_attributes,
    children=frozenset(['set', 'title', 'animate', 'animateTransform', 'stop', 'metadata', 'desc'])),

    'marker': SVGElement('marker',
    attributes=frozenset(['xml:space', 'id', 'xml:lang', 'xml:base', 'class', 'style', 'externalResourcesRequired', 'viewBox', 'preserveAspectRatio', 'refX', 'refY', 'markerUnits', 'markerWidth',  'markerHeight', 'orient']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'mask': SVGElement('mask',
    attributes=frozenset(['xml:base', 'requiredExtensions', 'xml:space', 'height', 'systemLanguage', 'externalResourcesRequired', 'maskContentUnits', 'class', 'style', 'id', 'width', 'requiredFeatures', 'xml:lang', 'y', 'x', 'maskUnits']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'metadata': SVGElement('metadata',
    attributes=frozenset(['xml:space', 'xml:lang', 'xml:base', 'id']),
    properties=empty_list,
    children=frozenset(['*'])),

    'missing-glyph': SVGElement('missing-glyph',
    attributes=frozenset(['xml:base', 'xml:space', 'id', 'xml:lang', 'class', 'style', 'd', 'horiz-adv-x', 'vert-origin-x', 'vert-origin-y', 'vert-adv-y']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'mpath': SVGElement('mpath',
    attributes=frozenset(['xlink:actuate', 'xlink:show', 'xml:base', 'xml:space', 'xlink:href', 'id', 'xlink:role', 'xml:lang', 'xlink:type', 'xlink:title', 'xlink:arcrole', 'externalResourcesRequired']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'path': SVGElement('path',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'systemLanguage', 'onmouseover', 'pathLength', 'externalResourcesRequired', 'id', 'onload', 'style', 'd', 'onactivate', 'nmousedown', 'transform', 'class', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'desc', 'metadata'])),

    'pattern': SVGElement('pattern',
    attributes=frozenset(['xlink:title', 'xml:base', 'requiredExtensions', 'xml:space', 'xlink:href', 'height', 'class', 'systemLanguage', 'patternContentUnits', 'xlink:type', 'externalResourcesRequired', 'id', 'xlink:actuate', 'style', 'xlink:show', 'viewBox', 'xlink:role', 'width', 'requiredFeatures', 'patternUnits', 'patternTransform', 'y', 'x', 'preserveAspectRatio', 'xlink:arcrole', 'xml:lang']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'polygon': SVGElement('polygon',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'id', 'onload', 'style', 'onactivate', 'nmousedown', 'transform', 'class', 'requiredFeatures', 'points', 'onmousemove', 'onclick', 'xml:lang', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'desc', 'metadata'])),

    'polyline': SVGElement('polyline',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'id', 'onload', 'style', 'onactivate', 'nmousedown', 'transform', 'class', 'requiredFeatures', 'points', 'onmousemove', 'onclick', 'xml:lang', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'desc', 'metadata'])),

    'radialGradient': SVGElement('radialGradient',
    attributes=frozenset(['xlink:title', 'xml:base', 'fx', 'fy', 'xml:space', 'xlink:href', 'cy', 'cx', 'xlink:type', 'externalResourcesRequired', 'r', 'id', 'xlink:actuate', 'gradientUnits', 'style', 'xlink:show', 'spreadMethod', 'class', 'xlink:role', 'xml:lang', 'gradientTransform', 'xlink:arcrole']),
    properties=presentation_attributes,
    children=frozenset(['set', 'title', 'animate', 'animateTransform', 'stop', 'metadata', 'desc'])),

    'rect': SVGElement('rect',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'height', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'id', 'onload', 'style', 'ry', 'onactivate', 'nmousedown', 'rx', 'transform', 'class', 'width', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'y', 'x', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'metadata', 'desc'])),

    'script': SVGElement('script',
    attributes=frozenset(['xlink:actuate', 'xlink:show', 'xml:base', 'xml:space', 'xlink:href', 'id', 'xlink:role', 'xml:lang', 'xlink:type', 'xlink:title', 'xlink:arcrole', 'type', 'externalResourcesRequired']),
    properties=empty_list,
    children=empty_list),

    'set': SVGElement('set',
    attributes=frozenset(['begin', 'xlink:title', 'xml:base', 'requiredExtensions', 'repeatCount', 'xml:space', 'xlink:href', 'attributeName', 'onbegin', 'systemLanguage', 'attributeType', 'xlink:type', 'externalResourcesRequired', 'id', 'restart', 'fill', 'xlink:actuate', 'onload', 'xlink:show', 'end', 'min', 'repeatDur', 'xlink:role', 'to', 'requiredFeatures', 'xml:lang', 'max', 'dur', 'xlink:arcrole', 'onrepeat', 'onend']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'stop': SVGElement('stop',
    attributes=frozenset(['xml:base', 'xml:space', 'xml:lang', 'offset', 'style', 'class']),
    properties=presentation_attributes,
    children=frozenset(['animate', 'set', 'animateColor'])),

    'style': SVGElement('style',
    attributes=frozenset(['xml:lang', 'xml:base', 'title', 'media', 'xml:space', 'type', 'id']),
    properties=empty_list,
    children=frozenset(['*'])),

    'svg': SVGElement('svg',
    attributes=frozenset(['requiredExtensions', 'onerror', 'onfocusout', 'xml:space', 'height', 'onscroll', 'baseProfile', 'contentStyleType', 'id', 'onabort', 'onload', 'style', 'nmousedown', 'onzoom', 'onresize', 'width', 'version', 'onmousemove', 'onmouseup', 'xmlns:xlink', 'xmlns:ev', 'onfocusin', 'xml:base', 'onclick', 'onmouseout', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'zoomAndPan', 'class', 'onunload', 'xmlns', 'onactivate', 'viewBox', 'requiredFeatures', 'xml:lang', 'y', 'x', 'preserveAspectRatio', 'contentScriptType']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'switch': SVGElement('switch',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'systemLanguage', 'onmouseover', 'externalResourcesRequired', 'class', 'onload', 'style', 'onactivate', 'nmousedown', 'transform', 'id', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'line', 'use', 'animateColor', 'polyline', 'path', 'animate', 'ellipse', 'rect', 'desc', 'a', 'animateMotion', 'polygon', 'g', 'title', 'svg', 'switch', 'animateTransform', 'foreignObject', 'circle', 'metadata'])),

    'symbol': SVGElement('symbol',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'onfocusout', 'xml:space', 'onmouseover', 'id', 'externalResourcesRequired', 'viewBox', 'onload', 'style', 'onactivate', 'nmousedown', 'class', 'xml:lang', 'onmousemove', 'onclick', 'preserveAspectRatio', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['set', 'text', 'image', 'font-face', 'polyline', 'marker', 'animate', 'font', 'color-profile', 'ellipse', 'cursor', 'style', 'polygon', 'title', 'pattern', 'circle', 'radialGradient', 'metadata', 'defs', 'symbol', 'use', 'animateMotion', 'animateColor', 'path', 'line', 'rect', 'desc', 'a', 'g', 'svg', 'script', 'mask', 'altGlyphDef', 'filter', 'switch', 'animateTransform', 'linearGradient', 'clipPath', 'foreignObject', 'view'])),

    'text': SVGElement('text',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'class', 'systemLanguage', 'onmouseover', 'dx', 'dy', 'externalResourcesRequired', 'lengthAdjust', 'onload', 'style', 'rotate', 'onactivate', 'nmousedown', 'textLength', 'transform', 'id', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'y', 'x', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['a', 'animateMotion', 'set', 'title', 'textPath', 'tspan', 'animateColor', 'tref', 'animateTransform', 'altGlyph', 'animate', 'desc', 'metadata'])),

    'textPath': SVGElement('textPath',
    attributes=frozenset(['requiredExtensions', 'onfocusout', 'xml:space', 'xlink:href', 'startOffset', 'id', 'onload', 'style', 'nmousedown', 'lengthAdjust', 'onmousemove', 'onclick', 'xlink:arcrole', 'onfocusin', 'xml:base', 'onmouseup', 'onmouseout', 'xlink:title', 'spacing', 'systemLanguage', 'onmouseover', 'xlink:type', 'externalResourcesRequired', 'class', 'xlink:actuate', 'xlink:show', 'onactivate', 'textLength', 'method', 'xlink:role', 'requiredFeatures', 'xml:lang']),
    properties=presentation_attributes,
    children=frozenset(['a', 'set', 'title', 'tspan', 'animateColor', 'tref', 'altGlyph', 'animate', 'metadata', 'desc'])),

    'title': SVGElement('title',
    attributes=frozenset(['style', 'xml:lang', 'xml:base', 'xml:space', 'class', 'id']),
    properties=empty_list,
    children=frozenset(['*'])),

    'tref': SVGElement('tref',
    attributes=frozenset(['requiredExtensions', 'onfocusout', 'xml:space', 'xlink:href', 'id', 'onload', 'style', 'nmousedown', 'lengthAdjust', 'onmousemove', 'onclick', 'xlink:arcrole', 'onfocusin', 'xml:base', 'onmouseup', 'onmouseout', 'xlink:title', 'systemLanguage', 'onmouseover', 'dx', 'dy', 'xlink:type', 'externalResourcesRequired', 'class', 'xlink:actuate', 'xlink:show', 'onactivate', 'textLength', 'xlink:role', 'requiredFeatures', 'xml:lang', 'y', 'x', 'rotate']),
    properties=presentation_attributes,
    children=frozenset(['set', 'title', 'animate', 'metadata', 'animateColor', 'desc'])),

    'tspan': SVGElement('tspan',
    attributes=frozenset(['xml:base', 'onmouseup', 'onmouseout', 'requiredExtensions', 'onfocusout', 'xml:space', 'class', 'systemLanguage', 'onmouseover', 'dx', 'dy', 'externalResourcesRequired', 'lengthAdjust', 'onload', 'style', 'rotate', 'onactivate', 'nmousedown', 'textLength', 'id', 'requiredFeatures', 'xml:lang', 'onmousemove', 'onclick', 'y', 'x', 'onfocusin']),
    properties=presentation_attributes,
    children=frozenset(['a', 'set', 'title', 'tspan', 'animateColor', 'tref', 'altGlyph', 'animate', 'metadata', 'desc'])),

    'use': SVGElement('use',
    attributes=frozenset(['requiredExtensions', 'onfocusout', 'xml:space', 'xlink:href', 'height', 'id', 'onload', 'style', 'nmousedown', 'transform', 'width', 'onmousemove', 'onclick', 'xlink:arcrole', 'onfocusin', 'xml:base', 'onmouseup', 'onmouseout', 'xlink:title', 'systemLanguage', 'onmouseover', 'xlink:type', 'externalResourcesRequired', 'class', 'xlink:actuate', 'xlink:show', 'onactivate', 'xlink:role', 'requiredFeatures', 'xml:lang', 'y', 'x']),
    properties=presentation_attributes,
    children=frozenset(['animateMotion', 'set', 'title', 'animateColor', 'animateTransform', 'animate', 'desc', 'metadata'])),

    'view': SVGElement('view',
    attributes=frozenset(['xml:base', 'viewTarget', 'xml:space', 'viewBox', 'xml:lang', 'preserveAspectRatio', 'externalResourcesRequired', 'zoomAndPan', 'id']),
    properties=empty_list,
    children=frozenset(['desc', 'metadata', 'title'])),

    'vkern': SVGElement('vkern',
    attributes=frozenset(['xml:base', 'g2', 'g1', 'xml:space', 'u1', 'u2', 'xml:lang', 'id', 'k']),
    properties=empty_list,
    children=empty_list),

}