File: html5_types.mli

package info (click to toggle)
tyxml 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 884 kB
  • ctags: 5,290
  • sloc: ml: 14,771; makefile: 184; sh: 22
file content (2183 lines) | stat: -rw-r--r-- 55,454 bytes parent folder | download
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
(* TyXML
 * http://www.ocsigen.org/tyxml
 * Copyright (C) 2010 by Simon Castellan
 * Copyright (C) 2010 by Cecile Herbelin
 * Copyright (C) 2010 by Vincent Balat
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, with linking exception;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02111-1307, USA.
 *)

(*
  TODO, Issues:
  -> Map cannot contain area children for now
  -> noscript (a [a []]) should not be typed.
  -> mathml !
*)

(* _fun prefix are the types that must be used
   in Html5.M. They are more restrictive as
   some param are already taken as seperate argument,
   to ensure better compatibility.
   SC *)

(*
  TODO: from draft 8 may 2011:
  * add bdi element
  * add s element
  * add u element
  * area is only allowed inside a phrasing if included inside a map element

*)

(** HTML5 types with variants. (See also {!Html5.M})

    @see <http://dev.w3.org/html5/spec/Overview.html> information concerning HTML5 at W3C.
*)

(** See {!Xhtml.M} for a description of the transcription's principles. *)

(** {1 Attribute types.} *)

type cdata = string
(** Character data *)

type id = string
(** A document-unique identifier *)

type idref = string
(** A reference to a document-unique identifier *)

type idrefs = idref list
(** A space-separated list of references to document-unique identifiers *)

type name = string
(** A name with the same character constraints as ID above *)

type nmtoken = string
(** A name composed of only name tokens as defined in XML 1.0
        @see <http://www.w3.org/TR/2000/REC-xml-20001006> XML 1.0 *)

type nmtokens = nmtoken list
(** One or more white space separated NMTOKEN values *)

(** {2 Data Types} *)

type character = char
(** A single character from ISO 10646. *)

type charset = string
(** A character encoding, as per RFC2045 (MIME).
        @see <http://tools.ietf.org/html/rfc2045> RFC2045 *)

type charsets = charset list
(** A space-separated list of character encodings, as per RFC2045 (MIME).
        @see <http://tools.ietf.org/html/rfc2045> RFC2045 *)

type contenttype = string
(** A media type, as per RFC2045 (MIME).
        @see <http://tools.ietf.org/html/rfc2045> RFC2045 *)

type contenttypes = contenttype list
(** A comma-separated list of media types, as per RFC2045 (MIME).
        @see <http://tools.ietf.org/html/rfc2045> RFC2045 *)

type coords = string list
(** Comma- separated list of coordinates to use in defining areas. *)

type datetime = string
(** Date and time information. *)

type fpi = string
(** A character string representing an SGML Formal Public Identifier. *)

type frametarget = string
(** Frame name used as destination for results of certain actions. *)

type languagecode = string
(** A language code, as per RFC5646.
    @see <http://tools.ietf.org/html/rfc5646> RFC5646 *)

type length = [ | `Pixels of int | `Percent of int ]
(** The value may be either in pixels or a percentage of the available
    horizontal or vertical space. Thus, the value [`Percent 50] means half of
    the available space. *)

type linktypes =
  [
    | `Alternate
    | `Archives
    | `Author
    | `Bookmark
    | `External
    | `First
    | `Help
    | `Icon
    | `Index
    | `Last
    | `License
    | `Next
    | `Nofollow
    | `Noreferrer
    | `Pingback
    | `Prefetch
    | `Prev
    | `Search
    | `Stylesheet
    | `Sidebar
    | `Tag
    | `Up
    | `Other of string ] list
(** Authors may use the following recognized link types, listed here with
        their conventional interpretations. A LinkTypes value refers to a
        space-separated list of link types. White space characters are not
        permitted within link types.  These link types are case-insensitive, i.e.,
        ["Alternate"] has the same meaning as ["alternate"].

        User agents, search engines, etc. may interpret these link types in a
        variety of ways. For example, user agents may provide access to linked
        documents through a navigation bar.

        {ul
        {- [`Alternate]:
        Gives alternate representations of the current document.}
        {- [`Archives]:
        Provides a link to a collection of records, documents, or other materials of historical interest.}
        {- [`Author]:
        Gives a link to the current document's author.}
        {- [`Bookmark]:
        Gives the permalink for the nearest ancestor section.}
        {- [`External]:
        Indicates that the referenced document is not part of the same site as the current document.}
        {- [`First]:
        Indicates that the current document is a part of a series, and that the first document in the series is the referenced document.}
        {- [`Help]:
        Provides a link to context-sensitive help.}
        {- [`Icon]:
        Imports an icon to represent the current document.}
        {- [`Index]:
        Gives a link to the document that provides a table of contents or index listing the current document.}
        {- [`Last]:
        Indicates that the current document is a part of a series, and that the last document in the series is the referenced document.}
        {- [`Licence]:
        Indicates that the main content of the current document is covered by the copyright license described by the referenced document.}
        {- [`Next]:
        Indicates that the current document is a part of a series, and that the next document in the series is the referenced document.}
        {- [`Nofollow]:
        Indicates that the current document's original author or publisher does not endorse the referenced document.}
        {- [`Noreferrer]:
        Requires that the user agent not send an HTTP Referer (sic) header if the user follows the hyperlink.}
        {- [`Pingback]:
        Gives the address of the pingback server that handles pingbacks to the current document.}
        {- [`Prefetch]:
        Specifies that the target resource should be preemptively cached.}
        {- [`Prev]:
        Indicates that the current document is a part of a series, and that the previous document in the series is the referenced document.}
        {- [`Search]:
        Gives a link to a resource that can be used to search through the current document and its related pages.}
        {- [`Stylesheet]:
        Imports a stylesheet.}
        {- [`Sidebar]:
        Specifies that the referenced document, if retrieved, is intended to be shown in the browser's sidebar (if it has one).}
        {- [`Tag]:
        Gives a tag (identified by the given address) that applies to the current document.}
        {- [`Up]:
        Provides a link to a document giving the context for the current document.}
        } *)

type mediadesc =
  [
    | `All
    | `Aural
    | `Braille
    | `Embossed
    | `Handheld
    | `Print
    | `Projection
    | `Screen
    | `Speech
    | `TTY
    | `TV
    | `Raw_mediadesc of string ] list
(** The MediaDesc attribute is a comma-separated list of media descriptors.
        The following is a list of recognized media descriptors:
        {ul
        {- [`Screen]:
        For non-paged computer screens.}
        {- [`TTY]:
        For media using a fixed-pitch character grid (like teletypes, terminals, or devices with limited display capabilities).}
        {- [`TV]:
        For TV-type devices (low resolution, limited scrollability).}
        {- [`Projection]:
        For projectors.}
        {- [`Handheld]:
        For handheld devices (small screen, limited bandwidth).}
        {- [`Print]:
        For paged and for documents viewed on screen in print preview mode.}
        {- [`Braille]:
        For braille tactile feedback devices.}
        {- [`Aural]:
        For speech synthesizers.}
        {- [`All]:
        For speech synthesizers.}
        {- [`Raw_mediadesc]:
        For more complex (untyped) media descriptors.}}

*)

type multilength = [ | length | `Relative of int ]
(** The value may be a Length or a relative length. A relative length
        has the form ["i*"], where ["i"] is an integer. When allotting space
        among elements competing for that space, user agents allot pixel
        and percentage lengths first, then divide up remaining available
        space among relative lengths. Each relative length receives a
        portion of the available space that is proportional to the integer
        preceding the ["*"]. The value ["*"] is equivalent to ["1*"]. Thus, if
        60 pixels of space are available after the user agent allots pixel
        and percentage space, and the competing relative lengths are ["1*"],
        ["2*"], and ["3*"], the ["1*"] will be allotted 10 pixels, the ["2*"] will be
        allotted 20 pixels, and the ["3*"] will be allotted 30 pixels. *)

(* comma-separated *)
type multilengths = multilength list
(** A comma separated list of items of type MultiLength. *)

type number = int

(* space-separated *)
type numbers = number list

type float_number = float

type pixels = int
(** The value is an integer that represents the number of pixels of
        the canvas (screen, paper). Thus, the value ["50"] means fifty
        pixels. For normative information about the definition of a pixel,
        please consult CSS2.
        @see <http://www.w3.org/TR/1998/REC-CSS2-19980512> CSS2 *)

type script_ = string
(** Script data can be the content of the ["script"] element and the
        value of intrinsic event attributes. User agents must not evaluate
        script data as HTML markup but instead must pass it on as data to a
        script engine.

        The case-sensitivity of script data depends on the scripting
        language.

        Please note that script data that is element content may not
        contain character references, but script data that is the value of
        an attribute may contain them. *)

type text = string
(** Arbitrary textual data, likely meant to be human-readable. *)

(** {2 Core} *)

type i18n = [ | `XML_lang ]

type core =
  [
    | `Accesskey
    | `Class
    | `Contenteditable
    | `Contextmenu
    | `Dir
    | `Draggable
    | `Hidden
    | `Id
    | i18n
    | `Spellcheck
    | `Style_Attr
    | `Tabindex
    | `Title
    | `User_data
    | `XMLns
  ]

(** {2 Events} *)

(** Javascript events *)
type events =
  [
    | `OnAbort
    | `OnBlur
    | `OnCanPlay
    | `OnCanPlayThrough
    | `OnChange
    | `OnClick
    | `OnContextMenu
    | `OnDblClick
    | `OnDrag
    | `OnDragEnd
    | `OnDragEnter
    | `OnDragLeave
    | `OnDragOver
    | `OnDragStart
    | `OnDrop
    | `OnDurationChange
    | `OnEmptied
    | `OnEnded
    | `OnError
    | `OnFocus
    | `OnFormChange
    | `OnFormInput
    | `OnInput
    | `OnInvalid
    | `OnMouseDown
    | `OnMouseUp
    | `OnMouseOver
    | `OnMouseMove
    | `OnMouseOut
    | `OnMouseWheel
    | `OnPause
    | `OnPlay
    | `OnPlaying
    | `OnProgress
    | `OnRateChange
    | `OnReadyStateChange
    | `OnScroll
    | `OnSeeked
    | `OnSeeking
    | `OnSelect
    | `OnShow
    | `OnStalled
    | `OnSubmit
    | `OnSuspend
    | `OnTimeUpdate
    | `OnVolumeChange
    | `OnWaiting
    | `OnKeyPress
    | `OnKeyDown
    | `OnKeyUp
    | `OnLoad
    | `OnLoadedData
    | `OnLoadedMetaData
    | `OnLoadStart
  ]

(** Common attributes *)
type common = [ | core | i18n | events ]

(** {1 Categegories of HTML5 elements} *)
(** These category are mainly subdivised in
    - interactive,
    - phrasing,
    - flow5,
    these categories may overlap *)
type heading = [ | `H1 | `H2 | `H3 | `H4 | `H5 | `H6 | `Hgroup ]

type sectioning = [ | `Section | `Nav | `Aside | `Article ]

type resetable = [ | `Textarea | `Select | `Output | `Keygen | `Input ]

type submitable = [ | `Textarea | `Select | `Keygen | `Input | `Button ]

type labelable = [ | resetable | `Progress | `Meter | `Button ]

type labelable_without_interactive = [ `Progress | `Meter]

type formatblock =
  [
    | heading
    | sectioning
    | `Pre
    | `P
    | `Header
    | `Footer
    | `Div
    | `Blockquote
    | `Address
  ]

type sectionningroot =
  [ | `Td | `Figure | `Fieldset | `Details | `Body | `Blockquote
  ]

type listed = [ | resetable | submitable | `Fieldset ]

type formassociated = [ | listed | `Progress | `Meter | `Label ]


(** Transparent elements.
        Such elements have a part of they children in their dataconsigor,
        and behaves like them. We could do something like [=a: 'a elt list -> 'a elt]
        but the information about the node name would be forgotten and would allow
        things like that : [=p [a [a []]]].
        This system allow to build non-conforming terms such as [a [a []]] but when passed
        to a standard element (such as [p]), it will yield an error.
        Exception to that : if you embdedd the element in another transparent (of an
        another kind) : [p [noscript (a [a []])]] will be correctly typed.
    *)
type (+'interactive, +'noscript, +'regular, +'media) transparent =
  [
    | `A of 'interactive
    | `Noscript of 'noscript
    | `Canvas of 'regular
    | `Map of 'regular
    | `Ins of 'regular
    | `Del of 'regular
    | `Object of 'regular
    | `Object_interactive of 'regular
    | `Audio_interactive of 'media
    | `Video_interactive of 'media
    | `Audio of 'media
    | `Video of 'media
  ]
(* _interactive variants are not used for now *)
type (+'noscript, +'regular, +'media) transparent_without_interactive =
  [
    | `Noscript of 'noscript
    | `Ins of 'regular
    | `Del of 'regular
    | `Object of 'regular
    | `Canvas of 'regular
    | `Map of 'regular
    | `Audio of 'media
    | `Video of 'media
  ]

type (+'interactive, +'regular, +'media) transparent_without_noscript =
  [
    | `A of 'interactive
    | `Ins of 'regular
    | `Del of 'regular
    | `Canvas of 'regular
    | `Map of 'regular
    | `Object of 'regular
    | `Object_interactive of 'regular
    | `Video of 'media
    | `Audio of 'media
    | `Video_interactive of 'media
    | `Audio_interactive of 'media
  ]

type (+'interactive, +'noscript, +'regular) transparent_without_media =
  [
    | `A of 'interactive
    | `Noscript of 'noscript
    | `Ins of 'regular
    | `Del of 'regular
    | `Map of 'regular
    | `Canvas of 'regular
    | `Object of 'regular
    | `Object_interactive of 'regular
  ]

(** Metadata without title *)
type metadata_without_title =
  [
    | `Style
    | `Script
    | `Noscript of [ | `Meta | `Link | `Style ]
    | `Meta
    | `Link
    | `Command
    | `Base
  ]

(** Metadata contents. Used specially in <head> *)
type metadata = [ | metadata_without_title | `Title ]

(** Interactive contents : contents that require user-interaction
        (Forms, link, etc.) *)
(** Core element types are element types without transparent. *)
type core_interactive =
  [
    | `Textarea
    | `Select
    | `Menu
    | `Label
    | `Keygen
    | `Input
    | `Img_interactive
    | `Iframe
    | `Embed
    | `Details
    | `Button
  ]

type interactive =
  [
    core_interactive | (interactive, interactive, interactive) transparent_without_interactive
  ]

(** Phrasing contents is inline contents : bold text, span, and so on. *)
type core_phrasing =
  [
    | labelable
    | submitable
    | `Wbr
    | `Var
    | `U
    | `Svg
    | `Time
    | `Sup
    | `Sub
    | `Strong
    | `Span
    | `Small
    | `Script
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Label
    | `Kbd
    | `Iframe
    | `I
    | `Embed
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `Img | `Img_interactive
    | `PCDATA
  ]

type core_phrasing_without_noscript =
  [
    | labelable
    | submitable
    | `Wbr
    | `Var
    | `U
    | `Time
    | `Sup
    | `Sub
    | `Svg
    | `Strong
    | `Span
    | `Small
    | `Script
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Label
    | `Kbd
    | `Iframe
    | `I
    | `Embed
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `Img | `Img_interactive
    | `B
    | `Abbr
    | `PCDATA
  ]
type core_phrasing_without_interactive =
  [
    | labelable_without_interactive
    | `Wbr
    | `Var
    | `U
    | `Img
    | `Time
    | `Sup
    | `Sub
    | `Strong
    | `Span
    | `Small
    | `Script
    | `Svg
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Kbd
    | `Img
    | `I
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `PCDATA
  ]

type core_phrasing_without_media =
  [
    | labelable
    | submitable
    | `Wbr
    | `Var
    | `U
    | `Time
    | `Svg
    | `Sup
    | `Sub
    | `Strong
    | `Span
    | `Small
    | `Script
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Label
    | `Kbd
    | `Img | `Img_interactive
    | `Iframe
    | `I
    | `Embed
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `PCDATA
  ]

type phrasing_without_noscript =
    (phrasing_without_interactive,
     phrasing,
     phrasing_without_media) transparent_without_noscript

and phrasing_without_media =
  [
    | core_phrasing_without_media
    | (phrasing_without_interactive, phrasing_without_noscript, phrasing)
        transparent_without_media
  ]


and phrasing_without_interactive =
  [
    | core_phrasing_without_interactive
    | (phrasing_without_noscript, phrasing, phrasing_without_media)
        transparent_without_interactive
  ]

and phrasing =
  [
    | (phrasing_without_interactive, phrasing_without_noscript, phrasing,
        phrasing_without_media) transparent
    | core_phrasing
  ]

type (+'a, +'b) between_phrasing_and_phrasing_without_interactive =
   ( [<  core_phrasing
     | ([< phrasing_without_interactive] as 'b,
       phrasing_without_noscript,
       phrasing,
       phrasing_without_media) transparent
       > `Abbr `B `Bdo `Br `Canvas `Cite `Code `Command
       `Datalist `Del `Dfn `Em `I `Img `Ins `Kbd `Map `Mark `Meter
       `Noscript `Object `PCDATA `Progress `Q `Ruby `Samp `Script
       `Small `Span `Strong `Sub `Sup `Svg `Time `U `Var  `Wbr  ] as 'a)

(** Phrasing without the interactive markups *)
type phrasing_without_dfn =
  [
    | labelable
    | submitable
    | `Wbr
    | `Var
    | `U
    | `Time
    | `Sup
    | `Sub
    | `Strong
    | `Span
    | `Small
    | `Script
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Label
    | `Img | `Img_interactive
    | `Kbd
    | `I
    | `Em
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `PCDATA
    | (phrasing_without_interactive, phrasing_without_noscript,
        phrasing_without_dfn, phrasing_without_media) transparent
  ]

type phrasing_without_label =
  [
    | labelable
    | submitable
    | `Wbr
    | `Var
    | `U
    | `Time
    | `Sup
    | `Sub
    | `Strong
    | `Span
    | `Img | `Img_interactive
    | `Small
    | `Script
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Kbd
    | `I
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `PCDATA
    | (phrasing_without_interactive, phrasing_without_noscript,
        phrasing_without_label, phrasing_without_media) transparent
  ]

type phrasing_without_progress =
  [
    | resetable
    | submitable
    | `Wbr
    | `Var
    | `U
    | `Time
    | `Sup
    | `Sub
    | `Strong
    | `Span
    | `Small
    | `Script
    | `Samp
    | `Img | `Img_interactive
    | `Ruby
    | `Q
    | `Meter
    | `Mark
    | `Label
    | `Kbd
    | `I
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Button
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `PCDATA
    | (phrasing_without_interactive, phrasing_without_noscript,
        phrasing_without_progress, phrasing_without_media) transparent
  ]

type phrasing_without_time =
  [
    | labelable
    | submitable
    | `Wbr
    | `Var
    | `U
    | `Sup
    | `Sub
    | `Strong
    | `Img | `Img_interactive
    | `Span
    | `Small
    | `Script
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Label
    | `Kbd
    | `I
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `PCDATA
    | (phrasing_without_interactive, phrasing_without_noscript,
        phrasing_without_time, phrasing_without_media) transparent
  ]

type phrasing_without_meter =
  [
    | submitable
    | resetable
    | `Progress
    | `Button
    | `Wbr
    | `Var
    | `U
    | `Time
    | `Sup
    | `Img | `Img_interactive
    | `Sub
    | `Strong
    | `Span
    | `Small
    | `Script
    | `Samp
    | `Ruby
    | `Q
    | `Mark
    | `Label
    | `Kbd
    | `I
    | `Em
    | `Dfn
    | `Datalist
    | `Command
    | `Code
    | `Cite
    | `Br
    | `Bdo
    | `B
    | `Abbr
    | `PCDATA
    | (phrasing_without_interactive, phrasing_without_noscript,
        phrasing_without_meter, phrasing_without_media) transparent
  ]

type core_flow5 =
  [
    | core_phrasing
    | formassociated
    | formatblock
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
    | `Details
  ]

type core_flow5_without_interactive =
  [
    | core_phrasing_without_interactive
    | formassociated
    | formatblock
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
  ]

type core_flow5_without_noscript =
  [
    | core_phrasing_without_noscript
    | formassociated
    | formatblock
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
    | `Details
  ]
type core_flow5_without_media =
  [
    | core_phrasing_without_media
    | formassociated
    | formatblock
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
    | `Details

  ]

type flow5_without_interactive =
  [
    core_flow5_without_interactive
  | (flow5_without_noscript, flow5, flow5_without_media)
      transparent_without_interactive
  ]

and flow5_without_noscript =
  [ | core_flow5_without_noscript
  | (flow5_without_interactive,
     flow5,
     flow5_without_media) transparent_without_noscript
  ]

and flow5_without_media =
  [ core_flow5_without_media
  | (flow5_without_interactive,
     flow5_without_noscript,
     flow5) transparent_without_media ]
and flow5 =
  [
    | core_flow5
    | (flow5_without_interactive, flow5_without_noscript, flow5,
        flow5_without_media) transparent
  ]

type flow5_without_table =
  [
    | core_phrasing
    | formassociated
    | formatblock
    | `Ul
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
    | `Details
    | (flow5_without_interactive, flow5_without_noscript, flow5,
        flow5_without_media) transparent
  ]

type flow5_without_interactive_header_footer =
 [
    | heading
    | sectioning
    | `Pre
    | `P
    | `Div
    | `Blockquote
    | `Address
    | core_phrasing_without_interactive
    | formassociated
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
    | (flow5_without_noscript, flow5, flow5_without_media)
	transparent_without_interactive
  ]

type flow5_without_header_footer =
  [
    | heading
    | sectioning
    | `Pre
    | `P
    | `Div
    | `Blockquote
    | `Address
    | core_phrasing
    | formassociated
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
    | `Details
    | (flow5_without_interactive_header_footer,
       flow5_without_noscript, flow5,
       flow5_without_media) transparent
  ]

type +'a between_flow5_and_flow5_without_interactive_header_footer =
  [< flow5  > `Abbr `Address `Article `Aside `Audio `B `Bdo `Blockquote `Br
      `Button `Canvas `Cite `Code `Command `Datalist `Del `Dfn `Div `Dl `Em
      `Fieldset `Figure `Form `H1 `H2 `H3 `H4 `H5 `H6 `Hgroup `Hr `I `Img
      `Input `Ins `Kbd `Keygen `Label `Map`Mark `Menu `Meter `Nav `Noscript
      `Object `Ol `Output `P `PCDATA `Pre `Progress `Q `Ruby `Samp `Script
      `Section `Select `Small `Span `Strong `Style `Sub `Sup `Svg `Table
      `Textarea `Time `U `Ul `Var `Video `Wbr] as 'a

type (+'a, +'b) between_flow5_and_flow5_without_header_footer =
  [< core_flow5
  | ([< flow5_without_interactive ] as 'b,
     flow5_without_noscript, 'a,
     flow5_without_media)
      transparent
    > `A `Abbr `Address `Article `Aside `Audio `Audio_interactive `B
      `Bdo `Blockquote `Br `Button `Canvas `Cite `Code `Command
      `Datalist `Del `Details `Dfn `Div `Dl `Em `Embed `Fieldset
      `Figure `Form `H1 `H2 `H3 `H4 `H5 `H6 `Hgroup `Hr `I `Iframe
      `Img `Img_interactive `Input `Ins `Kbd `Keygen `Label `Map
      `Mark `Menu `Meter `Nav `Noscript `Object `Object_interactive
      `Ol `Output `P `PCDATA `Pre `Progress `Q `Ruby `Samp `Script
      `Section `Select `Small `Span `Strong `Style `Sub `Sup `Svg
      `Table `Textarea `Time `U `Ul `Var `Video `Video_interactive
      `Wbr ] as 'a

type flow5_without_form =
  [
    | core_phrasing
    | formassociated
    | formatblock
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Figure
    | `Dl
    | `Details
    | (flow5_without_interactive, flow5_without_noscript, flow5,
        flow5_without_media) transparent
  ]

type flow5_without_sectioning_heading_header_footer_address =
  [
    | core_phrasing
    | formassociated
    | `Pre
    | `P
    | `Div
    | `Blockquote
    | `Ul
    | `Table
    | `Style
    | `Ol
    | `Menu
    | `Hr
    | `Form
    | `Figure
    | `Dl
    | `Details
    | (flow5_without_interactive, flow5_without_noscript, flow5,
        flow5_without_media) transparent
  ]

(*
  Type for HTML5 for elements
*)
type pcdata = [ | `PCDATA ]

type notag

type no_attribute_allowed

type noattrib = [ `No_attribute_allowed of no_attribute_allowed ]

type html = [ | `Html ]

type xhtml = html

type html_content_fun = [ | `Head | `Body ]

type html_content = html_content_fun

type html_attrib = [ | common | `Manifest ]

type head = [ | `Head ]

type head_content = [ | metadata ]

type head_content_fun = [ | metadata_without_title ]

type head_attrib = [ | common ]

type body = [ | `Body ]

type body_attrib =
  [
    | common
    | `OnAfterPrint
    | `OnBeforePrint
    | `OneBeforeUnload
    | `OnHashChange
    | `OnMessage
    | `OnOffLine
    | `OnOnLine
    | `OnPageHide
    | `OnPageShow
    | `OnPopState
    | `OnRedo
    | `OnResize
    | `OnStorage
    | `OnUndo
    | `OnUnload
  ]

type body_content = flow5

type body_content_fun = flow5


type svg = [ `Svg ]
type svg_content = Svg_types.svg_content
type svg_attrib = Svg_types.svg_attr
(* NAME: base, KIND: nullary, TYPE: [= common | `Href | `Target], [= `Base ], ARG: notag, ATTRIB:  OUT: [= `Base ] *)
type base = [ | `Base ]

type base_content = notag

type base_content_fun = notag

type base_attrib = [ | common | `Href | `Target ]

type title = [ | `Title ]

type title_content = [ | `PCDATA ]

type title_content_fun = [ | `PCDATA ]

type title_attrib = noattrib

(* NAME: footer, KIND: star, TYPE: [= common ], [= flow5_without_header_footer ], [=`Footer], ARG: [= flow5_without_header_footer ], ATTRIB:  OUT: [=`Footer] *)
type footer = [ | `Footer ]

type footer_content = [ | flow5_without_header_footer ]

type footer_content_fun = [ | flow5_without_header_footer ]

type footer_attrib = [ | common ]

(* NAME: header, KIND: star, TYPE: [= common ], [= flow5_without_header_footer ], [=`Header], ARG: [= flow5_without_header_footer ], ATTRIB:  OUT: [=`Header] *)
type header = [ | `Header ]

type header_content = [ | flow5_without_header_footer ]

type header_content_fun = [ | flow5_without_header_footer ]

type header_attrib = [ | common ]

(* NAME: section, KIND: star, TYPE: [= common ], [= flow5 ], [=`Section], ARG: [= flow5 ], ATTRIB:  OUT: [=`Section] *)
type section = [ | `Section ]

type section_content = [ | flow5 ]

type section_content_fun = [ | flow5 ]

type section_attrib = [ | common ]

(* NAME: nav, KIND: star, TYPE: [= common ], [= flow5 ], [=`Nav], ARG: [= flow5 ], ATTRIB:  OUT: [=`Nav] *)
type nav = [ | `Nav ]

type nav_content = [ | flow5 ]

type nav_content_fun = [ | flow5 ]

type nav_attrib = [ | common ]

(* NAME: h, KIND: star, TYPE: [= common ], [= phrasing ], [=`H1], ARG: [= phrasing ], ATTRIB:  OUT: [=`H1] *)
type h1 = [ | `H1 ]

type h1_content = [ | phrasing ]

type h1_content_fun = [ | phrasing ]

type h1_attrib = [ | common ]

(* NAME: h, KIND: star, TYPE: [= common ], [= phrasing ], [=`H2], ARG: [= phrasing ], ATTRIB:  OUT: [=`H2] *)
type h2 = [ | `H2 ]

type h2_content = [ | phrasing ]

type h2_content_fun = [ | phrasing ]

type h2_attrib = [ | common ]

(* NAME: h, KIND: star, TYPE: [= common ], [= phrasing ], [=`H3], ARG: [= phrasing ], ATTRIB:  OUT: [=`H3] *)
type h3 = [ | `H3 ]

type h3_content = [ | phrasing ]

type h3_content_fun = [ | phrasing ]

type h3_attrib = [ | common ]

(* NAME: h, KIND: star, TYPE: [= common ], [= phrasing ], [=`H4], ARG: [= phrasing ], ATTRIB:  OUT: [=`H4] *)
type h4 = [ | `H4 ]

type h4_content = [ | phrasing ]

type h4_content_fun = [ | phrasing ]

type h4_attrib = [ | common ]

(* NAME: h, KIND: star, TYPE: [= common ], [= phrasing ], [=`H5], ARG: [= phrasing ], ATTRIB:  OUT: [=`H5] *)
type h5 = [ | `H5 ]

type h5_content = [ | phrasing ]

type h5_content_fun = [ | phrasing ]

type h5_attrib = [ | common ]

(* NAME: h, KIND: star, TYPE: [= common ], [= phrasing ], [=`H6], ARG: [= phrasing ], ATTRIB:  OUT: [=`H6] *)
type h6 = [ | `H6 ]

type h6_content = [ | phrasing ]

type h6_content_fun = [ | phrasing ]

type h6_attrib = [ | common ]

(* NAME: hgroup, KIND: plus, TYPE: [= common ], [= `H1 | `H2 | `H3 | `H4 | `H5 | `H6 ], [=`Hgroup], ARG: [= `H1 | `H2 | `H3 | `H4 | `H5 | `H6 ], ATTRIB:  OUT: [=`Hgroup] *)
type hgroup = [ | `Hgroup ]

type hgroup_content = [ | `H1 | `H2 | `H3 | `H4 | `H5 | `H6 ]

type hgroup_content_fun = [ | `H1 | `H2 | `H3 | `H4 | `H5 | `H6 ]

type hgroup_attrib = [ | common ]

(* NAME: address, KIND: star, TYPE: [= common ], [= flow5_without_sectioning_heading_header_footer_address ], [=`Address], ARG: [= flow5_without_sectioning_heading_header_footer_address ], ATTRIB:  OUT: [=`Address] *)
type address = [ | `Address ]

type address_content =
  [ | flow5_without_sectioning_heading_header_footer_address
  ]

type address_content_fun =
  [ | flow5_without_sectioning_heading_header_footer_address
  ]

type address_attrib = [ | common ]

(* NAME: article, KIND: star, TYPE: [= common ], [= flow5 ], [=`Article], ARG: [= flow5 ], ATTRIB:  OUT: [=`Article] *)
type article = [ | `Article ]

type article_content = [ | flow5 ]

type article_content_fun = [ | flow5 ]

type article_attrib = [ | common ]

(* NAME: aside, KIND: star, TYPE: [= common ], [= flow5 ], [=`Aside], ARG: [= flow5 ], ATTRIB:  OUT: [=`Aside] *)
type aside = [ | `Aside ]

type aside_content = [ | flow5 ]

type aside_content_fun = [ | flow5 ]

type aside_attrib = [ | common ]

(* NAME: p, KIND: star, TYPE: [= common ], [=phrasing ], [=`P], ARG: [=phrasing ], ATTRIB:  OUT: [=`P] *)
type p = [ | `P ]

type p_content = [ | phrasing ]

type p_content_fun = [ | phrasing ]

type p_attrib = [ | common ]

(* NAME: pre, KIND: star, TYPE: [= common ],[= phrasing ], [=`Pre], ARG: [= phrasing ], ATTRIB:  OUT: [=`Pre] *)
type pre = [ | `Pre ]

type pre_content = [ | phrasing ]

type pre_content_fun = [ | phrasing ]

type pre_attrib = [ | common ]

(* NAME: blockquote, KIND: star, TYPE: [= common | `Cite ],[= flow5 ], [=`Blockquote], ARG: [= flow5 ], ATTRIB:  OUT: [=`Blockquote] *)
type blockquote = [ | `Blockquote ]

type blockquote_content = [ | flow5 ]

type blockquote_content_fun = [ | flow5 ]

type blockquote_attrib = [ | common | `Cite ]

(* NAME: div, KIND: star, TYPE: [= common ], [= flow5 ], [=`Div], ARG: [= flow5 ], ATTRIB:  OUT: [=`Div] *)
type div = [ | `Div ]

type div_content = [ | flow5 ]

type div_content_fun = [ | flow5 ]

type div_attrib = [ | common ]

(* NAME: ol, KIND: star, TYPE: [= common | `Reserved |`Start ], [= `Li of [= common | `Int_Value ]], [=`Ol], ARG: [= `Li of [= common | `Int_Value ]], ATTRIB:  OUT: [=`Ol] *)
type ol = [ | `Ol ]

type ol_content = [ | `Li of [ | common | `Int_Value ] ]

type ol_content_fun = [ | `Li of [ | common | `Int_Value ] ]

type ol_attrib = [ | common | `Reversed | `Start ]

(* NAME: li, KIND: star, TYPE: [= common | `Int_Value] as 'a, [=flow5 ], [=`Li of 'a], ARG: [=flow5 ], ATTRIB:  OUT: [=`Li of 'a] *)
type li_content = [ | flow5 ]

type li_content_fun = [ | flow5 ]

type li_attrib = [ | common | `Int_Value ]

type li = [ | `Li of li_attrib ]
(* NAME: ul, KIND: star, TYPE: [= common ], [= `Li of [= common] ], [=`Ul], ARG: [= `Li of [= common] ], ATTRIB:  OUT: [=`Ul] *)
type ul = [ | `Ul ]

type ul_content = [ | `Li of [ | li_attrib ] ]

type ul_content_fun = [ | `Li of [ | li_attrib ] ]

type ul_attrib = [ | common ]

(* NAME: dd, KIND: star, TYPE: [= common ], [= flow5 ], [=`Dd], ARG: [= flow5 ], ATTRIB:  OUT: [=`Dd] *)
type dd = [ | `Dd ]

type dd_content = [ | flow5 ]

type dd_content_fun = [ | flow5 ]

type dd_attrib = [ | common ]

(* NAME: dt, KIND: star, TYPE: [= common ], [= phrasing], [=`Dt], ARG: [= phrasing], ATTRIB:  OUT: [=`Dt] *)
type dt = [ | `Dt ]

type dt_content = [ | phrasing ]

type dt_content_fun = [ | phrasing ]

type dt_attrib = [ | common ]


(* NAME: figcaption, KIND: star, TYPE: [= common ], [= flow5], [=`Figcaption], ARG: [= flow5], ATTRIB:  OUT: [=`Figcaption] *)
type figcaption = [ | `Figcaption ]

type figcaption_content = [ | flow5 ]

type figcaption_content_fun = [ | flow5 ]

type figcaption_attrib = [ | common ]

(* NAME: hr, KIND: nullary, TYPE: [= common ], [=`Hr], ARG: notag, ATTRIB:  OUT: [=`Hr] *)
type hr = [ | `Hr ]

type hr_content = notag

type hr_content_fun = notag

type hr_attrib = [ | common ]

(* NAME: b, KIND: star, TYPE: [= common ], [= phrasing ], [=`B], ARG: [= phrasing ], ATTRIB:  OUT: [=`B] *)
type b = [ | `B ]

type b_content = [ | phrasing ]

type b_content_fun = [ | phrasing ]

type b_attrib = [ | common ]

(* NAME: i, KIND: star, TYPE: [= common ], [= phrasing ], [=`I], ARG: [= phrasing ], ATTRIB:  OUT: [=`I] *)
type i = [ | `I ]

type i_content = [ | phrasing ]

type i_content_fun = [ | phrasing ]

type i_attrib = [ | common ]

(* NAME: u, KIND: star, TYPE: [= common ], [= phrasing ], [=`U], ARG: [= phrasing ], ATTRIB:  OUT: [=`U] *)
type u = [ | `U ]

type u_content = [ | phrasing ]

type u_content_fun = [ | phrasing ]

type u_attrib = [ | common ]

(* NAME: small, KIND: star, TYPE: [= common ], [= phrasing ], [=`Small], ARG: [= phrasing ], ATTRIB:  OUT: [=`Small] *)
type small = [ | `Small ]

type small_content = [ | phrasing ]

type small_content_fun = [ | phrasing ]

type small_attrib = [ | common ]

(* NAME: sub, KIND: star, TYPE: [= common ], [= phrasing ], [=`Sub], ARG: [= phrasing ], ATTRIB:  OUT: [=`Sub] *)
type sub = [ | `Sub ]

type sub_content = [ | phrasing ]

type sub_content_fun = [ | phrasing ]

type sub_attrib = [ | common ]

(* NAME: sup, KIND: star, TYPE: [= common ], [= phrasing ], [=`Sup], ARG: [= phrasing ], ATTRIB:  OUT: [=`Sup] *)
type sup = [ | `Sup ]

type sup_content = [ | phrasing ]

type sup_content_fun = [ | phrasing ]

type sup_attrib = [ | common ]

(* NAME: mark, KIND: star, TYPE: [= common ],[= phrasing ],[= `Mark ], ARG: [= phrasing ], ATTRIB:  OUT: [= `Mark ] *)
type mark = [ | `Mark ]

type mark_content = [ | phrasing ]

type mark_content_fun = [ | phrasing ]

type mark_attrib = [ | common ]

(* NAME: wbr, KIND: nullary, TYPE: [= common ],[= `Wbr ], ARG: notag, ATTRIB:  OUT: [= `Wbr ] *)
type wbr = [ | `Wbr ]

type wbr_content = notag

type wbr_content_fun = notag

type wbr_attrib = [ | common ]

(* NAME: bdo, KIND: star, TYPE: [= common ],[= phrasing ],[= `Bdo ], ARG: [= phrasing ], ATTRIB:  OUT: [= `Bdo ] *)
type bdo = [ | `Bdo ]

type bdo_content = [ | phrasing ]

type bdo_content_fun = [ | phrasing ]

type bdo_attrib = [ | common ]

(* NAME: abbr, KIND: star, TYPE: [= common ], [=phrasing ], [=`Abbr], ARG: [=phrasing ], ATTRIB:  OUT: [=`Abbr] *)
type abbr = [ | `Abbr ]

type abbr_content = [ | phrasing ]

type abbr_content_fun = [ | phrasing ]

type abbr_attrib = [ | common ]

(* NAME: br, KIND: nullary, TYPE: [= common ], [=`Br], ARG: notag, ATTRIB:  OUT: [=`Br] *)
type br = [ | `Br ]

type br_content = notag

type br_content_fun = notag

type br_attrib = [ | common ]

(* NAME: cite, KIND: star, TYPE: [= common ], [= phrasing ], [=`Cite], ARG: [= phrasing ], ATTRIB:  OUT: [=`Cite] *)
type cite = [ | `Cite ]

type cite_content = [ | phrasing ]

type cite_content_fun = [ | phrasing ]

type cite_attrib = [ | common ]

(* NAME: code, KIND: star, TYPE: [= common ], [= phrasing ], [=`Code], ARG: [= phrasing ], ATTRIB:  OUT: [=`Code] *)
type code = [ | `Code ]

type code_content = [ | phrasing ]

type code_content_fun = [ | phrasing ]

type code_attrib = [ | common ]

(* NAME: dfn, KIND: star, TYPE: [= common ], [= phrasing_without_dfn ], [=`Dfn], ARG: [= phrasing_without_dfn ], ATTRIB:  OUT: [=`Dfn] *)
type dfn = [ | `Dfn ]

type dfn_content = [ | phrasing_without_dfn ]

type dfn_content_fun = [ | phrasing_without_dfn ]

type dfn_attrib = [ | common ]

(* NAME: em, KIND: star, TYPE: [= common ], [= phrasing ], [=`Em], ARG: [= phrasing ], ATTRIB:  OUT: [=`Em] *)
type em = [ | `Em ]

type em_content = [ | phrasing ]

type em_content_fun = [ | phrasing ]

type em_attrib = [ | common ]

(* NAME: kbd, KIND: star, TYPE: [= common ], [= phrasing ], [=`Kbd], ARG: [= phrasing ], ATTRIB:  OUT: [=`Kbd] *)
type kbd = [ | `Kbd ]

type kbd_content = [ | phrasing ]

type kbd_content_fun = [ | phrasing ]

type kbd_attrib = [ | common ]

(* NAME: q, KIND: star, TYPE: [= common | `Cite ], [= phrasing ], [=`Q], ARG: [= phrasing ], ATTRIB:  OUT: [=`Q] *)
type q = [ | `Q ]

type q_content = [ | phrasing ]

type q_content_fun = [ | phrasing ]

type q_attrib = [ | common | `Cite ]

(* NAME: samp, KIND: star, TYPE: [= common ], [= phrasing ], [=`Samp], ARG: [= phrasing ], ATTRIB:  OUT: [=`Samp] *)
type samp = [ | `Samp ]

type samp_content = [ | phrasing ]

type samp_content_fun = [ | phrasing ]

type samp_attrib = [ | common ]

(* NAME: span, KIND: star, TYPE: [= common ], [= phrasing ], [=`Span], ARG: [= phrasing ], ATTRIB:  OUT: [=`Span] *)
type span = [ | `Span ]

type span_content = [ | phrasing ]

type span_content_fun = [ | phrasing ]

type span_attrib = [ | common ]

(* NAME: strong, KIND: star, TYPE: [= common ], [= phrasing ], [=`Strong], ARG: [= phrasing ], ATTRIB:  OUT: [=`Strong] *)
type strong = [ | `Strong ]

type strong_content = [ | phrasing ]

type strong_content_fun = [ | phrasing ]

type strong_attrib = [ | common ]

(* NAME: time, KIND: star, TYPE: [= common |`Datetime |`Pubdate], [= phrasing_without_time ], [=`Time], ARG: [= phrasing_without_time ], ATTRIB:  OUT: [=`Time] *)
type time = [ | `Time ]

type time_content = [ | phrasing_without_time ]

type time_content_fun = [ | phrasing_without_time ]

type time_attrib = [ | common | `Datetime | `Pubdate ]

(* NAME: var, KIND: star, TYPE: [= common ], [= phrasing ], [=`Var], ARG: [= phrasing ], ATTRIB:  OUT: [=`Var] *)
type var = [ | `Var ]

type var_content = [ | phrasing ]

type var_content_fun = [ | phrasing ]

type var_attrib = [ | common ]

(* NAME: a, KIND: star, TYPE: [= common | `Href | `Hreflang | `Media | `Rel | `Target | `Mime_type ], 'a, [= `A of 'a ], ARG: 'a, ATTRIB:  OUT: [= `A of 'a ] *)
type a_content = flow5_without_interactive

type a_content_fun = flow5_without_interactive

type 'a a = [ | `A of 'a ]
type a_ = [ `A of a_content ] (* should not be used as it may break *)
type a_attrib =
  [ | common | `Href | `Hreflang | `Media | `Rel | `Target | `Mime_type
  ]

(* NAME: del, KIND: star, TYPE: [= common | `Cite | `Datetime ], 'a,[=`Del of 'a], ARG: 'a, ATTRIB:  OUT: [=`Del of 'a] *)
type 'a del = [ | `Del of 'a ]
type del_content = flow5
type del_ = del_content del
type del_content_fun = flow5

type del_attrib = [ | common | `Cite | `Datetime ]

(* NAME: ins, KIND: star, TYPE: [= common | `Cite | `Datetime ],'a ,[=`Ins of 'a], ARG: 'a , ATTRIB:  OUT: [=`Ins of 'a] *)
type 'a ins = [ | `Ins of 'a ]

type ins_content = flow5
type ins_ = ins_content ins
type ins_content_fun = flow5

type ins_attrib = [ | common | `Cite | `Datetime ]

(* NAME: iframe, KIND: ndbox, TYPE: *| `Srcdoc*, ARG: , ATTRIB:  OUT:  *)
type iframe = [ | `Iframe ]

type iframe_content = [ | `PCDATA ]

type iframe_content_fun = [ | `PCDATA ]

type iframe_attrib =
  [
    | common
    | `Src
    | (*| `Srcdoc*)
    `Name
    | `Sandbox
    | `Seamless
    | `Width
    | `Height
  ]

type object__content = [ | flow5 | `Param ]

type object__content_fun = flow5

type 'a object_ = [ | `Object of 'a | `Object_interactive of 'a]
type object__ = object__content object_
type object__attrib =
  [
    | common
    | `Data
    | `Form
    | `Mime_type
    | `Height
    | `Width
    | `Name
    | `Usemap
  ]

(* NAME: param, KIND: nullary, TYPE: [= common | `Name | `Text_Value ],[= `Param ], ARG: notag, ATTRIB:  OUT: [= `Param ] *)
type param = [ | `Param ]

type param_content = notag

type param_content_fun = notag

type param_attrib = [ | common | `Name | `Text_Value ]

(* NAME: embed, KIND: nullary, TYPE: [= common | `Src | `Height | `Mime_type | `Width], [=`Embed], ARG: notag, ATTRIB:  OUT: [=`Embed] *)
type embed = [ | `Embed ]

type embed_content = notag

type embed_content_fun = notag

type embed_attrib = [ | common | `Src | `Height | `Mime_type | `Width ]

type 'a audio = [ | `Audio of 'a | `Audio_interactive of 'a ]

type audio_content = flow5_without_media

type audio_ = audio_content audio

type audio_content_fun = flow5_without_media

type audio_attrib =
  [
    | common
    | `Poster
    | `Preload
    | `Autoplay
    | `Loop
    | `Controls
    | `Width
    | `Height
  ]

type 'a video = [ | `Video of 'a | `Video_interactive of 'a ]

type video_content = flow5_without_media
type video_ = video_content video
type video_content_fun = flow5_without_media

type video_attrib =
  [
    | common
    | `Poster
    | `Preload
    | `Autoplay
    | `Loop
    | `Controls
    | `Width
    | `Height
  ]

(* NAME: canvas, KIND: star, TYPE: [= common |`Width |`Height],'a, [=`Canvas of 'a], ARG: 'a, ATTRIB:  OUT: [=`Canvas of 'a] *)
type 'a canvas = [ | `Canvas of 'a ]

