File: xml.html

package info (click to toggle)
node-xmldom 0.9.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,944 kB
  • sloc: xml: 39,442; javascript: 10,978; sh: 29; makefile: 2
file content (7639 lines) | stat: -rw-r--r-- 277,024 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="EN">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Extensible Markup Language (XML) 1.0 (Fifth Edition)</title>
		<style type="text/css">
			code {
				font-family: monospace;
			}

			div.constraint,
			div.issue,
			div.note,
			div.notice {
				margin-left: 2em;
			}

			ol.enumar {
				list-style-type: decimal;
			}
			ol.enumla {
				list-style-type: lower-alpha;
			}
			ol.enumlr {
				list-style-type: lower-roman;
			}
			ol.enumua {
				list-style-type: upper-alpha;
			}
			ol.enumur {
				list-style-type: upper-roman;
			}

			div.exampleInner pre {
				margin-left: 1em;
				margin-top: 0em;
				margin-bottom: 0em;
			}
			div.exampleOuter {
				border: 4px double gray;
				margin: 0em;
				padding: 0em;
			}
			div.exampleInner {
				background-color: #d5dee3;
				border-top-width: 4px;
				border-top-style: double;
				border-top-color: #d3d3d3;
				border-bottom-width: 4px;
				border-bottom-style: double;
				border-bottom-color: #d3d3d3;
				padding: 4px;
				margin: 0em;
			}
			div.exampleWrapper {
				margin: 4px;
			}
			div.exampleHeader {
				font-weight: bold;
				margin: 4px;
			}

			em.rfc2119 {
				text-transform: lowercase;
				font-variant: small-caps;
				font-style: normal;
			}
		</style>
		<link
			rel="stylesheet"
			type="text/css"
			href="http://www.w3.org/StyleSheets/TR/W3C-REC.css"
		/>
	</head>
	<body>
		<div class="head">
			<p>
				<a href="http://www.w3.org/"
					><img
						src="http://www.w3.org/Icons/w3c_home"
						alt="W3C"
						height="48"
						width="72"
				/></a>
			</p>
			<h1>
				<a name="title" id="title" />Extensible Markup Language (XML) 1.0 (Fifth
				Edition)
			</h1>
			<h2>
				<a name="w3c-doctype" id="w3c-doctype" />W3C Recommendation 26 November
				2008
			</h2>
			<div
				id="notice-20130207"
				style="border: solid black 1px; padding: 0.5em; background: #ffb"
			>
				<p>
					<strong>Note:</strong> On 7 February 2013, this specification was
					modified in place to replace broken links to RFC4646 and RFC4647.
				</p>
			</div>
			<dl>
				<dt>This version:</dt>
				<dd>
					<a href="http://www.w3.org/TR/2008/REC-xml-20081126/"
						>http://www.w3.org/TR/2008/REC-xml-20081126/</a
					>
				</dd>
				<dt>Latest version:</dt>
				<dd>
					<a href="http://www.w3.org/TR/xml/">http://www.w3.org/TR/xml/</a>
				</dd>
				<dt>Previous versions:</dt>
				<dd>
					<a href="http://www.w3.org/TR/2008/PER-xml-20080205/"
						>http://www.w3.org/TR/2008/PER-xml-20080205/</a
					>
					<br />
					<a href="http://www.w3.org/TR/2006/REC-xml-20060816/"
						>http://www.w3.org/TR/2006/REC-xml-20060816/</a
					>
				</dd>
				<dt>Editors:</dt>
				<dd>
					Tim Bray, Textuality and Netscape
					<a href="mailto:tbray@textuality.com">&lt;tbray@textuality.com&gt;</a>
				</dd>
				<dd>
					Jean Paoli, Microsoft
					<a href="mailto:jeanpa@microsoft.com">&lt;jeanpa@microsoft.com&gt;</a>
				</dd>
				<dd>
					C. M. Sperberg-McQueen, W3C
					<a href="mailto:cmsmcq@w3.org">&lt;cmsmcq@w3.org&gt;</a>
				</dd>
				<dd>
					Eve Maler, Sun Microsystems, Inc.
					<a href="mailto:elm@east.sun.com">&lt;eve.maler@east.sun.com&gt;</a>
				</dd>
				<dd>François Yergeau</dd>
			</dl>
			<p>
				Please refer to the
				<a href="http://www.w3.org/XML/xml-V10-5e-errata"
					><strong>errata</strong></a
				>
				for this document, which may include some normative corrections.
			</p>
			<p>
				The
				<a href="http://www.w3.org/XML/xml-V10-4e-errata">previous errata</a>
				for this document, are also available.
			</p>
			<p>
				See also
				<a
					href="http://www.w3.org/2003/03/Translations/byTechnology?technology=xml"
					><strong>translations</strong></a
				>.
			</p>
			<p>
				This document is also available in these non-normative formats:
				<a href="REC-xml-20081126.xml">XML</a> and&nbsp;<a
					href="REC-xml-20081126-review.html"
					>XHTML with color-coded revision indicators</a
				>.
			</p>
			<p class="copyright">
				<a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
					>Copyright</a
				>&nbsp;©&nbsp;2008&nbsp;<a href="http://www.w3.org/"
					><acronym title="World Wide Web Consortium">W3C</acronym></a
				><sup>®</sup> (<a href="http://www.csail.mit.edu/"
					><acronym title="Massachusetts Institute of Technology"
						>MIT</acronym
					></a
				>,
				<a href="http://www.ercim.org/"
					><acronym
						title="European Research Consortium for Informatics and Mathematics"
						>ERCIM</acronym
					></a
				>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C
				<a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer"
					>liability</a
				>,
				<a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks"
					>trademark</a
				>
				and
				<a href="http://www.w3.org/Consortium/Legal/copyright-documents"
					>document use</a
				>
				rules apply.
			</p>
		</div>
		<hr />
		<div>
			<h2><a name="abstract" id="abstract" />Abstract</h2>
			<p>
				The Extensible Markup Language (XML) is a subset of SGML that is
				completely described in this document. Its goal is to enable generic
				SGML to be served, received, and processed on the Web in the way that is
				now possible with HTML. XML has been designed for ease of implementation
				and for interoperability with both SGML and HTML.
			</p>
		</div>
		<div>
			<h2><a name="status" id="status" />Status of this Document</h2>
			<p>
				<em
					>This section describes the status of this document at the time of its
					publication. Other documents may supersede this document. A list of
					current W3C publications and the latest revision of this technical
					report can be found in the
					<a href="http://www.w3.org/TR/">W3C technical reports index</a> at
					http://www.w3.org/TR/.</em
				>
			</p>
			<p>
				This document specifies a syntax created by subsetting an existing,
				widely used international text processing standard (Standard Generalized
				Markup Language, ISO 8879:1986(E) as amended and corrected) for use on
				the World Wide Web. It is a product of the
				<a href="http://www.w3.org/XML/Core/">XML Core Working Group</a> as part
				of the <a href="http://www.w3.org/XML/Activity">XML Activity</a>. The
				English version of this specification is the only normative version.
				However, for translations of this document, see
				<a
					href="http://www.w3.org/2003/03/Translations/byTechnology?technology=xml"
					>http://www.w3.org/2003/03/Translations/byTechnology?technology=xml</a
				>.
			</p>
			<p>
				This document is a
				<a href="http://www.w3.org/2005/10/Process-20051014/tr.html#q74"
					>W3C Recommendation</a
				>. This fifth edition is <em>not</em> a new version of XML. As a
				convenience to readers, it incorporates the changes dictated by the
				accumulated errata (available at
				<a href="http://www.w3.org/XML/xml-V10-4e-errata"
					>http://www.w3.org/XML/xml-V10-4e-errata</a
				>) to the
				<a href="http://www.w3.org/TR/2006/REC-xml-20060816/"
					>Fourth Edition of XML 1.0, dated 16 August 2006</a
				>. In particular, erratum
				<a href="http://www.w3.org/XML/xml-V10-4e-errata#E09">[E09]</a> relaxes
				the restrictions on element and attribute names, thereby providing in
				XML 1.0 the major end user benefit currently achievable only by using
				XML 1.1. As a consequence, many possible documents which were not
				well-formed according to previous editions of this specification are now
				well-formed, and previously invalid documents using the newly-allowed
				name characters in, for example, ID attributes, are now valid.
			</p>
			<p>
				This edition supersedes the previous
				<a href="http://www.w3.org/TR/2006/REC-xml-20060816/"
					>W3C Recommendation of 16 August 2006</a
				>.
			</p>
			<p>
				Please report errors in this document to the public
				<a href="mailto:xml-editor@w3.org">xml-editor@w3.org</a> mail list;
				public
				<a href="http://lists.w3.org/Archives/Public/xml-editor/">archives</a>
				are available. For the convenience of readers, an
				<a href="REC-xml-20081126-review.html"
					>XHTML version with color-coded revision indicators</a
				>
				is also provided; this version highlights each change due to an erratum
				published in the
				<a href="http://www.w3.org/XML/xml-V10-4e-errata">errata list</a> for
				the previous edition, together with a link to the particular erratum in
				that list. Most of the errata in the list provide a rationale for the
				change. The errata list for this fifth edition is available at
				<a href="http://www.w3.org/XML/xml-V10-5e-errata"
					>http://www.w3.org/XML/xml-V10-5e-errata</a
				>.
			</p>
			<p>
				An implementation report is available at
				<a href="http://www.w3.org/XML/2008/01/xml10-5e-implementation.html"
					>http://www.w3.org/XML/2008/01/xml10-5e-implementation.html</a
				>. A <a href="http://www.w3.org/XML/Test/">Test Suite</a> is maintained
				to help assessing conformance to this specification.
			</p>
			<p>
				This document has been reviewed by W3C Members, by software developers,
				and by other W3C groups and interested parties, and is endorsed by the
				Director as a W3C Recommendation. It is a stable document and may be
				used as reference material or cited from another document. W3C's role in
				making the Recommendation is to draw attention to the specification and
				to promote its widespread deployment. This enhances the functionality
				and interoperability of the Web.
			</p>
			<p>
				W3C maintains a
				<a
					href="http://www.w3.org/2002/08/xmlcore-IPR-statements"
					rel="disclosure"
					>public list of any patent disclosures</a
				>
				made in connection with the deliverables of the group; that page also
				includes instructions for disclosing a patent. An individual who has
				actual knowledge of a patent which the individual believes contains
				<a
					href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential"
					>Essential Claim(s)</a
				>
				must disclose the information in accordance with
				<a
					href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure"
					>section 6 of the W3C Patent Policy</a
				>.
			</p>
		</div>
		<div class="toc">
			<h2><a name="contents" id="contents" />Table of Contents</h2>
			<p class="toc">
				1 <a href="#sec-intro">Introduction</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;1.1
				<a href="#sec-origin-goals">Origin and Goals</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;1.2 <a href="#sec-terminology">Terminology</a
				><br />
				2 <a href="#sec-documents">Documents</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.1
				<a href="#sec-well-formed">Well-Formed XML Documents</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.2 <a href="#charsets">Characters</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.3
				<a href="#sec-common-syn">Common Syntactic Constructs</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.4
				<a href="#syntax">Character Data and Markup</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.5 <a href="#sec-comments">Comments</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.6 <a href="#sec-pi">Processing Instructions</a
				><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.7 <a href="#sec-cdata-sect">CDATA Sections</a
				><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.8
				<a href="#sec-prolog-dtd">Prolog and Document Type Declaration</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.9
				<a href="#sec-rmd">Standalone Document Declaration</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.10
				<a href="#sec-white-space">White Space Handling</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.11
				<a href="#sec-line-ends">End-of-Line Handling</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;2.12
				<a href="#sec-lang-tag">Language Identification</a><br />
				3 <a href="#sec-logical-struct">Logical Structures</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;3.1
				<a href="#sec-starttags">Start-Tags, End-Tags, and Empty-Element Tags</a
				><br />
				&nbsp;&nbsp;&nbsp;&nbsp;3.2
				<a href="#elemdecls">Element Type Declarations</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.2.1
				<a href="#sec-element-content">Element Content</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.2.2
				<a href="#sec-mixed-content">Mixed Content</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;3.3
				<a href="#attdecls">Attribute-List Declarations</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.3.1
				<a href="#sec-attribute-types">Attribute Types</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.3.2
				<a href="#sec-attr-defaults">Attribute Defaults</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.3.3
				<a href="#AVNormalize">Attribute-Value Normalization</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;3.4
				<a href="#sec-condition-sect">Conditional Sections</a><br />
				4 <a href="#sec-physical-struct">Physical Structures</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.1
				<a href="#sec-references">Character and Entity References</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.2
				<a href="#sec-entity-decl">Entity Declarations</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.2.1
				<a href="#sec-internal-ent">Internal Entities</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.2.2
				<a href="#sec-external-ent">External Entities</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.3 <a href="#TextEntities">Parsed Entities</a
				><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.3.1
				<a href="#sec-TextDecl">The Text Declaration</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.3.2
				<a href="#wf-entities">Well-Formed Parsed Entities</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.3.3
				<a href="#charencoding">Character Encoding in Entities</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.4
				<a href="#entproc">XML Processor Treatment of Entities and References</a
				><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.1
				<a href="#not-recognized">Not Recognized</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.2
				<a href="#included">Included</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.3
				<a href="#include-if-valid">Included If Validating</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.4
				<a href="#forbidden">Forbidden</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.5
				<a href="#inliteral">Included in Literal</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.6
				<a href="#notify">Notify</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.7
				<a href="#bypass">Bypassed</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.8
				<a href="#as-PE">Included as PE</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4.9
				<a href="#error">Error</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.5
				<a href="#intern-replacement">Construction of Entity Replacement Text</a
				><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.6
				<a href="#sec-predefined-ent">Predefined Entities</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.7
				<a href="#Notations">Notation Declarations</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;4.8 <a href="#sec-doc-entity">Document Entity</a
				><br />
				5 <a href="#sec-conformance">Conformance</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;5.1
				<a href="#proc-types">Validating and Non-Validating Processors</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;5.2
				<a href="#safe-behavior">Using XML Processors</a><br />
				6 <a href="#sec-notation">Notation</a><br />
			</p>
			<h3><a name="appendices" id="appendices" />Appendices</h3>
			<p class="toc">
				A <a href="#sec-bibliography">References</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;A.1
				<a href="#sec-existing-stds">Normative References</a><br />
				&nbsp;&nbsp;&nbsp;&nbsp;A.2 <a href="#null">Other References</a><br />
				B <a href="#CharClasses">Character Classes</a><br />
				C <a href="#sec-xml-and-sgml">XML and SGML</a> (Non-Normative)<br />
				D
				<a href="#sec-entexpand"
					>Expansion of Entity and Character References</a
				>
				(Non-Normative)<br />
				E
				<a href="#determinism">Deterministic Content Models</a>
				(Non-Normative)<br />
				F
				<a href="#sec-guessing">Autodetection of Character Encodings</a>
				(Non-Normative)<br />
				&nbsp;&nbsp;&nbsp;&nbsp;F.1
				<a href="#sec-guessing-no-ext-info"
					>Detection Without External Encoding Information</a
				><br />
				&nbsp;&nbsp;&nbsp;&nbsp;F.2
				<a href="#sec-guessing-with-ext-info"
					>Priorities in the Presence of External Encoding Information</a
				><br />
				G <a href="#sec-xml-wg">W3C XML Working Group</a> (Non-Normative)<br />
				H
				<a href="#sec-core-wg">W3C XML Core Working Group</a>
				(Non-Normative)<br />
				I <a href="#prod-notes">Production Notes</a> (Non-Normative)<br />
				J
				<a href="#sec-suggested-names">Suggestions for XML Names</a>
				(Non-Normative)<br />
			</p>
		</div>
		<hr />
		<div class="body">
			<div class="div1">
				<h2><a name="sec-intro" id="sec-intro" />1 Introduction</h2>
				<p>
					Extensible Markup Language, abbreviated XML, describes a class of data
					objects called
					<a title="XML Document" href="#dt-xml-doc">XML documents</a> and
					partially describes the behavior of computer programs which process
					them. XML is an application profile or restricted form of SGML, the
					Standard Generalized Markup Language
					<a href="#ISO8879">[ISO 8879]</a>. By construction, XML documents are
					conforming SGML documents.
				</p>
				<p>
					XML documents are made up of storage units called
					<a title="Entity" href="#dt-entity">entities</a>, which contain either
					parsed or unparsed data. Parsed data is made up of
					<a title="Character" href="#dt-character">characters</a>, some of
					which form
					<a title="Character Data" href="#dt-chardata">character data</a>, and
					some of which form <a title="Markup" href="#dt-markup">markup</a>.
					Markup encodes a description of the document's storage layout and
					logical structure. XML provides a mechanism to impose constraints on
					the storage layout and logical structure.
				</p>
				<p>
					[<a name="dt-xml-proc" id="dt-xml-proc" title="XML Processor"
						>Definition</a
					>: A software module called an <b>XML processor</b> is used to read
					XML documents and provide access to their content and structure.] [<a
						name="dt-app"
						id="dt-app"
						title="Application"
						>Definition</a
					>: It is assumed that an XML processor is doing its work on behalf of
					another module, called the <b>application</b>.] This specification
					describes the required behavior of an XML processor in terms of how it
					must read XML data and the information it must provide to the
					application.
				</p>
				<div class="div2">
					<h3>
						<a name="sec-origin-goals" id="sec-origin-goals" />1.1 Origin and
						Goals
					</h3>
					<p>
						XML was developed by an XML Working Group (originally known as the
						SGML Editorial Review Board) formed under the auspices of the World
						Wide Web Consortium (W3C) in 1996. It was chaired by Jon Bosak of
						Sun Microsystems with the active participation of an XML Special
						Interest Group (previously known as the SGML Working Group) also
						organized by the W3C. The membership of the XML Working Group is
						given in an appendix. Dan Connolly served as the Working Group's
						contact with the W3C.
					</p>
					<p>The design goals for XML are:</p>
					<ol class="enumar">
						<li>
							<p>XML shall be straightforwardly usable over the Internet.</p>
						</li>
						<li><p>XML shall support a wide variety of applications.</p></li>
						<li><p>XML shall be compatible with SGML.</p></li>
						<li>
							<p>
								It shall be easy to write programs which process XML documents.
							</p>
						</li>
						<li>
							<p>
								The number of optional features in XML is to be kept to the
								absolute minimum, ideally zero.
							</p>
						</li>
						<li>
							<p>XML documents should be human-legible and reasonably clear.</p>
						</li>
						<li><p>The XML design should be prepared quickly.</p></li>
						<li><p>The design of XML shall be formal and concise.</p></li>
						<li><p>XML documents shall be easy to create.</p></li>
						<li><p>Terseness in XML markup is of minimal importance.</p></li>
					</ol>
					<p>
						This specification, together with associated standards (Unicode
						<a href="#Unicode">[Unicode]</a> and ISO/IEC 10646
						<a href="#ISO10646">[ISO/IEC 10646]</a> for characters, Internet
						<span>BCP 47</span> <a href="#RFC1766">[IETF BCP 47]</a>
						<span
							>and the Language Subtag Registry
							<a href="#IANA-LANGCODES">[IANA-LANGCODES]</a></span
						>
						for language identification tags), provides all the information
						necessary to understand XML Version 1.0 and construct computer
						programs to process it.
					</p>
					<p>
						This version of the XML specification may be distributed freely, as
						long as all text and legal notices remain intact.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-terminology" id="sec-terminology" />1.2 Terminology
					</h3>
					<p>
						The terminology used to describe XML documents is defined in the
						body of this specification. The key words
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>,
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST NOT</em
						>,
						<em class="rfc2119" title="Keyword in RFC 2119 context">REQUIRED</em
						>,
						<em class="rfc2119" title="Keyword in RFC 2119 context">SHALL</em>,
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>SHALL NOT</em
						>,
						<em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em>,
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>SHOULD NOT</em
						>,
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>RECOMMENDED</em
						>, <em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>,
						and
						<em class="rfc2119" title="Keyword in RFC 2119 context">OPTIONAL</em
						>, when
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>EMPHASIZED</em
						>, are to be interpreted as described in
						<a href="#rfc2119">[IETF RFC 2119]</a>. In addition, the terms
						defined in the following list are used in building those definitions
						and in describing the actions of an XML processor:
					</p>
					<dl>
						<dt class="label">error</dt>
						<dd>
							<p>
								[<a name="dt-error" id="dt-error" title="Error">Definition</a>:
								A violation of the rules of this specification; results are
								undefined. Unless otherwise specified, failure to observe a
								prescription of this specification indicated by one of the
								keywords
								<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em
								>,
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>REQUIRED</em
								>,
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>,
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>SHALL</em
								>
								and
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>SHALL NOT</em
								>
								is an error. Conforming software
								<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
								detect and report an error and
								<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
								recover from it.]
							</p>
						</dd>
						<dt class="label">fatal error</dt>
						<dd>
							<p>
								[<a name="dt-fatal" id="dt-fatal" title="Fatal Error"
									>Definition</a
								>: An error which a conforming
								<a title="XML Processor" href="#dt-xml-proc">XML processor</a>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								detect and report to the application. After encountering a fatal
								error, the processor
								<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
								continue processing the data to search for further errors and
								<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
								report such errors to the application. In order to support
								correction of errors, the processor
								<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
								make unprocessed data from the document (with intermingled
								character data and markup) available to the application. Once a
								fatal error is detected, however, the processor
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>
								continue normal processing (i.e., it
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>
								continue to pass character data and information about the
								document's logical structure to the application in the normal
								way).]
							</p>
						</dd>
						<dt class="label">at user option</dt>
						<dd>
							<p>
								[<a
									name="dt-atuseroption"
									id="dt-atuseroption"
									title="At user option"
									>Definition</a
								>: Conforming software
								<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
								or
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								(depending on the modal verb in the sentence) behave as
								described; if it does, it
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								provide users a means to enable or disable the behavior
								described.]
							</p>
						</dd>
						<dt class="label">validity constraint</dt>
						<dd>
							<p>
								[<a name="dt-vc" id="dt-vc" title="Validity constraint"
									>Definition</a
								>: A rule which applies to all
								<a title="Validity" href="#dt-valid">valid</a> XML documents.
								Violations of validity constraints are errors; they
								<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em
								>, at user option, be reported by
								<a title="Validating Processor" href="#dt-validating"
									>validating XML processors</a
								>.]
							</p>
						</dd>
						<dt class="label">well-formedness constraint</dt>
						<dd>
							<p>
								[<a name="dt-wfc" id="dt-wfc" title="Well-formedness constraint"
									>Definition</a
								>: A rule which applies to all
								<a title="Well-Formed" href="#dt-wellformed">well-formed</a> XML
								documents. Violations of well-formedness constraints are
								<a title="Fatal Error" href="#dt-fatal">fatal errors</a>.]
							</p>
						</dd>
						<dt class="label">match</dt>
						<dd>
							<p>
								[<a name="dt-match" id="dt-match" title="match">Definition</a>:
								(Of strings or names:) Two strings or names being compared are
								identical. Characters with multiple possible representations in
								ISO/IEC 10646 (e.g. characters with both precomposed and
								base+diacritic forms) match only if they have the same
								representation in both strings. No case folding is performed.
								(Of strings and rules in the grammar:) A string matches a
								grammatical production if it belongs to the language generated
								by that production. (Of content and content models:) An element
								matches its declaration when it conforms in the fashion
								described in the constraint
								<b>[VC: <a href="#elementvalid">Element Valid</a>]</b>.]
							</p>
						</dd>
						<dt class="label">for compatibility</dt>
						<dd>
							<p>
								[<a name="dt-compat" id="dt-compat" title="For Compatibility"
									>Definition</a
								>: Marks a sentence describing a feature of XML included solely
								to ensure that XML remains compatible with SGML.]
							</p>
						</dd>
						<dt class="label">for interoperability</dt>
						<dd>
							<p>
								[<a
									name="dt-interop"
									id="dt-interop"
									title="For interoperability"
									>Definition</a
								>: Marks a sentence describing a non-binding recommendation
								included to increase the chances that XML documents can be
								processed by the existing installed base of SGML processors
								which predate the WebSGML Adaptations Annex to ISO 8879.]
							</p>
						</dd>
					</dl>
					<p></p>
				</div>
			</div>
			<div class="div1">
				<h2><a name="sec-documents" id="sec-documents" />2 Documents</h2>
				<p>
					[<a name="dt-xml-doc" id="dt-xml-doc" title="XML Document"
						>Definition</a
					>: A data object is an <b>XML document</b> if it is
					<a title="Well-Formed" href="#dt-wellformed">well-formed</a>, as
					defined in this specification. In addition, the XML document is
					<a title="Validity" href="#dt-valid">valid</a> if it meets certain
					further constraints.]
				</p>
				<p>
					Each XML document has both a logical and a physical structure.
					Physically, the document is composed of units called
					<a title="Entity" href="#dt-entity">entities</a>. An entity may
					<a title="Entity Reference" href="#dt-entref">refer</a> to other
					entities to cause their inclusion in the document. A document begins
					in a "root" or
					<a title="Document Entity" href="#dt-docent">document entity</a>.
					Logically, the document is composed of declarations, elements,
					comments, character references, and processing instructions, all of
					which are indicated in the document by explicit markup. The logical
					and physical structures
					<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> nest
					properly, as described in
					<a href="#wf-entities"><b>4.3.2 Well-Formed Parsed Entities</b></a
					>.
				</p>
				<div class="div2">
					<h3>
						<a name="sec-well-formed" id="sec-well-formed" />2.1 Well-Formed XML
						Documents
					</h3>
					<p>
						[<a name="dt-wellformed" id="dt-wellformed" title="Well-Formed"
							>Definition</a
						>: A textual object is a <b>well-formed</b>
						XML document if:]
					</p>
					<ol class="enumar">
						<li>
							<p>
								Taken as a whole, it matches the production labeled
								<a href="#NT-document">document</a>.
							</p>
						</li>
						<li>
							<p>
								It meets all the well-formedness constraints given in this
								specification.
							</p>
						</li>
						<li>
							<p>
								Each of the
								<a title="Text Entity" href="#dt-parsedent">parsed entities</a>
								which is referenced directly or indirectly within the document
								is <a title="Well-Formed" href="#dt-wellformed">well-formed</a>.
							</p>
						</li>
					</ol>
					<h5><a name="document" id="document" />Document</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-document" id="NT-document" />[1]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>document</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-prolog">prolog</a>
										<a href="#NT-element">element</a>
										<a href="#NT-Misc">Misc</a>*</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						Matching the <a href="#NT-document">document</a> production implies
						that:
					</p>
					<ol class="enumar">
						<li>
							<p>
								It contains one or more
								<a title="Element" href="#dt-element">elements</a>.
							</p>
						</li>
						<li>
							<p>
								[<a name="dt-root" id="dt-root" title="Root Element"
									>Definition</a
								>: There is exactly one element, called the <b>root</b>, or
								document element, no part of which appears in the
								<a title="Content" href="#dt-content">content</a> of any other
								element.] For all other elements, if the
								<a title="Start-Tag" href="#dt-stag">start-tag</a> is in the
								content of another element, the
								<a title="End Tag" href="#dt-etag">end-tag</a> is in the content
								of the same element. More simply stated, the elements, delimited
								by start- and end-tags, nest properly within each other.
							</p>
						</li>
					</ol>
					<p>
						[<a name="dt-parentchild" id="dt-parentchild" title="Parent/Child"
							>Definition</a
						>: As a consequence of this, for each non-root element
						<code>C</code> in the document, there is one other element
						<code>P</code> in the document such that <code>C</code> is in the
						content of <code>P</code>, but is not in the content of any other
						element that is in the content of <code>P</code>. <code>P</code> is
						referred to as the <b>parent</b> of <code>C</code>, and
						<code>C</code> as a <b>child</b> of <code>P</code>.]
					</p>
				</div>
				<div class="div2">
					<h3><a name="charsets" id="charsets" />2.2 Characters</h3>
					<p>
						[<a name="dt-text" id="dt-text" title="Text">Definition</a>: A
						parsed entity contains <b>text</b>, a sequence of
						<a title="Character" href="#dt-character">characters</a>, which may
						represent markup or character data.] [<a
							name="dt-character"
							id="dt-character"
							title="Character"
							>Definition</a
						>: A <b>character</b> is an atomic unit of text as specified by
						ISO/IEC 10646:2000 <a href="#ISO10646">[ISO/IEC 10646]</a>. Legal
						characters are tab, carriage return, line feed, and the legal
						characters of Unicode and ISO/IEC 10646. The versions of these
						standards cited in
						<a href="#sec-existing-stds"><b>A.1 Normative References</b></a>
						were current at the time this document was prepared. New characters
						may be added to these standards by amendments or new editions.
						Consequently, XML processors
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						accept any character in the range specified for
						<a href="#NT-Char">Char</a>. ]
					</p>
					<h5><a name="char32" id="char32" />Character Range</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td><a name="NT-Char" id="NT-Char" />[2]&nbsp;&nbsp;&nbsp;</td>
								<td><code>Char</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
										[#x10000-#x10FFFF]</code
									>
								</td>
								<td>
									<i
										>/* any Unicode character, excluding the surrogate blocks,
										FFFE, and FFFF. */</i
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						The mechanism for encoding character code points into bit patterns
						may vary from entity to entity. All XML processors
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						accept the UTF-8 and UTF-16 encodings of Unicode
						<span><a href="#Unicode">[Unicode]</a></span
						>; the mechanisms for signaling which of the two is in use, or for
						bringing other encodings into play, are discussed later, in
						<a href="#charencoding"
							><b>4.3.3 Character Encoding in Entities</b></a
						>.
					</p>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							Document authors are encouraged to avoid "compatibility
							characters", as defined in section <span>2.3</span> of
							<a href="#Unicode">[Unicode]</a>. The characters defined in the
							following ranges are also discouraged. They are either control
							characters or permanently undefined Unicode characters:
						</p>
						<div class="exampleInner">
							<pre>
[#x7F-#x84], [#x86-#x9F], [#xFDD0-#xFD<span>E</span>F],
[#x1FFFE-#x1FFFF], [#x2FFFE-#x2FFFF], [#x3FFFE-#x3FFFF],
[#x4FFFE-#x4FFFF], [#x5FFFE-#x5FFFF], [#x6FFFE-#x6FFFF],
[#x7FFFE-#x7FFFF], [#x8FFFE-#x8FFFF], [#x9FFFE-#x9FFFF],
[#xAFFFE-#xAFFFF], [#xBFFFE-#xBFFFF], [#xCFFFE-#xCFFFF],
[#xDFFFE-#xDFFFF], [#xEFFFE-#xEFFFF], [#xFFFFE-#xFFFFF],
[#x10FFFE-#x10FFFF].</pre
							>
						</div>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-common-syn" id="sec-common-syn" />2.3 Common Syntactic
						Constructs
					</h3>
					<p>This section defines some symbols used widely in the grammar.</p>
					<p>
						<a href="#NT-S">S</a> (white space) consists of one or more space
						(#x20) characters, carriage returns, line feeds, or tabs.
					</p>
					<h5><a name="white" id="white" />White Space</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td><a name="NT-S" id="NT-S" />[3]&nbsp;&nbsp;&nbsp;</td>
								<td><code>S</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td><code>(#x20 | #x9 | #xD | #xA)+</code></td>
							</tr>
						</tbody>
					</table>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							The presence of #xD in the above production is maintained purely
							for backward compatibility with the
							<a href="http://www.w3.org/TR/1998/REC-xml-19980210"
								>First Edition</a
							>. As explained in
							<a href="#sec-line-ends"><b>2.11 End-of-Line Handling</b></a
							>, all #xD characters literally present in an XML document are
							either removed or replaced by #xA characters before any other
							processing is done. The only way to get a #xD character to match
							this production is to use a character reference in an entity value
							literal.
						</p>
					</div>
					<p>
						An <a href="#NT-Nmtoken">Nmtoken</a> (name token) is any mixture of
						name characters.
					</p>
					<p>
						[<a name="dt-name" id="dt-name" title="Name">Definition</a>: A
						<a href="#NT-Name">Name</a> is an
						<a href="#NT-Nmtoken">Nmtoken</a> with a restricted set of initial
						characters.] Disallowed initial characters for
						<a href="#NT-Name">Names</a> include digits, diacritics, the full
						stop and the hyphen.
					</p>
					<p>
						Names beginning with the string "<code>xml</code>", or with any
						string which would match
						<code>(('X'|'x') ('M'|'m') ('L'|'l'))</code>, are reserved for
						standardization in this or future versions of this specification.
					</p>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							The Namespaces in XML Recommendation
							<a href="#xml-names">[XML Names]</a> assigns a meaning to names
							containing colon characters. Therefore, authors should not use the
							colon in XML names except for namespace purposes, but XML
							processors must accept the colon as a name character.
						</p>
					</div>
					<p>
						The first character of a <a href="#NT-Name">Name</a>
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						a <a href="#NT-NameStartChar">NameStartChar</a>, and any other
						characters
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						<a href="#NT-NameChar">NameChars</a>; this mechanism is used to
						prevent names from beginning with European (ASCII) digits or with
						basic combining characters. Almost all characters are permitted in
						names, except those which either are or reasonably could be used as
						delimiters. The intention is to be inclusive rather than exclusive,
						so that writing systems not yet encoded in Unicode can be used in
						XML names. See
						<a href="#sec-suggested-names"
							><b>J Suggestions for XML Names</b></a
						>
						for suggestions on the creation of names.
					</p>
					<p>
						Document authors are encouraged to use names which are meaningful
						words or combinations of words in natural languages, and to avoid
						symbolic or white space characters in names. Note that COLON,
						HYPHEN-MINUS, FULL STOP (period), LOW LINE (underscore), and MIDDLE
						DOT are explicitly permitted.
					</p>
					<p>
						The ASCII symbols and punctuation marks, along with a fairly large
						group of Unicode symbol characters, are excluded from names because
						they are more useful as delimiters in contexts where XML names are
						used outside XML documents; providing this group gives those
						contexts hard guarantees about what <em>cannot</em> be part of an
						XML name. The character #x037E, GREEK QUESTION MARK, is excluded
						because when normalized it becomes a semicolon, which could change
						the meaning of entity references.
					</p>
					<h5><a name="d0e804" id="d0e804" />Names and Tokens</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-NameStartChar"
										id="NT-NameStartChar"
									/>[4]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>NameStartChar</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] |
										[#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] |
										[#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] |
										[#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] |
										[#x10000-#xEFFFF]</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-NameChar"
										id="NT-NameChar"
									/>[4a]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>NameChar</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										><a href="#NT-NameStartChar">NameStartChar</a> | "-" | "." |
										[0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td><a name="NT-Name" id="NT-Name" />[5]&nbsp;&nbsp;&nbsp;</td>
								<td><code>Name</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										><a href="#NT-NameStartChar">NameStartChar</a> (<a
											href="#NT-NameChar"
											>NameChar</a
										>)*</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-Names" id="NT-Names" />[6]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>Names</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										><a href="#NT-Name">Name</a> (#x20
										<a href="#NT-Name">Name</a>)*</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-Nmtoken" id="NT-Nmtoken" />[7]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>Nmtoken</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>(<a href="#NT-NameChar">NameChar</a>)+</code>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-Nmtokens" id="NT-Nmtokens" />[8]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>Nmtokens</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										><a href="#NT-Nmtoken">Nmtoken</a> (#x20
										<a href="#NT-Nmtoken">Nmtoken</a>)*</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							The <a href="#NT-Names">Names</a> and
							<a href="#NT-Nmtokens">Nmtokens</a> productions are used to define
							the validity of tokenized attribute values after normalization
							(see
							<a href="#sec-attribute-types"><b>3.3.1 Attribute Types</b></a
							>).
						</p>
					</div>
					<p>
						Literal data is any quoted string not containing the quotation mark
						used as a delimiter for that string. Literals are used for
						specifying the content of internal entities (<a
							href="#NT-EntityValue"
							>EntityValue</a
						>), the values of attributes (<a href="#NT-AttValue">AttValue</a>),
						and external identifiers (<a href="#NT-SystemLiteral"
							>SystemLiteral</a
						>). Note that a <a href="#NT-SystemLiteral">SystemLiteral</a> can be
						parsed without scanning for markup.
					</p>
					<h5><a name="d0e888" id="d0e888" />Literals</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-EntityValue"
										id="NT-EntityValue"
									/>[9]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>EntityValue</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'"' ([^%&amp;"] |
										<a href="#NT-PEReference">PEReference</a> |
										<a href="#NT-Reference">Reference</a>)* '"'
									</code>
								</td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td>
									<code
										>|&nbsp; "'" ([^%&amp;'] |
										<a href="#NT-PEReference">PEReference</a> |
										<a href="#NT-Reference">Reference</a>)* "'"</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-AttValue"
										id="NT-AttValue"
									/>[10]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>AttValue</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'"' ([^&lt;&amp;"] |
										<a href="#NT-Reference">Reference</a>)* '"'
									</code>
								</td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td>
									<code
										>|&nbsp; "'" ([^&lt;&amp;'] |
										<a href="#NT-Reference">Reference</a>)* "'"</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-SystemLiteral"
										id="NT-SystemLiteral"
									/>[11]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>SystemLiteral</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td><code>('"' [^"]* '"') |&nbsp;("'" [^']* "'") </code></td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-PubidLiteral"
										id="NT-PubidLiteral"
									/>[12]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>PubidLiteral</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'"' <a href="#NT-PubidChar">PubidChar</a>* '"' | "'" (<a
											href="#NT-PubidChar"
											>PubidChar</a
										>
										- "'")* "'"</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-PubidChar"
										id="NT-PubidChar"
									/>[13]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>PubidChar</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>#x20 | #xD | #xA |&nbsp;[a-zA-Z0-9]
										|&nbsp;[-'()+,./:=?;!*#@$_%]</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							Although the <a href="#NT-EntityValue">EntityValue</a> production
							allows the definition of a general entity consisting of a single
							explicit <code>&lt;</code> in the literal (e.g.,
							<code>&lt;!ENTITY mylt "&lt;"&gt;</code>), it is strongly advised
							to avoid this practice since any reference to that entity will
							cause a well-formedness error.
						</p>
					</div>
				</div>
				<div class="div2">
					<h3><a name="syntax" id="syntax" />2.4 Character Data and Markup</h3>
					<p>
						<a title="Text" href="#dt-text">Text</a> consists of intermingled
						<a title="Character Data" href="#dt-chardata">character data</a> and
						markup. [<a name="dt-markup" id="dt-markup" title="Markup"
							>Definition</a
						>: <b>Markup</b> takes the form of
						<a title="Start-Tag" href="#dt-stag">start-tags</a>,
						<a title="End Tag" href="#dt-etag">end-tags</a>,
						<a title="Empty" href="#dt-empty">empty-element tags</a>,
						<a title="Entity Reference" href="#dt-entref">entity references</a>,
						<a title="Character Reference" href="#dt-charref"
							>character references</a
						>, <a title="Comment" href="#dt-comment">comments</a>,
						<a title="CDATA Section" href="#dt-cdsection">CDATA section</a>
						delimiters,
						<a title="Document Type Declaration" href="#dt-doctype"
							>document type declarations</a
						>,
						<a title="Processing instruction" href="#dt-pi"
							>processing instructions</a
						>, <a href="#NT-XMLDecl">XML declarations</a>,
						<a href="#NT-TextDecl">text declarations</a>, and any white space
						that is at the top level of the document entity (that is, outside
						the document element and not inside any other markup).]
					</p>
					<p>
						[<a name="dt-chardata" id="dt-chardata" title="Character Data"
							>Definition</a
						>: All text that is not markup constitutes the
						<b>character data</b> of the document.]
					</p>
					<p>
						The ampersand character (&amp;) and the left angle bracket (&lt;)
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>MUST NOT</em
						>
						appear in their literal form, except when used as markup delimiters,
						or within a <a title="Comment" href="#dt-comment">comment</a>, a
						<a title="Processing instruction" href="#dt-pi"
							>processing instruction</a
						>, or a
						<a title="CDATA Section" href="#dt-cdsection">CDATA section</a>. If
						they are needed elsewhere, they
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						<a title="escape" href="#dt-escape">escaped</a> using either
						<a title="Character Reference" href="#dt-charref"
							>numeric character references</a
						>
						or the strings "
						<code>&amp;amp;</code>
						" and "
						<code>&amp;lt;</code>
						" respectively. The right angle bracket (&gt;) may be represented
						using the string "
						<code>&amp;gt;</code>
						", and
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>,
						<a title="For Compatibility" href="#dt-compat">for compatibility</a
						>, be escaped using either "
						<code>&amp;gt;</code>
						" or a character reference when it appears in the string "
						<code>]]&gt;</code>
						" in content, when that string is not marking the end of a
						<a title="CDATA Section" href="#dt-cdsection">CDATA section</a>.
					</p>
					<p>
						In the content of elements, character data is any string of
						characters which does not contain the start-delimiter of any markup
						and does not include the CDATA-section-close delimiter, "
						<code>]]&gt;</code>
						". In a CDATA section, character data is any string of characters
						not including the CDATA-section-close delimiter, "
						<code>]]&gt;</code>
						".
					</p>
					<p>
						To allow attribute values to contain both single and double quotes,
						the apostrophe or single-quote character (') may be represented as "
						<code>&amp;apos;</code>
						", and the double-quote character (") as "
						<code>&amp;quot;</code>
						".
					</p>
					<h5><a name="d0e1106" id="d0e1106" />Character Data</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-CharData"
										id="NT-CharData"
									/>[14]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>CharData</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>[^&lt;&amp;]* - ([^&lt;&amp;]* ']]&gt;'
										[^&lt;&amp;]*)</code
									>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="div2">
					<h3><a name="sec-comments" id="sec-comments" />2.5 Comments</h3>
					<p>
						[<a name="dt-comment" id="dt-comment" title="Comment">Definition</a
						>: <b>Comments</b> may appear anywhere in a document outside other
						<a title="Markup" href="#dt-markup">markup</a>; in addition, they
						may appear within the document type declaration at places allowed by
						the grammar. They are not part of the document's
						<a title="Character Data" href="#dt-chardata">character data</a>; an
						XML processor
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>,
						but need not, make it possible for an application to retrieve the
						text of comments.
						<a title="For Compatibility" href="#dt-compat">For compatibility</a
						>, the string "
						<code>--</code>
						" (double-hyphen)
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>MUST NOT</em
						>
						occur within comments.] Parameter entity references
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>MUST NOT</em
						>
						be recognized within comments.
					</p>
					<h5><a name="d0e1149" id="d0e1149" />Comments</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-Comment" id="NT-Comment" />[15]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>Comment</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;!--' ((<a href="#NT-Char">Char</a> - '-') | ('-' (<a
											href="#NT-Char"
											>Char</a
										>
										- '-')))* '--&gt;'</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>An example of a comment:</p>
					<div class="exampleInner">
						<pre>
&lt;!-- declarations for &lt;head&gt; &amp; &lt;body&gt; --&gt;</pre
						>
					</div>
					<p>
						Note that the grammar does not allow a comment ending in
						<code>---&gt;</code>. The following example is
						<em>not</em> well-formed.
					</p>
					<div class="exampleInner"><pre>&lt;!-- B+, B, or B---&gt;</pre></div>
				</div>
				<div class="div2">
					<h3><a name="sec-pi" id="sec-pi" />2.6 Processing Instructions</h3>
					<p>
						[<a name="dt-pi" id="dt-pi" title="Processing instruction"
							>Definition</a
						>:
						<b>Processing instructions</b>
						(PIs) allow documents to contain instructions for applications.]
					</p>
					<h5><a name="d0e1188" id="d0e1188" />Processing Instructions</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td><a name="NT-PI" id="NT-PI" />[16]&nbsp;&nbsp;&nbsp;</td>
								<td><code>PI</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;?' <a href="#NT-PITarget">PITarget</a> (<a
											href="#NT-S"
											>S</a
										>
										(<a href="#NT-Char">Char</a>* - (<a href="#NT-Char">Char</a
										>* '?&gt;' <a href="#NT-Char">Char</a>*)))? '?&gt;'</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-PITarget"
										id="NT-PITarget"
									/>[17]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>PITarget</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-Name">Name</a> - (('X' | 'x') ('M' | 'm') ('L'
										| 'l'))</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						PIs are not part of the document's
						<a title="Character Data" href="#dt-chardata">character data</a>,
						but
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						passed through to the application. The PI begins with a target (<a
							href="#NT-PITarget"
							>PITarget</a
						>) used to identify the application to which the instruction is
						directed. The target names "
						<code>XML</code>
						", "
						<code>xml</code>
						", and so on are reserved for standardization in this or future
						versions of this specification. The XML
						<a title="Notation" href="#dt-notation">Notation</a> mechanism may
						be used for formal declaration of PI targets. Parameter entity
						references
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>MUST NOT</em
						>
						be recognized within processing instructions.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-cdata-sect" id="sec-cdata-sect" />2.7 CDATA Sections
					</h3>
					<p>
						[<a name="dt-cdsection" id="dt-cdsection" title="CDATA Section"
							>Definition</a
						>: <b>CDATA sections</b> may occur anywhere character data may
						occur; they are used to escape blocks of text containing characters
						which would otherwise be recognized as markup. CDATA sections begin
						with the string "
						<code>&lt;![CDATA[</code>
						" and end with the string "
						<code>]]&gt;</code>
						":]
					</p>
					<h5><a name="d0e1271" id="d0e1271" />CDATA Sections</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-CDSect" id="NT-CDSect" />[18]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>CDSect</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-CDStart">CDStart</a>
										<a href="#NT-CData">CData</a>
										<a href="#NT-CDEnd">CDEnd</a>
									</code>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-CDStart" id="NT-CDStart" />[19]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>CDStart</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td><code>'&lt;![CDATA['</code></td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-CData" id="NT-CData" />[20]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>CData</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>(<a href="#NT-Char">Char</a>* - (<a href="#NT-Char">Char</a
										>* ']]&gt;' <a href="#NT-Char">Char</a>*))
									</code>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-CDEnd" id="NT-CDEnd" />[21]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>CDEnd</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td><code>']]&gt;'</code></td>
							</tr>
						</tbody>
					</table>
					<p>
						Within a CDATA section, only the
						<a href="#NT-CDEnd">CDEnd</a> string is recognized as markup, so
						that left angle brackets and ampersands may occur in their literal
						form; they need not (and cannot) be escaped using "
						<code>&amp;lt;</code>
						" and "
						<code>&amp;amp;</code>
						". CDATA sections cannot nest.
					</p>
					<p>
						An example of a CDATA section, in which "
						<code>&lt;greeting&gt;</code>
						" and "
						<code>&lt;/greeting&gt;</code>
						" are recognized as
						<a title="Character Data" href="#dt-chardata">character data</a>,
						not <a title="Markup" href="#dt-markup">markup</a>:
					</p>
					<div class="exampleInner">
						<pre>
&lt;![CDATA[&lt;greeting&gt;Hello, world!&lt;/greeting&gt;]]&gt; </pre
						>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-prolog-dtd" id="sec-prolog-dtd" />2.8 Prolog and
						Document Type Declaration
					</h3>
					<p>
						[<a name="dt-xmldecl" id="dt-xmldecl" title="XML Declaration"
							>Definition</a
						>: XML documents
						<em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em>
						begin with an <b>XML declaration</b> which specifies the version of
						XML being used.] For example, the following is a complete XML
						document,
						<a title="Well-Formed" href="#dt-wellformed">well-formed</a> but not
						<a title="Validity" href="#dt-valid">valid</a>:
					</p>
					<div class="exampleInner">
						<pre>
&lt;?xml version="1.0"?&gt;
&lt;greeting&gt;Hello, world!&lt;/greeting&gt; </pre
						>
					</div>
					<p>and so is this:</p>
					<div class="exampleInner">
						<pre>&lt;greeting&gt;Hello, world!&lt;/greeting&gt;</pre>
					</div>
					<p>
						The function of the markup in an XML document is to describe its
						storage and logical structure and to associate attribute name-value
						pairs with its logical structures. XML provides a mechanism, the
						<a title="Document Type Declaration" href="#dt-doctype"
							>document type declaration</a
						>, to define constraints on the logical structure and to support the
						use of predefined storage units. [<a
							name="dt-valid"
							id="dt-valid"
							title="Validity"
							>Definition</a
						>: An XML document is <b>valid</b> if it has an associated document
						type declaration and if the document complies with the constraints
						expressed in it.]
					</p>
					<p>
						The document type declaration
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						appear before the first
						<a title="Element" href="#dt-element">element</a> in the document.
					</p>
					<h5><a name="xmldoc" id="xmldoc" />Prolog</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-prolog" id="NT-prolog" />[22]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>prolog</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-XMLDecl">XMLDecl</a>?
										<a href="#NT-Misc">Misc</a>* (<a href="#NT-doctypedecl"
											>doctypedecl</a
										>
										<a href="#NT-Misc">Misc</a>*)?</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a name="NT-XMLDecl" id="NT-XMLDecl" />[23]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>XMLDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;?xml' <a href="#NT-VersionInfo">VersionInfo</a>
										<a href="#NT-EncodingDecl">EncodingDecl</a>?
										<a href="#NT-SDDecl">SDDecl</a>? <a href="#NT-S">S</a>?
										'?&gt;'</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-VersionInfo"
										id="NT-VersionInfo"
									/>[24]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>VersionInfo</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-S">S</a> 'version' <a href="#NT-Eq">Eq</a> ("'"
										<a href="#NT-VersionNum">VersionNum</a> "'" | '"'
										<a href="#NT-VersionNum">VersionNum</a> '"')</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td><a name="NT-Eq" id="NT-Eq" />[25]&nbsp;&nbsp;&nbsp;</td>
								<td><code>Eq</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-S">S</a>? '=' <a href="#NT-S">S</a>?</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-VersionNum"
										id="NT-VersionNum"
									/>[26]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>VersionNum</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td><code>'1.' [0-9]+</code></td>
							</tr>
							<tr valign="baseline">
								<td><a name="NT-Misc" id="NT-Misc" />[27]&nbsp;&nbsp;&nbsp;</td>
								<td><code>Misc</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-Comment">Comment</a> |
										<a href="#NT-PI">PI</a> | <a href="#NT-S">S</a>
									</code>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						Even though the <a href="#NT-VersionNum">VersionNum</a> production
						matches any version number of the form '1.x', XML 1.0 documents
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>SHOULD NOT</em
						>
						specify a version number other than '1.0'.
					</p>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							When an XML 1.0 processor encounters a document that specifies a
							1.x version number other than '1.0', it will process it as a 1.0
							document. This means that an XML 1.0 processor will accept 1.x
							documents provided they do not use any non-1.0 features.
						</p>
					</div>
					<p>
						[<a
							name="dt-doctype"
							id="dt-doctype"
							title="Document Type Declaration"
							>Definition</a
						>: The XML <b>document type declaration</b> contains or points to
						<a title="markup declaration" href="#dt-markupdecl"
							>markup declarations</a
						>
						that provide a grammar for a class of documents. This grammar is
						known as a document type definition, or <b>DTD</b>. The document
						type declaration can point to an external subset (a special kind of
						<a title="External Entity" href="#dt-extent">external entity</a>)
						containing markup declarations, or can contain the markup
						declarations directly in an internal subset, or can do both. The DTD
						for a document consists of both subsets taken together.]
					</p>
					<p>
						[<a
							name="dt-markupdecl"
							id="dt-markupdecl"
							title="markup declaration"
							>Definition</a
						>: A <b>markup declaration</b> is an
						<a title="Element Type declaration" href="#dt-eldecl"
							>element type declaration</a
						>, an
						<a title="Attribute-List Declaration" href="#dt-attdecl"
							>attribute-list declaration</a
						>, an
						<a title="entity declaration" href="#dt-entdecl"
							>entity declaration</a
						>, or a
						<a title="Notation Declaration" href="#dt-notdecl"
							>notation declaration</a
						>.] These declarations may be contained in whole or in part within
						<a title="Parameter entity" href="#dt-PE">parameter entities</a>, as
						described in the well-formedness and validity constraints below. For
						further information, see
						<a href="#sec-physical-struct"><b>4 Physical Structures</b></a
						>.
					</p>
					<h5><a name="dtd" id="dtd" />Document Type Definition</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-doctypedecl"
										id="NT-doctypedecl"
									/>[28]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>doctypedecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;!DOCTYPE' <a href="#NT-S">S</a>
										<a href="#NT-Name">Name</a>
										(<a href="#NT-S">S</a>
										<a href="#NT-ExternalID">ExternalID</a>)?
										<a href="#NT-S">S</a>? ('['
										<a href="#NT-intSubset">intSubset</a> ']'
										<a href="#NT-S">S</a>?)? '&gt;'</code
									>
								</td>
								<td><a href="#vc-roottype">[VC: Root Element Type]</a></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td><a href="#ExtSubset">[WFC: External Subset]</a></td>
							</tr>
							<tr valign="baseline">
								<td>
									<a name="NT-DeclSep" id="NT-DeclSep" />[28a]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>DeclSep</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-PEReference">PEReference</a> |
										<a href="#NT-S">S</a>
									</code>
								</td>
								<td>
									<a href="#PE-between-Decls">[WFC: PE Between Declarations]</a>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-intSubset"
										id="NT-intSubset"
									/>[28b]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>intSubset</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>(<a href="#NT-markupdecl">markupdecl</a> |
										<a href="#NT-DeclSep">DeclSep</a>)*</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-markupdecl"
										id="NT-markupdecl"
									/>[29]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>markupdecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-elementdecl">elementdecl</a> |
										<a href="#NT-AttlistDecl">AttlistDecl</a> |
										<a href="#NT-EntityDecl">EntityDecl</a> |
										<a href="#NT-NotationDecl">NotationDecl</a> |
										<a href="#NT-PI">PI</a> | <a href="#NT-Comment">Comment</a>
									</code>
								</td>
								<td>
									<a href="#vc-PEinMarkupDecl"
										>[VC: Proper Declaration/PE Nesting]</a
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td>
									<a href="#wfc-PEinInternalSubset"
										>[WFC: PEs in Internal Subset]</a
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						Note that it is possible to construct a well-formed document
						containing a <a href="#NT-doctypedecl">doctypedecl</a> that neither
						points to an external subset nor contains an internal subset.
					</p>
					<p>
						The markup declarations may be made up in whole or in part of the
						<a title="Replacement Text" href="#dt-repltext">replacement text</a>
						of <a title="Parameter entity" href="#dt-PE">parameter entities</a>.
						The productions later in this specification for individual
						nonterminals (<a href="#NT-elementdecl">elementdecl</a>,
						<a href="#NT-AttlistDecl">AttlistDecl</a>, and so on) describe the
						declarations <em>after</em> all the parameter entities have been
						<a title="Include" href="#dt-include">included</a>.
					</p>
					<p>
						Parameter entity references are recognized anywhere in the DTD
						(internal and external subsets and external parameter entities),
						except in literals, processing instructions, comments, and the
						contents of ignored conditional sections (see
						<a href="#sec-condition-sect"><b>3.4 Conditional Sections</b></a
						>). They are also recognized in entity value literals. The use of
						parameter entities in the internal subset is restricted as described
						below.
					</p>
					<div class="constraint">
						<p class="prefix">
							<a name="vc-roottype" id="vc-roottype" /><b
								>Validity constraint: Root Element Type</b
							>
						</p>
						<p>
							The <a href="#NT-Name">Name</a> in the document type declaration
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							match the element type of the
							<a title="Root Element" href="#dt-root">root element</a>.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="vc-PEinMarkupDecl" id="vc-PEinMarkupDecl" /><b
								>Validity constraint: Proper Declaration/PE Nesting</b
							>
						</p>
						<p>
							Parameter-entity
							<a title="Replacement Text" href="#dt-repltext"
								>replacement text</a
							>
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be properly nested with markup declarations. That is to say, if
							either the first character or the last character of a markup
							declaration (<a href="#NT-markupdecl">markupdecl</a> above) is
							contained in the replacement text for a
							<a title="Parameter-entity reference" href="#dt-PERef"
								>parameter-entity reference</a
							>, both
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be contained in the same replacement text.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="wfc-PEinInternalSubset" id="wfc-PEinInternalSubset" /><b
								>Well-formedness constraint: PEs in Internal Subset</b
							>
						</p>
						<p>
							In the internal DTD subset,
							<a title="Parameter-entity reference" href="#dt-PERef"
								>parameter-entity references</a
							>
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							occur within markup declarations; they may occur where markup
							declarations can occur. (This does not apply to references that
							occur in external parameter entities or to the external subset.)
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="ExtSubset" id="ExtSubset" /><b
								>Well-formedness constraint: External Subset</b
							>
						</p>
						<p>
							The external subset, if any,
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							match the production for <a href="#NT-extSubset">extSubset</a>.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="PE-between-Decls" id="PE-between-Decls" /><b
								>Well-formedness constraint: PE Between Declarations</b
							>
						</p>
						<p>
							The replacement text of a parameter entity reference in a
							<a href="#NT-DeclSep">DeclSep</a>
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							match the production
							<a href="#NT-extSubsetDecl">extSubsetDecl</a>.
						</p>
					</div>
					<p>
						Like the internal subset, the external subset and any external
						parameter entities referenced in a
						<a href="#NT-DeclSep">DeclSep</a>
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						consist of a series of complete markup declarations of the types
						allowed by the non-terminal symbol
						<a href="#NT-markupdecl">markupdecl</a>, interspersed with white
						space or
						<a title="Parameter-entity reference" href="#dt-PERef"
							>parameter-entity references</a
						>. However, portions of the contents of the external subset or of
						these external parameter entities may conditionally be ignored by
						using the
						<a title="conditional section" href="#dt-cond-section"
							>conditional section</a
						>
						construct; this is not allowed in the internal subset but is allowed
						in external parameter entities referenced in the internal subset.
					</p>
					<h5><a name="ext-Subset" id="ext-Subset" />External Subset</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-extSubset"
										id="NT-extSubset"
									/>[30]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>extSubset</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-TextDecl">TextDecl</a>?
										<a href="#NT-extSubsetDecl">extSubsetDecl</a>
									</code>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-extSubsetDecl"
										id="NT-extSubsetDecl"
									/>[31]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>extSubsetDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>( <a href="#NT-markupdecl">markupdecl</a> |
										<a href="#NT-conditionalSect">conditionalSect</a> |
										<a href="#NT-DeclSep">DeclSep</a>)*</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						The external subset and external parameter entities also differ from
						the internal subset in that in them,
						<a title="Parameter-entity reference" href="#dt-PERef"
							>parameter-entity references</a
						>
						are permitted <em>within</em> markup declarations, not only
						<em>between</em> markup declarations.
					</p>
					<p>An example of an XML document with a document type declaration:</p>
					<div class="exampleInner">
						<pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE greeting SYSTEM "hello.dtd"&gt;
&lt;greeting&gt;Hello, world!&lt;/greeting&gt; </pre
						>
					</div>
					<p>
						The
						<a title="System Identifier" href="#dt-sysid">system identifier</a>
						"
						<code>hello.dtd</code>
						" gives the address (a URI reference) of a DTD for the document.
					</p>
					<p>The declarations can also be given locally, as in this example:</p>
					<div class="exampleInner">
						<pre>
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;!DOCTYPE greeting [
  &lt;!ELEMENT greeting (#PCDATA)&gt;
]&gt;
&lt;greeting&gt;Hello, world!&lt;/greeting&gt;</pre
						>
					</div>
					<p>
						If both the external and internal subsets are used, the internal
						subset
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						considered to occur before the external subset. This has the effect
						that entity and attribute-list declarations in the internal subset
						take precedence over those in the external subset.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-rmd" id="sec-rmd" />2.9 Standalone Document Declaration
					</h3>
					<p>
						Markup declarations can affect the content of the document, as
						passed from an
						<a title="XML Processor" href="#dt-xml-proc">XML processor</a> to an
						application; examples are attribute defaults and entity
						declarations. The standalone document declaration, which may appear
						as a component of the XML declaration, signals whether or not there
						are such declarations which appear external to the
						<a title="Document Entity" href="#dt-docent">document entity</a> or
						in parameter entities. [<a
							name="dt-extmkpdecl"
							id="dt-extmkpdecl"
							title="External Markup Declaration"
							>Definition</a
						>: An <b>external markup declaration</b> is defined as a markup
						declaration occurring in the external subset or in a parameter
						entity (external or internal, the latter being included because
						non-validating processors are not required to read them).]
					</p>
					<h5>
						<a name="fulldtd" id="fulldtd" />Standalone Document Declaration
					</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-SDDecl" id="NT-SDDecl" />[32]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>SDDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-S">S</a> 'standalone'
										<a href="#NT-Eq">Eq</a> (("'" ('yes' | 'no') "'") | ('"'
										('yes' | 'no') '"'))
									</code>
								</td>
								<td>
									<a href="#vc-check-rmd"
										>[VC: Standalone Document Declaration]</a
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						In a standalone document declaration, the value "yes" indicates that
						there are no
						<a title="External Markup Declaration" href="#dt-extmkpdecl"
							>external markup declarations</a
						>
						which affect the information passed from the XML processor to the
						application. The value "no" indicates that there are or may be such
						external markup declarations. Note that the standalone document
						declaration only denotes the presence of external
						<em>declarations</em>; the presence, in a document, of references to
						external <em>entities</em>, when those entities are internally
						declared, does not change its standalone status.
					</p>
					<p>
						If there are no external markup declarations, the standalone
						document declaration has no meaning. If there are external markup
						declarations but there is no standalone document declaration, the
						value "no" is assumed.
					</p>
					<p>
						Any XML document for which <code>standalone="no"</code> holds can be
						converted algorithmically to a standalone document, which may be
						desirable for some network delivery applications.
					</p>
					<div class="constraint">
						<p class="prefix">
							<a name="vc-check-rmd" id="vc-check-rmd" /><b
								>Validity constraint: Standalone Document Declaration</b
							>
						</p>
						<p>
							The standalone document declaration
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							have the value "no" if any external markup declarations contain
							declarations of:
						</p>
						<ul>
							<li>
								<p>
									attributes with
									<a title="Attribute Default" href="#dt-default">default</a>
									values, if elements to which these attributes apply appear in
									the document without specifications of values for these
									attributes, or
								</p>
							</li>
							<li>
								<p>
									entities (other than <code>amp</code>, <code>lt</code>,
									<code>gt</code>, <code>apos</code>, <code>quot</code>), if
									<a title="Entity Reference" href="#dt-entref">references</a>
									to those entities appear in the document, or
								</p>
							</li>
							<li>
								<p>
									attributes with tokenized types, where the attribute appears
									in the document with a value such that
									<a href="#AVNormalize"><cite>normalization</cite></a>
									will produce a different value from that which would be
									produced in the absence of the declaration, or
								</p>
							</li>
							<li>
								<p>
									element types with
									<a title="Element content" href="#dt-elemcontent"
										>element content</a
									>, if white space occurs directly within any instance of those
									types.
								</p>
							</li>
						</ul>
					</div>
					<p>
						An example XML declaration with a standalone document declaration:
					</p>
					<div class="exampleInner">
						<pre>&lt;?xml version="1.0" standalone='yes'?&gt;</pre>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-white-space" id="sec-white-space" />2.10 White Space
						Handling
					</h3>
					<p>
						In editing XML documents, it is often convenient to use "white
						space" (spaces, tabs, and blank lines) to set apart the markup for
						greater readability. Such white space is typically not intended for
						inclusion in the delivered version of the document. On the other
						hand, "significant" white space that should be preserved in the
						delivered version is common, for example in poetry and source code.
					</p>
					<p>
						An <a title="XML Processor" href="#dt-xml-proc">XML processor</a>
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						always pass all characters in a document that are not markup through
						to the application. A
						<a title="Validating Processor" href="#dt-validating">
							validating XML processor</a
						>
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						also inform the application which of these characters constitute
						white space appearing in
						<a title="Element content" href="#dt-elemcontent">element content</a
						>.
					</p>
					<p>
						A special <a title="Attribute" href="#dt-attr">attribute</a> named
						<code>xml:space</code> may be attached to an element to signal an
						intention that in that element, white space should be preserved by
						applications. In valid documents, this attribute, like any other,
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						<a title="Attribute-List Declaration" href="#dt-attdecl"
							>declared</a
						>
						if it is used. When declared, it
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						given as an
						<a title="Enumerated Attribute Values" href="#dt-enumerated"
							>enumerated type</a
						>
						whose values are one or both of "default" and "preserve". For
						example:
					</p>
					<div class="exampleInner">
						<pre>
&lt;!ATTLIST poem  xml:space (default|preserve) 'preserve'&gt;

&lt;!ATTLIST pre xml:space (preserve) #FIXED 'preserve'&gt;</pre
						>
					</div>
					<p>
						The value "default" signals that applications' default white-space
						processing modes are acceptable for this element; the value
						"preserve" indicates the intent that applications preserve all the
						white space. This declared intent is considered to apply to all
						elements within the content of the element where it is specified,
						unless overridden with another instance of the
						<code>xml:space</code> attribute. This specification does not give
						meaning to any value of <code>xml:space</code> other than "default"
						and "preserve". It is an error for other values to be specified; the
						XML processor
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
						report the error or
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
						recover by ignoring the attribute specification or by reporting the
						(erroneous) value to the application. Applications may ignore or
						reject erroneous values.
					</p>
					<p>
						The <a title="Root Element" href="#dt-root">root element</a> of any
						document is considered to have signaled no intentions as regards
						application space handling, unless it provides a value for this
						attribute or the attribute is declared with a default value.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-line-ends" id="sec-line-ends" />2.11 End-of-Line
						Handling
					</h3>
					<p>
						XML
						<a title="Text Entity" href="#dt-parsedent">parsed entities</a> are
						often stored in computer files which, for editing convenience, are
						organized into lines. These lines are typically separated by some
						combination of the characters CARRIAGE RETURN (#xD) and LINE FEED
						(#xA).
					</p>
					<p>
						To simplify the tasks of
						<a title="Application" href="#dt-app">applications</a>, the
						<a title="XML Processor" href="#dt-xml-proc">XML processor</a>
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						behave as if it normalized all line breaks in external parsed
						entities (including the document entity) on input, before parsing,
						by translating both the two-character sequence #xD #xA and any #xD
						that is not followed by #xA to a single #xA character.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-lang-tag" id="sec-lang-tag" />2.12 Language
						Identification
					</h3>
					<p>
						In document processing, it is often useful to identify the natural
						or formal language in which the content is written. A special
						<a title="Attribute" href="#dt-attr">attribute</a> named
						<code>xml:lang</code> may be inserted in documents to specify the
						language used in the contents and attribute values of any element in
						an XML document. In valid documents, this attribute, like any other,
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						<a title="Attribute-List Declaration" href="#dt-attdecl"
							>declared</a
						>
						if it is used. The values of the attribute are language identifiers
						as defined by <a href="#RFC1766">[IETF BCP 47]</a>,
						<cite>Tags for the Identification of Languages</cite>; in addition,
						the empty string may be specified.
					</p>
					<p>(Productions 33 through 38 have been removed.)</p>
					<p>For example:</p>
					<div class="exampleInner">
						<pre>
&lt;p xml:lang="en"&gt;The quick brown fox jumps over the lazy dog.&lt;/p&gt;
&lt;p xml:lang="en-GB"&gt;What colour is it?&lt;/p&gt;
&lt;p xml:lang="en-US"&gt;What color is it?&lt;/p&gt;
&lt;sp who="Faust" desc='leise' xml:lang="de"&gt;
  &lt;l&gt;Habe nun, ach! Philosophie,&lt;/l&gt;
  &lt;l&gt;Juristerei, und Medizin&lt;/l&gt;
  &lt;l&gt;und leider auch Theologie&lt;/l&gt;
  &lt;l&gt;durchaus studiert mit heißem Bemüh'n.&lt;/l&gt;
&lt;/sp&gt;</pre
						>
					</div>
					<p>
						The language specified by <code>xml:lang</code> applies to the
						element where it is specified (including the values of its
						attributes), and to all elements in its content unless overridden
						with another instance of <code>xml:lang</code>. In particular, the
						empty value of <code>xml:lang</code> is used on an element B to
						override a specification of <code>xml:lang</code> on an enclosing
						element A, without specifying another language. Within B, it is
						considered that there is no language information available, just as
						if <code>xml:lang</code> had not been specified on B or any of its
						ancestors. Applications determine which of an element's attribute
						values and which parts of its character content, if any, are treated
						as language-dependent values described by <code>xml:lang</code>.
					</p>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							Language information may also be provided by external transport
							protocols (e.g. HTTP or MIME). When available, this information
							may be used by XML applications, but the more local information
							provided by <code>xml:lang</code> should be considered to override
							it.
						</p>
					</div>
					<p>
						A simple declaration for <code>xml:lang</code> might take the form
					</p>
					<div class="exampleInner"><pre>xml:lang CDATA #IMPLIED</pre></div>
					<p>
						but specific default values may also be given, if appropriate. In a
						collection of French poems for English students, with glosses and
						notes in English, the <code>xml:lang</code> attribute might be
						declared this way:
					</p>
					<div class="exampleInner">
						<pre>
&lt;!ATTLIST poem   xml:lang CDATA 'fr'&gt;
&lt;!ATTLIST gloss  xml:lang CDATA 'en'&gt;
&lt;!ATTLIST note   xml:lang CDATA 'en'&gt;</pre
						>
					</div>
				</div>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-logical-struct" id="sec-logical-struct" />3 Logical
					Structures
				</h2>
				<p>
					[<a name="dt-element" id="dt-element" title="Element">Definition</a>:
					Each
					<a title="XML Document" href="#dt-xml-doc">XML document</a> contains
					one or more <b>elements</b>, the boundaries of which are either
					delimited by <a title="Start-Tag" href="#dt-stag">start-tags</a> and
					<a title="End Tag" href="#dt-etag">end-tags</a>, or, for
					<a title="Empty" href="#dt-empty">empty</a> elements, by an
					<a title="empty-element tag" href="#dt-eetag">empty-element tag</a>.
					Each element has a type, identified by name, sometimes called its
					"generic identifier" (GI), and may have a set of attribute
					specifications.] Each attribute specification has a
					<a title="Attribute Name" href="#dt-attrname">name</a> and a
					<a title="Attribute Value" href="#dt-attrval">value</a>.
				</p>
				<h5><a name="d0e2130" id="d0e2130" />Element</h5>
				<table class="scrap" summary="Scrap">
					<tbody>
						<tr valign="baseline">
							<td>
								<a name="NT-element" id="NT-element" />[39]&nbsp;&nbsp;&nbsp;
							</td>
							<td><code>element</code></td>
							<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
							<td>
								<code>
									<a href="#NT-EmptyElemTag">EmptyElemTag</a>
								</code>
							</td>
						</tr>
						<tr valign="baseline">
							<td />
							<td />
							<td />
							<td>
								<code
									>| <a href="#NT-STag">STag</a>
									<a href="#NT-content">content</a>
									<a href="#NT-ETag">ETag</a>
								</code>
							</td>
							<td><a href="#GIMatch">[WFC: Element Type Match]</a></td>
						</tr>
						<tr valign="baseline">
							<td />
							<td />
							<td />
							<td />
							<td><a href="#elementvalid">[VC: Element Valid]</a></td>
						</tr>
					</tbody>
				</table>
				<p>
					This specification does not constrain the application semantics, use,
					or (beyond syntax) names of the element types and attributes, except
					that names beginning with a match to
					<code>(('X'|'x')('M'|'m')('L'|'l'))</code> are reserved for
					standardization in this or future versions of this specification.
				</p>
				<div class="constraint">
					<p class="prefix">
						<a name="GIMatch" id="GIMatch" /><b
							>Well-formedness constraint: Element Type Match</b
						>
					</p>
					<p>
						The <a href="#NT-Name">Name</a> in an element's end-tag
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						match the element type in the start-tag.
					</p>
				</div>
				<div class="constraint">
					<p class="prefix">
						<a name="elementvalid" id="elementvalid" /><b
							>Validity constraint: Element Valid</b
						>
					</p>
					<p>
						An element is valid if there is a declaration matching
						<a href="#NT-elementdecl">elementdecl</a> where the
						<a href="#NT-Name">Name</a> matches the element type, and one of the
						following holds:
					</p>
					<ol class="enumar">
						<li>
							<p>
								The declaration matches <b>EMPTY</b> and the element has no
								<a title="Content" href="#dt-content">content</a> (not even
								entity references, comments, PIs or white space).
							</p>
						</li>
						<li>
							<p>
								The declaration matches <a href="#NT-children">children</a> and
								the sequence of
								<a title="Parent/Child" href="#dt-parentchild"
									>child elements</a
								>
								belongs to the language generated by the regular expression in
								the content model, with optional white space, comments and PIs
								(i.e. markup matching production [27]
								<a href="#NT-Misc">Misc</a>) between the start-tag and the first
								child element, between child elements, or between the last child
								element and the end-tag. Note that a CDATA section containing
								only white space or a reference to an entity whose replacement
								text is character references expanding to white space do not
								match the nonterminal <a href="#NT-S">S</a>, and hence cannot
								appear in these positions; however, a reference to an internal
								entity with a literal value consisting of character references
								expanding to white space does match <a href="#NT-S">S</a>, since
								its replacement text is the white space resulting from expansion
								of the character references.
							</p>
						</li>
						<li>
							<p>
								The declaration matches <a href="#NT-Mixed">Mixed</a>, and the
								content (after replacing any entity references with their
								replacement text) consists of
								<a title="Character Data" href="#dt-chardata">character data</a>
								(including
								<a title="CDATA Section" href="#dt-cdsection">CDATA sections</a
								>), <a title="Comment" href="#dt-comment">comments</a>,
								<a title="Processing instruction" href="#dt-pi">PIs</a> and
								<a title="Parent/Child" href="#dt-parentchild"
									>child elements</a
								>
								whose types match names in the content model.
							</p>
						</li>
						<li>
							<p>
								The declaration matches <b>ANY</b>, and the content (after
								replacing any entity references with their replacement text)
								consists of character data,
								<a title="CDATA Section" href="#dt-cdsection">CDATA sections</a
								>, <a title="Comment" href="#dt-comment">comments</a>,
								<a title="Processing instruction" href="#dt-pi">PIs</a> and
								<a title="Parent/Child" href="#dt-parentchild"
									>child elements</a
								>
								whose types have been declared.
							</p>
						</li>
					</ol>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-starttags" id="sec-starttags" />3.1 Start-Tags,
						End-Tags, and Empty-Element Tags
					</h3>
					<p>
						[<a name="dt-stag" id="dt-stag" title="Start-Tag">Definition</a>:
						The beginning of every non-empty XML element is marked by a
						<b>start-tag</b>.]
					</p>
					<h5><a name="d0e2259" id="d0e2259" />Start-tag</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td><a name="NT-STag" id="NT-STag" />[40]&nbsp;&nbsp;&nbsp;</td>
								<td><code>STag</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;' <a href="#NT-Name">Name</a> (<a href="#NT-S">S</a>
										<a href="#NT-Attribute">Attribute</a>)*
										<a href="#NT-S">S</a>? '&gt;'</code
									>
								</td>
								<td><a href="#uniqattspec">[WFC: Unique Att Spec]</a></td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-Attribute"
										id="NT-Attribute"
									/>[41]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>Attribute</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-Name">Name</a>
										<a href="#NT-Eq">Eq</a>
										<a href="#NT-AttValue">AttValue</a>
									</code>
								</td>
								<td><a href="#ValueType">[VC: Attribute Value Type]</a></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td>
									<a href="#NoExternalRefs"
										>[WFC: No External Entity References]</a
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td>
									<a href="#CleanAttrVals"
										>[WFC: No &lt; in Attribute Values]</a
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						The <a href="#NT-Name">Name</a> in the start- and end-tags gives the
						element's <b>type</b>. [<a
							name="dt-attr"
							id="dt-attr"
							title="Attribute"
							>Definition</a
						>: The <a href="#NT-Name">Name</a>-<a href="#NT-AttValue"
							>AttValue</a
						>
						pairs are referred to as the <b>attribute specifications</b> of the
						element], [<a
							name="dt-attrname"
							id="dt-attrname"
							title="Attribute Name"
							>Definition</a
						>: with the <a href="#NT-Name">Name</a> in each pair referred to as
						the <b>attribute name</b> ] and [<a
							name="dt-attrval"
							id="dt-attrval"
							title="Attribute Value"
							>Definition</a
						>: the content of the <a href="#NT-AttValue">AttValue</a> (the text
						between the <code>'</code> or <code>"</code> delimiters) as the
						<b>attribute value</b>.] Note that the order of attribute
						specifications in a start-tag or empty-element tag is not
						significant.
					</p>
					<div class="constraint">
						<p class="prefix">
							<a name="uniqattspec" id="uniqattspec" /><b
								>Well-formedness constraint: Unique Att Spec</b
							>
						</p>
						<p>
							An attribute name
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							appear more than once in the same start-tag or empty-element tag.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="ValueType" id="ValueType" /><b
								>Validity constraint: Attribute Value Type</b
							>
						</p>
						<p>
							The attribute
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							have been declared; the value
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be of the type declared for it. (For attribute types, see
							<a href="#attdecls"><b>3.3 Attribute-List Declarations</b></a
							>.)
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="NoExternalRefs" id="NoExternalRefs" /><b
								>Well-formedness constraint: No External Entity References</b
							>
						</p>
						<p>
							Attribute values
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							contain direct or indirect entity references to external entities.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="CleanAttrVals" id="CleanAttrVals" /><b
								>Well-formedness constraint: No <code>&lt;</code> in Attribute
								Values</b
							>
						</p>
						<p>
							The
							<a title="Replacement Text" href="#dt-repltext"
								>replacement text</a
							>
							of any entity referred to directly or indirectly in an attribute
							value
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							contain a <code>&lt;</code>.
						</p>
					</div>
					<p>An example of a start-tag:</p>
					<div class="exampleInner">
						<pre>&lt;termdef id="dt-dog" term="dog"&gt;</pre>
					</div>
					<p>
						[<a name="dt-etag" id="dt-etag" title="End Tag">Definition</a>: The
						end of every element that begins with a start-tag
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						marked by an <b>end-tag</b> containing a name that echoes the
						element's type as given in the start-tag:]
					</p>
					<h5><a name="d0e2403" id="d0e2403" />End-tag</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td><a name="NT-ETag" id="NT-ETag" />[42]&nbsp;&nbsp;&nbsp;</td>
								<td><code>ETag</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;/' <a href="#NT-Name">Name</a> <a href="#NT-S">S</a>?
										'&gt;'</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>An example of an end-tag:</p>
					<div class="exampleInner"><pre>&lt;/termdef&gt;</pre></div>
					<p>
						[<a name="dt-content" id="dt-content" title="Content">Definition</a
						>: The <a title="Text" href="#dt-text">text</a> between the
						start-tag and end-tag is called the element's <b>content</b>:]
					</p>
					<h5><a name="d0e2433" id="d0e2433" />Content of Elements</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-content" id="NT-content" />[43]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>content</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-CharData">CharData</a>? ((<a href="#NT-element"
											>element</a
										>
										| <a href="#NT-Reference">Reference</a> |
										<a href="#NT-CDSect">CDSect</a> | <a href="#NT-PI">PI</a> |
										<a href="#NT-Comment">Comment</a>)
										<a href="#NT-CharData">CharData</a>?)*</code
									>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						[<a name="dt-empty" id="dt-empty" title="Empty">Definition</a>: An
						element with no <a href="#NT-content">content</a> is said to be
						<b>empty</b>.] The representation of an empty element is either a
						start-tag immediately followed by an end-tag, or an empty-element
						tag. [<a name="dt-eetag" id="dt-eetag" title="empty-element tag"
							>Definition</a
						>: An <b>empty-element tag</b> takes a special form:]
					</p>
					<h5><a name="d0e2480" id="d0e2480" />Tags for Empty Elements</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-EmptyElemTag"
										id="NT-EmptyElemTag"
									/>[44]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>EmptyElemTag</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;' <a href="#NT-Name">Name</a> (<a href="#NT-S">S</a>
										<a href="#NT-Attribute">Attribute</a>)*
										<a href="#NT-S">S</a>? '/&gt;'</code
									>
								</td>
								<td><a href="#uniqattspec">[WFC: Unique Att Spec]</a></td>
							</tr>
						</tbody>
					</table>
					<p>
						Empty-element tags may be used for any element which has no content,
						whether or not it is declared using the keyword <b>EMPTY</b>.
						<a title="For interoperability" href="#dt-interop"
							>For interoperability</a
						>, the empty-element tag
						<em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em>
						be used, and
						<em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em>
						only be used, for elements which are declared EMPTY.
					</p>
					<p>Examples of empty elements:</p>
					<div class="exampleInner">
						<pre>
&lt;IMG align="left"
 src="http://www.w3.org/Icons/WWW/w3c_home" /&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br/&gt;</pre
						>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="elemdecls" id="elemdecls" />3.2 Element Type Declarations
					</h3>
					<p>
						The <a title="Element" href="#dt-element">element</a> structure of
						an <a title="XML Document" href="#dt-xml-doc">XML document</a> may,
						for <a title="Validity" href="#dt-valid">validation</a> purposes, be
						constrained using element type and attribute-list declarations. An
						element type declaration constrains the element's
						<a title="Content" href="#dt-content">content</a>.
					</p>
					<p>
						Element type declarations often constrain which element types can
						appear as
						<a title="Parent/Child" href="#dt-parentchild">children</a> of the
						element. At user option, an XML processor
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
						issue a warning when a declaration mentions an element type for
						which no declaration is provided, but this is not an error.
					</p>
					<p>
						[<a name="dt-eldecl" id="dt-eldecl" title="Element Type declaration"
							>Definition</a
						>: An <b>element type declaration</b> takes the form:]
					</p>
					<h5><a name="d0e2553" id="d0e2553" />Element Type Declaration</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-elementdecl"
										id="NT-elementdecl"
									/>[45]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>elementdecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;!ELEMENT' <a href="#NT-S">S</a>
										<a href="#NT-Name">Name</a>
										<a href="#NT-S">S</a>
										<a href="#NT-contentspec">contentspec</a>
										<a href="#NT-S">S</a>? '&gt;'</code
									>
								</td>
								<td>
									<a href="#EDUnique">[VC: Unique Element Type Declaration]</a>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-contentspec"
										id="NT-contentspec"
									/>[46]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>contentspec</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'EMPTY' | 'ANY' | <a href="#NT-Mixed">Mixed</a> |
										<a href="#NT-children">children</a>
									</code>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						where the <a href="#NT-Name">Name</a> gives the element type being
						declared.
					</p>
					<div class="constraint">
						<p class="prefix">
							<a name="EDUnique" id="EDUnique" /><b
								>Validity constraint: Unique Element Type Declaration</b
							>
						</p>
						<p>
							An element type
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							be declared more than once.
						</p>
					</div>
					<p>Examples of element type declarations:</p>
					<div class="exampleInner">
						<pre>
&lt;!ELEMENT br EMPTY&gt;
&lt;!ELEMENT p (#PCDATA|emph)* &gt;
&lt;!ELEMENT %name.para; %content.para; &gt;
&lt;!ELEMENT container ANY&gt;</pre
						>
					</div>
					<div class="div3">
						<h4>
							<a name="sec-element-content" id="sec-element-content" />3.2.1
							Element Content
						</h4>
						<p>
							[<a
								name="dt-elemcontent"
								id="dt-elemcontent"
								title="Element content"
								>Definition</a
							>: An element <a title="Start-Tag" href="#dt-stag">type</a> has
							<b>element content</b> when elements of that type
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							contain only
							<a title="Parent/Child" href="#dt-parentchild">child</a> elements
							(no character data), optionally separated by white space
							(characters matching the nonterminal <a href="#NT-S">S</a>).] [<a
								name="dt-content-model"
								id="dt-content-model"
								title="Content model"
								>Definition</a
							>: In this case, the constraint includes a <b>content model</b>, a
							simple grammar governing the allowed types of the child elements
							and the order in which they are allowed to appear.] The grammar is
							built on content particles (<a href="#NT-cp">cp</a>s), which
							consist of names, choice lists of content particles, or sequence
							lists of content particles:
						</p>
						<h5><a name="d0e2638" id="d0e2638" />Element-content Models</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-children"
											id="NT-children"
										/>[47]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>children</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>(<a href="#NT-choice">choice</a> |
											<a href="#NT-seq">seq</a>) ('?' | '*' | '+')?</code
										>
									</td>
								</tr>
								<tr valign="baseline">
									<td><a name="NT-cp" id="NT-cp" />[48]&nbsp;&nbsp;&nbsp;</td>
									<td><code>cp</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>(<a href="#NT-Name">Name</a> |
											<a href="#NT-choice">choice</a> |
											<a href="#NT-seq">seq</a>) ('?' | '*' | '+')?</code
										>
									</td>
								</tr>
								<tr valign="baseline">
									<td>
										<a name="NT-choice" id="NT-choice" />[49]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>choice</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>'(' <a href="#NT-S">S</a>? <a href="#NT-cp">cp</a> (
											<a href="#NT-S">S</a>? '|' <a href="#NT-S">S</a>?
											<a href="#NT-cp">cp</a> )+ <a href="#NT-S">S</a>?
											')'</code
										>
									</td>
									<td>
										<a href="#vc-PEinGroup">[VC: Proper Group/PE Nesting]</a>
									</td>
								</tr>
								<tr valign="baseline">
									<td><a name="NT-seq" id="NT-seq" />[50]&nbsp;&nbsp;&nbsp;</td>
									<td><code>seq</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>'(' <a href="#NT-S">S</a>? <a href="#NT-cp">cp</a> (
											<a href="#NT-S">S</a>? ',' <a href="#NT-S">S</a>?
											<a href="#NT-cp">cp</a> )* <a href="#NT-S">S</a>?
											')'</code
										>
									</td>
									<td>
										<a href="#vc-PEinGroup">[VC: Proper Group/PE Nesting]</a>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							where each <a href="#NT-Name">Name</a> is the type of an element
							which may appear as a
							<a title="Parent/Child" href="#dt-parentchild">child</a>. Any
							content particle in a choice list may appear in the
							<a title="Element content" href="#dt-elemcontent"
								>element content</a
							>
							at the location where the choice list appears in the grammar;
							content particles occurring in a sequence list
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							each appear in the
							<a title="Element content" href="#dt-elemcontent"
								>element content</a
							>
							in the order given in the list. The optional character following a
							name or list governs whether the element or the content particles
							in the list may occur one or more (<code>+</code>), zero or more
							(<code>*</code>), or zero or one times (<code>?</code>). The
							absence of such an operator means that the element or content
							particle
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							appear exactly once. This syntax and meaning are identical to
							those used in the productions in this specification.
						</p>
						<p>
							The content of an element matches a content model if and only if
							it is possible to trace out a path through the content model,
							obeying the sequence, choice, and repetition operators and
							matching each element in the content against an element type in
							the content model.
							<a title="For Compatibility" href="#dt-compat"
								>For compatibility</a
							>, it is an error if the content model allows an element to match
							more than one occurrence of an element type in the content model.
							For more information, see
							<a href="#determinism"><b>E Deterministic Content Models</b></a
							>.
						</p>
						<div class="constraint">
							<p class="prefix">
								<a name="vc-PEinGroup" id="vc-PEinGroup" /><b
									>Validity constraint: Proper Group/PE Nesting</b
								>
							</p>
							<p>
								Parameter-entity
								<a title="Replacement Text" href="#dt-repltext"
									>replacement text</a
								>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								be properly nested with parenthesized groups. That is to say, if
								either of the opening or closing parentheses in a
								<a href="#NT-choice">choice</a>, <a href="#NT-seq">seq</a>, or
								<a href="#NT-Mixed">Mixed</a> construct is contained in the
								replacement text for a
								<a title="Parameter-entity reference" href="#dt-PERef"
									>parameter entity</a
								>, both
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								be contained in the same replacement text.
							</p>
							<p>
								<a title="For interoperability" href="#dt-interop"
									>For interoperability</a
								>, if a parameter-entity reference appears in a
								<a href="#NT-choice">choice</a>, <a href="#NT-seq">seq</a>, or
								<a href="#NT-Mixed">Mixed</a> construct, its replacement text
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>SHOULD</em
								>
								contain at least one non-blank character, and neither the first
								nor last non-blank character of the replacement text
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>SHOULD</em
								>
								be a connector (<code>|</code> or <code>,</code>).
							</p>
						</div>
						<p>Examples of element-content models:</p>
						<div class="exampleInner">
							<pre>
&lt;!ELEMENT spec (front, body, back?)&gt;
&lt;!ELEMENT div1 (head, (p | list | note)*, div2*)&gt;
&lt;!ELEMENT dictionary-body (%div.mix; | %dict.mix;)*&gt;</pre
							>
						</div>
					</div>
					<div class="div3">
						<h4>
							<a name="sec-mixed-content" id="sec-mixed-content" />3.2.2 Mixed
							Content
						</h4>
						<p>
							[<a name="dt-mixed" id="dt-mixed" title="Mixed Content"
								>Definition</a
							>: An element <a title="Start-Tag" href="#dt-stag">type</a> has
							<b>mixed content</b> when elements of that type may contain
							character data, optionally interspersed with
							<a title="Parent/Child" href="#dt-parentchild">child</a>
							elements.] In this case, the types of the child elements may be
							constrained, but not their order or their number of occurrences:
						</p>
						<h5><a name="d0e2826" id="d0e2826" />Mixed-content Declaration</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a name="NT-Mixed" id="NT-Mixed" />[51]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>Mixed</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>'(' <a href="#NT-S">S</a>? '#PCDATA' (<a href="#NT-S"
												>S</a
											>? '|' <a href="#NT-S">S</a>?
											<a href="#NT-Name">Name</a>)* <a href="#NT-S">S</a>? ')*'
										</code>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td>
										<code
											>| '(' <a href="#NT-S">S</a>? '#PCDATA'
											<a href="#NT-S">S</a>? ')'
										</code>
									</td>
									<td>
										<a href="#vc-PEinGroup">[VC: Proper Group/PE Nesting]</a>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#vc-MixedChildrenUnique"
											>[VC: No Duplicate Types]</a
										>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							where the <a href="#NT-Name">Name</a>s give the types of elements
							that may appear as children. The keyword <b>#PCDATA</b> derives
							historically from the term "parsed character data."
						</p>
						<div class="constraint">
							<p class="prefix">
								<a
									name="vc-MixedChildrenUnique"
									id="vc-MixedChildrenUnique"
								/><b>Validity constraint: No Duplicate Types</b>
							</p>
							<p>
								The same name
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>
								appear more than once in a single mixed-content declaration.
							</p>
						</div>
						<p>Examples of mixed content declarations:</p>
						<div class="exampleInner">
							<pre>
&lt;!ELEMENT p (#PCDATA|a|ul|b|i|em)*&gt;
&lt;!ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* &gt;
&lt;!ELEMENT b (#PCDATA)&gt;</pre
							>
						</div>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="attdecls" id="attdecls" />3.3 Attribute-List Declarations
					</h3>
					<p>
						<a title="Attribute" href="#dt-attr">Attributes</a> are used to
						associate name-value pairs with
						<a title="Element" href="#dt-element">elements</a>. Attribute
						specifications
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>MUST NOT</em
						>
						appear outside of
						<a title="Start-Tag" href="#dt-stag">start-tags</a> and
						<a title="empty-element tag" href="#dt-eetag">empty-element tags</a
						>; thus, the productions used to recognize them appear in
						<a href="#sec-starttags"
							><b>3.1 Start-Tags, End-Tags, and Empty-Element Tags</b></a
						>. Attribute-list declarations may be used:
					</p>
					<ul>
						<li>
							<p>
								To define the set of attributes pertaining to a given element
								type.
							</p>
						</li>
						<li><p>To establish type constraints for these attributes.</p></li>
						<li>
							<p>
								To provide
								<a title="Attribute Default" href="#dt-default"
									>default values</a
								>
								for attributes.
							</p>
						</li>
					</ul>
					<p>
						[<a
							name="dt-attdecl"
							id="dt-attdecl"
							title="Attribute-List Declaration"
							>Definition</a
						>: <b>Attribute-list declarations</b> specify the name, data type,
						and default value (if any) of each attribute associated with a given
						element type:]
					</p>
					<h5><a name="d0e2926" id="d0e2926" />Attribute-list Declaration</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-AttlistDecl"
										id="NT-AttlistDecl"
									/>[52]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>AttlistDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;!ATTLIST' <a href="#NT-S">S</a>
										<a href="#NT-Name">Name</a>
										<a href="#NT-AttDef">AttDef</a>* <a href="#NT-S">S</a>?
										'&gt;'</code
									>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-AttDef" id="NT-AttDef" />[53]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>AttDef</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-S">S</a>
										<a href="#NT-Name">Name</a>
										<a href="#NT-S">S</a>
										<a href="#NT-AttType">AttType</a>
										<a href="#NT-S">S</a>
										<a href="#NT-DefaultDecl">DefaultDecl</a>
									</code>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						The <a href="#NT-Name">Name</a> in the
						<a href="#NT-AttlistDecl">AttlistDecl</a> rule is the type of an
						element. At user option, an XML processor
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
						issue a warning if attributes are declared for an element type not
						itself declared, but this is not an error. The
						<a href="#NT-Name">Name</a> in the
						<a href="#NT-AttDef">AttDef</a> rule is the name of the attribute.
					</p>
					<p>
						When more than one <a href="#NT-AttlistDecl">AttlistDecl</a> is
						provided for a given element type, the contents of all those
						provided are merged. When more than one definition is provided for
						the same attribute of a given element type, the first declaration is
						binding and later declarations are ignored.
						<a title="For interoperability" href="#dt-interop"
							>For interoperability,</a
						>
						writers of DTDs may choose to provide at most one attribute-list
						declaration for a given element type, at most one attribute
						definition for a given attribute name in an attribute-list
						declaration, and at least one attribute definition in each
						attribute-list declaration. For interoperability, an XML processor
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em> at
						user option issue a warning when more than one attribute-list
						declaration is provided for a given element type, or more than one
						attribute definition is provided for a given attribute, but this is
						not an error.
					</p>
					<div class="div3">
						<h4>
							<a name="sec-attribute-types" id="sec-attribute-types" />3.3.1
							Attribute Types
						</h4>
						<p>
							XML attribute types are of three kinds: a string type, a set of
							tokenized types, and enumerated types. The string type may take
							any literal string as a value; the tokenized types are more
							constrained. The validity constraints noted in the grammar are
							applied after the attribute value has been normalized as described
							in
							<a href="#AVNormalize"
								><b>3.3.3 Attribute-Value Normalization</b></a
							>.
						</p>
						<h5><a name="d0e3004" id="d0e3004" />Attribute Types</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-AttType"
											id="NT-AttType"
										/>[54]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>AttType</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code>
											<a href="#NT-StringType">StringType</a> |
											<a href="#NT-TokenizedType">TokenizedType</a> |
											<a href="#NT-EnumeratedType">EnumeratedType</a>
										</code>
									</td>
								</tr>
								<tr valign="baseline">
									<td>
										<a
											name="NT-StringType"
											id="NT-StringType"
										/>[55]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>StringType</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td><code>'CDATA'</code></td>
								</tr>
								<tr valign="baseline">
									<td>
										<a
											name="NT-TokenizedType"
											id="NT-TokenizedType"
										/>[56]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>TokenizedType</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td><code>'ID'</code></td>
									<td><a href="#id">[VC: ID]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#one-id-per-el">[VC: One ID per Element Type]</a>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td><a href="#id-default">[VC: ID Attribute Default]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td><code>| 'IDREF'</code></td>
									<td><a href="#idref">[VC: IDREF]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td><code>| 'IDREFS'</code></td>
									<td><a href="#idref">[VC: IDREF]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td><code>| 'ENTITY'</code></td>
									<td><a href="#entname">[VC: Entity Name]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td><code>| 'ENTITIES'</code></td>
									<td><a href="#entname">[VC: Entity Name]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td><code>| 'NMTOKEN'</code></td>
									<td><a href="#nmtok">[VC: Name Token]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td><code>| 'NMTOKENS'</code></td>
									<td><a href="#nmtok">[VC: Name Token]</a></td>
								</tr>
							</tbody>
						</table>
						<div class="constraint">
							<p class="prefix">
								<a name="id" id="id" /><b>Validity constraint: ID</b>
							</p>
							<p>
								Values of type <b>ID</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the <a href="#NT-Name">Name</a> production. A name
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>
								appear more than once in an XML document as a value of this
								type; i.e., ID values
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								uniquely identify the elements which bear them.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="one-id-per-el" id="one-id-per-el" /><b
									>Validity constraint: One ID per Element Type</b
								>
							</p>
							<p>
								An element type
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>
								have more than one ID attribute specified.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="id-default" id="id-default" /><b
									>Validity constraint: ID Attribute Default</b
								>
							</p>
							<p>
								An ID attribute
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								have a declared default of <b>#IMPLIED</b> or <b>#REQUIRED</b>.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="idref" id="idref" /><b>Validity constraint: IDREF</b>
							</p>
							<p>
								Values of type <b>IDREF</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the <a href="#NT-Name">Name</a> production, and values of
								type <b>IDREFS</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match <a href="#NT-Names">Names</a>; each
								<a href="#NT-Name">Name</a>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the value of an ID attribute on some element in the XML
								document; i.e. <b>IDREF</b> values
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the value of some ID attribute.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="entname" id="entname" /><b
									>Validity constraint: Entity Name</b
								>
							</p>
							<p>
								Values of type <b>ENTITY</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the <a href="#NT-Name">Name</a> production, values of type
								<b>ENTITIES</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match <a href="#NT-Names">Names</a>; each
								<a href="#NT-Name">Name</a>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the name of an
								<a title="Unparsed Entity" href="#dt-unparsed"
									>unparsed entity</a
								>
								declared in the
								<a title="Document Type Declaration" href="#dt-doctype">DTD</a>.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="nmtok" id="nmtok" /><b
									>Validity constraint: Name Token</b
								>
							</p>
							<p>
								Values of type <b>NMTOKEN</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the <a href="#NT-Nmtoken">Nmtoken</a> production; values
								of type <b>NMTOKENS</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match <a href="#NT-Nmtokens">Nmtokens</a>.
							</p>
						</div>
						<p>
							[<a
								name="dt-enumerated"
								id="dt-enumerated"
								title="Enumerated Attribute Values"
								>Definition</a
							>:
							<b>Enumerated attributes</b>
							have a list of allowed values in their declaration ]. They
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							take one of those values. There are two kinds of enumerated
							attribute types:
						</p>
						<h5><a name="d0e3200" id="d0e3200" />Enumerated Attribute Types</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-EnumeratedType"
											id="NT-EnumeratedType"
										/>[57]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>EnumeratedType</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code>
											<a href="#NT-NotationType">NotationType</a>
											| <a href="#NT-Enumeration">Enumeration</a>
										</code>
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-NotationType"
											id="NT-NotationType"
										/>[58]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>NotationType</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>'NOTATION' <a href="#NT-S">S</a> '('
											<a href="#NT-S">S</a>? <a href="#NT-Name">Name</a> (<a
												href="#NT-S"
												>S</a
											>? '|' <a href="#NT-S">S</a>?
											<a href="#NT-Name">Name</a>)* <a href="#NT-S">S</a>? ')'
										</code>
									</td>
									<td><a href="#notatn">[VC: Notation Attributes]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#OneNotationPer"
											>[VC: One Notation Per Element Type]</a
										>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#NoNotationEmpty"
											>[VC: No Notation on Empty Element]</a
										>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#NoDuplicateTokens">[VC: No Duplicate Tokens]</a>
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-Enumeration"
											id="NT-Enumeration"
										/>[59]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>Enumeration</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>'(' <a href="#NT-S">S</a>?
											<a href="#NT-Nmtoken">Nmtoken</a> (<a href="#NT-S">S</a>?
											'|' <a href="#NT-S">S</a>?
											<a href="#NT-Nmtoken">Nmtoken</a>)* <a href="#NT-S">S</a>?
											')'</code
										>
									</td>
									<td><a href="#enum">[VC: Enumeration]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#NoDuplicateTokens">[VC: No Duplicate Tokens]</a>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							A <b>NOTATION</b> attribute identifies a
							<a title="Notation" href="#dt-notation">notation</a>, declared in
							the DTD with associated system and/or public identifiers, to be
							used in interpreting the element to which the attribute is
							attached.
						</p>
						<div class="constraint">
							<p class="prefix">
								<a name="notatn" id="notatn" /><b
									>Validity constraint: Notation Attributes</b
								>
							</p>
							<p>
								Values of this type
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match one of the
								<a href="#Notations"><cite>notation</cite></a> names included in
								the declaration; all notation names in the declaration
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								be declared.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="OneNotationPer" id="OneNotationPer" /><b
									>Validity constraint: One Notation Per Element Type</b
								>
							</p>
							<p>
								An element type
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>
								have more than one <b>NOTATION</b> attribute specified.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="NoNotationEmpty" id="NoNotationEmpty" /><b
									>Validity constraint: No Notation on Empty Element</b
								>
							</p>
							<p>
								<a title="For Compatibility" href="#dt-compat"
									>For compatibility</a
								>, an attribute of type <b>NOTATION</b>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST NOT</em
								>
								be declared on an element declared <b>EMPTY</b>.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="NoDuplicateTokens" id="NoDuplicateTokens" /><b
									>Validity constraint: No Duplicate Tokens</b
								>
							</p>
							<p>
								The notation names in a single
								<a href="#NT-NotationType">NotationType</a> attribute
								declaration, as well as the <a href="#NT-Nmtoken">NmToken</a>s
								in a single <a href="#NT-Enumeration">Enumeration</a> attribute
								declaration,
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								all be distinct.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="enum" id="enum" /><b
									>Validity constraint: Enumeration</b
								>
							</p>
							<p>
								Values of this type
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match one of the <a href="#NT-Nmtoken">Nmtoken</a> tokens in the
								declaration.
							</p>
						</div>
						<p>
							<a title="For interoperability" href="#dt-interop"
								>For interoperability,</a
							>
							the same <a href="#NT-Nmtoken">Nmtoken</a>
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD NOT</em
							>
							occur more than once in the enumerated attribute types of a single
							element type.
						</p>
					</div>
					<div class="div3">
						<h4>
							<a name="sec-attr-defaults" id="sec-attr-defaults" />3.3.2
							Attribute Defaults
						</h4>
						<p>
							An
							<a title="Attribute-List Declaration" href="#dt-attdecl"
								>attribute declaration</a
							>
							provides information on whether the attribute's presence is
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>REQUIRED</em
							>, and if not, how an XML processor is to react if a declared
							attribute is absent in a document.
						</p>
						<h5><a name="d0e3369" id="d0e3369" />Attribute Defaults</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-DefaultDecl"
											id="NT-DefaultDecl"
										/>[60]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>DefaultDecl</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td><code>'#REQUIRED' |&nbsp;'#IMPLIED' </code></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td>
										<code
											>| (('#FIXED' <a href="#NT-S">S</a>)?
											<a href="#NT-AttValue">AttValue</a>)</code
										>
									</td>
									<td><a href="#RequiredAttr">[VC: Required Attribute]</a></td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#defattrvalid"
											>[VC: Attribute Default Value Syntactically Correct]</a
										>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#CleanAttrVals"
											>[WFC: No &lt; in Attribute Values]</a
										>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#FixedAttr">[VC: Fixed Attribute Default]</a>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td />
									<td>
										<a href="#NoExternalRefs"
											>[WFC: No External Entity References]</a
										>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							In an attribute declaration, <b>#REQUIRED</b> means that the
							attribute
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							always be provided, <b>#IMPLIED</b> that no default value is
							provided. [<a
								name="dt-default"
								id="dt-default"
								title="Attribute Default"
								>Definition</a
							>: If the declaration is neither <b>#REQUIRED</b> nor
							<b>#IMPLIED</b>, then the
							<a href="#NT-AttValue">AttValue</a> value contains the declared
							<b>default</b> value; the <b>#FIXED</b> keyword states that the
							attribute
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							always have the default value. When an XML processor encounters an
							element without a specification for an attribute for which it has
							read a default value declaration, it
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							report the attribute with the declared default value to the
							application.]
						</p>
						<div class="constraint">
							<p class="prefix">
								<a name="RequiredAttr" id="RequiredAttr" /><b
									>Validity constraint: Required Attribute</b
								>
							</p>
							<p>
								If the default declaration is the keyword <b>#REQUIRED</b>, then
								the attribute
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								be specified for all elements of the type in the attribute-list
								declaration.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="defattrvalid" id="defattrvalid" /><b
									>Validity constraint: Attribute Default Value Syntactically
									Correct</b
								>
							</p>
							<p>
								The declared default value
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								meet the syntactic constraints of the declared attribute type.
								That is, the default value of an attribute:
							</p>
							<ul>
								<li>
									<p>
										of type IDREF or ENTITY must match the
										<a href="#NT-Name">Name</a> production;
									</p>
								</li>
								<li>
									<p>
										of type IDREFS or ENTITIES must match the
										<a href="#NT-Names">Names</a> production;
									</p>
								</li>
								<li>
									<p>
										of type NMTOKEN must match the
										<a href="#NT-Nmtoken">Nmtoken</a> production;
									</p>
								</li>
								<li>
									<p>
										of type NMTOKENS must match the
										<a href="#NT-Nmtokens">Nmtokens</a> production;
									</p>
								</li>
								<li>
									<p>
										of an
										<a href="#NT-EnumeratedType">enumerated type</a> (either a
										<a href="#NT-NotationType">NOTATION</a> type or an
										<a href="#NT-Enumeration">enumeration</a>) must match one of
										the enumerated values.
									</p>
								</li>
							</ul>
							<p>
								Note that only the syntactic constraints of the type are
								required here; other constraints (e.g. that the value be the
								name of a declared unparsed entity, for an attribute of type
								ENTITY) will be reported by a validating parser only if an
								element without a specification for this attribute actually
								occurs.
							</p>
						</div>
						<div class="constraint">
							<p class="prefix">
								<a name="FixedAttr" id="FixedAttr" /><b
									>Validity constraint: Fixed Attribute Default</b
								>
							</p>
							<p>
								If an attribute has a default value declared with the
								<b>#FIXED</b> keyword, instances of that attribute
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the default value.
							</p>
						</div>
						<p>Examples of attribute-list declarations:</p>
						<div class="exampleInner">
							<pre>
&lt;!ATTLIST termdef
          id      ID      #REQUIRED
          name    CDATA   #IMPLIED&gt;
&lt;!ATTLIST list
          type    (bullets|ordered|glossary)  "ordered"&gt;
&lt;!ATTLIST form
          method  CDATA   #FIXED "POST"&gt;</pre
							>
						</div>
					</div>
					<div class="div3">
						<h4>
							<a name="AVNormalize" id="AVNormalize" />3.3.3 Attribute-Value
							Normalization
						</h4>
						<p>
							Before the value of an attribute is passed to the application or
							checked for validity, the XML processor
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							normalize the attribute value by applying the algorithm below, or
							by using some other method such that the value passed to the
							application is the same as that produced by the algorithm.
						</p>
						<ol class="enumar">
							<li>
								<p>
									All line breaks
									<em class="rfc2119" title="Keyword in RFC 2119 context"
										>MUST</em
									>
									have been normalized on input to #xA as described in
									<a href="#sec-line-ends"><b>2.11 End-of-Line Handling</b></a
									>, so the rest of this algorithm operates on text normalized
									in this way.
								</p>
							</li>
							<li>
								<p>
									Begin with a normalized value consisting of the empty string.
								</p>
							</li>
							<li>
								<p>
									For each character, entity reference, or character reference
									in the unnormalized attribute value, beginning with the first
									and continuing to the last, do the following:
								</p>
								<ul>
									<li>
										<p>
											For a character reference, append the referenced character
											to the normalized value.
										</p>
									</li>
									<li>
										<p>
											For an entity reference, recursively apply step 3 of this
											algorithm to the replacement text of the entity.
										</p>
									</li>
									<li>
										<p>
											For a white space character (#x20, #xD, #xA, #x9), append
											a space character (#x20) to the normalized value.
										</p>
									</li>
									<li>
										<p>
											For another character, append the character to the
											normalized value.
										</p>
									</li>
								</ul>
							</li>
						</ol>
						<p>
							If the attribute type is not CDATA, then the XML processor
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							further process the normalized attribute value by discarding any
							leading and trailing space (#x20) characters, and by replacing
							sequences of space (#x20) characters by a single space (#x20)
							character.
						</p>
						<p>
							Note that if the unnormalized attribute value contains a character
							reference to a white space character other than space (#x20), the
							normalized value contains the referenced character itself (#xD,
							#xA or #x9). This contrasts with the case where the unnormalized
							value contains a white space character (not a reference), which is
							replaced with a space character (#x20) in the normalized value and
							also contrasts with the case where the unnormalized value contains
							an entity reference whose replacement text contains a white space
							character; being recursively processed, the white space character
							is replaced with a space character (#x20) in the normalized value.
						</p>
						<p>
							All attributes for which no declaration has been read
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							be treated by a non-validating processor as if declared
							<b>CDATA</b>.
						</p>
						<p>
							It is an error if an
							<a title="Attribute Value" href="#dt-attrval">attribute value</a>
							contains a
							<a title="Entity Reference" href="#dt-entref">reference</a> to an
							entity for which no declaration has been read.
						</p>
						<p>
							Following are examples of attribute normalization. Given the
							following declarations:
						</p>
						<div class="exampleInner">
							<pre>
&lt;!ENTITY d "&amp;#xD;"&gt;
&lt;!ENTITY a "&amp;#xA;"&gt;
&lt;!ENTITY da "&amp;#xD;&amp;#xA;"&gt;</pre
							>
						</div>
						<p>
							the attribute specifications in the left column below would be
							normalized to the character sequences of the middle column if the
							attribute <code>a</code> is declared <b>NMTOKENS</b> and to those
							of the right columns if <code>a</code> is declared <b>CDATA</b>.
						</p>
						<table border="1" frame="border">
							<thead>
								<tr>
									<th>Attribute specification</th>
									<th>a is NMTOKENS</th>
									<th>a is CDATA</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<div class="exampleInner">
											<pre>
a="

xyz"</pre
											>
										</div>
									</td>
									<td>
										<div class="exampleInner"><pre>x y z</pre></div>
									</td>
									<td>
										<div class="exampleInner"><pre>#x20 #x20 x y z</pre></div>
									</td>
								</tr>
								<tr>
									<td>
										<div class="exampleInner">
											<pre>
a="&amp;d;&amp;d;A&amp;a;&amp;#x20;&amp;a;B&amp;da;"</pre
											>
										</div>
									</td>
									<td>
										<div class="exampleInner"><pre>A #x20 B</pre></div>
									</td>
									<td>
										<div class="exampleInner">
											<pre>#x20 #x20 A #x20 #x20 #x20 B #x20 #x20</pre>
										</div>
									</td>
								</tr>
								<tr>
									<td>
										<div class="exampleInner">
											<pre>
a=
"&amp;#xd;&amp;#xd;A&amp;#xa;&amp;#xa;B&amp;#xd;&amp;#xa;"</pre
											>
										</div>
									</td>
									<td>
										<div class="exampleInner">
											<pre>#xD #xD A #xA #xA B #xD #xA</pre>
										</div>
									</td>
									<td>
										<div class="exampleInner">
											<pre>#xD #xD A #xA #xA B #xD #xA</pre>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							Note that the last example is invalid (but well-formed) if
							<code>a</code> is declared to be of type <b>NMTOKENS</b>.
						</p>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-condition-sect" id="sec-condition-sect" />3.4
						Conditional Sections
					</h3>
					<p>
						[<a
							name="dt-cond-section"
							id="dt-cond-section"
							title="conditional section"
							>Definition</a
						>: <b>Conditional sections</b> are portions of the
						<a title="Document Type Declaration" href="#dt-doctype"
							>document type declaration external subset</a
						>
						or of external parameter entities which are included in, or excluded
						from, the logical structure of the DTD based on the keyword which
						governs them.]
					</p>
					<h5><a name="d0e3658" id="d0e3658" />Conditional Section</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-conditionalSect"
										id="NT-conditionalSect"
									/>[61]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>conditionalSect</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-includeSect">includeSect</a> |
										<a href="#NT-ignoreSect">ignoreSect</a>
									</code>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-includeSect"
										id="NT-includeSect"
									/>[62]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>includeSect</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;![' <a href="#NT-S">S</a>? 'INCLUDE'
										<a href="#NT-S">S</a>? '['
										<a href="#NT-extSubsetDecl">extSubsetDecl</a> ']]&gt;'
									</code>
								</td>
								<td>
									<a href="#condsec-nesting"
										>[VC: Proper Conditional Section/PE Nesting]</a
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-ignoreSect"
										id="NT-ignoreSect"
									/>[63]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>ignoreSect</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;![' <a href="#NT-S">S</a>? 'IGNORE'
										<a href="#NT-S">S</a>? '['
										<a href="#NT-ignoreSectContents">ignoreSectContents</a>*
										']]&gt;'</code
									>
								</td>
								<td>
									<a href="#condsec-nesting"
										>[VC: Proper Conditional Section/PE Nesting]</a
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-ignoreSectContents"
										id="NT-ignoreSectContents"
									/>[64]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>ignoreSectContents</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-Ignore">Ignore</a> ('&lt;!['
										<a href="#NT-ignoreSectContents">ignoreSectContents</a>
										']]&gt;' <a href="#NT-Ignore">Ignore</a>)*</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a name="NT-Ignore" id="NT-Ignore" />[65]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>Ignore</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-Char">Char</a>* - (<a href="#NT-Char">Char</a>*
										('&lt;![' | ']]&gt;') <a href="#NT-Char">Char</a>*)
									</code>
								</td>
							</tr>
						</tbody>
					</table>
					<div class="constraint">
						<p class="prefix">
							<a name="condsec-nesting" id="condsec-nesting" /><b
								>Validity constraint: Proper Conditional Section/PE Nesting</b
							>
						</p>
						<p>
							If any of the "<code>&lt;![</code>", "<code>[</code>", or
							"<code>]]&gt;</code>" of a conditional section is contained in the
							replacement text for a parameter-entity reference, all of them
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be contained in the same replacement text.
						</p>
					</div>
					<p>
						Like the internal and external DTD subsets, a conditional section
						may contain one or more complete declarations, comments, processing
						instructions, or nested conditional sections, intermingled with
						white space.
					</p>
					<p>
						If the keyword of the conditional section is <b>INCLUDE</b>, then
						the contents of the conditional section
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						processed as part of the DTD. If the keyword of the conditional
						section is <b>IGNORE</b>, then the contents of the conditional
						section
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						<em class="rfc2119" title="Keyword in RFC 2119 context">NOT</em> be
						processed as part of the DTD. If a conditional section with a
						keyword of <b>INCLUDE</b> occurs within a larger conditional section
						with a keyword of <b>IGNORE</b>, both the outer and the inner
						conditional sections
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						ignored. The contents of an ignored conditional section
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						parsed by ignoring all characters after the "<code>[</code>"
						following the keyword, except conditional section starts
						"<code>&lt;![</code>" and ends "<code>]]&gt;</code>", until the
						matching conditional section end is found. Parameter entity
						references
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>MUST NOT</em
						>
						be recognized in this process.
					</p>
					<p>
						If the keyword of the conditional section is a parameter-entity
						reference, the parameter entity
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						replaced by its content before the processor decides whether to
						include or ignore the conditional section.
					</p>
					<p>An example:</p>
					<div class="exampleInner">
						<pre>
&lt;!ENTITY % draft 'INCLUDE' &gt;
&lt;!ENTITY % final 'IGNORE' &gt;

&lt;![%draft;[
&lt;!ELEMENT book (comments*, title, body, supplements?)&gt;
]]&gt;
&lt;![%final;[
&lt;!ELEMENT book (title, body, supplements?)&gt;
]]&gt;</pre
						>
					</div>
				</div>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-physical-struct" id="sec-physical-struct" />4 Physical
					Structures
				</h2>
				<p>
					[<a name="dt-entity" id="dt-entity" title="Entity">Definition</a>: An
					XML document may consist of one or many storage units. These are
					called <b>entities</b>; they all have <b>content</b> and are all
					(except for the
					<a title="Document Entity" href="#dt-docent">document entity</a> and
					the
					<a title="Document Type Declaration" href="#dt-doctype"
						>external DTD subset</a
					>) identified by entity <b>name</b>.] Each XML document has one entity
					called the
					<a title="Document Entity" href="#dt-docent">document entity</a>,
					which serves as the starting point for the
					<a title="XML Processor" href="#dt-xml-proc">XML processor</a> and may
					contain the whole document.
				</p>
				<p>
					Entities may be either parsed or unparsed. [<a
						name="dt-parsedent"
						id="dt-parsedent"
						title="Text Entity"
						>Definition</a
					>: The contents of a <b>parsed entity</b> are referred to as its
					<a title="Replacement Text" href="#dt-repltext">replacement text</a>;
					this <a title="Text" href="#dt-text">text</a> is considered an
					integral part of the document.]
				</p>
				<p>
					[<a name="dt-unparsed" id="dt-unparsed" title="Unparsed Entity"
						>Definition</a
					>: An <b>unparsed entity</b> is a resource whose contents may or may
					not be <a title="Text" href="#dt-text">text</a>, and if text, may be
					other than XML. Each unparsed entity has an associated
					<a title="Notation" href="#dt-notation">notation</a>, identified by
					name. Beyond a requirement that an XML processor make the identifiers
					for the entity and notation available to the application, XML places
					no constraints on the contents of unparsed entities.]
				</p>
				<p>
					Parsed entities are invoked by name using entity references; unparsed
					entities by name, given in the value of <b>ENTITY</b> or
					<b>ENTITIES</b> attributes.
				</p>
				<p>
					[<a name="gen-entity" id="gen-entity" title="general entity"
						>Definition</a
					>:
					<b>General entities</b>
					are entities for use within the document content. In this
					specification, general entities are sometimes referred to with the
					unqualified term <em>entity</em> when this leads to no ambiguity.] [<a
						name="dt-PE"
						id="dt-PE"
						title="Parameter entity"
						>Definition</a
					>: <b>Parameter entities</b> are parsed entities for use within the
					DTD.] These two types of entities use different forms of reference and
					are recognized in different contexts. Furthermore, they occupy
					different namespaces; a parameter entity and a general entity with the
					same name are two distinct entities.
				</p>
				<div class="div2">
					<h3>
						<a name="sec-references" id="sec-references" />4.1 Character and
						Entity References
					</h3>
					<p>
						[<a name="dt-charref" id="dt-charref" title="Character Reference"
							>Definition</a
						>: A <b>character reference</b> refers to a specific character in
						the ISO/IEC 10646 character set, for example one not directly
						accessible from available input devices.]
					</p>
					<h5><a name="d0e3895" id="d0e3895" />Character Reference</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a name="NT-CharRef" id="NT-CharRef" />[66]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>CharRef</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td><code>'&amp;#' [0-9]+ ';' </code></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td><code>| '&amp;#x' [0-9a-fA-F]+ ';'</code></td>
								<td><a href="#wf-Legalchar">[WFC: Legal Character]</a></td>
							</tr>
						</tbody>
					</table>
					<div class="constraint">
						<p class="prefix">
							<a name="wf-Legalchar" id="wf-Legalchar" /><b
								>Well-formedness constraint: Legal Character</b
							>
						</p>
						<p>
							Characters referred to using character references
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							match the production for <a href="#NT-Char">Char</a>.
						</p>
					</div>
					<p>
						If the character reference begins with "
						<code>&amp;#x</code>
						", the digits and letters up to the terminating
						<code>;</code> provide a hexadecimal representation of the
						character's code point in ISO/IEC 10646. If it begins just with "
						<code>&amp;#</code>
						", the digits up to the terminating <code>;</code> provide a decimal
						representation of the character's code point.
					</p>
					<p>
						[<a name="dt-entref" id="dt-entref" title="Entity Reference"
							>Definition</a
						>: An <b>entity reference</b> refers to the content of a named
						entity.] [<a
							name="dt-GERef"
							id="dt-GERef"
							title="General Entity Reference"
							>Definition</a
						>: References to parsed general entities use ampersand
						(<code>&amp;</code>) and semicolon (<code>;</code>) as delimiters.]
						[<a name="dt-PERef" id="dt-PERef" title="Parameter-entity reference"
							>Definition</a
						>:
						<b>Parameter-entity references</b>
						use percent-sign (<code>%</code>) and semicolon (<code>;</code>) as
						delimiters.]
					</p>
					<h5><a name="d0e3966" id="d0e3966" />Entity Reference</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-Reference"
										id="NT-Reference"
									/>[67]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>Reference</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-EntityRef">EntityRef</a> |
										<a href="#NT-CharRef">CharRef</a>
									</code>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-EntityRef"
										id="NT-EntityRef"
									/>[68]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>EntityRef</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>'&amp;' <a href="#NT-Name">Name</a> ';'</code>
								</td>
								<td><a href="#wf-entdeclared">[WFC: Entity Declared]</a></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td><a href="#vc-entdeclared">[VC: Entity Declared]</a></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td><a href="#textent">[WFC: Parsed Entity]</a></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td><a href="#norecursion">[WFC: No Recursion]</a></td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-PEReference"
										id="NT-PEReference"
									/>[69]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>PEReference</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>'%' <a href="#NT-Name">Name</a> ';'</code>
								</td>
								<td><a href="#vc-entdeclared">[VC: Entity Declared]</a></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td><a href="#norecursion">[WFC: No Recursion]</a></td>
							</tr>
							<tr valign="baseline">
								<td />
								<td />
								<td />
								<td />
								<td><a href="#indtd">[WFC: In DTD]</a></td>
							</tr>
						</tbody>
					</table>
					<div class="constraint">
						<p class="prefix">
							<a name="wf-entdeclared" id="wf-entdeclared" /><b
								>Well-formedness constraint: Entity Declared</b
							>
						</p>
						<p>
							In a document without any DTD, a document with only an internal
							DTD subset which contains no parameter entity references, or a
							document with "
							<code>standalone='yes'</code>
							", for an entity reference that does not occur within the external
							subset or a parameter entity, the
							<a href="#NT-Name">Name</a> given in the entity reference
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							<a title="match" href="#dt-match">match</a> that in an
							<a href="#sec-entity-decl"><cite>entity declaration</cite></a>
							that does not occur within the external subset or a parameter
							entity, except that well-formed documents need not declare any of
							the following entities: <code>amp</code>, <code>lt</code>,
							<code>gt</code>, <code>apos</code>, <code>quot</code>. The
							declaration of a general entity
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							precede any reference to it which appears in a default value in an
							attribute-list declaration.
						</p>
						<p>
							Note that non-validating processors are
							<a href="#include-if-valid"><cite>not obligated to</cite></a> read
							and process entity declarations occurring in parameter entities or
							in the external subset; for such documents, the rule that an
							entity must be declared is a well-formedness constraint only if
							<a href="#sec-rmd"><cite>standalone='yes'</cite></a
							>.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="vc-entdeclared" id="vc-entdeclared" /><b
								>Validity constraint: Entity Declared</b
							>
						</p>
						<p>
							In a document with an external subset or parameter entity
							references<span
								>, if the document is not standalone (either
								"<code>standalone='no'</code>" is specified or there is no
								standalone declaration), then</span
							>
							the <a href="#NT-Name">Name</a> given in the entity reference
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							<a title="match" href="#dt-match">match</a> that in an
							<a href="#sec-entity-decl"><cite>entity declaration</cite></a
							>. For interoperability, valid documents
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							declare the entities <code>amp</code>, <code>lt</code>,
							<code>gt</code>, <code>apos</code>, <code>quot</code>, in the form
							specified in
							<a href="#sec-predefined-ent"><b>4.6 Predefined Entities</b></a
							>. The declaration of a parameter entity
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							precede any reference to it. Similarly, the declaration of a
							general entity
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							precede any attribute-list declaration containing a default value
							with a direct or indirect reference to that general entity.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="textent" id="textent" /><b
								>Well-formedness constraint: Parsed Entity</b
							>
						</p>
						<p>
							An entity reference
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							contain the name of an
							<a title="Unparsed Entity" href="#dt-unparsed">unparsed entity</a
							>. Unparsed entities may be referred to only in
							<a title="Attribute Value" href="#dt-attrval">attribute values</a>
							declared to be of type <b>ENTITY</b> or <b>ENTITIES</b>.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="norecursion" id="norecursion" /><b
								>Well-formedness constraint: No Recursion</b
							>
						</p>
						<p>
							A parsed entity
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							contain a recursive reference to itself, either directly or
							indirectly.
						</p>
					</div>
					<div class="constraint">
						<p class="prefix">
							<a name="indtd" id="indtd" /><b
								>Well-formedness constraint: In DTD</b
							>
						</p>
						<p>
							Parameter-entity references
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							appear outside the
							<a title="Document Type Declaration" href="#dt-doctype">DTD</a>.
						</p>
					</div>
					<p>Examples of character and entity references:</p>
					<div class="exampleInner">
						<pre>
Type &lt;key&gt;less-than&lt;/key&gt; (&amp;#x3C;) to save options.
This document was prepared on &amp;docdate; and
is classified &amp;security-level;.</pre
						>
					</div>
					<p>Example of a parameter-entity reference:</p>
					<div class="exampleInner">
						<pre>
&lt;!-- declare the parameter entity "ISOLat2"... --&gt;
&lt;!ENTITY % ISOLat2
         SYSTEM "http://www.xml.com/iso/isolat2-xml.entities" &gt;
&lt;!-- ... now reference it. --&gt;
%ISOLat2;</pre
						>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-entity-decl" id="sec-entity-decl" />4.2 Entity
						Declarations
					</h3>
					<p>
						[<a name="dt-entdecl" id="dt-entdecl" title="entity declaration"
							>Definition</a
						>: Entities are declared thus:]
					</p>
					<h5><a name="d0e4163" id="d0e4163" />Entity Declaration</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-EntityDecl"
										id="NT-EntityDecl"
									/>[70]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>EntityDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-GEDecl">GEDecl</a>
										| <a href="#NT-PEDecl">PEDecl</a>
									</code>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a name="NT-GEDecl" id="NT-GEDecl" />[71]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>GEDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;!ENTITY' <a href="#NT-S">S</a>
										<a href="#NT-Name">Name</a>
										<a href="#NT-S">S</a>
										<a href="#NT-EntityDef">EntityDef</a>
										<a href="#NT-S">S</a>? '&gt;'</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a name="NT-PEDecl" id="NT-PEDecl" />[72]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>PEDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;!ENTITY' <a href="#NT-S">S</a> '%'
										<a href="#NT-S">S</a>
										<a href="#NT-Name">Name</a>
										<a href="#NT-S">S</a>
										<a href="#NT-PEDef">PEDef</a>
										<a href="#NT-S">S</a>? '&gt;'</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a
										name="NT-EntityDef"
										id="NT-EntityDef"
									/>[73]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>EntityDef</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-EntityValue">EntityValue</a>
										| (<a href="#NT-ExternalID">ExternalID</a>
										<a href="#NT-NDataDecl">NDataDecl</a>?)</code
									>
								</td>
							</tr>
							<tr valign="baseline">
								<td>
									<a name="NT-PEDef" id="NT-PEDef" />[74]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>PEDef</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code>
										<a href="#NT-EntityValue">EntityValue</a> |
										<a href="#NT-ExternalID">ExternalID</a>
									</code>
								</td>
							</tr>
						</tbody>
					</table>
					<p>
						The <a href="#NT-Name">Name</a> identifies the entity in an
						<a title="Entity Reference" href="#dt-entref">entity reference</a>
						or, in the case of an unparsed entity, in the value of an
						<b>ENTITY</b> or <b>ENTITIES</b> attribute. If the same entity is
						declared more than once, the first declaration encountered is
						binding; at user option, an XML processor
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
						issue a warning if entities are declared multiple times.
					</p>
					<div class="div3">
						<h4>
							<a name="sec-internal-ent" id="sec-internal-ent" />4.2.1 Internal
							Entities
						</h4>
						<p>
							[<a
								name="dt-internent"
								id="dt-internent"
								title="Internal Entity Replacement Text"
								>Definition</a
							>: If the entity definition is an
							<a href="#NT-EntityValue">EntityValue</a>, the defined entity is
							called an <b>internal entity</b>. There is no separate physical
							storage object, and the content of the entity is given in the
							declaration.] Note that some processing of entity and character
							references in the
							<a title="Literal Entity Value" href="#dt-litentval"
								>literal entity value</a
							>
							may be required to produce the correct
							<a title="Replacement Text" href="#dt-repltext"
								>replacement text</a
							>: see
							<a href="#intern-replacement"
								><b>4.5 Construction of Entity Replacement Text</b></a
							>.
						</p>
						<p>
							An internal entity is a
							<a title="Text Entity" href="#dt-parsedent">parsed entity</a>.
						</p>
						<p>Example of an internal entity declaration:</p>
						<div class="exampleInner">
							<pre>
&lt;!ENTITY Pub-Status "This is a pre-release of the
 specification."&gt;</pre
							>
						</div>
					</div>
					<div class="div3">
						<h4>
							<a name="sec-external-ent" id="sec-external-ent" />4.2.2 External
							Entities
						</h4>
						<p>
							[<a name="dt-extent" id="dt-extent" title="External Entity"
								>Definition</a
							>: If the entity is not internal, it is an <b>external entity</b>,
							declared as follows:]
						</p>
						<h5>
							<a name="d0e4313" id="d0e4313" />External Entity Declaration
						</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-ExternalID"
											id="NT-ExternalID"
										/>[75]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>ExternalID</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>'SYSTEM' <a href="#NT-S">S</a>
											<a href="#NT-SystemLiteral">SystemLiteral</a>
										</code>
									</td>
								</tr>
								<tr valign="baseline">
									<td />
									<td />
									<td />
									<td>
										<code
											>| 'PUBLIC' <a href="#NT-S">S</a>
											<a href="#NT-PubidLiteral">PubidLiteral</a>
											<a href="#NT-S">S</a>
											<a href="#NT-SystemLiteral">SystemLiteral</a>
										</code>
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-NDataDecl"
											id="NT-NDataDecl"
										/>[76]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>NDataDecl</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code>
											<a href="#NT-S">S</a> 'NDATA' <a href="#NT-S">S</a>
											<a href="#NT-Name">Name</a>
										</code>
									</td>
									<td><a href="#not-declared">[VC: Notation Declared]</a></td>
								</tr>
							</tbody>
						</table>
						<p>
							If the <a href="#NT-NDataDecl">NDataDecl</a> is present, this is a
							general
							<a title="Unparsed Entity" href="#dt-unparsed">unparsed entity</a
							>; otherwise it is a parsed entity.
						</p>
						<div class="constraint">
							<p class="prefix">
								<a name="not-declared" id="not-declared" /><b
									>Validity constraint: Notation Declared</b
								>
							</p>
							<p>
								The <a href="#NT-Name">Name</a>
								<em class="rfc2119" title="Keyword in RFC 2119 context"
									>MUST</em
								>
								match the declared name of a
								<a title="Notation" href="#dt-notation">notation</a>.
							</p>
						</div>
						<p>
							[<a name="dt-sysid" id="dt-sysid" title="System Identifier"
								>Definition</a
							>: The <a href="#NT-SystemLiteral">SystemLiteral</a> is called the
							entity's <b>system identifier</b>. It is meant to be converted to
							a URI reference (as defined in
							<a href="#rfc3986">[IETF RFC 3986]</a>), as part of the process of
							dereferencing it to obtain input for the XML processor to
							construct the entity's replacement text.] It is an error for a
							fragment identifier (beginning with a <code>#</code> character) to
							be part of a system identifier. Unless otherwise provided by
							information outside the scope of this specification (e.g. a
							special XML element type defined by a particular DTD, or a
							processing instruction defined by a particular application
							specification), relative URIs are relative to the location of the
							resource within which the entity declaration occurs. This is
							defined to be the external entity containing the '&lt;' which
							starts the declaration, at the point when it is parsed as a
							declaration. A URI might thus be relative to the
							<a title="Document Entity" href="#dt-docent">document entity</a>,
							to the entity containing the
							<a title="Document Type Declaration" href="#dt-doctype"
								>external DTD subset</a
							>, or to some other
							<a title="External Entity" href="#dt-extent"
								>external parameter entity</a
							>. Attempts to retrieve the resource identified by a URI may be
							redirected at the parser level (for example, in an entity
							resolver) or below (at the protocol level, for example, via an
							HTTP <code>Location:</code> header). In the absence of additional
							information outside the scope of this specification within the
							resource, the base URI of a resource is always the URI of the
							actual resource returned. In other words, it is the URI of the
							resource retrieved after all redirection has occurred.
						</p>
						<p>
							System identifiers (and other XML strings meant to be used as URI
							references) may contain characters that, according to
							<a href="#rfc3986">[IETF RFC 3986]</a>, must be escaped before a
							URI can be used to retrieve the referenced resource. The
							characters to be escaped are the control characters #x0 to #x1F
							and #x7F (most of which cannot appear in XML), space #x20, the
							delimiters '&lt;' #x3C, '&gt;' #x3E and '"' #x22, the
							<em>unwise</em> characters '{' #x7B, '}' #x7D, '|' #x7C, '\' #x5C,
							'^' #x5E and '`' #x60, as well as all characters above #x7F. Since
							escaping is not always a fully reversible process, it
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be performed only when absolutely necessary and as late as
							possible in a processing chain. In particular, neither the process
							of converting a relative URI to an absolute one nor the process of
							passing a URI reference to a process or software component
							responsible for dereferencing it
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							trigger escaping. When escaping does occur, it
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be performed as follows:
						</p>
						<ol class="enumar">
							<li>
								<p>
									Each character to be escaped is represented in UTF-8
									<span><a href="#Unicode">[Unicode]</a></span> as one or more
									bytes.
								</p>
							</li>
							<li>
								<p>
									The resulting bytes are escaped with the URI escaping
									mechanism (that is, converted to <code>%</code> <var>HH</var>,
									where HH is the hexadecimal notation of the byte value).
								</p>
							</li>
							<li>
								<p>
									The original character is replaced by the resulting character
									sequence.
								</p>
							</li>
						</ol>
						<div class="note">
							<p class="prefix"><b>Note:</b></p>
							<p>
								In a future edition of this specification, the XML Core Working
								Group intends to replace the preceding paragraph and list of
								steps with a normative reference to an upcoming revision of IETF
								RFC 3987, which will define "Legacy Extended IRIs (LEIRIs)".
								When this revision is available, it is the intent of the XML
								Core WG to use it to replace language similar to the above in
								any future revisions of XML-related specifications under its
								purview.
							</p>
						</div>
						<p>
							[<a name="dt-pubid" id="dt-pubid" title="Public identifier"
								>Definition</a
							>: In addition to a system identifier, an external identifier may
							include a <b>public identifier</b>.] An XML processor attempting
							to retrieve the entity's content may use any combination of the
							public and system identifiers as well as additional information
							outside the scope of this specification to try to generate an
							alternative URI reference. If the processor is unable to do so, it
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							use the URI reference specified in the system literal. Before a
							match is attempted, all strings of white space in the public
							identifier
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be normalized to single space characters (#x20), and leading and
							trailing white space
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be removed.
						</p>
						<p>Examples of external entity declarations:</p>
						<div class="exampleInner">
							<pre>
&lt;!ENTITY open-hatch
         SYSTEM "http://www.textuality.com/boilerplate/OpenHatch.xml"&gt;
&lt;!ENTITY open-hatch
         PUBLIC "-//Textuality//TEXT Standard open-hatch boilerplate//EN"
         "http://www.textuality.com/boilerplate/OpenHatch.xml"&gt;
&lt;!ENTITY hatch-pic
         SYSTEM "../grafix/OpenHatch.gif"
         NDATA gif &gt;</pre
							>
						</div>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="TextEntities" id="TextEntities" />4.3 Parsed Entities
					</h3>
					<div class="div3">
						<h4>
							<a name="sec-TextDecl" id="sec-TextDecl" />4.3.1 The Text
							Declaration
						</h4>
						<p>
							External parsed entities
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							each begin with a <b>text declaration</b>.
						</p>
						<h5><a name="d0e4481" id="d0e4481" />Text Declaration</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-TextDecl"
											id="NT-TextDecl"
										/>[77]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>TextDecl</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code
											>'&lt;?xml' <a href="#NT-VersionInfo">VersionInfo</a>?
											<a href="#NT-EncodingDecl">EncodingDecl</a>
											<a href="#NT-S">S</a>? '?&gt;'</code
										>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							The text declaration
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be provided literally, not by reference to a parsed entity. The
							text declaration
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							appear at any position other than the beginning of an external
							parsed entity. The text declaration in an external parsed entity
							is not considered part of its
							<a title="Replacement Text" href="#dt-repltext"
								>replacement text</a
							>.
						</p>
					</div>
					<div class="div3">
						<h4>
							<a name="wf-entities" id="wf-entities" />4.3.2 Well-Formed Parsed
							Entities
						</h4>
						<p>
							The document entity is well-formed if it matches the production
							labeled <a href="#NT-document">document</a>. An external general
							parsed entity is well-formed if it matches the production labeled
							<a href="#NT-extParsedEnt">extParsedEnt</a>. All external
							parameter entities are well-formed by definition.
						</p>
						<div class="note">
							<p class="prefix"><b>Note:</b></p>
							<p>
								Only parsed entities that are referenced directly or indirectly
								within the document are required to be well-formed.
							</p>
						</div>
						<h5>
							<a name="d0e4524" id="d0e4524" />Well-Formed External Parsed
							Entity
						</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-extParsedEnt"
											id="NT-extParsedEnt"
										/>[78]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>extParsedEnt</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code>
											<a href="#NT-TextDecl">TextDecl</a>?
											<a href="#NT-content">content</a>
										</code>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							An internal general parsed entity is well-formed if its
							replacement text matches the production labeled
							<a href="#NT-content">content</a>. All internal parameter entities
							are well-formed by definition.
						</p>
						<p>
							A consequence of well-formedness in general entities is that the
							logical and physical structures in an XML document are properly
							nested; no <a title="Start-Tag" href="#dt-stag">start-tag</a>,
							<a title="End Tag" href="#dt-etag">end-tag</a>,
							<a title="Empty" href="#dt-empty">empty-element tag</a>,
							<a title="Element" href="#dt-element">element</a>,
							<a title="Comment" href="#dt-comment">comment</a>,
							<a title="Processing instruction" href="#dt-pi"
								>processing instruction</a
							>,
							<a title="Character Reference" href="#dt-charref"
								>character reference</a
							>, or
							<a title="Entity Reference" href="#dt-entref">entity reference</a>
							can begin in one entity and end in another.
						</p>
					</div>
					<div class="div3">
						<h4>
							<a name="charencoding" id="charencoding" />4.3.3 Character
							Encoding in Entities
						</h4>
						<p>
							Each external parsed entity in an XML document may use a different
							encoding for its characters. All XML processors
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be able to read entities in both the UTF-8 and UTF-16 encodings.
							The terms "UTF-8" and "UTF-16" in this specification do not apply
							to

							<span
								>related character encodings, including but not limited to
								UTF-16BE, UTF-16LE, or CESU-8.</span
							>
						</p>
						<p>
							Entities encoded in UTF-16
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							and entities encoded in UTF-8
							<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
							begin with the Byte Order Mark described by Annex H of
							<a href="#ISO10646-2000">[ISO/IEC 10646:2000]</a>, section
							<span>16.8</span> of <a href="#Unicode">[Unicode]</a> (the ZERO
							WIDTH NO-BREAK SPACE character, #xFEFF). This is an encoding
							signature, not part of either the markup or the character data of
							the XML document. XML processors
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be able to use this character to differentiate between UTF-8 and
							UTF-16 encoded documents.
						</p>
						<p>
							If the replacement text of an external entity is to begin with the
							character U+FEFF, and no text declaration is present, then a Byte
							Order Mark MUST be present, whether the entity is encoded in UTF-8
							or UTF-16.
						</p>
						<p>
							Although an XML processor is required to read only entities in the
							UTF-8 and UTF-16 encodings, it is recognized that other encodings
							are used around the world, and it may be desired for XML
							processors to read entities that use them. In the absence of
							external character encoding information (such as MIME headers),
							parsed entities which are stored in an encoding other than UTF-8
							or UTF-16
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							begin with a text declaration (see
							<a href="#sec-TextDecl"><b>4.3.1 The Text Declaration</b></a
							>) containing an encoding declaration:
						</p>
						<h5><a name="d0e4623" id="d0e4623" />Encoding Declaration</h5>
						<table class="scrap" summary="Scrap">
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-EncodingDecl"
											id="NT-EncodingDecl"
										/>[80]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>EncodingDecl</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td>
										<code>
											<a href="#NT-S">S</a> 'encoding'
											<a href="#NT-Eq">Eq</a> ('"'
											<a href="#NT-EncName">EncName</a> '"' | "'"
											<a href="#NT-EncName">EncName</a> "'" )
										</code>
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr valign="baseline">
									<td>
										<a
											name="NT-EncName"
											id="NT-EncName"
										/>[81]&nbsp;&nbsp;&nbsp;
									</td>
									<td><code>EncName</code></td>
									<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
									<td><code>[A-Za-z] ([A-Za-z0-9._] | '-')*</code></td>
									<td>
										<i>/* Encoding name contains only Latin characters */</i>
									</td>
								</tr>
							</tbody>
						</table>
						<p>
							In the
							<a title="Document Entity" href="#dt-docent">document entity</a>,
							the encoding declaration is part of the
							<a title="XML Declaration" href="#dt-xmldecl">XML declaration</a>.
							The <a href="#NT-EncName">EncName</a> is the name of the encoding
							used.
						</p>
						<p>
							In an encoding declaration, the values "
							<code>UTF-8</code>
							", "
							<code>UTF-16</code>
							", "
							<code>ISO-10646-UCS-2</code>
							", and "
							<code>ISO-10646-UCS-4</code>
							"
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							be used for the various encodings and transformations of Unicode /
							ISO/IEC 10646, the values "
							<code>ISO-8859-1</code>
							", "
							<code>ISO-8859-2</code>
							", ... "
							<code>ISO-8859-</code>
							<var>n</var>
							" (where <var>n</var> is the part number)
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							be used for the parts of ISO 8859, and the values "
							<code>ISO-2022-JP</code>
							", "
							<code>Shift_JIS</code>
							", and "
							<code>EUC-JP</code>
							"
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							be used for the various encoded forms of JIS X-0208-1997. It is
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>RECOMMENDED</em
							>
							that character encodings registered (as <em>charset</em>s) with
							the Internet Assigned Numbers Authority
							<a href="#IANA">[IANA-CHARSETS]</a>, other than those just listed,
							be referred to using their registered names; other encodings
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							use names starting with an "x-" prefix. XML processors
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							match character encoding names in a case-insensitive way and
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>SHOULD</em
							>
							either interpret an IANA-registered name as the encoding
							registered at IANA for that name or treat it as unknown
							(processors are, of course, not required to support all
							IANA-registered encodings).
						</p>
						<p>
							In the absence of information provided by an external transport
							protocol (e.g. HTTP or MIME), it is a
							<a title="Fatal Error" href="#dt-fatal">fatal error</a> for an
							entity including an encoding declaration to be presented to the
							XML processor in an encoding other than that named in the
							declaration, or for an entity which begins with neither a Byte
							Order Mark nor an encoding declaration to use an encoding other
							than UTF-8. Note that since ASCII is a subset of UTF-8, ordinary
							ASCII entities do not strictly need an encoding declaration.
						</p>
						<p>
							It is a
							<a title="Fatal Error" href="#dt-fatal">fatal error</a> for a
							<a href="#NT-TextDecl">TextDecl</a> to occur other than at the
							beginning of an external entity.
						</p>
						<p>
							It is a
							<a title="Fatal Error" href="#dt-fatal">fatal error</a> when an
							XML processor encounters an entity with an encoding that it is
							unable to process. It is a
							<a title="Fatal Error" href="#dt-fatal">fatal error</a> if an XML
							entity is determined (via default, encoding declaration, or
							higher-level protocol) to be in a certain encoding but contains
							byte sequences that are not legal in that encoding. Specifically,
							it is a fatal error if an entity encoded in UTF-8 contains any
							<span>ill-formed</span> code unit sequences, as defined in
							<span>section 3.9 of </span> Unicode
							<span><a href="#Unicode">[Unicode]</a></span
							>. Unless an encoding is determined by a higher-level protocol, it
							is also a
							<a title="Fatal Error" href="#dt-fatal">fatal error</a> if an XML
							entity contains no encoding declaration and its content is not
							legal UTF-8 or UTF-16.
						</p>
						<p>
							Examples of text declarations containing encoding declarations:
						</p>
						<div class="exampleInner">
							<pre>
&lt;?xml encoding='UTF-8'?&gt;
&lt;?xml encoding='EUC-JP'?&gt;</pre
							>
						</div>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="entproc" id="entproc" />4.4 XML Processor Treatment of
						Entities and References
					</h3>
					<p>
						The table below summarizes the contexts in which character
						references, entity references, and invocations of unparsed entities
						might appear and the
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>REQUIRED</em
						>
						behavior of an
						<a title="XML Processor" href="#dt-xml-proc">XML processor</a> in
						each case. The labels in the leftmost column describe the
						recognition context:
					</p>
					<dl>
						<dt class="label">Reference in Content</dt>
						<dd>
							<p>
								as a reference anywhere after the
								<a title="Start-Tag" href="#dt-stag">start-tag</a> and before
								the <a title="End Tag" href="#dt-etag">end-tag</a> of an
								element; corresponds to the nonterminal
								<a href="#NT-content">content</a>.
							</p>
						</dd>
						<dt class="label">Reference in Attribute Value</dt>
						<dd>
							<p>
								as a reference within either the value of an attribute in a
								<a title="Start-Tag" href="#dt-stag">start-tag</a>, or a default
								value in an
								<a title="Attribute-List Declaration" href="#dt-attdecl"
									>attribute declaration</a
								>; corresponds to the nonterminal
								<a href="#NT-AttValue">AttValue</a>.
							</p>
						</dd>
						<dt class="label">Occurs as Attribute Value</dt>
						<dd>
							<p>
								as a <a href="#NT-Name">Name</a>, not a reference, appearing
								either as the value of an attribute which has been declared as
								type <b>ENTITY</b>, or as one of the space-separated tokens in
								the value of an attribute which has been declared as type
								<b>ENTITIES</b>.
							</p>
						</dd>
						<dt class="label">Reference in Entity Value</dt>
						<dd>
							<p>
								as a reference within a parameter or internal entity's
								<a title="Literal Entity Value" href="#dt-litentval"
									>literal entity value</a
								>
								in the entity's declaration; corresponds to the nonterminal
								<a href="#NT-EntityValue">EntityValue</a>.
							</p>
						</dd>
						<dt class="label">Reference in DTD</dt>
						<dd>
							<p>
								as a reference within either the internal or external subsets of
								the
								<a title="Document Type Declaration" href="#dt-doctype">DTD</a>,
								but outside of an <a href="#NT-EntityValue">EntityValue</a>,
								<a href="#NT-AttValue">AttValue</a>, <a href="#NT-PI">PI</a>,
								<a href="#NT-Comment">Comment</a>,
								<a href="#NT-SystemLiteral">SystemLiteral</a>,
								<a href="#NT-PubidLiteral">PubidLiteral</a>, or the contents of
								an ignored conditional section (see
								<a href="#sec-condition-sect"><b>3.4 Conditional Sections</b></a
								>).
							</p>
							<p>.</p>
						</dd>
					</dl>
					<p></p>
					<table border="1" frame="border" cellpadding="7">
						<tbody align="center">
							<tr>
								<td rowspan="2" />
								<td colspan="4" align="center" valign="bottom">Entity Type</td>
								<td rowspan="2" align="center">Character</td>
							</tr>
							<tr align="center" valign="bottom">
								<td>Parameter</td>
								<td>Internal General</td>
								<td>External Parsed General</td>
								<td>Unparsed</td>
							</tr>
							<tr align="center" valign="middle">
								<td align="right">Reference in Content</td>
								<td>
									<a href="#not-recognized"><cite>Not recognized</cite></a>
								</td>
								<td>
									<a href="#included"><cite>Included</cite></a>
								</td>
								<td>
									<a href="#include-if-valid"
										><cite>Included if validating</cite></a
									>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#included"><cite>Included</cite></a>
								</td>
							</tr>
							<tr align="center" valign="middle">
								<td align="right">Reference in Attribute Value</td>
								<td>
									<a href="#not-recognized"><cite>Not recognized</cite></a>
								</td>
								<td>
									<a href="#inliteral"><cite>Included in literal</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#included"><cite>Included</cite></a>
								</td>
							</tr>
							<tr align="center" valign="middle">
								<td align="right">Occurs as Attribute Value</td>
								<td>
									<a href="#not-recognized"><cite>Not recognized</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#notify"><cite>Notify</cite></a>
								</td>
								<td>
									<a href="#not-recognized"><cite>Not recognized</cite></a>
								</td>
							</tr>
							<tr align="center" valign="middle">
								<td align="right">Reference in EntityValue</td>
								<td>
									<a href="#inliteral"><cite>Included in literal</cite></a>
								</td>
								<td>
									<a href="#bypass"><cite>Bypassed</cite></a>
								</td>
								<td>
									<a href="#bypass"><cite>Bypassed</cite></a>
								</td>
								<td>
									<a href="#error"><cite>Error</cite></a>
								</td>
								<td>
									<a href="#included"><cite>Included</cite></a>
								</td>
							</tr>
							<tr align="center" valign="middle">
								<td align="right">Reference in DTD</td>
								<td>
									<a href="#as-PE"><cite>Included as PE</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
								<td>
									<a href="#forbidden"><cite>Forbidden</cite></a>
								</td>
							</tr>
						</tbody>
					</table>
					<div class="div3">
						<h4>
							<a name="not-recognized" id="not-recognized" />4.4.1 Not
							Recognized
						</h4>
						<p>
							Outside the DTD, the <code>%</code> character has no special
							significance; thus, what would be parameter entity references in
							the DTD are not recognized as markup in
							<a href="#NT-content">content</a>. Similarly, the names of
							unparsed entities are not recognized except when they appear in
							the value of an appropriately declared attribute.
						</p>
					</div>
					<div class="div3">
						<h4><a name="included" id="included" />4.4.2 Included</h4>
						<p>
							[<a name="dt-include" id="dt-include" title="Include"
								>Definition</a
							>: An entity is <b>included</b> when its
							<a title="Replacement Text" href="#dt-repltext"
								>replacement text</a
							>
							is retrieved and processed, in place of the reference itself, as
							though it were part of the document at the location the reference
							was recognized.] The replacement text may contain both
							<a title="Character Data" href="#dt-chardata">character data</a>
							and (except for parameter entities)
							<a title="Markup" href="#dt-markup">markup</a>, which
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be recognized in the usual way. (The string "
							<code>AT&amp;amp;T;</code>
							" expands to "
							<code>AT&amp;T;</code>
							" and the remaining ampersand is not recognized as an
							entity-reference delimiter.) A character reference is
							<b>included</b> when the indicated character is processed in place
							of the reference itself.
						</p>
					</div>
					<div class="div3">
						<h4>
							<a name="include-if-valid" id="include-if-valid" />4.4.3 Included
							If Validating
						</h4>
						<p>
							When an XML processor recognizes a reference to a parsed entity,
							in order to <a title="Validity" href="#dt-valid">validate</a> the
							document, the processor
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							<a title="Include" href="#dt-include">include</a> its replacement
							text. If the entity is external, and the processor is not
							attempting to validate the XML document, the processor
							<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>,
							but need not, include the entity's replacement text. If a
							non-validating processor does not include the replacement text, it
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							inform the application that it recognized, but did not read, the
							entity.
						</p>
						<p>
							This rule is based on the recognition that the automatic inclusion
							provided by the SGML and XML entity mechanism, primarily designed
							to support modularity in authoring, is not necessarily appropriate
							for other applications, in particular document browsing. Browsers,
							for example, when encountering an external parsed entity
							reference, might choose to provide a visual indication of the
							entity's presence and retrieve it for display only on demand.
						</p>
					</div>
					<div class="div3">
						<h4><a name="forbidden" id="forbidden" />4.4.4 Forbidden</h4>
						<p>
							The following are forbidden, and constitute
							<a title="Fatal Error" href="#dt-fatal">fatal errors</a>:
						</p>
						<ul>
							<li>
								<p>
									the appearance of a reference to an
									<a title="Unparsed Entity" href="#dt-unparsed"
										>unparsed entity</a
									>, except in the <a href="#NT-EntityValue">EntityValue</a> in
									an entity declaration.
								</p>
							</li>
							<li>
								<p>
									the appearance of any character or general-entity reference in
									the DTD except within an
									<a href="#NT-EntityValue">EntityValue</a> or
									<a href="#NT-AttValue">AttValue</a>.
								</p>
							</li>
							<li>
								<p>a reference to an external entity in an attribute value.</p>
							</li>
						</ul>
					</div>
					<div class="div3">
						<h4>
							<a name="inliteral" id="inliteral" />4.4.5 Included in Literal
						</h4>
						<p>
							When an
							<a title="Entity Reference" href="#dt-entref">entity reference</a>
							appears in an attribute value, or a parameter entity reference
							appears in a literal entity value, its
							<a title="Replacement Text" href="#dt-repltext"
								>replacement text</a
							>
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be processed in place of the reference itself as though it were
							part of the document at the location the reference was recognized,
							except that a single or double quote character in the replacement
							text
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							always be treated as a normal data character and
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							terminate the literal. For example, this is well-formed:
						</p>
						<div class="exampleInner">
							<pre>
&lt;!ENTITY % YN '"Yes"' &gt;
&lt;!ENTITY WhatHeSaid "He said %YN;" &gt;</pre
							>
						</div>
						<p>while this is not:</p>
						<div class="exampleInner">
							<pre>
&lt;!ENTITY EndAttr "27'" &gt;
&lt;element attribute='a-&amp;EndAttr;&gt;</pre
							>
						</div>
					</div>
					<div class="div3">
						<h4><a name="notify" id="notify" />4.4.6 Notify</h4>
						<p>
							When the name of an
							<a title="Unparsed Entity" href="#dt-unparsed">unparsed entity</a>
							appears as a token in the value of an attribute of declared type
							<b>ENTITY</b> or <b>ENTITIES</b>, a validating processor
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							inform the application of the
							<a title="System Identifier" href="#dt-sysid">system</a> and
							<a title="Public identifier" href="#dt-pubid">public</a> (if any)
							identifiers for both the entity and its associated
							<a title="Notation" href="#dt-notation">notation</a>.
						</p>
					</div>
					<div class="div3">
						<h4><a name="bypass" id="bypass" />4.4.7 Bypassed</h4>
						<p>
							When a general entity reference appears in the
							<a href="#NT-EntityValue">EntityValue</a> in an entity
							declaration, it
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be bypassed and left as is.
						</p>
					</div>
					<div class="div3">
						<h4><a name="as-PE" id="as-PE" />4.4.8 Included as PE</h4>
						<p>
							Just as with external parsed entities, parameter entities need
							only be
							<a href="#include-if-valid"><cite>included if validating</cite></a
							>. When a parameter-entity reference is recognized in the DTD and
							included, its
							<a title="Replacement Text" href="#dt-repltext"
								>replacement text</a
							>
							<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
							be enlarged by the attachment of one leading and one following
							space (#x20) character; the intent is to constrain the replacement
							text of parameter entities to contain an integral number of
							grammatical tokens in the DTD. This behavior
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							apply to parameter entity references within entity values; these
							are described in
							<a href="#inliteral"><b>4.4.5 Included in Literal</b></a
							>.
						</p>
					</div>
					<div class="div3">
						<h4><a name="error" id="error" />4.4.9 Error</h4>
						<p>
							It is an <a title="Error" href="#dt-error">error</a> for a
							reference to an unparsed entity to appear in the
							<a href="#NT-EntityValue">EntityValue</a> in an entity
							declaration.
						</p>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="intern-replacement" id="intern-replacement" />4.5
						Construction of Entity Replacement Text
					</h3>
					<p>
						In discussing the treatment of entities, it is useful to distinguish
						two forms of the entity's value. [<a
							name="dt-litentval"
							id="dt-litentval"
							title="Literal Entity Value"
							>Definition</a
						>: For an internal entity, the <b>literal entity value</b> is the
						quoted string actually present in the entity declaration,
						corresponding to the non-terminal
						<a href="#NT-EntityValue">EntityValue</a>.] [<a
							name="dt-extlitentval"
							id="dt-extlitentval"
							title="Literal Entity Value"
							>Definition</a
						>: For an external entity, the <b>literal entity value</b> is the
						exact text contained in the entity.] [<a
							name="dt-repltext"
							id="dt-repltext"
							title="Replacement Text"
							>Definition</a
						>: For an internal entity, the <b>replacement text</b> is the
						content of the entity, after replacement of character references and
						parameter-entity references.] [<a
							name="dt-extrepltext"
							id="dt-extrepltext"
							title="Replacement Text"
							>Definition</a
						>: For an external entity, the <b>replacement text</b> is the
						content of the entity, after stripping the text declaration (leaving
						any surrounding whitespace) if there is one but without any
						replacement of character references or parameter-entity references.]
					</p>
					<p>
						The literal entity value as given in an internal entity declaration
						(<a href="#NT-EntityValue">EntityValue</a>) may contain character,
						parameter-entity, and general-entity references. Such references
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						contained entirely within the literal entity value. The actual
						replacement text that is
						<a title="Include" href="#dt-include">included</a> (or
						<a title="" href="#inliteral">included in literal</a>) as described
						above
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						contain the <em>replacement text</em> of any parameter entities
						referred to, and
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						contain the character referred to, in place of any character
						references in the literal entity value; however, general-entity
						references
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						left as-is, unexpanded. For example, given the following
						declarations:
					</p>
					<div class="exampleInner">
						<pre>
&lt;!ENTITY % pub    "&amp;#xc9;ditions Gallimard" &gt;
&lt;!ENTITY   rights "All rights reserved" &gt;
&lt;!ENTITY   book   "La Peste: Albert Camus,
&amp;#xA9; 1947 %pub;. &amp;rights;" &gt;</pre
						>
					</div>
					<p>
						then the replacement text for the entity "
						<code>book</code>
						" is:
					</p>
					<div class="exampleInner">
						<pre>
La Peste: Albert Camus,
© 1947 Éditions Gallimard. &amp;rights;</pre
						>
					</div>
					<p>
						The general-entity reference "
						<code>&amp;rights;</code>
						" would be expanded should the reference "
						<code>&amp;book;</code>
						" appear in the document's content or an attribute value.
					</p>
					<p>
						These simple rules may have complex interactions; for a detailed
						discussion of a difficult example, see
						<a href="#sec-entexpand"
							><b>D Expansion of Entity and Character References</b></a
						>.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-predefined-ent" id="sec-predefined-ent" />4.6
						Predefined Entities
					</h3>
					<p>
						[<a name="dt-escape" id="dt-escape" title="escape">Definition</a>:
						Entity and character references may both be used to
						<b>escape</b> the left angle bracket, ampersand, and other
						delimiters. A set of general entities (<code>amp</code>,
						<code>lt</code>, <code>gt</code>, <code>apos</code>,
						<code>quot</code>) is specified for this purpose. Numeric character
						references may also be used; they are expanded immediately when
						recognized and
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						treated as character data, so the numeric character references "
						<code>&amp;#60;</code>
						" and "
						<code>&amp;#38;</code>
						" may be used to escape <code>&lt;</code> and
						<code>&amp;</code> when they occur in character data.]
					</p>
					<p>
						All XML processors
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						recognize these entities whether they are declared or not.
						<a title="For interoperability" href="#dt-interop"
							>For interoperability</a
						>, valid XML documents
						<em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em>
						declare these entities, like any others, before using them. If the
						entities <code>lt</code> or <code>amp</code> are declared, they
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						declared as internal entities whose replacement text is a character
						reference to the respective character (less-than sign or ampersand)
						being escaped; the double escaping is
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>REQUIRED</em
						>
						for these entities so that references to them produce a well-formed
						result. If the entities <code>gt</code>, <code>apos</code>, or
						<code>quot</code> are declared, they
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em> be
						declared as internal entities whose replacement text is the single
						character being escaped (or a character reference to that character;
						the double escaping here is
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>OPTIONAL</em
						>
						but harmless). For example:
					</p>
					<div class="exampleInner">
						<pre>
&lt;!ENTITY lt     "&amp;#38;#60;"&gt;
&lt;!ENTITY gt     "&amp;#62;"&gt;
&lt;!ENTITY amp    "&amp;#38;#38;"&gt;
&lt;!ENTITY apos   "&amp;#39;"&gt;
&lt;!ENTITY quot   "&amp;#34;"&gt;</pre
						>
					</div>
				</div>
				<div class="div2">
					<h3>
						<a name="Notations" id="Notations" />4.7 Notation Declarations
					</h3>
					<p>
						[<a name="dt-notation" id="dt-notation" title="Notation"
							>Definition</a
						>: <b>Notations</b> identify by name the format of
						<a title="Unparsed Entity" href="#dt-unparsed">unparsed entities</a
						>, the format of elements which bear a notation attribute, or the
						application to which a
						<a title="Processing instruction" href="#dt-pi"
							>processing instruction</a
						>
						is addressed.]
					</p>
					<p>
						[<a name="dt-notdecl" id="dt-notdecl" title="Notation Declaration"
							>Definition</a
						>:
						<b>Notation declarations</b>
						provide a name for the notation, for use in entity and
						attribute-list declarations and in attribute specifications, and an
						external identifier for the notation which may allow an XML
						processor or its client application to locate a helper application
						capable of processing data in the given notation.]
					</p>
					<h5><a name="d0e5457" id="d0e5457" />Notation Declarations</h5>
					<table class="scrap" summary="Scrap">
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-NotationDecl"
										id="NT-NotationDecl"
									/>[82]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>NotationDecl</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'&lt;!NOTATION' <a href="#NT-S">S</a>
										<a href="#NT-Name">Name</a>
										<a href="#NT-S">S</a> (<a href="#NT-ExternalID"
											>ExternalID</a
										>
										| <a href="#NT-PublicID">PublicID</a>)
										<a href="#NT-S">S</a>? '&gt;'</code
									>
								</td>
								<td>
									<a href="#UniqueNotationName">[VC: Unique Notation Name]</a>
								</td>
							</tr>
						</tbody>
						<tbody>
							<tr valign="baseline">
								<td>
									<a
										name="NT-PublicID"
										id="NT-PublicID"
									/>[83]&nbsp;&nbsp;&nbsp;
								</td>
								<td><code>PublicID</code></td>
								<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
								<td>
									<code
										>'PUBLIC' <a href="#NT-S">S</a>
										<a href="#NT-PubidLiteral">PubidLiteral</a>
									</code>
								</td>
							</tr>
						</tbody>
					</table>
					<div class="constraint">
						<p class="prefix">
							<a name="UniqueNotationName" id="UniqueNotationName" /><b
								>Validity constraint: Unique Notation Name</b
							>
						</p>
						<p>
							A given <a href="#NT-Name">Name</a>
							<em class="rfc2119" title="Keyword in RFC 2119 context"
								>MUST NOT</em
							>
							be declared in more than one notation declaration.
						</p>
					</div>
					<p>
						XML processors
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						provide applications with the name and external identifier(s) of any
						notation declared and referred to in an attribute value, attribute
						definition, or entity declaration. They
						<em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
						additionally resolve the external identifier into the
						<a title="System Identifier" href="#dt-sysid">system identifier</a>,
						file name, or other information needed to allow the application to
						call a processor for data in the notation described. (It is not an
						error, however, for XML documents to declare and refer to notations
						for which notation-specific applications are not available on the
						system where the XML processor or application is running.)
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="sec-doc-entity" id="sec-doc-entity" />4.8 Document Entity
					</h3>
					<p>
						[<a name="dt-docent" id="dt-docent" title="Document Entity"
							>Definition</a
						>: The <b>document entity</b> serves as the root of the entity tree
						and a starting-point for an
						<a title="XML Processor" href="#dt-xml-proc">XML processor</a>.]
						This specification does not specify how the document entity is to be
						located by an XML processor; unlike other entities, the document
						entity has no name and might well appear on a processor input stream
						without any identification at all.
					</p>
				</div>
			</div>
			<div class="div1">
				<h2><a name="sec-conformance" id="sec-conformance" />5 Conformance</h2>
				<div class="div2">
					<h3>
						<a name="proc-types" id="proc-types" />5.1 Validating and
						Non-Validating Processors
					</h3>
					<p>
						Conforming
						<a title="XML Processor" href="#dt-xml-proc">XML processors</a> fall
						into two classes: validating and non-validating.
					</p>
					<p>
						Validating and non-validating processors alike
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						report violations of this specification's well-formedness
						constraints in the content of the
						<a title="Document Entity" href="#dt-docent">document entity</a> and
						any other
						<a title="Text Entity" href="#dt-parsedent">parsed entities</a> that
						they read.
					</p>
					<p>
						[<a
							name="dt-validating"
							id="dt-validating"
							title="Validating Processor"
							>Definition</a
						>:
						<b>Validating processors</b>
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>,
						at user option, report violations of the constraints expressed by
						the declarations in the
						<a title="Document Type Declaration" href="#dt-doctype">DTD</a>, and
						failures to fulfill the validity constraints given in this
						specification.] To accomplish this, validating XML processors
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						read and process the entire DTD and all external parsed entities
						referenced in the document.
					</p>
					<p>
						Non-validating processors are
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>REQUIRED</em
						>
						to check only the
						<a title="Document Entity" href="#dt-docent">document entity</a>,
						including the entire internal DTD subset, for well-formedness. [<a
							name="dt-use-mdecl"
							id="dt-use-mdecl"
							title="Process Declarations"
							>Definition</a
						>: While they are not required to check the document for validity,
						they are
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>REQUIRED</em
						>
						to <b>process</b> all the declarations they read in the internal DTD
						subset and in any parameter entity that they read, up to the first
						reference to a parameter entity that they do <em>not</em> read; that
						is to say, they
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						use the information in those declarations to
						<a href="#AVNormalize"><cite>normalize</cite></a> attribute values,
						<a href="#included"><cite>include</cite></a> the replacement text of
						internal entities, and supply
						<a href="#sec-attr-defaults"
							><cite>default attribute values</cite></a
						>.] Except when <code>standalone="yes"</code>, they
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>MUST NOT</em
						>
						<a title="Process Declarations" href="#dt-use-mdecl">process</a>
						<a title="entity declaration" href="#dt-entdecl"
							>entity declarations</a
						>
						or
						<a title="Attribute-List Declaration" href="#dt-attdecl"
							>attribute-list declarations</a
						>
						encountered after a reference to a parameter entity that is not
						read, since the entity may have contained overriding declarations;
						when <code>standalone="yes"</code>, processors
						<em class="rfc2119" title="Keyword in RFC 2119 context">MUST</em>
						process these declarations.
					</p>
					<p>
						Note that when processing invalid documents with a non-validating
						processor the application may not be presented with consistent
						information. For example, several requirements for uniqueness within
						the document may not be met, including more than one element with
						the same id, duplicate declarations of elements or notations with
						the same name, etc. In these cases the behavior of the parser with
						respect to reporting such information to the application is
						undefined.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a name="safe-behavior" id="safe-behavior" />5.2 Using XML
						Processors
					</h3>
					<p>
						The behavior of a validating XML processor is highly predictable; it
						must read every piece of a document and report all well-formedness
						and validity violations. Less is required of a non-validating
						processor; it need not read any part of the document other than the
						document entity. This has two effects that may be important to users
						of XML processors:
					</p>
					<ul>
						<li>
							<p>
								Certain well-formedness errors, specifically those that require
								reading external entities, may fail to be detected by a
								non-validating processor. Examples include the constraints
								entitled
								<a href="#wf-entdeclared"><cite>Entity Declared</cite></a
								>, <a href="#textent"><cite>Parsed Entity</cite></a
								>, and <a href="#norecursion"><cite>No Recursion</cite></a
								>, as well as some of the cases described as
								<a href="#forbidden"><cite>forbidden</cite></a> in
								<a href="#entproc"
									><b
										>4.4 XML Processor Treatment of Entities and References</b
									></a
								>.
							</p>
						</li>
						<li>
							<p>
								The information passed from the processor to the application may
								vary, depending on whether the processor reads parameter and
								external entities. For example, a non-validating processor may
								fail to
								<a href="#AVNormalize"><cite>normalize</cite></a> attribute
								values, <a href="#included"><cite>include</cite></a> the
								replacement text of internal entities, or supply
								<a href="#sec-attr-defaults"
									><cite>default attribute values</cite></a
								>, where doing so depends on having read declarations in
								external or parameter entities<span
									>, or in the internal subset after an unread parameter entity
									reference</span
								>.
							</p>
						</li>
					</ul>
					<p>
						For maximum reliability in interoperating between different XML
						processors, applications which use non-validating processors
						<em class="rfc2119" title="Keyword in RFC 2119 context"
							>SHOULD NOT</em
						>
						rely on any behaviors not required of such processors. Applications
						which require DTD facilities not related to validation (such as the
						declaration of default attributes and internal entities that are or
						may be specified in external entities)
						<em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em>
						use validating XML processors.
					</p>
				</div>
			</div>
			<div class="div1">
				<h2><a name="sec-notation" id="sec-notation" />6 Notation</h2>
				<p>
					The formal grammar of XML is given in this specification using a
					simple Extended Backus-Naur Form (EBNF) notation. Each rule in the
					grammar defines one symbol, in the form
				</p>
				<div class="exampleInner"><pre>symbol ::= expression</pre></div>
				<p>
					Symbols are written with an initial capital letter if they are the
					start symbol of a regular language, otherwise with an initial
					lowercase letter. Literal strings are quoted.
				</p>
				<p>
					Within the expression on the right-hand side of a rule, the following
					expressions are used to match strings of one or more characters:
				</p>
				<dl>
					<dt class="label">
						<code>#xN</code>
					</dt>
					<dd>
						<p>
							where <code>N</code> is a hexadecimal integer, the expression
							matches the character whose number (code point) in ISO/IEC 10646
							is <code>N</code>. The number of leading zeros in the
							<code>#xN</code> form is insignificant.
						</p>
					</dd>
					<dt class="label"><code>[a-zA-Z]</code>, <code>[#xN-#xN]</code></dt>
					<dd>
						<p>
							matches any <a href="#NT-Char">Char</a> with a value in the
							range(s) indicated (inclusive).
						</p>
					</dd>
					<dt class="label"><code>[abc]</code>, <code>[#xN#xN#xN]</code></dt>
					<dd>
						<p>
							matches any <a href="#NT-Char">Char</a> with a value among the
							characters enumerated. Enumerations and ranges can be mixed in one
							set of brackets.
						</p>
					</dd>
					<dt class="label"><code>[^a-z]</code>, <code>[^#xN-#xN]</code></dt>
					<dd>
						<p>
							matches any <a href="#NT-Char">Char</a> with a value
							<em>outside</em> the range indicated.
						</p>
					</dd>
					<dt class="label"><code>[^abc]</code>, <code>[^#xN#xN#xN]</code></dt>
					<dd>
						<p>
							matches any <a href="#NT-Char">Char</a> with a value not among the
							characters given. Enumerations and ranges of forbidden values can
							be mixed in one set of brackets.
						</p>
					</dd>
					<dt class="label">
						<code>"string"</code>
					</dt>
					<dd>
						<p>
							matches a literal string
							<a title="match" href="#dt-match">matching</a> that given inside
							the double quotes.
						</p>
					</dd>
					<dt class="label">
						<code>'string'</code>
					</dt>
					<dd>
						<p>
							matches a literal string
							<a title="match" href="#dt-match">matching</a> that given inside
							the single quotes.
						</p>
					</dd>
				</dl>
				<p>
					These symbols may be combined to match more complex patterns as
					follows, where <code>A</code> and <code>B</code> represent simple
					expressions:
				</p>
				<dl>
					<dt class="label">(<code>expression</code>)</dt>
					<dd>
						<p>
							<code>expression</code> is treated as a unit and may be combined
							as described in this list.
						</p>
					</dd>
					<dt class="label">
						<code>A?</code>
					</dt>
					<dd>
						<p>matches <code>A</code> or nothing; optional <code>A</code>.</p>
					</dd>
					<dt class="label">
						<code>A B</code>
					</dt>
					<dd>
						<p>
							matches <code>A</code> followed by <code>B</code>. This operator
							has higher precedence than alternation; thus
							<code>A B | C D</code> is identical to <code>(A B) | (C D)</code>.
						</p>
					</dd>
					<dt class="label">
						<code>A | B</code>
					</dt>
					<dd>
						<p>matches <code>A</code> or <code>B</code>.</p>
					</dd>
					<dt class="label">
						<code>A - B</code>
					</dt>
					<dd>
						<p>
							matches any string that matches <code>A</code> but does not match
							<code>B</code>.
						</p>
					</dd>
					<dt class="label">
						<code>A+</code>
					</dt>
					<dd>
						<p>
							matches one or more occurrences of <code>A</code>. Concatenation
							has higher precedence than alternation; thus
							<code>A+ | B+</code> is identical to <code>(A+) | (B+)</code>.
						</p>
					</dd>
					<dt class="label">
						<code>A*</code>
					</dt>
					<dd>
						<p>
							matches zero or more occurrences of <code>A</code>. Concatenation
							has higher precedence than alternation; thus
							<code>A* | B*</code> is identical to <code>(A*) | (B*)</code>.
						</p>
					</dd>
				</dl>
				<p>Other notations used in the productions are:</p>
				<dl>
					<dt class="label">
						<code>/* ... */</code>
					</dt>
					<dd><p>comment.</p></dd>
					<dt class="label">
						<code>[ wfc: ... ]</code>
					</dt>
					<dd>
						<p>
							well-formedness constraint; this identifies by name a constraint
							on
							<a title="Well-Formed" href="#dt-wellformed">well-formed</a>
							documents associated with a production.
						</p>
					</dd>
					<dt class="label">
						<code>[ vc: ... ]</code>
					</dt>
					<dd>
						<p>
							validity constraint; this identifies by name a constraint on
							<a title="Validity" href="#dt-valid">valid</a> documents
							associated with a production.
						</p>
					</dd>
				</dl>
				<p></p>
			</div>
		</div>
		<div class="back">
			<div class="div1">
				<h2><a name="sec-bibliography" id="sec-bibliography" />A References</h2>
				<div class="div2">
					<h3>
						<a name="sec-existing-stds" id="sec-existing-stds" />A.1 Normative
						References
					</h3>
					<dl>
						<dt class="label"><a name="IANA" id="IANA" />IANA-CHARSETS</dt>
						<dd>
							(Internet Assigned Numbers Authority)
							<a href="http://www.iana.org/assignments/character-sets"
								><cite>Official Names for Character Sets</cite></a
							>, ed. Keld Simonsen et al. (See
							http://www.iana.org/assignments/character-sets.)
						</dd>
						<dt class="label">
							<a name="rfc2119" id="rfc2119" />IETF RFC 2119
						</dt>
						<dd>
							IETF (Internet Engineering Task Force).
							<a href="http://www.ietf.org/rfc/rfc2119.txt"
								><cite
									>RFC 2119: Key words for use in RFCs to Indicate Requirement
									Levels</cite
								></a
							>. Scott Bradner, 1997. (See http://www.ietf.org/rfc/rfc2119.txt.)
						</dd>
						<dt class="label"><a name="RFC1766" />IETF BCP 47</dt>
						<dd>
							IETF (Internet Engineering Task Force).
							<cite
								>BCP 47, consisting of
								<a href="http://tools.ietf.org/html/rfc4646"
									>RFC 4646: Tags for Identifying Languages</a
								>, and
								<a href="http://tools.ietf.org/html/rfc4647"
									>RFC 4647: Matching of Language Tags</a
								></cite
							>, A. Phillips, M. Davis. 2006.
						</dd>
						<dt class="label">
							<a name="rfc3986" id="rfc3986" />IETF RFC 3986
						</dt>
						<dd>
							IETF (Internet Engineering Task Force).
							<a href="http://www.ietf.org/rfc/rfc3986.txt"
								><cite
									>RFC 3986: Uniform Resource Identifier (URI): Generic
									Syntax</cite
								></a
							>. T. Berners-Lee, R. Fielding, L. Masinter. 2005. (See
							http://www.ietf.org/rfc/rfc3986.txt.)
						</dd>
						<dt class="label">
							<a name="ISO10646" id="ISO10646" />ISO/IEC 10646
						</dt>
						<dd>
							ISO (International Organization for Standardization).
							<cite
								>ISO/IEC 10646-1:2000. Information technology — Universal
								Multiple-Octet Coded Character Set (UCS) — Part 1: Architecture
								and Basic Multilingual Plane</cite
							>
							and
							<cite
								>ISO/IEC 10646-2:2001. Information technology — Universal
								Multiple-Octet Coded Character Set (UCS) — Part 2: Supplementary
								Planes</cite
							>, as, from time to time, amended, replaced by a new edition or
							expanded by the addition of new parts. [Geneva]: International
							Organization for Standardization. (See
							<a href="http://www.iso.org/iso/home.htm"
								>http://www.iso.org/iso/home.htm</a
							>
							for the latest version.)
						</dd>
						<dt class="label">
							<a name="ISO10646-2000" id="ISO10646-2000" />ISO/IEC 10646:2000
						</dt>
						<dd>
							ISO (International Organization for Standardization).
							<cite
								>ISO/IEC 10646-1:2000. Information technology — Universal
								Multiple-Octet Coded Character Set (UCS) — Part 1: Architecture
								and Basic Multilingual Plane.</cite
							>
							[Geneva]: International Organization for Standardization, 2000.
						</dd>
						<dt class="label"><a name="Unicode" id="Unicode" />Unicode</dt>
						<dd>
							The Unicode Consortium.
							<em>The Unicode Standard, Version <span>5.0.0,</span></em>
							<span
								>defined by: The Unicode Standard, Version 5.0 (Boston, MA,
								Addison-Wesley, 2007. ISBN 0-321-48091-0)</span
							>.
						</dd>
						<dt class="label">
							<a name="unipart15" id="unipart15" />UnicodeNormal
						</dt>
						<dd>
							The Unicode Consortium.
							<a href="http://unicode.org/reports/tr15/"
								><cite>Unicode normalization forms</cite></a
							>. Mark Davis and Martin Durst. 2008. (See
							http://unicode.org/reports/tr15/.)
						</dd>
					</dl>
				</div>
				<div class="div2">
					<h3><a name="null" id="null" />A.2 Other References</h3>
					<dl>
						<dt class="label"><a name="Aho" id="Aho" />Aho/Ullman</dt>
						<dd>
							Aho, Alfred V., Ravi Sethi, and Jeffrey D. Ullman.
							<cite>Compilers: Principles, Techniques, and Tools</cite>.
							Reading: Addison-Wesley, 1986, rpt. corr. 1988.
						</dd>
						<dt class="label"><a name="ABK" id="ABK" />Brüggemann-Klein</dt>
						<dd>
							Brüggemann-Klein, Anne.
							<a
								href="ftp://ftp.informatik.uni-freiburg.de/documents/papers/brueggem/habil.ps"
								><cite>Formal Models in Document Processing</cite></a
							>. Habilitationsschrift. Faculty of Mathematics at the University
							of Freiburg, 1993. (See
							ftp://ftp.informatik.uni-freiburg.de/documents/papers/brueggem/habil.ps.)
						</dd>
						<dt class="label">
							<a name="ABKDW" id="ABKDW" />Brüggemann-Klein and Wood
						</dt>
						<dd>
							Brüggemann-Klein, Anne, and Derick Wood.
							<cite>Deterministic Regular Languages</cite>. Universität
							Freiburg, Institut für Informatik, Bericht 38, Oktober 1991.
							Extended abstract in A. Finkel, M. Jantzen, Hrsg., STACS 1992, S.
							173-184. Springer-Verlag, Berlin 1992. Lecture Notes in Computer
							Science 577. Full version titled
							<cite>One-Unambiguous Regular Languages</cite> in Information and
							Computation 140 (2): 229-253, February 1998.
						</dd>
						<dt class="label"><a name="Clark" id="Clark" />Clark</dt>
						<dd>
							James Clark.
							<a href="http://www.w3.org/TR/NOTE-sgml-xml-971215"
								><cite>Comparison of SGML and XML</cite></a
							>. (See http://www.w3.org/TR/NOTE-sgml-xml-971215.)
						</dd>
						<dt class="label"><a name="IANA-LANGCODES" />IANA-LANGCODES</dt>
						<dd>
							(Internet Assigned Numbers Authority)
							<a href="http://www.iana.org/assignments/language-subtag-registry"
								><cite>Registry of Language Tags</cite></a
							>
							(See http://www.iana.org/assignments/language-subtag-registry.)
						</dd>
						<dt class="label">
							<a name="RFC2141" id="RFC2141" />IETF RFC 2141
						</dt>
						<dd>
							IETF (Internet Engineering Task Force).
							<a href="http://www.ietf.org/rfc/rfc2141.txt"
								><cite>RFC 2141: URN Syntax</cite></a
							>, ed. R. Moats. 1997. (See http://www.ietf.org/rfc/rfc2141.txt.)
						</dd>
						<dt class="label">
							<a name="rfc2376" id="rfc2376" />IETF RFC 3023
						</dt>
						<dd>
							IETF (Internet Engineering Task Force).
							<a href="http://www.ietf.org/rfc/rfc3023.txt"
								><cite>RFC 3023: XML Media Types</cite></a
							>. eds. M. Murata, S. St.Laurent, D. Kohn. 2001. (See
							http://www.ietf.org/rfc/rfc3023.txt.)
						</dd>
						<dt class="label">
							<a name="rfc2781" id="rfc2781" />IETF RFC 2781
						</dt>
						<dd>
							IETF (Internet Engineering Task Force).
							<a href="http://www.ietf.org/rfc/rfc2781.txt"
								><cite>RFC 2781: UTF-16, an encoding of ISO 10646</cite></a
							>, ed. P. Hoffman, F. Yergeau. 2000. (See
							http://www.ietf.org/rfc/rfc2781.txt.)
						</dd>
						<dt class="label"><a name="ISO639" id="ISO639" />ISO 639</dt>
						<dd>
							(International Organization for Standardization).
							<cite
								>ISO 639:1988 (E). Code for the representation of names of
								languages.</cite
							>
							[Geneva]: International Organization for Standardization, 1988.
						</dd>
						<dt class="label"><a name="ISO3166" id="ISO3166" />ISO 3166</dt>
						<dd>
							(International Organization for Standardization).
							<cite
								>ISO 3166-1:1997 (E). Codes for the representation of names of
								countries and their subdivisions — Part 1: Country codes</cite
							>
							[Geneva]: International Organization for Standardization, 1997.
						</dd>
						<dt class="label"><a name="ISO8879" id="ISO8879" />ISO 8879</dt>
						<dd>
							ISO (International Organization for Standardization).
							<cite
								>ISO 8879:1986(E). Information processing — Text and Office
								Systems — Standard Generalized Markup Language (SGML).</cite
							>
							First edition — 1986-10-15. [Geneva]: International Organization
							for Standardization, 1986.
						</dd>
						<dt class="label">
							<a name="ISO10744" id="ISO10744" />ISO/IEC 10744
						</dt>
						<dd>
							ISO (International Organization for Standardization).
							<cite
								>ISO/IEC 10744-1992 (E). Information technology —
								Hypermedia/Time-based Structuring Language (HyTime).
							</cite>
							[Geneva]: International Organization for Standardization, 1992.
							<em>Extended Facilities Annexe.</em> [Geneva]: International
							Organization for Standardization, 1996.
						</dd>
						<dt class="label"><a name="websgml" id="websgml" />WEBSGML</dt>
						<dd>
							ISO (International Organization for Standardization).
							<a href="http://www.sgmlsource.com/8879/n0029.htm"
								><cite
									>ISO 8879:1986 TC2. Information technology — Document
									Description and Processing Languages</cite
								></a
							>. [Geneva]: International Organization for Standardization, 1998.
							(See http://www.sgmlsource.com/8879/n0029.htm.)
						</dd>
						<dt class="label">
							<a name="xml-names" id="xml-names" />XML Names
						</dt>
						<dd>
							Tim Bray, Dave Hollander, and Andrew Layman, editors.
							<a href="http://www.w3.org/TR/xml-names/"
								><cite>Namespaces in XML</cite></a
							>. Textuality, Hewlett-Packard, and Microsoft. World Wide Web
							Consortium, 1999. (See http://www.w3.org/TR/xml-names/.)
						</dd>
					</dl>
				</div>
			</div>
			<div class="div1">
				<h2><a name="CharClasses" id="CharClasses" />B Character Classes</h2>
				<p>
					Because of changes to productions
					<a href="#NT-NameStartChar">[4]</a> and <a href="#NT-Name">[5]</a>,
					the productions in this Appendix are now orphaned and not used anymore
					in determining name characters. This Appendix may be removed in a
					future edition of this specification; other specifications that wish
					to refer to the productions herein should do so by means of a
					reference to the relevant production(s) in the
					<a href="http://www.w3.org/TR/2006/REC-xml-20060816/"
						>Fourth Edition</a
					>
					of this specification.
				</p>
				<p>
					Following the characteristics defined in the Unicode standard,
					characters are classed as base characters (among others, these contain
					the alphabetic characters of the Latin alphabet), ideographic
					characters, and combining characters (among others, this class
					contains most diacritics). Digits and extenders are also
					distinguished.
				</p>
				<h5><a name="CHARACTERS" id="CHARACTERS" />Characters</h5>
				<table class="scrap" summary="Scrap">
					<tbody>
						<tr valign="baseline">
							<td>
								<a name="NT-Letter" id="NT-Letter" />[84]&nbsp;&nbsp;&nbsp;
							</td>
							<td><code>Letter</code></td>
							<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
							<td>
								<code>
									<a href="#NT-BaseChar">BaseChar</a> |
									<a href="#NT-Ideographic">Ideographic</a>
								</code>
							</td>
						</tr>
						<tr valign="baseline">
							<td>
								<a name="NT-BaseChar" id="NT-BaseChar" />[85]&nbsp;&nbsp;&nbsp;
							</td>
							<td><code>BaseChar</code></td>
							<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
							<td>
								<code
									>[#x0041-#x005A] |&nbsp;[#x0061-#x007A] |&nbsp;[#x00C0-#x00D6]
									|&nbsp;[#x00D8-#x00F6] |&nbsp;[#x00F8-#x00FF]
									|&nbsp;[#x0100-#x0131] |&nbsp;[#x0134-#x013E]
									|&nbsp;[#x0141-#x0148] |&nbsp;[#x014A-#x017E]
									|&nbsp;[#x0180-#x01C3] |&nbsp;[#x01CD-#x01F0]
									|&nbsp;[#x01F4-#x01F5] |&nbsp;[#x01FA-#x0217]
									|&nbsp;[#x0250-#x02A8] |&nbsp;[#x02BB-#x02C1] |&nbsp;#x0386
									|&nbsp;[#x0388-#x038A] |&nbsp;#x038C |&nbsp;[#x038E-#x03A1]
									|&nbsp;[#x03A3-#x03CE] |&nbsp;[#x03D0-#x03D6] |&nbsp;#x03DA
									|&nbsp;#x03DC |&nbsp;#x03DE |&nbsp;#x03E0
									|&nbsp;[#x03E2-#x03F3] |&nbsp;[#x0401-#x040C]
									|&nbsp;[#x040E-#x044F] |&nbsp;[#x0451-#x045C]
									|&nbsp;[#x045E-#x0481] |&nbsp;[#x0490-#x04C4]
									|&nbsp;[#x04C7-#x04C8] |&nbsp;[#x04CB-#x04CC]
									|&nbsp;[#x04D0-#x04EB] |&nbsp;[#x04EE-#x04F5]
									|&nbsp;[#x04F8-#x04F9] |&nbsp;[#x0531-#x0556] |&nbsp;#x0559
									|&nbsp;[#x0561-#x0586] |&nbsp;[#x05D0-#x05EA]
									|&nbsp;[#x05F0-#x05F2] |&nbsp;[#x0621-#x063A]
									|&nbsp;[#x0641-#x064A] |&nbsp;[#x0671-#x06B7]
									|&nbsp;[#x06BA-#x06BE] |&nbsp;[#x06C0-#x06CE]
									|&nbsp;[#x06D0-#x06D3] |&nbsp;#x06D5 |&nbsp;[#x06E5-#x06E6]
									|&nbsp;[#x0905-#x0939] |&nbsp;#x093D |&nbsp;[#x0958-#x0961]
									|&nbsp;[#x0985-#x098C] |&nbsp;[#x098F-#x0990]
									|&nbsp;[#x0993-#x09A8] |&nbsp;[#x09AA-#x09B0] |&nbsp;#x09B2
									|&nbsp;[#x09B6-#x09B9] |&nbsp;[#x09DC-#x09DD]
									|&nbsp;[#x09DF-#x09E1] |&nbsp;[#x09F0-#x09F1]
									|&nbsp;[#x0A05-#x0A0A] |&nbsp;[#x0A0F-#x0A10]
									|&nbsp;[#x0A13-#x0A28] |&nbsp;[#x0A2A-#x0A30]
									|&nbsp;[#x0A32-#x0A33] |&nbsp;[#x0A35-#x0A36]
									|&nbsp;[#x0A38-#x0A39] |&nbsp;[#x0A59-#x0A5C] |&nbsp;#x0A5E
									|&nbsp;[#x0A72-#x0A74] |&nbsp;[#x0A85-#x0A8B] |&nbsp;#x0A8D
									|&nbsp;[#x0A8F-#x0A91] |&nbsp;[#x0A93-#x0AA8]
									|&nbsp;[#x0AAA-#x0AB0] |&nbsp;[#x0AB2-#x0AB3]
									|&nbsp;[#x0AB5-#x0AB9] |&nbsp;#x0ABD |&nbsp;#x0AE0
									|&nbsp;[#x0B05-#x0B0C] |&nbsp;[#x0B0F-#x0B10]
									|&nbsp;[#x0B13-#x0B28] |&nbsp;[#x0B2A-#x0B30]
									|&nbsp;[#x0B32-#x0B33] |&nbsp;[#x0B36-#x0B39] |&nbsp;#x0B3D
									|&nbsp;[#x0B5C-#x0B5D] |&nbsp;[#x0B5F-#x0B61]
									|&nbsp;[#x0B85-#x0B8A] |&nbsp;[#x0B8E-#x0B90]
									|&nbsp;[#x0B92-#x0B95] |&nbsp;[#x0B99-#x0B9A] |&nbsp;#x0B9C
									|&nbsp;[#x0B9E-#x0B9F] |&nbsp;[#x0BA3-#x0BA4]
									|&nbsp;[#x0BA8-#x0BAA] |&nbsp;[#x0BAE-#x0BB5]
									|&nbsp;[#x0BB7-#x0BB9] |&nbsp;[#x0C05-#x0C0C]
									|&nbsp;[#x0C0E-#x0C10] |&nbsp;[#x0C12-#x0C28]
									|&nbsp;[#x0C2A-#x0C33] |&nbsp;[#x0C35-#x0C39]
									|&nbsp;[#x0C60-#x0C61] |&nbsp;[#x0C85-#x0C8C]
									|&nbsp;[#x0C8E-#x0C90] |&nbsp;[#x0C92-#x0CA8]
									|&nbsp;[#x0CAA-#x0CB3] |&nbsp;[#x0CB5-#x0CB9] |&nbsp;#x0CDE
									|&nbsp;[#x0CE0-#x0CE1] |&nbsp;[#x0D05-#x0D0C]
									|&nbsp;[#x0D0E-#x0D10] |&nbsp;[#x0D12-#x0D28]
									|&nbsp;[#x0D2A-#x0D39] |&nbsp;[#x0D60-#x0D61]
									|&nbsp;[#x0E01-#x0E2E] |&nbsp;#x0E30 |&nbsp;[#x0E32-#x0E33]
									|&nbsp;[#x0E40-#x0E45] |&nbsp;[#x0E81-#x0E82] |&nbsp;#x0E84
									|&nbsp;[#x0E87-#x0E88] |&nbsp;#x0E8A |&nbsp;#x0E8D
									|&nbsp;[#x0E94-#x0E97] |&nbsp;[#x0E99-#x0E9F]
									|&nbsp;[#x0EA1-#x0EA3] |&nbsp;#x0EA5 |&nbsp;#x0EA7
									|&nbsp;[#x0EAA-#x0EAB] |&nbsp;[#x0EAD-#x0EAE] |&nbsp;#x0EB0
									|&nbsp;[#x0EB2-#x0EB3] |&nbsp;#x0EBD |&nbsp;[#x0EC0-#x0EC4]
									|&nbsp;[#x0F40-#x0F47] |&nbsp;[#x0F49-#x0F69]
									|&nbsp;[#x10A0-#x10C5] |&nbsp;[#x10D0-#x10F6] |&nbsp;#x1100
									|&nbsp;[#x1102-#x1103] |&nbsp;[#x1105-#x1107] |&nbsp;#x1109
									|&nbsp;[#x110B-#x110C] |&nbsp;[#x110E-#x1112] |&nbsp;#x113C
									|&nbsp;#x113E |&nbsp;#x1140 |&nbsp;#x114C |&nbsp;#x114E
									|&nbsp;#x1150 |&nbsp;[#x1154-#x1155] |&nbsp;#x1159
									|&nbsp;[#x115F-#x1161] |&nbsp;#x1163 |&nbsp;#x1165
									|&nbsp;#x1167 |&nbsp;#x1169 |&nbsp;[#x116D-#x116E]
									|&nbsp;[#x1172-#x1173] |&nbsp;#x1175 |&nbsp;#x119E
									|&nbsp;#x11A8 |&nbsp;#x11AB |&nbsp;[#x11AE-#x11AF]
									|&nbsp;[#x11B7-#x11B8] |&nbsp;#x11BA |&nbsp;[#x11BC-#x11C2]
									|&nbsp;#x11EB |&nbsp;#x11F0 |&nbsp;#x11F9
									|&nbsp;[#x1E00-#x1E9B] |&nbsp;[#x1EA0-#x1EF9]
									|&nbsp;[#x1F00-#x1F15] |&nbsp;[#x1F18-#x1F1D]
									|&nbsp;[#x1F20-#x1F45] |&nbsp;[#x1F48-#x1F4D]
									|&nbsp;[#x1F50-#x1F57] |&nbsp;#x1F59 |&nbsp;#x1F5B
									|&nbsp;#x1F5D |&nbsp;[#x1F5F-#x1F7D] |&nbsp;[#x1F80-#x1FB4]
									|&nbsp;[#x1FB6-#x1FBC] |&nbsp;#x1FBE |&nbsp;[#x1FC2-#x1FC4]
									|&nbsp;[#x1FC6-#x1FCC] |&nbsp;[#x1FD0-#x1FD3]
									|&nbsp;[#x1FD6-#x1FDB] |&nbsp;[#x1FE0-#x1FEC]
									|&nbsp;[#x1FF2-#x1FF4] |&nbsp;[#x1FF6-#x1FFC] |&nbsp;#x2126
									|&nbsp;[#x212A-#x212B] |&nbsp;#x212E |&nbsp;[#x2180-#x2182]
									|&nbsp;[#x3041-#x3094] |&nbsp;[#x30A1-#x30FA]
									|&nbsp;[#x3105-#x312C] |&nbsp;[#xAC00-#xD7A3]
								</code>
							</td>
						</tr>
						<tr valign="baseline">
							<td>
								<a
									name="NT-Ideographic"
									id="NT-Ideographic"
								/>[86]&nbsp;&nbsp;&nbsp;
							</td>
							<td><code>Ideographic</code></td>
							<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
							<td>
								<code
									>[#x4E00-#x9FA5] |&nbsp;#x3007 |&nbsp;[#x3021-#x3029]
								</code>
							</td>
						</tr>
						<tr valign="baseline">
							<td>
								<a
									name="NT-CombiningChar"
									id="NT-CombiningChar"
								/>[87]&nbsp;&nbsp;&nbsp;
							</td>
							<td><code>CombiningChar</code></td>
							<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
							<td>
								<code
									>[#x0300-#x0345] |&nbsp;[#x0360-#x0361] |&nbsp;[#x0483-#x0486]
									|&nbsp;[#x0591-#x05A1] |&nbsp;[#x05A3-#x05B9]
									|&nbsp;[#x05BB-#x05BD] |&nbsp;#x05BF |&nbsp;[#x05C1-#x05C2]
									|&nbsp;#x05C4 |&nbsp;[#x064B-#x0652] |&nbsp;#x0670
									|&nbsp;[#x06D6-#x06DC] |&nbsp;[#x06DD-#x06DF]
									|&nbsp;[#x06E0-#x06E4] |&nbsp;[#x06E7-#x06E8]
									|&nbsp;[#x06EA-#x06ED] |&nbsp;[#x0901-#x0903] |&nbsp;#x093C
									|&nbsp;[#x093E-#x094C] |&nbsp;#x094D |&nbsp;[#x0951-#x0954]
									|&nbsp;[#x0962-#x0963] |&nbsp;[#x0981-#x0983] |&nbsp;#x09BC
									|&nbsp;#x09BE |&nbsp;#x09BF |&nbsp;[#x09C0-#x09C4]
									|&nbsp;[#x09C7-#x09C8] |&nbsp;[#x09CB-#x09CD] |&nbsp;#x09D7
									|&nbsp;[#x09E2-#x09E3] |&nbsp;#x0A02 |&nbsp;#x0A3C
									|&nbsp;#x0A3E |&nbsp;#x0A3F |&nbsp;[#x0A40-#x0A42]
									|&nbsp;[#x0A47-#x0A48] |&nbsp;[#x0A4B-#x0A4D]
									|&nbsp;[#x0A70-#x0A71] |&nbsp;[#x0A81-#x0A83] |&nbsp;#x0ABC
									|&nbsp;[#x0ABE-#x0AC5] |&nbsp;[#x0AC7-#x0AC9]
									|&nbsp;[#x0ACB-#x0ACD] |&nbsp;[#x0B01-#x0B03] |&nbsp;#x0B3C
									|&nbsp;[#x0B3E-#x0B43] |&nbsp;[#x0B47-#x0B48]
									|&nbsp;[#x0B4B-#x0B4D] |&nbsp;[#x0B56-#x0B57]
									|&nbsp;[#x0B82-#x0B83] |&nbsp;[#x0BBE-#x0BC2]
									|&nbsp;[#x0BC6-#x0BC8] |&nbsp;[#x0BCA-#x0BCD] |&nbsp;#x0BD7
									|&nbsp;[#x0C01-#x0C03] |&nbsp;[#x0C3E-#x0C44]
									|&nbsp;[#x0C46-#x0C48] |&nbsp;[#x0C4A-#x0C4D]
									|&nbsp;[#x0C55-#x0C56] |&nbsp;[#x0C82-#x0C83]
									|&nbsp;[#x0CBE-#x0CC4] |&nbsp;[#x0CC6-#x0CC8]
									|&nbsp;[#x0CCA-#x0CCD] |&nbsp;[#x0CD5-#x0CD6]
									|&nbsp;[#x0D02-#x0D03] |&nbsp;[#x0D3E-#x0D43]
									|&nbsp;[#x0D46-#x0D48] |&nbsp;[#x0D4A-#x0D4D] |&nbsp;#x0D57
									|&nbsp;#x0E31 |&nbsp;[#x0E34-#x0E3A] |&nbsp;[#x0E47-#x0E4E]
									|&nbsp;#x0EB1 |&nbsp;[#x0EB4-#x0EB9] |&nbsp;[#x0EBB-#x0EBC]
									|&nbsp;[#x0EC8-#x0ECD] |&nbsp;[#x0F18-#x0F19] |&nbsp;#x0F35
									|&nbsp;#x0F37 |&nbsp;#x0F39 |&nbsp;#x0F3E |&nbsp;#x0F3F
									|&nbsp;[#x0F71-#x0F84] |&nbsp;[#x0F86-#x0F8B]
									|&nbsp;[#x0F90-#x0F95] |&nbsp;#x0F97 |&nbsp;[#x0F99-#x0FAD]
									|&nbsp;[#x0FB1-#x0FB7] |&nbsp;#x0FB9 |&nbsp;[#x20D0-#x20DC]
									|&nbsp;#x20E1 |&nbsp;[#x302A-#x302F] |&nbsp;#x3099
									|&nbsp;#x309A
								</code>
							</td>
						</tr>
						<tr valign="baseline">
							<td><a name="NT-Digit" id="NT-Digit" />[88]&nbsp;&nbsp;&nbsp;</td>
							<td><code>Digit</code></td>
							<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
							<td>
								<code
									>[#x0030-#x0039] |&nbsp;[#x0660-#x0669] |&nbsp;[#x06F0-#x06F9]
									|&nbsp;[#x0966-#x096F] |&nbsp;[#x09E6-#x09EF]
									|&nbsp;[#x0A66-#x0A6F] |&nbsp;[#x0AE6-#x0AEF]
									|&nbsp;[#x0B66-#x0B6F] |&nbsp;[#x0BE7-#x0BEF]
									|&nbsp;[#x0C66-#x0C6F] |&nbsp;[#x0CE6-#x0CEF]
									|&nbsp;[#x0D66-#x0D6F] |&nbsp;[#x0E50-#x0E59]
									|&nbsp;[#x0ED0-#x0ED9] |&nbsp;[#x0F20-#x0F29]
								</code>
							</td>
						</tr>
						<tr valign="baseline">
							<td>
								<a name="NT-Extender" id="NT-Extender" />[89]&nbsp;&nbsp;&nbsp;
							</td>
							<td><code>Extender</code></td>
							<td>&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp;</td>
							<td>
								<code
									>#x00B7 |&nbsp;#x02D0 |&nbsp;#x02D1 |&nbsp;#x0387
									|&nbsp;#x0640 |&nbsp;#x0E46 |&nbsp;#x0EC6 |&nbsp;#x3005
									|&nbsp;[#x3031-#x3035] |&nbsp;[#x309D-#x309E]
									|&nbsp;[#x30FC-#x30FE]
								</code>
							</td>
						</tr>
					</tbody>
				</table>
				<p>
					The character classes defined here can be derived from the Unicode 2.0
					character database as follows:
				</p>
				<ul>
					<li>
						<p>
							Name start characters must have one of the categories Ll, Lu, Lo,
							Lt, Nl.
						</p>
					</li>
					<li>
						<p>
							Name characters other than Name-start characters must have one of
							the categories Mc, Me, Mn, Lm, or Nd.
						</p>
					</li>
					<li>
						<p>
							Characters in the compatibility area (i.e. with character code
							greater than #xF900 and less than #xFFFE) are not allowed in XML
							names.
						</p>
					</li>
					<li>
						<p>
							Characters which have a font or compatibility decomposition (i.e.
							those with a "compatibility formatting tag" in field 5 of the
							database -- marked by field 5 beginning with a "&lt;") are not
							allowed.
						</p>
					</li>
					<li>
						<p>
							The following characters are treated as name-start characters
							rather than name characters, because the property file classifies
							them as Alphabetic: [#x02BB-#x02C1], #x0559, #x06E5, #x06E6.
						</p>
					</li>
					<li>
						<p>
							Characters #x20DD-#x20E0 are excluded (in accordance with Unicode
							2.0, section 5.14).
						</p>
					</li>
					<li>
						<p>
							Character #x00B7 is classified as an extender, because the
							property list so identifies it.
						</p>
					</li>
					<li>
						<p>
							Character #x0387 is added as a name character, because #x00B7 is
							its canonical equivalent.
						</p>
					</li>
					<li>
						<p>Characters ':' and '_' are allowed as name-start characters.</p>
					</li>
					<li><p>Characters '-' and '.' are allowed as name characters.</p></li>
				</ul>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-xml-and-sgml" id="sec-xml-and-sgml" />C XML and SGML
					(Non-Normative)
				</h2>
				<p>
					XML is designed to be a subset of SGML, in that every XML document
					should also be a conforming SGML document. For a detailed comparison
					of the additional restrictions that XML places on documents beyond
					those of SGML, see <a href="#Clark">[Clark]</a>.
				</p>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-entexpand" id="sec-entexpand" />D Expansion of Entity and
					Character References (Non-Normative)
				</h2>
				<p>
					This appendix contains some examples illustrating the sequence of
					entity- and character-reference recognition and expansion, as
					specified in
					<a href="#entproc"
						><b>4.4 XML Processor Treatment of Entities and References</b></a
					>.
				</p>
				<p>If the DTD contains the declaration</p>
				<div class="exampleInner">
					<pre>
&lt;!ENTITY example "&lt;p&gt;An ampersand (&amp;#38;#38;) may be escaped
numerically (&amp;#38;#38;#38;) or with a general entity
(&amp;amp;amp;).&lt;/p&gt;" &gt;</pre
					>
				</div>
				<p>
					then the XML processor will recognize the character references when it
					parses the entity declaration, and resolve them before storing the
					following string as the value of the entity "
					<code>example</code>
					":
				</p>
				<div class="exampleInner">
					<pre>
&lt;p&gt;An ampersand (&amp;#38;) may be escaped
numerically (&amp;#38;#38;) or with a general entity
(&amp;amp;amp;).&lt;/p&gt;</pre
					>
				</div>
				<p>
					A reference in the document to "
					<code>&amp;example;</code>
					" will cause the text to be reparsed, at which time the start- and
					end-tags of the <code>p</code> element will be recognized and the
					three references will be recognized and expanded, resulting in a
					<code>p</code> element with the following content (all data, no
					delimiters or markup):
				</p>
				<div class="exampleInner">
					<pre>
An ampersand (&amp;) may be escaped
numerically (&amp;#38;) or with a general entity
(&amp;amp;).</pre
					>
				</div>
				<p>
					A more complex example will illustrate the rules and their effects
					fully. In the following example, the line numbers are solely for
					reference.
				</p>
				<div class="exampleInner">
					<pre>
1 &lt;?xml version='1.0'?&gt;
2 &lt;!DOCTYPE test [
3 &lt;!ELEMENT test (#PCDATA) &gt;
4 &lt;!ENTITY % xx '&amp;#37;zz;'&gt;
5 &lt;!ENTITY % zz '&amp;#60;!ENTITY tricky "error-prone" &gt;' &gt;
6 %xx;
7 ]&gt;
8 &lt;test&gt;This sample shows a &amp;tricky; method.&lt;/test&gt;</pre
					>
				</div>
				<p>This produces the following:</p>
				<ul>
					<li>
						<p>
							in line 4, the reference to character 37 is expanded immediately,
							and the parameter entity "
							<code>xx</code>
							" is stored in the symbol table with the value "
							<code>%zz;</code>
							". Since the replacement text is not rescanned, the reference to
							parameter entity "
							<code>zz</code>
							" is not recognized. (And it would be an error if it were, since "
							<code>zz</code>
							" is not yet declared.)
						</p>
					</li>
					<li>
						<p>
							in line 5, the character reference "
							<code>&amp;#60;</code>
							" is expanded immediately and the parameter entity "
							<code>zz</code>
							" is stored with the replacement text "
							<code>&lt;!ENTITY tricky "error-prone" &gt;</code>
							", which is a well-formed entity declaration.
						</p>
					</li>
					<li>
						<p>
							in line 6, the reference to "
							<code>xx</code>
							" is recognized, and the replacement text of "
							<code>xx</code>
							" (namely "
							<code>%zz;</code>
							") is parsed. The reference to "
							<code>zz</code>
							" is recognized in its turn, and its replacement text ("
							<code>&lt;!ENTITY tricky "error-prone" &gt;</code>
							") is parsed. The general entity "
							<code>tricky</code>
							" has now been declared, with the replacement text "
							<code>error-prone</code>
							".
						</p>
					</li>
					<li>
						<p>
							in line 8, the reference to the general entity "
							<code>tricky</code>
							" is recognized, and it is expanded, so the full content of the
							<code>test</code> element is the self-describing (and
							ungrammatical) string
							<em>This sample shows a error-prone method.</em>
						</p>
					</li>
				</ul>
				<p>In the following example</p>
				<div class="exampleInner">
					<pre>
&lt;!DOCTYPE foo [
&lt;!ENTITY x "&amp;lt;"&gt;
]&gt;
&lt;foo attr="&amp;x;"/&gt;</pre
					>
				</div>
				<p>
					the replacement text of x is the four characters "&amp;lt;" because
					references to general entities in entity values are
					<a href="#bypass"><cite>bypassed</cite></a
					>. The replacement text of lt is a character reference to the
					less-than character, for example the five characters "&amp;#60;" (see
					<a href="#sec-predefined-ent"><b>4.6 Predefined Entities</b></a
					>). Since neither of these contains a less-than character the result
					is well-formed.
				</p>
				<p>If the definition of x had been</p>
				<div class="exampleInner"><pre>&lt;!ENTITY x "&amp;#60;"&gt;</pre></div>
				<p>
					then the document would not have been well-formed, because the
					replacement text of x would be the single character "&lt;" which is
					not permitted in attribute values (see
					<a href="#CleanAttrVals"
						><cite>WFC: No &lt; in Attribute Values</cite></a
					>).
				</p>
			</div>
			<div class="div1">
				<h2>
					<a name="determinism" id="determinism" />E Deterministic Content
					Models (Non-Normative)
				</h2>
				<p>
					As noted in
					<a href="#sec-element-content"><b>3.2.1 Element Content</b></a
					>, it is required that content models in element type declarations be
					deterministic. This requirement is
					<a title="For Compatibility" href="#dt-compat">for compatibility</a>
					with SGML (which calls deterministic content models "unambiguous");
					XML processors built using SGML systems may flag non-deterministic
					content models as errors.
				</p>
				<p>
					For example, the content model <code>((b, c) | (b, d))</code> is
					non-deterministic, because given an initial <code>b</code> the XML
					processor cannot know which <code>b</code> in the model is being
					matched without looking ahead to see which element follows the
					<code>b</code>. In this case, the two references to <code>b</code> can
					be collapsed into a single reference, making the model read
					<code>(b, (c | d))</code>. An initial <code>b</code> now clearly
					matches only a single name in the content model. The processor doesn't
					need to look ahead to see what follows; either <code>c</code> or
					<code>d</code> would be accepted.
				</p>
				<p>
					More formally: a finite state automaton may be constructed from the
					content model using the standard algorithms, e.g. algorithm 3.5 in
					section 3.9 of Aho, Sethi, and Ullman <a href="#Aho">[Aho/Ullman]</a>.
					In many such algorithms, a follow set is constructed for each position
					in the regular expression (i.e., each leaf node in the syntax tree for
					the regular expression); if any position has a follow set in which
					more than one following position is labeled with the same element type
					name, then the content model is in error and may be reported as an
					error.
				</p>
				<p>
					Algorithms exist which allow many but not all non-deterministic
					content models to be reduced automatically to equivalent deterministic
					models; see Brüggemann-Klein 1991
					<a href="#ABK">[Brüggemann-Klein]</a>.
				</p>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-guessing" id="sec-guessing" />F Autodetection of
					Character Encodings (Non-Normative)
				</h2>
				<p>
					The XML encoding declaration functions as an internal label on each
					entity, indicating which character encoding is in use. Before an XML
					processor can read the internal label, however, it apparently has to
					know what character encoding is in use—which is what the internal
					label is trying to indicate. In the general case, this is a hopeless
					situation. It is not entirely hopeless in XML, however, because XML
					limits the general case in two ways: each implementation is assumed to
					support only a finite set of character encodings, and the XML encoding
					declaration is restricted in position and content in order to make it
					feasible to autodetect the character encoding in use in each entity in
					normal cases. Also, in many cases other sources of information are
					available in addition to the XML data stream itself. Two cases may be
					distinguished, depending on whether the XML entity is presented to the
					processor without, or with, any accompanying (external) information.
					We <span>will</span> consider

					<span>these cases in turn.</span>
				</p>
				<div class="div2">
					<h3>
						<a
							name="sec-guessing-no-ext-info"
							id="sec-guessing-no-ext-info"
						/>F.1 Detection Without External Encoding Information
					</h3>
					<p>
						Because each XML entity not accompanied by external encoding
						information and not in UTF-8 or UTF-16 encoding must begin with an
						XML encoding declaration, in which the first characters must be
						'<code>&lt;?xml</code>', any conforming processor can detect, after
						two to four octets of input, which of the following cases apply. In
						reading this list, it may help to know that in UCS-4, '&lt;' is "
						<code>#x0000003C</code>
						" and '?' is "
						<code>#x0000003F</code>
						", and the Byte Order Mark required of UTF-16 data streams is "
						<code>#xFEFF</code>
						". The notation
						<var>##</var> is used to denote any byte value except that two
						consecutive <var>##</var>s cannot be both 00.
					</p>
					<p>With a Byte Order Mark:</p>
					<table border="1" frame="border">
						<tbody>
							<tr>
								<td>
									<code>00 00 FE FF</code>
								</td>
								<td>UCS-4, big-endian machine (1234 order)</td>
							</tr>
							<tr>
								<td>
									<code>FF FE 00 00</code>
								</td>
								<td>UCS-4, little-endian machine (4321 order)</td>
							</tr>
							<tr>
								<td>
									<code>00 00 FF FE</code>
								</td>
								<td>UCS-4, unusual octet order (2143)</td>
							</tr>
							<tr>
								<td>
									<code>FE FF 00 00</code>
								</td>
								<td>UCS-4, unusual octet order (3412)</td>
							</tr>
							<tr>
								<td>
									<code>FE FF ## ##</code>
								</td>
								<td>UTF-16, big-endian</td>
							</tr>
							<tr>
								<td>
									<code>FF FE ## ##</code>
								</td>
								<td>UTF-16, little-endian</td>
							</tr>
							<tr>
								<td>
									<code>EF BB BF</code>
								</td>
								<td>UTF-8</td>
							</tr>
						</tbody>
					</table>
					<p>Without a Byte Order Mark:</p>
					<table border="1" frame="border">
						<tbody>
							<tr>
								<td>
									<code>00&nbsp;00&nbsp;00&nbsp;3C</code>
								</td>
								<td rowspan="4">
									UCS-4 or other encoding with a 32-bit code unit and ASCII
									characters encoded as ASCII values, in respectively big-endian
									(1234), little-endian (4321) and two unusual byte orders (2143
									and 3412). The encoding declaration must be read to determine
									which of UCS-4 or other supported 32-bit encodings applies.
								</td>
							</tr>
							<tr>
								<td>
									<code>3C 00 00 00</code>
								</td>
							</tr>
							<tr>
								<td>
									<code>00 00 3C 00</code>
								</td>
							</tr>
							<tr>
								<td>
									<code>00 3C 00 00</code>
								</td>
							</tr>
							<tr>
								<td>
									<code>00 3C 00 3F</code>
								</td>
								<td>
									UTF-16BE or big-endian ISO-10646-UCS-2 or other encoding with
									a 16-bit code unit in big-endian order and ASCII characters
									encoded as ASCII values (the encoding declaration must be read
									to determine which)
								</td>
							</tr>
							<tr>
								<td>
									<code>3C 00 3F 00</code>
								</td>
								<td>
									UTF-16LE or little-endian ISO-10646-UCS-2 or other encoding
									with a 16-bit code unit in little-endian order and ASCII
									characters encoded as ASCII values (the encoding declaration
									must be read to determine which)
								</td>
							</tr>
							<tr>
								<td>
									<code>3C 3F 78 6D</code>
								</td>
								<td>
									UTF-8, ISO 646, ASCII, some part of ISO 8859, Shift-JIS, EUC,
									or any other 7-bit, 8-bit, or mixed-width encoding which
									ensures that the characters of ASCII have their normal
									positions, width, and values; the actual encoding declaration
									must be read to detect which of these applies, but since all
									of these encodings use the same bit patterns for the relevant
									ASCII characters, the encoding declaration itself may be read
									reliably
								</td>
							</tr>
							<tr>
								<td>
									<code>4C 6F A7 94</code>
								</td>
								<td>
									EBCDIC (in some flavor; the full encoding declaration must be
									read to tell which code page is in use)
								</td>
							</tr>
							<tr>
								<td>Other</td>
								<td>
									UTF-8 without an encoding declaration, or else the data stream
									is mislabeled (lacking a required encoding declaration),
									corrupt, fragmentary, or enclosed in a wrapper of some kind
								</td>
							</tr>
						</tbody>
					</table>
					<div class="note">
						<p class="prefix"><b>Note:</b></p>
						<p>
							In cases above which do not require reading the encoding
							declaration to determine the encoding, section 4.3.3 still
							requires that the encoding declaration, if present, be read and
							that the encoding name be checked to match the actual encoding of
							the entity. Also, it is possible that new character encodings will
							be invented that will make it necessary to use the encoding
							declaration to determine the encoding, in cases where this is not
							required at present.
						</p>
					</div>
					<p>
						This level of autodetection is enough to read the XML encoding
						declaration and parse the character-encoding identifier, which is
						still necessary to distinguish the individual members of each family
						of encodings (e.g. to tell UTF-8 from 8859, and the parts of 8859
						from each other, or to distinguish the specific EBCDIC code page in
						use, and so on).
					</p>
					<p>
						Because the contents of the encoding declaration are restricted to
						characters from the ASCII repertoire (however encoded), a processor
						can reliably read the entire encoding declaration as soon as it has
						detected which family of encodings is in use. Since in practice, all
						widely used character encodings fall into one of the categories
						above, the XML encoding declaration allows reasonably reliable
						in-band labeling of character encodings, even when external sources
						of information at the operating-system or transport-protocol level
						are unreliable. Character encodings such as UTF-7 that make
						overloaded usage of ASCII-valued bytes may fail to be reliably
						detected.
					</p>
					<p>
						Once the processor has detected the character encoding in use, it
						can act appropriately, whether by invoking a separate input routine
						for each case, or by calling the proper conversion function on each
						character of input.
					</p>
					<p>
						Like any self-labeling system, the XML encoding declaration will not
						work if any software changes the entity's character set or encoding
						without updating the encoding declaration. Implementors of
						character-encoding routines should be careful to ensure the accuracy
						of the internal and external information used to label the entity.
					</p>
				</div>
				<div class="div2">
					<h3>
						<a
							name="sec-guessing-with-ext-info"
							id="sec-guessing-with-ext-info"
						/>F.2 Priorities in the Presence of External Encoding Information
					</h3>
					<p>
						The second possible case occurs when the XML entity is accompanied
						by encoding information, as in some file systems and some network
						protocols. When multiple sources of information are available, their
						relative priority and the preferred method of handling conflict
						should be specified as part of the higher-level protocol used to
						deliver XML. In particular, please refer to
						<a href="#rfc2376">[IETF RFC 3023]</a> or its successor, which
						defines the <code>text/xml</code> and
						<code>application/xml</code> MIME types and provides some useful
						guidance. In the interests of interoperability, however, the
						following rule is recommended.
					</p>
					<ul>
						<li>
							<p>
								If an XML entity is in a file, the Byte-Order Mark and encoding
								declaration are used (if present) to determine the character
								encoding.
							</p>
						</li>
					</ul>
				</div>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-xml-wg" id="sec-xml-wg" />G W3C XML Working Group
					(Non-Normative)
				</h2>
				<p>
					This specification was prepared and approved for publication by the
					W3C XML Working Group (WG). WG approval of this specification does not
					necessarily imply that all WG members voted for its approval. The
					current and former participants of the XML WG are:
				</p>
				<ul>
					<li>Jon Bosak, Sun (<i>Chair</i>)</li>
					<li>James Clark (<i>Technical Lead</i>)</li>
					<li>Tim Bray, Textuality and Netscape (<i>XML Co-editor</i>)</li>
					<li>Jean Paoli, Microsoft (<i>XML Co-editor</i>)</li>
					<li>C. M. Sperberg-McQueen, U. of Ill. (<i>XML Co-editor</i>)</li>
					<li>Dan Connolly, W3C (<i>W3C Liaison</i>)</li>
					<li>Paula Angerstein, Texcel</li>
					<li>Steve DeRose, INSO</li>
					<li>Dave Hollander, HP</li>
					<li>Eliot Kimber, ISOGEN</li>
					<li>Eve Maler, ArborText</li>
					<li>Tom Magliery, NCSA</li>
					<li>Murray Maloney, SoftQuad, Grif SA, Muzmo and Veo Systems</li>
					<li>MURATA Makoto (FAMILY Given), Fuji Xerox Information Systems</li>
					<li>Joel Nava, Adobe</li>
					<li>Conleth O'Connell, Vignette</li>
					<li>Peter Sharpe, SoftQuad</li>
					<li>John Tigue, DataChannel</li>
				</ul>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-core-wg" id="sec-core-wg" />H W3C XML Core Working Group
					(Non-Normative)
				</h2>
				<p>
					The <span>fifth</span> edition of this specification was prepared by
					the W3C XML Core Working Group (WG). The participants in the WG at the
					time of publication of this edition were:
				</p>
				<ul>
					<li>John Cowan, Google</li>
					<li>Andrew Fang, PTC-Arbortext</li>
					<li>Paul Grosso, PTC-Arbortext (<i>Co-Chair</i>)</li>
					<li>Konrad Lanz, A-SIT</li>
					<li>Glenn Marcy, IBM</li>
					<li>Henry Thompson, W3C (<i>Staff Contact</i>)</li>
					<li>Richard Tobin, University of Edinburgh</li>
					<li>Daniel Veillard</li>
					<li>Norman Walsh, Mark Logic (<i>Co-Chair</i>)</li>
					<li>François Yergeau</li>
				</ul>
			</div>
			<div class="div1">
				<h2>
					<a name="prod-notes" id="prod-notes" />I Production Notes
					(Non-Normative)
				</h2>
				<p>
					This edition was encoded in a slightly modified version of the
					<a href="http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd"
						>XMLspec DTD, v2.10</a
					>. The XHTML versions were produced with a combination of the
					<a href="http://www.w3.org/2002/xmlspec/xhtml/1.13/xmlspec.xsl"
						>xmlspec.xsl</a
					>,
					<a href="http://www.w3.org/2002/xmlspec/xhtml/1.13/diffspec.xsl"
						>diffspec.xsl</a
					>, and <a href="REC-xml.xsl">REC-xml.xsl</a> XSLT stylesheets.
				</p>
			</div>
			<div class="div1">
				<h2>
					<a name="sec-suggested-names" id="sec-suggested-names" />J Suggestions
					for XML Names (Non-Normative)
				</h2>
				<p>
					The following suggestions define what is believed to be best practice
					in the construction of XML names used as element names, attribute
					names, processing instruction targets, entity names, notation names,
					and the values of attributes of type ID, and are intended as guidance
					for document authors and schema designers. All references to Unicode
					are understood with respect to a particular version of the Unicode
					Standard greater than or equal to 5.0; which version should be used is
					left to the discretion of the document author or schema designer.
				</p>
				<p>
					The first two suggestions are directly derived from the rules given
					for identifiers in Standard Annex #31 (UAX #31) of the Unicode
					Standard, version 5.0 <a href="#Unicode">[Unicode]</a>, and exclude
					all control characters, enclosing nonspacing marks, non-decimal
					numbers, private-use characters, punctuation characters (with the
					noted exceptions), symbol characters, unassigned codepoints, and white
					space characters. The other suggestions are mostly derived from
					Appendix B in previous editions of this specification.
				</p>
				<ol class="enumar">
					<li>
						<p>
							The first character of any name should have a Unicode property of
							ID_Start, or else be '_' #x5F.
						</p>
					</li>
					<li>
						<p>
							Characters other than the first should have a Unicode property of
							ID_Continue, or be one of the characters listed in the table
							entitled "Characters for Natural Language Identifiers" in UAX #31,
							with the exception of "'" #x27 and "’" #x2019.
						</p>
					</li>
					<li>
						<p>
							Characters in names should be expressed using Normalization Form C
							as defined in <a href="#unipart15">[UnicodeNormal]</a>.
						</p>
					</li>
					<li>
						<p>
							Ideographic characters which have a canonical decomposition
							(including those in the ranges [#xF900-#xFAFF] and
							[#x2F800-#x2FFFD], with 12 exceptions) should not be used in
							names.
						</p>
					</li>
					<li>
						<p>
							Characters which have a compatibility decomposition (those with a
							"compatibility formatting tag" in field 5 of the Unicode Character
							Database -- marked by field 5 beginning with a "&lt;") should not
							be used in names. This suggestion does not apply to characters
							which despite their compatibility decompositions are in regular
							use in their scripts, for example #x0E33 THAI CHARACTER SARA AM or
							#x0EB3 LAO CHARACTER AM.
						</p>
					</li>
					<li>
						<p>
							Combining characters meant for use with symbols only (including
							those in the ranges [#x20D0-#x20EF] and [#x1D165-#x1D1AD]) should
							not be used in names.
						</p>
					</li>
					<li>
						<p>
							The interlinear annotation characters ([#xFFF9-#xFFFB]) should not
							be used in names.
						</p>
					</li>
					<li>
						<p>Variation selector characters should not be used in names.</p>
					</li>
					<li>
						<p>
							Names which are nonsensical, unpronounceable, hard to read, or
							easily confusable with other names should not be employed.
						</p>
					</li>
				</ol>
			</div>
		</div>
		<script
			type="application/javascript"
			src="https://www.w3.org/scripts/TR/fixup.js"
		></script>
	</body>
</html>