type canvas_content = flow5
type canvas_ = canvas_content canvas
type canvas_content_fun = flow5

type canvas_attrib = [ | common | `Width | `Height ]

(* NAME: source, KIND: nullary, TYPE: [= common |`Src |`Mime_type |`Media ], [=`Source], ARG: notag, ATTRIB:  OUT: [=`Source] *)
type source = [ | `Source ]

type source_content = notag

type source_content_fun = notag

type source_attrib = [ | common | `Src | `Mime_type | `Media ]

(* NAME: area, KIND: nullary, TYPE: [= common | `Alt | `Coords | `Shape| `Target | `Rel | `Media| `Hreflang | `Mime_type],[=`Area], ARG: notag, ATTRIB:  OUT: [=`Area] *)
type area = [ | `Area ]

type area_content = notag

type area_content_fun = notag

type area_attrib =
  [
    | common
    | `Alt
    | `Coords
    | `Shape
    | `Target
    | `Rel
    | `Media
    | `Hreflang
    | `Mime_type
  ]

(* NAME: map, KIND: plus, TYPE: [=common | `Name ],'a, [=`Map of 'a], ARG: 'a, ATTRIB:  OUT: [=`Map of 'a] *)
type 'a map = [ | `Map of 'a ]

type map_content = flow5
type map_ = map_content map

type map_content_fun = flow5

type map_attrib = [ | common | `Name ]

(* NAME: caption, KIND: star, TYPE: [= common ], [= flow5_without_table], [=`Caption], ARG: [= flow5_without_table], ATTRIB:  OUT: [=`Caption] *)
type caption = [ | `Caption ]

type caption_content = [ | flow5_without_table ]

type caption_content_fun = [ | flow5_without_table ]

type caption_attrib = [ | common ]

(* NAME: table, KIND: plus, TYPE: [= common | `Summary ], [= `Tr ], [=`Table], ARG: [= `Tr ], ATTRIB:  OUT: [=`Table] *)
type table = [ | `Table ]

type table_content = [ | `Tr ]

type table_content_fun = [ | `Tr ]

type table_attrib = [ | common | `Summary ]

(* NAME: tablex, KIND: star, TYPE: [= common | `Summary ], [= `Tbody ], [=`Table], ARG: [= `Tbody ], ATTRIB:  OUT: [=`Table] *)
type tablex = [ | `Table ]

type tablex_content = [ | `Tbody ]

type tablex_content_fun = [ | `Tbody ]

type tablex_attrib = [ | common | `Summary ]

(* NAME: colgroup, KIND: star, TYPE: [= common | `Span ],[= `Col ], [=`Colgroup], ARG: [= `Col ], ATTRIB:  OUT: [=`Colgroup] *)
type colgroup = [ | `Colgroup ]

type colgroup_content = [ | `Col ]

type colgroup_content_fun = [ | `Col ]

type colgroup_attrib = [ | common | `Span ]

(* NAME: col, KIND: nullary, TYPE: [= common | `Span], [=`Col], ARG: notag, ATTRIB:  OUT: [=`Col] *)
type col = [ | `Col ]

type col_content = notag

type col_content_fun = notag

type col_attrib = [ | common | `Span ]

(* NAME: thead, KIND: star, TYPE: [= common],[= `Tr ], [=`Thead], ARG: [= `Tr ], ATTRIB:  OUT: [=`Thead] *)
type thead = [ | `Thead ]

type thead_content = [ | `Tr ]

type thead_content_fun = [ | `Tr ]

type thead_attrib = [ | common ]

(* NAME: tbody, KIND: star, TYPE: [= common],[= `Tr ], [=`Tbody], ARG: [= `Tr ], ATTRIB:  OUT: [=`Tbody] *)
type tbody = [ | `Tbody ]

type tbody_content = [ | `Tr ]

type tbody_content_fun = [ | `Tr ]

type tbody_attrib = [ | common ]

(* NAME: tfoot, KIND: star, TYPE: [= common],[= `Tr ], [=`Tfoot], ARG: [= `Tr ], ATTRIB:  OUT: [=`Tfoot] *)
type tfoot = [ | `Tfoot ]

type tfoot_content = [ | `Tr ]

type tfoot_content_fun = [ | `Tr ]

type tfoot_attrib = [ | common ]

(* NAME: td, KIND: star, TYPE: [= common | `Colspan | `Headers | `Rowspan ], [= flow5 ], [=`Td], ARG: [= flow5 ], ATTRIB:  OUT: [=`Td] *)
type td = [ | `Td ]

type td_content = [ | flow5 ]

type td_content_fun = [ | flow5 ]

type td_attrib = [ | common | `Colspan | `Headers | `Rowspan ]

(* NAME: th, KIND: star, TYPE: [= common | `Colspan | `Headers | `Rowspan | `Scope], [= phrasing], [=`Th], ARG: [= phrasing], ATTRIB:  OUT: [=`Th] *)
type th = [ | `Th ]

type th_content = [ | phrasing ]

type th_content_fun = [ | phrasing ]

type th_attrib = [ | common | `Colspan | `Headers | `Rowspan | `Scope ]

(* NAME: tr, KIND: star, TYPE: [= common ],[= `Td | `Th ], [=`Tr], ARG: [= `Td | `Th ], ATTRIB:  OUT: [=`Tr] *)
type tr = [ | `Tr ]

type tr_content = [ | `Td | `Th ]

type tr_content_fun = [ | `Td | `Th ]

type tr_attrib = [ | common ]

(* NAME: form, KIND: plus, TYPE: [= common |`Accept_charset | `Action | `Enctype | `Method | `Name | `Target | `Autocomplete | `Novalidate ], [= flow5_without_form ], [=`Form], ARG: [= flow5_without_form ], ATTRIB:  OUT: [=`Form] *)
type form = [ | `Form ]

type form_content = [ | flow5_without_form ]

type form_content_fun = [ | flow5_without_form ]

type form_attrib =
  [
    | common
    | `Accept_charset
    | `Action
    | `Enctype
    | `Method
    | `Name
    | `Target
    | `Autocomplete
    | `Novalidate
  ]

(* NAME: fieldset, KIND: star, TYPE: [= common | `Disabled | `Form | `Name], [= flow5 ], [=`Fieldset], ARG: [= flow5 ], ATTRIB:  OUT: [=`Fieldset] *)
type fieldset = [ | `Fieldset ]

type fieldset_content = [ | flow5 ]

type fieldset_content_fun = [ | flow5 ]

type fieldset_attrib = [ | common | `Disabled | `Form | `Name ]

(* NAME: legend, KIND: star, TYPE: [= common ],[= phrasing], [=`Legend], ARG: [= phrasing], ATTRIB:  OUT: [=`Legend] *)
type legend = [ | `Legend ]

type legend_content = [ | phrasing ]

type legend_content_fun = [ | phrasing ]

type legend_attrib = [ | common ]

(* NAME: label, KIND: star, TYPE: [= common | `For | `Form ],[= phrasing_without_label], [=`Label], ARG: [= phrasing_without_label], ATTRIB:  OUT: [=`Label] *)
type label = [ | `Label ]

type label_content = [ | phrasing_without_label ]

type label_content_fun = [ | phrasing_without_label ]

type label_attrib = [ | common | `For | `Form ]

(* NAME: input, KIND: nullary, TYPE: [= input_attr ], [=`Input], ARG: notag, ATTRIB:  OUT: [=`Input] *)
type input = [ | `Input ]

type input_content = notag

type input_content_fun = notag

type input_attrib =
  [
    | common
    | `Accept
    | `Alt
    | `Autocomplete
    | `Autofocus
    | `Checked
    | `Disabled
    | `Form
    | `Formation
    | `Formenctype
    | `Formmethod
    | `Formnovalidate
    | `Formtarget
    | `Height
    | `List
    | `Input_Max
    | `Maxlength
    | `Input_Min
    | `Multiple
    | `Name
    | `Pattern
    | `Placeholder
    | `ReadOnly
    | `Required
    | `Size
    | `Src
    | `Step
    | `Input_Type
    | `Value
    | `Width
  ]

type textarea = [ | `Textarea ]

type textarea_attrib =
  [
    | common
    | `Autofocus
    | `Disabled
    | `Form
    | `Maxlength
    | `Name
    | `Placeholder
    | `ReadOnly
    | `Required
    | `Wrap
    | `Rows
    | `Cols
  ]

type textarea_content = [ | `PCDATA ]

type textarea_content_fun = textarea_content

(* NAME: button, KIND: star, TYPE:  [= button_attr ], [= phrasing_without_interactive ], [=`Button], ARG: [= phrasing_without_interactive ], ATTRIB:  OUT: [=`Button] *)
type button = [ | `Button ]

type button_content = [ | phrasing_without_interactive ]

type button_content_fun = [ | phrasing_without_interactive ]

type button_attrib =
  [
    | common
    | `Autofocus
    | `Disabled
    | `Form
    | `Formaction
    | `Formenctype
    | `Formmethod
    | `Formnovalidate
    | `Formtarget
    | `Name
    | `Text_Value
    | `Button_Type
  ]

(* NAME: select, KIND: star, TYPE: [= common |`Autofocus | `Multiple | `Name | `Size | `Form | `Disabled ], [ `Optgroup | `Option ],[=`Select], ARG: [ `Optgroup | `Option ], ATTRIB:  OUT: [=`Select] *)
type select = [ | `Select ]

type select_content = [ | `Optgroup | `Option ]

type select_content_fun = [ | `Optgroup | `Option ]

type select_attrib =
  [ | common | `Autofocus | `Multiple | `Name | `Size | `Form | `Disabled | `Required
  ]

(* NAME: datalist, KIND: nullary, TYPE: [= common ], [=`Datalist], ARG: notag, ATTRIB:  OUT: [=`Datalist] *)
type datalist = [ | `Datalist ]

type datalist_content = notag

type datalist_content_fun = notag

type datalist_attrib = [ | common ]

(* NAME: optgroup, KIND: star, TYPE: [= common | `Disabled | `Label ], [= `Option ], [=`Optgroup], ARG: [= `Option ], ATTRIB:  OUT: [=`Optgroup] *)
type optgroup = [ | `Optgroup ]

type optgroup_content = [ | `Option ]

type optgroup_content_fun = [ | `Option ]

type optgroup_attrib = [ | common | `Disabled | `Label ]

type option_attrib =
  [ | common | `Selected | `Text_Value | `Disabled | `Label | `Value ]

type selectoption = [ | `Option ]

type option_content_fun = [ | `PCDATA ]

type option_content = [ | `PCDATA ]

(* NAME: keygen, KIND: nullary, TYPE: [= common | `Autofcus | `Challenge | `Disabled | `Form | `Keytype | `Name ], [=`Keygen], ARG: notag, ATTRIB:  OUT: [=`Keygen] *)
type keygen = [ | `Keygen ]

type keygen_content = notag

type keygen_content_fun = notag

type keygen_attrib =
  [ | common | `Autofcus | `Challenge | `Disabled | `Form | `Keytype | `Name
  ]

(* NAME: progress, KIND: star, TYPE: [= common | `Float_Value |`Max| `Form ],[= phrasing_without_progress], [=`Progress], ARG: [= phrasing_without_progress], ATTRIB:  OUT: [=`Progress] *)
type progress = [ | `Progress ]

type progress_content = [ | phrasing_without_progress ]

type progress_content_fun = [ | phrasing_without_progress ]

type progress_attrib = [ | common | `Float_Value | `Max | `Form ]

(* NAME: meter, KIND: star, TYPE: [= common |`Float_Value |`Min |`Max |`Low |`High |`Optimum |`Form],[= phrasing_without_meter ],[=`Meter], ARG: [= phrasing_without_meter ], ATTRIB:  OUT: [=`Meter] *)
type meter = [ | `Meter ]

type meter_content = [ | phrasing_without_meter ]

type meter_content_fun = [ | phrasing_without_meter ]

type meter_attrib =
  [ | common | `Float_Value | `Min | `Max | `Low | `High | `Optimum | `Form
  ]

(* NAME: output_elt, KIND: star, TYPE: [= common |`Form |`For_List |`Name],[= phrasing ],[=`Output], ARG: [= phrasing ], ATTRIB:  OUT: [=`Output] *)
type output_elt = [ | `Output ]

type output_elt_content = [ | phrasing ]

type output_elt_content_fun = [ | phrasing ]

type output_elt_attrib = [ | common | `Form | `For_List | `Name ]

(* NAME: details, KIND: star, TYPE: [= common | `Open ], [= flow5] elt, [= `Details], ARG: [= flow5] elt, ATTRIB:  OUT: [= `Details] *)
type details = [ | `Details ]

type details_content = [ | flow5 ]

type details_content_fun = [ | flow5 ]

type details_attrib = [ | common | `Open ]

(* NAME: summary, KIND: star, TYPE: [= common ],[= phrasing ], [=`Summary], ARG: [= phrasing ], ATTRIB:  OUT: [=`Summary] *)
type summary = [ | `Summary ]

type summary_content = [ | phrasing ]

type summary_content_fun = [ | phrasing ]

type summary_attrib = [ | common ]

(* NAME: command, KIND: nullary, TYPE: [= common |`Icon |`Disabled |`Checked|`Radiogroup |`Command_Type], [=`Command], ARG: notag, ATTRIB:  OUT: [=`Command] *)
type command = [ | `Command ]

type command_content = notag

type command_content_fun = notag

type command_attrib =
  [ | common | `Icon | `Disabled | `Checked | `Radiogroup | `Command_Type
  ]

(* NAME: menu, KIND: nullary, TYPE: [= common |`Label |`Menu_Type ],[=`Menu], ARG: notag, ATTRIB:  OUT: [=`Menu] *)
type menu = [ | `Menu ]

type menu_content = notag

type menu_content_fun = notag

type menu_attrib = [ | common | `Label | `Menu_Type ]

(* NAME: noscript, KIND: plus, TYPE: [= common ], 'a, [=`Noscript of 'a], ARG: 'a, ATTRIB:  OUT: [=`Noscript of 'a] *)
type noscript = [ | `Noscript of flow5_without_noscript ]

type noscript_content = flow5_without_noscript

type noscript_content_fun = flow5_without_noscript

type noscript_attrib = [ | common ]

(* NAME: meta, KIND: nullary, TYPE: [= common | `Http_equiv | `Name | `Content | `Charset ], [=`Meta], ARG: notag, ATTRIB:  OUT: [=`Meta] *)
type meta = [ | `Meta ]

type meta_content = notag

type meta_content_fun = notag

type meta_attrib = [ | common | `Http_equiv | `Name | `Content | `Charset | `Property ]

(* NAME: style, KIND: star, TYPE: [= common | `Media | `Mime_type | `Scoped ], [= `PCDATA ], [=`Style], ARG: [= `PCDATA ], ATTRIB:  OUT: [=`Style] *)
type style = [ | `Style ]

type style_content = [ | `PCDATA ]

type style_content_fun = [ | `PCDATA ]

type style_attrib = [ | common | `Media | `Mime_type | `Scoped ]

type script = [ | `Script ]

type script_attrib =
  [ | common | `Async | `Charset | `Src | `Defer | `Mime_type
  ]

type script_content = [ | `PCDATA ]

type script_content_fun = [ | `PCDATA ]

(* NAME: link, KIND: nullary, TYPE: [= common | `Hreflang | `Media | `Rel | `Href | `Sizes | `Mime_type ], [=`Link], ARG: notag, ATTRIB:  OUT: [=`Link] *)
type link = [ | `Link ]

type link_content = notag

type link_content_fun = notag

type link_attrib =
  [ | common | `Hreflang | `Media | `Rel | `Href | `Sizes | `Mime_type
  ]