summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/japanese/pr-xml-shift_jis.xml
blob: 2d167b6475ba251bdc5d24b83d73b3e12a958a9f (plain)
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
<?xml version="1.0" encoding="shift_jis"?>
<!DOCTYPE spec SYSTEM "spec.dtd" [

<!-- {̂߂̉͑Ώێ́ij -->

<!ENTITY TR-or-Rec             "dl">
<!-- <!ENTITY TR-or-Rec             "W(TR)"> -->
<!ENTITY eTR-or-Rec            "specification">
<!-- <!ENTITY eTR-or-Rec             "technical report(TR)"> -->
<!ENTITY application           "AvP[V">
<!ENTITY error                 "G[">
<!ENTITY fatal-error           "vIG[">
<!ENTITY parsed-data           "͂f[^">
<!ENTITY unparsed-data         "͂Ȃf[^">
<!ENTITY parsed-entity         "͑Ώێ">
<!ENTITY parser                "p[T">
<!ENTITY unparsed-entity       "͑ΏۊO">
<!ENTITY well-formed           "`">
<!ENTITY valid                 "Ó">
<!ENTITY validity              "Ó">
<!ENTITY escape                "ʈ">
<!ENTITY prolog                "">
<!ENTITY surrogate-blocks      "TQ[gubN">
<!ENTITY letter                "">
<!ENTITY ideographic           "">
<!ENTITY markup                "}[Nt">
<!ENTITY left-angle-bracket    "s(Ȃ)">
<!ENTITY right-angle-bracket   "s(Ȃ)">
<!ENTITY string                "">
<!ENTITY char-string           ""><!-- string of chararacters, 
                                          character strings, strings, 
                                          characters ׂ͂ĕƂ -->
<!ENTITY replacement-text      "ueLXg">
<!ENTITY single-quote          "dp">
<!ENTITY double-quote          "dp">
<!ENTITY adaptations-annex     "Kp">
<!ENTITY root                  "[g">
<!ENTITY base-character        "ꕶ">
<!ENTITY diacritical-mark      ""><!--(_CANeBJ}[N)ôƂ₤-->
<!ENTITY composed-form         "`">
<!ENTITY standalone            "X^hA">
<!ENTITY double-hyphen         "AnCt">
<!--<!ENTITY case-fold             "啶ւ̓">-->
<!-- <!ENTITY case-fold             "r̂ƂC啶Ə̓ꎋ">-->
<!ENTITY parameter             "p^">
<!ENTITY stream                "Xg[">
<!ENTITY validating            "Ó؂">
<!ENTITY non-validating        "Ó؂Ȃ">
<!ENTITY user                  "[U">
<!--<!ENTITY at-user-option        "[UIvVw肵Ƃ">-->
<!ENTITY at-user-option    "[ŨIvVwɂĂ">
<!ENTITY content-particle     "efq">
<!ENTITY processor            "vZT">
<!ENTITY default              "ftHg">
<!ENTITY default-value        "ftHgl">
<!ENTITY header               "wb_">
<!ENTITY target               "^[Qbg">
<!ENTITY mixed-content        "e">
<!ENTITY country-code         "R[h">
<!ENTITY language-code        "R[h">
<!ENTITY version              ""> <!-- version 1.0͑1.0 -->
<!ENTITY match                "}b`">
<!ENTITY character-value      "ԍ">
<!ENTITY byte-order-mark      "oCg}[N">
<!ENTITY bypass               "Ȃ">
<!ENTITY identifier           "ʎq">
<!-- <!ENTITY identify             "ʂ"> -->
<!ENTITY identify        "肷">
<!-- <!ENTITY identified           "ʂ"> -->
<!ENTITY identified      "肳">
<!ENTITY combining-character  "">
<!ENTITY subset               "TuZbg">
<!ENTITY token                "g[N">
<!ENTITY literal              "e">

<!ENTITY parenthesis          "">
<!ENTITY left-parenthesis     "J">
<!ENTITY right-parenthesis    "‚">

<!-- ƂŋC‚ JIS X0221Kv -->

<!ENTITY extender             "GNXe_">
<!ENTITY property             "vpeB">
<!ENTITY property-list        "vpeBXg">
<!ENTITY property-file        "vpeBt@C">
<!ENTITY font-decomposition   "tHg">
<!ENTITY compatibility-decomposition  "݊">
<!ENTITY compatibility-area   "݊̈">

<!ENTITY language-identification "ꎯ">

<!ENTITY space-character "Xy[X">
<!ENTITY space           "Xy[X">
<!ENTITY code-value      "R[hl">
<!ENTITY normative       "K">
<!ENTITY hueristics      "q[XeBbN">
<!ENTITY informative     "">

<!ENTITY WebSGML 'ISO 8879ւWebSGML&adaptations-annex;'>
<!ENTITY XML.version "1.0">
<!ENTITY doc.date "1997N128">
<!ENTITY iso6.doc.date "971208">
<!ENTITY w3c.doc.date "97N123">
<!ENTITY draft.day '8'>
<!ENTITY draft.month '12'>
<!ENTITY draft.year '1997N'>

<!-- {̂߂̉͑Ώێ́i܂Łj -->

<!-- LAST TOUCHED BY: Tim Bray, 3 Dec 1997 -->

<!-- The words 'FINAL EDIT' in comments mark places where changes
need to be made after approval of the document by the ERB, before
publication.  -->

<!ENTITY XML.version "1.0">
<!ENTITY doc.date "8 December 1997">
<!ENTITY iso6.doc.date "971208">
<!ENTITY w3c.doc.date "03-Dec-97">
<!ENTITY draft.day '8'>
<!ENTITY draft.month 'December'>
<!ENTITY draft.year '1997'>

<!ENTITY WebSGML 
 'WebSGML Adaptations Annex to ISO 8879'>

<!ENTITY newline " ">
<!-- old: <!ENTITY newline "&#8232;"> -->
<!ENTITY lt     "<"> 
<!ENTITY gt     ">"> 
<!--<!ENTITY amp    "&"> -->
<!ENTITY xmlpio "'&lt;?xml'">
<!ENTITY pic    "'?>'">
<!ENTITY br     "\n">
<!ENTITY cellback '#c0d9c0'>
<!ENTITY mdash  "--"> <!-- was: <!ENTITY mdash  "&#38;#151;"> -->
<!ENTITY com    "--">
<!ENTITY como   "--">
<!ENTITY comc   "--">
<!ENTITY hcro   "&amp;#x">
<!-- <!ENTITY nbsp ""> -->
<!ENTITY nbsp   "&#160;">
<!ENTITY magicents "<code>amp</code>,
<code>lt</code>,
<code>gt</code>,
<code>apos</code>,
<code>quot</code>">

<!--{ɂ‚: Rg͖|ΏۂO܂Bؘav -->
<!-- audience and distribution status:  for use at publication time -->
<!--  -->
<!ENTITY doc.audience "Jr[yыc_">
<!ENTITY doc.distribution "eLXgyі@̒ӂςȂC
RɔzzĂ悢">

]>

<!-- for Panorama *-->
<?VERBATIM "eg" ?>

<spec>
<header>
<title>g”\&markup; (XML)</title>
<version>1.0&version;</version>
<w3c-designation>PR-xml-&iso6.doc.date;</w3c-designation>
<w3c-doctype>World Wide Web Consortium</w3c-doctype>
<pubdate><day>&draft.day;</day><month>&draft.month;</month><year>&draft.year;</year></pubdate>
<notice><p>̑ẮCXML WGyё̊֌W҂ɂ郌r[̂߂̂̂łāCJ̋c_̂߂̂̂ł͂ȂB
<!-- FINAL EDIT:  FIX --></p></notice>
<publoc>
<loc  href="http://www.w3.org/TR/PR-xml-&iso6.doc.date;">
http://www.w3.org/TR/PR-xml-&iso6.doc.date;</loc></publoc>
<prevlocs>
<loc  href='http://www.w3.org/TR/WD-xml-961114'>
http://www.w3.org/TR/WD-xml-961114</loc>
<loc  href='http://www.w3.org/TR/WD-xml-lang-970331'>
http://www.w3.org/TR/WD-xml-lang-970331</loc>
<loc  href='http://www.w3.org/TR/WD-xml-lang-970630'>
http://www.w3.org/TR/WD-xml-lang-970630</loc>
<loc  href='http://www.w3.org/TR/WD-xml-970807'>
http://www.w3.org/TR/WD-xml-970807</loc>
<loc  href='http://www.w3.org/TR/WD-xml-971117'>
http://www.w3.org/TR/WD-xml-971117</loc>
</prevlocs>
<authlist>
<author><name>Tim Bray</name>
<affiliation>Textuality and Netscape</affiliation>
<email 
href="mailto:tbray@textuality.com">tbray@textuality.com</email></author>
<author><name>Jean Paoli</name>
<affiliation>Microsoft</affiliation>
<email href="mailto:jeanpa@microsoft.com">jeanpa@microsoft.com</email></author>
<author><name>C. M. Sperberg-McQueen</name>
<affiliation>University of Illinois at Chicago</affiliation>
<email href="mailto:cmsmcq@uic.edu">cmsmcq@uic.edu</email></author>
</authlist>
<status>
      <p>&TR-or-Rec;, 1997N12World Wide Web Consortium
\ꂽExtensible Markup Language version1.0ł|, Z
pIeύX邱ƂȂ쐬&TR-or-Rec;łBThis &eTR-or-Rec; 
is a translation of the XML proposed recommendation 1.0
published by the World Wide Web Consortium in December 1997.  It is
intended that &eTR-or-Rec; is technically identical to the original.</p>

<p>ɂA쌠ɊւĂ̋LqɎBThe
original copyright notice is shown below:</p>

<p>̔łXML̋ḰCJr[yыc_
ړIƂBeLXgyі@̒ӂςȂCR
zzĂ悢BThis version of the XML specification is for
public review and discussion. It may be distributed freely,
as long as all text and legal notices remain intact.</p>

<p>&TR-or-Rec;̌ƂȂXMLẮC1998N2World
Wide Web Consortium\ꂽXMLɂĂłɒu
ĂB̕ẂCXMLɏ]Ē邱Ƃ
\肵ĂBThe XML Proposed Recommendation is superseded
by the XML Recommendation which was published by the World
Wide Web Consortium in February 1998.  It is intended that 
this &eTR-or-Rec; be revised accordingly in the near future.</p>

<p>&TR-or-Rec;́C肵̂łāCN<loc
href='http://www.w3.org/XML'>XML</loc>ʂč쐬ꂽCA̍
ƑĂƂB݁CL͈͂ɎgpĂ鍑ۓIȃeLXg̕W
(Wʉ&markup;CStandard Generalized Markup Language, ISO
8879:1986ɒljyђ)́CWWWł̎gp̂߂&subset;
C&TR-or-Rec;́CK肷BISO 8879̂ǂ̋@\
&subset;ɎcCƂɂ‚Ă̏ڍׂ́C<loc
href='http://www.w3.org/XML/#WG-decisions'>ʓrpӂ</loc>BXMĹC
ɂ‚̏iŃT|[gCXMLT|[g<loc
href='http://www.w3.org/XML/#software'>t[EFA</loc>̐
BXMLɊւJ̘_cCIC<loc
href='http://www.w3.org/XML/#discussion'>ł</loc>BIt is a
stable document derived from a series of working drafts produced over
the last year as deliverables of the <loc
href='http://www.w3.org/XML'>XML activity</loc>.  It specifies a
language created by subsetting an existing, widely used international
text processing standard (Standard Generalized Markup Language, ISO
8879:1986 as amended and corrected) for use on the World Wide Web.
Details of the decisions regarding which features of ISO 8879 to
retain in the subset <loc
href='http://www.w3.org/XML/#WG-decisions'>are available
separately</loc>.  XML is already supported by some commercial
products, and there are a growing number of <loc
href='http://www.w3.org/XML/#software'>free implementations</loc>.
Public discussions of XML <loc
href='http://www.w3.org/XML/#discussion'>are accessible
online</loc>.</p>

<p>&TR-or-Rec;ł́C<bibref ref="Berners-Lee"/>ɒ`
URI(Uniform Resource Identifier)gpBURI̐Ƃ͐isł
āC<bibref ref="RFC1738"/>y<bibref ref="RFC1808"/>XV\
ȂĂB̍ƂRFCƂĎ󂯓Ȃꍇ́C̋KURI
ւ̎QƂ́CURL(Uniform Resource Locator)ւ̎QƂɑBThis
specification uses the term URI, which is defined by <bibref
ref="Berners-Lee"/>, a work in progress expected to update <bibref
ref="RFC1738"/> and <bibref ref="RFC1808"/>.  Should the work not be
accepted as an RFC, the references to uniform resource identifiers
(URIs) in this specification will become references to uniform
resource locators (URLs).</p>

      <p>XML̎dlɏĂ邩ǂ̊ƂȂW3C̃TCgɂ
錴łBThe normative version of the specification is
the English version found at the W3C site.</p>

      <p>̕W͌dlƋZpIɓł邱ƂӐ}Ă邪A
|̌͂蓾BAlthough this technical report is
intended to be technically identical to the original, it may
contain errors from the translation.</p>

      <p>l: KƂ̋Kӏ̑Ή֌W𖾂炩ɂ邽߁A
&TR-or-Rec;̐ߍ\yѐߔԍ́AK̂ł邾ۑĂ
B&TR-or-Rec;Webł́AKHTML^Ô܂ܕۑĂB
</p>
</status>
<!-- out of date
<statusp>This is a W3C Working Draft for review by W3C members and other
interested parties. It is a draft document and may be updated,
replaced, or obsoleted by other documents at any time. It is
inappropriate to use W3C Working Drafts as reference material or to
cite them as other than "work in progress". A list of current W3C
working drafts can be found at 
<loc  href="http://www.w3.org/TR">http://www.w3.org/TR</loc>.</statusp>
<statusp><emph>Note:</emph> Since working drafts are subject to frequent
change, you are advised to reference the above URL, rather than the
URLs for working drafts themselves.</statusp>
<statusp>This work is part of the W3C SGML Activity (for current
status, see <loc href="http://www.w3.org/MarkUp/SGML/Activity"
>http://www.w3.org/MarkUp/SGML/Activity</loc>).</statusp>
<p>The current
draft of this specification 
presupposes the successful completion of the current
work on the &WebSGML;, being prepared by ISO/IEC JTC1 
at the time this draft specification was drafted.
If it is not
adopted in the expected form, some clauses of this specification 
may change,  and some
recommendations now labeled "<termref def="dt-interop">for
interoperability</termref>" will become requirements labeled
"<termref def="dt-compat">for compatibility</termref>".
</p>
<p>The current draft of this specification uses the term 
URI, which is defined by 
<bibref ref="Berners-Lee"/>,
which is work in progress expected to update 
<bibref ref="RFC1738"/> and <bibref ref="RFC1808"/>.
Should the work in this draft not be accepted as an RFC, the
references to uniform resource identifiers (URIs) in this
specification will become references to uniform resource
locators (URLs).</p>
</status> -->
<abstract>
<p>g”\&markup;(XML)SGML̊ȒPȕłāC&TR-or-Rec;ŁĈׂĂK肷BXML̖ڕẂC݂HTMLƓlɁCʐ̂SGMLEFuŔzzCMyяł邱ƂƂBXML͎eՂłāCSGMLyHTML̂ǂɑ΂Ă݉^pۂ݌vȂĂB</p>
</abstract>
<pubstmt>
<p>Chicago, Vancouver, Mountain View, et al.:
World-Wide Web Consortium, XMLƃO[v, 1996, 1997.</p>
</pubstmt>
<sourcedesc>
<p>Created in electronic form.</p>
</sourcedesc>
<langusage>
<language id='EN'>English</language>
<language id='ebnf'>Extended Backus-Naur Form (formal grammar)</language>
</langusage>
<revisiondesc>
<slist>
<sitem>1997-12-03 : CMSMcQ : yet further changes</sitem>
<sitem>1997-12-02 : TB : further changes (see TB to XML WG,
2 December 1997)</sitem>
<sitem>1997-12-02 : CMSMcQ : deal with as many corrections and
comments from the proofreaders as possible:
entify hard-coded document date in pubdate element,
change expansion of entity WebSGML,
update status description as per Dan Connolly (am not sure
about refernece to Berners-Lee et al.),
add 'The' to abstract as per WG decision,
move Relationship to Existing Standards to back matter and
combine with References,
re-order back matter so normative appendices come first,
re-tag back matter so informative appendices are tagged informdiv1,
remove XXX XXX from list of 'normative' specs in prose,
move some references from Other References to Normative References,
add RFC 1738, 1808, and 2141 to Other References (they are not
normative since we do not require the processor to enforce any 
rules based on them),
add reference to 'Fielding draft' (Berners-Lee et al.),
move notation section to end of body,
drop URIchar non-terminal and use SkipLit instead,
lose stray reference to defunct nonterminal 'markupdecls',
move reference to Aho et al. into appendix (Tim's right),
add prose note saying that hash marks and fragment identifiers are
NOT part of the URI formally speaking, and are NOT legal in 
system identifiers (processor 'may' signal an error).
Work through:
Tim Bray reacting to James Clark,
Tim Bray on his own,
Eve Maler,

NOT DONE YET:
change binary / text to unparsed / parsed.
handle James's suggestion about &lt; in attriubte values
uppercase hex characters,
namechar list,
</sitem>
<sitem>1997-12-01 : JB : add some column-width parameters</sitem>
<sitem>1997-12-01 : CMSMcQ : begin round of changes to incorporate
recent WG decisions and other corrections:
binding sources of character encoding info (27 Aug / 3 Sept),
correct wording of Faust quotation (restore dropped line),
drop SDD from EncodingDecl,
change text at version number 1.0,
drop misleading (wrong!) sentence about ignorables and extenders,
modify definition of PCData to make bar on msc grammatical,
change grammar's handling of internal subset (drop non-terminal markupdecls),
change definition of includeSect to allow conditional sections,
add integral-declaration constraint on internal subset,
drop misleading / dangerous sentence about relationship of
entities with system storage objects,
change table body tag to htbody as per EM change to DTD,
add rule about space normalization in public identifiers,
add description of how to generate our name-space rules from 
Unicode character database (needs further work!).
</sitem>
<sitem>1997-10-08 : TB : Removed %-constructs again, new rules
for PE appearance.</sitem>
<sitem>1997-10-01 : TB : Case-sensitive markup; cleaned up
element-type defs, lotsa little edits for style</sitem>
<sitem>1997-09-25 : TB : Change to elm's new DTD, with
substantial detail cleanup as a side-effect</sitem>
<sitem>1997-07-24 : CMSMcQ : correct error (lost *) in definition 
of ignoreSectContents (thanks to Makoto Murata)</sitem>
<sitem>Allow all empty elements to have end-tags, consistent with
SGML TC (as per JJC).</sitem>
<sitem>1997-07-23 : CMSMcQ : pre-emptive strike on pending corrections:
introduce the term 'empty-element tag', note that all empty elements
may use it, and elements declared EMPTY must use it.
Add WFC requiring encoding decl to come first in an entity.
Redefine notations to point to PIs as well as binary entities.
Change autodetection table by removing bytes 3 and 4 from 
examples with Byte Order Mark.
Add content model as a term and clarify that it applies to both
mixed and element content.
</sitem>
<sitem>1997-06-30 : CMSMcQ : change date, some cosmetic changes,
changes to productions for choice, seq, Mixed, NotationType,
Enumeration.  Follow James Clark's suggestion and prohibit 
conditional sections in internal subset.  TO DO:  simplify
production for ignored sections as a result, since we don't 
need to worry about parsers which don't expand PErefs finding
a conditional section.</sitem>
<sitem>1997-06-29 : TB : various edits</sitem>
<sitem>1997-06-29 : CMSMcQ : further changes:
Suppress old FINAL EDIT comments and some dead material.
Revise occurrences of % in grammar to exploit Henry Thompson's pun,
especially markupdecl and attdef.
Remove RMD requirement relating to element content (?).
</sitem>
<sitem>1997-06-28 : CMSMcQ : Various changes for 1 July draft:
Add text for draconian error handling (introduce
the term Fatal Error).
RE deleta est (changing wording from 
original announcement to restrict the requirement to validating
parsers).
Tag definition of validating processor and link to it.
Add colon as name character.
Change def of %operator.
Change standard definitions of lt, gt, amp.
Strip leading zeros from #x00nn forms.</sitem>
<sitem>1997-04-02 : CMSMcQ : final corrections of editorial errors
found in last night's proofreading.  Reverse course once more on
well-formed:   Webster's Second hyphenates it, and that's enough
for me.</sitem>
<sitem>1997-04-01 : CMSMcQ : corrections from JJC, EM, HT, and self</sitem>
<sitem>1997-03-31 : Tim Bray : many changes</sitem>
<sitem>1997-03-29 : CMSMcQ : some Henry Thompson (on entity handling),
some Charles Goldfarb, some ERB decisions (PE handling in miscellaneous
declarations.  Changed Ident element to accept def attribute.
Allow normalization of Unicode characters.  move def of systemliteral
into section on literals.</sitem>
<sitem>1997-03-28 : CMSMcQ : make as many corrections as possible, from
Terry Allen, Norbert Mikula, James Clark, Jon Bosak, Henry Thompson,
Paul Grosso, and self.  Among other things:  give in on "well formed"
(Terry is right), tentatively rename QuotedCData as AttValue
and Literal as EntityValue to be more informative, since attribute
values are the <emph>only</emph> place QuotedCData was used, and
vice versa for entity text and Literal. (I'd call it Entity Text, 
but 8879 uses that name for both internal and external entities.)</sitem>
<sitem>1997-03-26 : CMSMcQ : resynch the two forks of this draft, reapply
my changes dated 03-20 and 03-21.  Normalize old 'may not' to 'must not'
except in the one case where it meant 'may or may not'.</sitem>
<sitem>1997-03-21 : TB : massive changes on plane flight from Chicago
to Vancouver</sitem>
<sitem>1997-03-21 : CMSMcQ : correct as many reported errors as possible.
</sitem>
<sitem>1997-03-20 : CMSMcQ : correct typos listed in CMSMcQ hand copy of spec.</sitem>
<sitem>1997-03-20 : CMSMcQ : cosmetic changes preparatory to revision for
WWW conference April 1997:  restore some of the internal entity 
references (e.g. to docdate, etc.), change character xA0 to &amp;nbsp;
and define nbsp as &amp;#160;, and refill a lot of paragraphs for
legibility.</sitem>
<sitem>1996-11-12 : CMSMcQ : revise using Tim's edits:
Add list type of NUMBERED and change most lists either to
BULLETS or to NUMBERED.
Suppress QuotedNames, Names (not used).
Correct trivial-grammar doc type decl.
Rename 'marked section' as 'CDATA section' passim.
Also edits from James Clark:
Define the set of characters from which [^abc] subtracts.
Charref should use just [0-9] not Digit.
Location info needs cleaner treatment:  remove?  (ERB
question).
One example of a PI has wrong pic.
Clarify discussion of encoding names.
Encoding failure should lead to unspecified results; don't
prescribe error recovery.
Don't require exposure of entity boundaries.
Ignore white space in element content.
Reserve entity names of the form u-NNNN.
Clarify relative URLs.
And some of my own:
Correct productions for content model:  model cannot
consist of a name, so "elements ::= cp" is no good.
</sitem>
<sitem>1996-11-11 : CMSMcQ : revise for style.
Add new rhs to entity declaration, for parameter entities.</sitem>
<sitem>1996-11-10 : CMSMcQ : revise for style.
Fix / complete section on names, characters.
Add sections on parameter entities, conditional sections.
Still to do:  Add compatibility note on deterministic content models.
Finish stylistic revision.</sitem>
<sitem>1996-10-31 : TB : Add Entity Handling section</sitem>
<sitem>1996-10-30 : TB : Clean up term &amp; termdef.  Slip in
ERB decision re EMPTY.</sitem>
<sitem>1996-10-28 : TB : Change DTD.  Implement some of Michael's
suggestions.  Change comments back to //.  Introduce language for
XML namespace reservation.  Add section on white-space handling.
Lots more cleanup.</sitem>
<sitem>1996-10-24 : CMSMcQ : quick tweaks, implement some ERB
decisions.  Characters are not integers.  Comments are /* */ not //.
Add bibliographic refs to 10646, HyTime, Unicode.
Rename old Cdata as MsData since it's <emph>only</emph> seen
in marked sections.  Call them attribute-value pairs not
name-value pairs, except once.  Internal subset is optional, needs
'?'.  Implied attributes should be signaled to the app, not
have values supplied by processor.</sitem>
<sitem>1996-10-16 : TB : track down &amp; excise all DSD references;
introduce some EBNF for entity declarations.</sitem>
<sitem>1996-10-?? : TB : consistency check, fix up scraps so
they all parse, get formatter working, correct a few productions.</sitem>
<sitem>1996-10-10/11 : CMSMcQ : various maintenance, stylistic, and
organizational changes:
Replace a few literals with xmlpio and
pic entities, to make them consistent and ensure we can change pic
reliably when the ERB votes.
Drop paragraph on recognizers from notation section.
Add match, exact match to terminology.
Move old 2.2 XML Processors and Apps into intro.
Mention comments, PIs, and marked sections in discussion of
delimiter escaping.
Streamline discussion of doctype decl syntax.
Drop old section of 'PI syntax' for doctype decl, and add
section on partial-DTD summary PIs to end of Logical Structures
section.
Revise DSD syntax section to use Tim's subset-in-a-PI
mechanism.</sitem>
<sitem>1996-10-10 : TB : eliminate name recognizers (and more?)</sitem>
<sitem>1996-10-09 : CMSMcQ : revise for style, consistency through 2.3
(Characters)</sitem>
<sitem>1996-10-09 : CMSMcQ : re-unite everything for convenience,
at least temporarily, and revise quickly</sitem>
<sitem>1996-10-08 : TB : first major homogenization pass</sitem>
<sitem>1996-10-08 : TB : turn "current" attribute on div type into 
CDATA</sitem>
<sitem>1996-10-02 : TB : remould into skeleton + entities</sitem>
<sitem>1996-09-30 : CMSMcQ : add a few more sections prior to exchange
                            with Tim.</sitem>
<sitem>1996-09-20 : CMSMcQ : finish transcribing notes.</sitem>
<sitem>1996-09-19 : CMSMcQ : begin transcribing notes for draft.</sitem>
<sitem>1996-09-13 : CMSMcQ : made outline from notes of 09-06,
do some housekeeping</sitem>
</slist>
</revisiondesc>
</header>
<body> 
<div1 id='sec-intro'>
<head>ʎ</head>
<!--	    <div2 id='sec-scope'>
	      <head>Kp͈</head> -->
<p>g”\&markup;XML(eXtensible Markup Language)́C<termref def="dt-xml-doc">XML</termref>Ƃf[^IuWFNg̃NXK肵CXMLvO̓̈ꕔK肷BXMĹCSGML(Wʉ&markup;CStandard Generalized Markup Language)<bibref ref='ISO8879'/>̐&subset;ƂB\CXMĹCȂ炸SGMLKiɓKB</p>
<p>XMĹC<termref def="dt-entity"></termref>ƂLPʂȂĈ́C&parsed-data;&unparsed-data;ȂB&parsed-data;́C<termref def="dt-character"></termref>ȂC̈ꕔ́C<termref def="dt-chardata">f[^</termref>\Cꕔ́C<termref def="dt-markup">&markup;</termref>\B&markup;́C̋LCAEgyј_\ɂ‚Ă̋Lq\ƂBXMĹCLCAEgyј_\ɂ‚Ă̐Lq@\񋟂B</p>
<p><termdef id="dt-xml-proc" term="XML&processor;"><term>XML&processor;</term>Ƃ\tgEFAW[́CXMLǂݍ݁C̓eyэ\ւ̃ANZX񋟂邽߂ɗpB </termdef> <termdef id="dt-app" term="&application;">XML&processor;́C̃W[̂߂ɓ삷邱ƂOƂC̃W[<term>&application;</term>ƂB</termdef>&TR-or-Rec;́CXML&processor;sȂ΂ȂȂUK肷B‚܂CXMLf[^̓Ǎݕ@K肵C&application;ɒ񋟂K肷B</p>
<!--	    </div2> -->
<div2 id='sec-origin-goals'>
<head>o܋yіڕW</head>
<p>1996NWorld Wide Web Consortium(W3C)̒ɐݗXMLƃO[v(ȑÓC SGMLҏWr[ψƌĂ΂ꂽ)CXMLJB̍ƃO[v̋cCSun MicrosystemsJon Bosak΂߂BW3CgDCȑOSGMLƃO[vƌĂ΂ꂽXML SIG(Special Interest Group)CXML̐ɔɊɎQ悵B
<!--JISł? XMLƃO[ṽot^ɎB-->Dan ConnollýCƃO[vW3CɂAW𖱂߂B</p>
<p>XML̐݌vڕWCɎB<ulist>
<item><p>a) XMĹCInternetł̂܂܎gpłB</p></item>
<item><p>b) XMĹCL͈͂&application;xB</p></item>
<item><p>c) XMĹCSGMLƌ݊B</p></item>
<item><p>d) XMLvOƂ́CeՂłȂ΂ȂȂB</p></item>
<item><p>e) XMLł́CIvV̋@\͂ł邾ȂC‚݂ȂƂڎwB</p></item>
<item><p>f) XMĹClԂɂƂēǂ݂₷C\ɗ₷B</p></item>
<item><p>g) XML̐݌v́C݂₩ɍsȂ΂ȂȂB</p></item>
<item><p>h) XML̐݌v́CyъȌłȂ΂ȂȂB</p></item>
<item><p>i) XMĹCeՂɍ쐬łB</p></item>
<item><p>j) XMLł́C&markup;̐炷Ƃ́Cdvł͂ȂB</p></item></ulist>
</p>
<p>XML&XML.version;&version;𗝉CvZ@vO߂ɏ\ȏ́C&TR-or-Rec;yъ֘AKi(pƂāCUnicodeyISO/IEC 10646C<!--* XXX for Uniform Resource Identifiers, *-->&language-identification;^OpƂāCC^lbg RFC 1766C&language-code;pƂāCISO 639Cт&country-code;pƂāCISO 3166)ŁCׂĎB</p>
<p>&version;XML̋K<!-- (&doc.date;) -->́CJr[yыc_ړIƂBeLXgyі@̒ӂςȂCRɔzzĂ悢B</p>
</div2>
<div2 id='sec-terminology'>
<head>`</head>
<p>XML̋K̂߂ɎgpṕC&TR-or-Rec;Œ`BɎ́C̗p`邽߁CyXML&processor;̓K肷邽߂ɎgpB
<glist>
<gitem>
<label>1.2.1 Ă悢(may)</label>
<def><p><termdef id="dt-may" term="Ă悢">K镶XML&processor;́CLqꂽƂɓ삵Ă悢ĈƂɂKv͂ȂB</termdef></p></def>
</gitem>
<gitem>
<label>1.2.2 Ȃ΂ȂȂ(must)</label>
<def><p>K镶XML&processor;́CLqꂽƂɓ삷邱ƂvBłȂ΁C&error;ƂB<!-- do NOT change this! this is what defines a violation ofa 'must' clause as 'an error'. -MSM -->
</p></def>
</gitem>
<gitem>
<label>1.2.3 &error;(error)</label>
<def><p><termdef id="dt-error" term="&error;">&TR-or-Rec;߂Kɑ΂ᔽBʂ͒`ȂBK\tgEFÁC&error;oĕ񍐂Ă悭C&error;񕜂Ă悢B</termdef></p></def>
</gitem>
<gitem>
<label>1.2.4 &fatal-error;(fatal error)</label>
<def><p><termdef id="dt-fatal" term="&fatal-error;">K<termref def="dt-xml-proc">XML&processor;</termref>oȂ΂Ȃ炸C&application;ɕ񍐂Ȃ΂ȂȂ&error;B&fatal-error;𔭌ƁC&processor;́Cȍ~&error;T߂Ƀf[^𑱍sĂ悭C&error;𔭌ꍇ́C&error;&application;ɕ񍐂Ă悢B&error;T|[g邽߂ɁC&processor;́Cf[^(f[^y&markup;݂̍)𕶏oC&application;ɓnĂ悢BCxC&fatal-error;oC&processor;́Cʏ̏𑱍sĂ͂ȂȂB‚܂C&processor;́Cf[^yѕ̘_\ɂ‚Ă̏Cʏ̕@&application;ɓnĂ͂ȂȂB</termdef></p></def>
</gitem>
<gitem>
<label>1.2.5 &at-user-option;(at user option)</label>
<def><p>K\tgEGÁCLqꂽƂɐU镑Ă悢(may)C͐U镑ȂĂ͂ȂȂ(must)(͒̏ɂB)B̂ƂɐU镑ꍇ́CLqꂽUI𖔂͋ۂi&user;ɒ񋟂Ȃ΂ȂȂB</p></def>
</gitem>
<gitem>
<label>1.2.6 &validity;(validity constraint)</label>
<def><p>ׂĂ<termref def="dt-valid">&valid;</termref>XMLɓKpKB&validity;̈ᔽ́C&error;ƂB&at-user-option;C<termref def="dt-validating">؂sXML&processor;</termref>́C&error;񍐂Ȃ΂ȂȂB</p></def>
</gitem>
<gitem>
<label>1.2.7 &well-formed;(well-formedness constraint)</label>
<def><p>ׂĂ<termref def="dt-wellformed">&well-formed;</termref>XMLɓKpKB&well-formed;̈ᔽ́C<termref def="dt-fatal">&fatal-error;</termref>ƂB</p></def>
</gitem>
<gitem>
<label>1.2.8 &match;(match)</label>
<def><p>a) <termdef id="dt-match" term="&match;">&string;͖O&match;@r‚&string;͖ÓCłȂ΂ȂȂBISO/IEC 10646ɂāC̕\”\ȕmႦ΁C&composed-form;yъ+&diacritical-mark;(_CANeBJ}[N)`ńCǂ&string;\̂ƂɌC&match;B&at-user-option;C&processor;́C̕W`ɐKĂ悢Br̂ƂA啶ƏƂ̋ʂB<!-- Note that no processing of characters with respect to case is part of the matching process. -->&lt;BR>b) &string;ƕ@̋KƂ&match;@鐶K琶錾ɁC&string;ƂC&string;́C̐K&match;ƂB&lt;BR>c) eƓefƂ&match;@vfC<titleref href='elementvalid'>vf&validity;</titleref>̐ɎӖœKƂC̗vf́C̐錾&match;ƂB</termdef></p></def>
</gitem>
<gitem>
<label>1.2.9 ݊̂(for compatibility)</label>
<def><p><termdef id="dt-compat" term="݊̂">XML̋@\łāCXMLSGMLƌ݊ł邱Ƃۏ؂邽߂ɓ́B</termdef></p></def>
</gitem>
<gitem>
<label>1.2.10 ݉^p̂(for interoperability)</label>
<def><p><termdef id="dt-interop" term="݉^p̂">S͂͂ȂB&WebSGML;ȑO瑶݂SGML&processor;CXMLł”\߂邽߂Ɏ́B</termdef></p></def>
</gitem>
</glist>
</p>
</div2>
</div1>
<!-- &Docs; -->
<div1 id='sec-documents'>
<head></head>
<p><termdef id="dt-xml-doc" term="XML">
<!-- A textual object -->
&TR-or-Rec;Œ`ӖŁC<termref def="dt-wellformed">&well-formed;</termref>Ƃf[^IuWFNgC<term>XML</term>ƂB&well-formed;XMLCɁC鐧𖞑΁C<termref def="dt-valid">&valid;</termref>XMLƂB
</termdef></p>

<!-- why this div? -TB
<div2 id='sec-log-phys'> 
<head>Logical and Physical Structure</head> -->

<p>XMLC_\yѕ\BIɂ́ĆC<termref def="dt-entity"></termref>ƌĂԒPʂȂB̂́Cɑ̎̂܂ނ߂ɁC̑̎̂<termref def="dt-entref">Q</termref>Ă悢B́Cg[ghȂ킿<termref def="dt-docent"></termref>n܂B_Iɂ́ĆC錾CvfCRgCQƋyя߂܂݁C炷ׂẮCŖI&markup;ɂĎB_\yѕ\́C<titleref href="wf-entities">ȍ~</titleref>ɎƂɁCɓqɂȂĂȂ΂ȂȂB</p>

<!-- 
</div2> -->

<div2 id='sec-well-formed'>
<head>&well-formed;XML</head>
<p><termdef id="dt-wellformed" term="&well-formed;">eLXgIuWFNgĈꂩ̂ƂC̃eLXgIuWFNg&well-formed;XMLƌĂԁB</termdef>
<ulist>
<item><p>a) ŜƂāC<nt def='NT-document'>document</nt>ƂxK&match;B</p></item>
<item><p>b) &TR-or-Rec;Œ`CׂĂ&well-formed;ɏ]B</p>
</item>
<item><p>c) ꂼ<termref def='dt-parsedent'>&parsed-entity;</termref>C<titleref href='wf-entities'>&well-formed;</titleref>ƂȂB</p></item>
</ulist></p>
<p>
<scrap lang='ebnf' id='document'>
<head></head>
<prod id='NT-document'><lhs>document</lhs>
<rhs><nt def='NT-prolog'>prolog</nt> 
<nt def='NT-element'>element</nt> 
<nt def='NT-Misc'>Misc</nt>*</rhs></prod>
</scrap>
</p>
<p><nt def="NT-document">document</nt>K&match;Ƃ́CӖB
<ulist>
<item><p>a) ˆȏ<termref def="dt-element">vf</termref>܂ށB</p>
</item>

<!--* N.B. some readers (notably JC) find the following
paragraph awkward and redundant.  I agree it's logically redundant:
it *says* it is summarizing the logical implications of
matching the grammar, and that means by definition it's
logically redundant.  I don't think it's rhetorically
redundant or unnecessary, though, so I'm keeping it.  It
could however use some recasting when the editors are feeling
stronger. -MSM *-->

<item><p>b) <termdef id="dt-root" term="[gvf"><term>[g</term>͕vfƂvf‚݂ĆC̗vf<termref def="dt-content">e</termref>Ɋ܂܂ȂB</termdef>ȊÔׂĂ̗vf́C̊Jn^O̗vf̓eɊ܂܂΁CΉI^Ovf̓eɊ܂܂B‚܂Cvf́CJn^OyяI^Oɂċ؂Cq\ȂB
</p></item>
</ulist>
</p>
<p><termdef id="dt-parentchild" term="evf/qvf">̌ʂƂāĈǂ̔񃋁[gvf<code>C</code>ɑ΂ĂC鑼̗vf<code>P</code>݂C<code>C</code>́C<code>P</code>̓eɊ܂܂邪C<code>P</code>̓eɊ܂܂鑼̗vfɊ܂܂邱Ƃ͂ȂB̂ƂC<code>P</code><code>C</code><code>e</code>ƂC<code>C</code><code>P</code><code>q</code>ƂB</termdef></p>
</div2>
<div2 id="charsets">
<head></head>
<p>

<!--The data stored in an XML <termref def="dt-entity">entity</termref> is
either <termref def="dt-text">parsed</termref> or <termref
def="dt-unparsed">unparsed</termref>. -->

<termdef id="dt-text" term="eLXg">&parsed-entity;́C<term>eLXg</term>(<termref def="dt-character"></termref>̕тłāC&markup;͕f[^\Ă悢B)܂ށB</termdef><termdef id="dt-character" term=""><term></term>́CeLXg̍ŏPʂłāCISO/IEC 10646<bibref ref="ISO10646"/>ɋK肳B<!--Users may extend the ISO/IEC 10646 character repertoire by exploiting the private use areas. -->e镶́C^uCsCAтUnicodeyISO/IEC 10646e}`ƂB</termdef> 
<scrap lang="ebnf" id="char32">
<head>͈̔</head>
<prodgroup pcw2="4" pcw4="17.5" pcw5="11">
<prod id="NT-Char"><lhs>Char</lhs> 
<rhs>#x9 | #xA | #xD | [#x20-#D7FF] | [#xE000-#xFFFD] 
| [#x10000-#x10FFFF]</rhs> 
<com>CӂUnicodeBC&surrogate-blocks;CFFFEyFFFF͏B</com>
</prod>
</prodgroup>
</scrap>
</p>
<p>&character-value;rbgp^ɕ@\́ĈƂɈĂ悢BׂĂXML&processor;́CISO/IEC 10646UTF-8yUTF-16󂯕tȂ΂ȂȂB‚̂ǂ炪pĂ邩𖾎邽߂̋@\Cyё̕@𗘗p邽߂̋@\́C<titleref href='charencoding'>̕</titleref>ɋLqB</p>
<p>ǂ̕@p邩Ɋ֌WȂCISO/IEC 10646̕Wɂ邷ׂẮ̕CUCS-4&code-value;<!-- bit string. -->Ɠ10i16iɂāCQƂłB</p>
</div2>

<div2 id='sec-common-syn'>
<head>ʂ̍\\q</head>
 
<p>2.3ł́C@ōLgp邢‚̋L`B</p>
<p><nt def="NT-S">S</nt> ()́CŽႵ͕&space-character;(#x20)CACs̓^u琬B

<scrap lang="ebnf" id='white'>
<head></head>
<prodgroup pcw2="4" pcw4="17.5" pcw5="11">
<prod id='NT-S'><lhs>S</lhs>
<rhs>(#x20 | #x9 | #xD | #xA)+</rhs>
</prod>
</prodgroup>
</scrap></p>
<p>֋XCC&letter;C͑̕ɕނB&letter;́CAt@xbgI͕\Ił{(–͕&combining-character;CɑƂB)C&ideographic;琬B
<!-- 
Certain layout and format-control characters defined by ISO/IEC 10646 
should be ignored when recognizing identifiers; these are defined by the 
classes <nt def='NT-Ignorable'>Ignorable</nt> and <nt def='NT-
Extender'>Extender</nt>. 
-->
eNXɂۂ̕ɂ‚Ă̊SȒ`́C<titleref href='CharClasses'>NX</titleref>Ɋւt^ɋK肷B</p>
<p><termdef id="dt-name" term="Name"><term>Name</term>́C&letter;͂‚̋؂蕶̈‚Ŏn܂Č&letter;CCnCtCCR̓sIh(𖼑OƂB)B</termdef>&string;"<code>xml</code>"<code>(('X'|'x') ('M'|'m') ('L'|'l'))</code>&match;&string;Ŏn܂閼ÓC&TR-or-Rec;݂̌̔Ŗ͏̔łł̕Ŵ߂ɗ\񂷂B
</p>
<note>
<p>XML̖O̒̃ŔCOԂł̎̂߂ɗ\񂷂BR̈Ӗ́Ĉ鎞_ŕŴƂĈƂɂ́CIȖړIŃRgp镶XVKv”\BXMLō̗p閼OԂ̋@\C؂qƂĎۂɃRgpƂۏ؂͂ȂBĆCOԂ̎̈‚ƂĈȊOɂ́CXML̖O̒ŃRgpȂق悢ƂӖBCXML&processor;́COƂăR󂯕t邱Ƃ]܂B
</p>
</note>
<p>
<nt def='NT-Nmtoken'>Nmtoken</nt> (O&token;)́COō\ƂB
<scrap lang='ebnf'>
<head>Oy&token;</head>
<!--
<prod id='NT-MiscName'><lhs>MiscName</lhs>
<rhs></rhs>
</prod>-->
<prod id='NT-NameChar'><lhs>NameChar</lhs>
<rhs><nt def="NT-Letter">Letter</nt> 
| <nt def='NT-Digit'>Digit</nt> 
<!--| <nt def='NT-MiscName'>MiscName</nt>-->
| '.' | '-' | '_' | ':'
| <nt def='NT-CombiningChar'>CombiningChar</nt> 
<!-- | <nt def='NT-Ignorable'>Ignorable</nt>  -->
| <nt def='NT-Extender'>Extender</nt></rhs>
</prod>
<prod id='NT-Name'><lhs>Name</lhs>
<rhs>(<nt def='NT-Letter'>Letter</nt> | '_' | ':')
(<nt def='NT-NameChar'>NameChar</nt>)*</rhs></prod>
<prod id='NT-Names'><lhs>Names</lhs>
<rhs><nt def='NT-Name'>Name</nt> 
(<nt def='NT-S'>S</nt> <nt def='NT-Name'>Name</nt>)*</rhs></prod>
<prod id='NT-Nmtoken'><lhs>Nmtoken</lhs>
<rhs>(<nt def='NT-NameChar'>NameChar</nt>)+</rhs></prod>
<prod id='NT-Nmtokens'><lhs>Nmtokens</lhs>
<rhs><nt def='NT-Nmtoken'>Nmtoken</nt> (<nt def='NT-S'>S</nt> <nt 
def='NT-Nmtoken'>Nmtoken</nt>)*</rhs></prod>
</scrap>
</p>
<p>&literal;f[^́Cpň͂܂ꂽ&string;ƂC̗̋؂qƂĎgpp͊܂܂ȂB&literal;́C(<nt def='NT-EntityValue'>EntityValue</nt>)Cl(<nt def='NT-AttValue'>AttValue</nt>)CO&identifier;(<nt def="NT-SystemLiteral">SystemLiteral</nt>)̓e̎wɎgpBړIɂẮC&literal;ŜC̒&markup;̑sȂ킸ɁCXLbv邱Ƃ(<nt def='NT-SkipLit'>SkipLit</nt>B)B
<scrap lang='ebnf'>
<head>&literal;</head>
<!-- is marked section end legal in entity values etc.?
James says yes.  Handbook page 392, sec. 10.4 seems to me to say no. 
If James is right, leave as is.  Otherwise, uncomment
the next comment and ... 
-->
<!--
<prod id='NT-EntityValue'><lhs>EntityValue</lhs>
<rhs>' " ' 
(([^%&amp;"] 
| <nt def='NT-PEReference'>PEReference</nt> 
| <nt def='NT-Reference'>Reference</nt>)*
- (<nt def='NT-Char'>Char</nt>* ']]&gt;' <nt def='NT-char'>Char</nt>*))
' " ' 
</rhs>
<rhs>|&nbsp; 
" ' " 
(([^%&amp;'] 
| <nt def='NT-PEReference'>PEReference</nt> 
| <nt def='NT-Reference'>Reference</nt>)* 
- (<nt def='NT-Char'>Char</nt>* ']]&gt;' <nt def='NT-char'>Char</nt>*))
" ' "</rhs>
</prod>
<prod id='NT-AttValue'><lhs>AttValue</lhs>
<rhs>'"' 
(([^&lt;&amp;"] 
| <nt def='NT-Reference'>Reference</nt>)* 
- (<nt def='NT-Char'>Char</nt>* ']]&gt;' <nt def='NT-char'>Char</nt>*))
' " ' 
</rhs>
<rhs>|&nbsp; 
" ' " 
(([^&lt;&amp;'] 
| <nt def='NT-Reference'>Reference</nt>)* 
- (<nt def='NT-Char'>Char</nt>* ']]&gt;' <nt def='NT-char'>Char</nt>*))
" ' "</rhs>
<wfc def="CleanAttrVals"/>
</prod>
-->
<!-- ... and comment out the following, down to ... -->
<prod id='NT-EntityValue'><lhs>EntityValue</lhs>
<rhs>' " ' 
([^%&amp;"] 
| <nt def='NT-PEReference'>PEReference</nt> 
| <nt def='NT-Reference'>Reference</nt>)*
' " ' 
</rhs>
<rhs>|&nbsp; 
" ' " 
([^%&amp;'] 
| <nt def='NT-PEReference'>PEReference</nt> 
| <nt def='NT-Reference'>Reference</nt>)* 
" ' "</rhs>
</prod>
<prod id='NT-AttValue'><lhs>AttValue</lhs>
<rhs>' " ' 
([^&lt;&amp;"] 
| <nt def='NT-Reference'>Reference</nt>)* 
' " ' 
</rhs>
<rhs>|&nbsp; 
" ' " 
([^&lt;&amp;'] 
| <nt def='NT-Reference'>Reference</nt>)* 
" ' "</rhs>
<!--<wfc def="WF-Attvaldelim"/>-->
</prod>
<!-- ... down to here. -->
<prod id="NT-SystemLiteral"><lhs>SystemLiteral</lhs>
<rhs><nt def='NT-SkipLit'>SkipLit</nt></rhs>
</prod>
<!-- <prod id="NT-URIchar"><lhs>URIchar</lhs>
<rhs><com>See <loc href="http://www.w3.org/XXX">XXX</loc></com>
</rhs></prod>
-->
<prod id="NT-PubidLiteral"><lhs>PubidLiteral</lhs>
<rhs>' " ' <nt def='NT-PubidChar'>PubidChar</nt>* 
' " ' 
| " ' " (<nt def='NT-PubidChar'>PubidChar</nt> - " ' ")* " ' "</rhs>
</prod>
<prod id="NT-PubidChar"><lhs>PubidChar</lhs>
<rhs>#x20 | #xD | #xA 
|&nbsp;[a-zA-Z0-9]
|&nbsp;[-'()+,./:=?]</rhs>
</prod>
<prod id="NT-SkipLit"><lhs>SkipLit</lhs>
<rhs>(' " ' [^"]* ' " ') 
|&nbsp;(" ' " [^']* " ' ")</rhs>
</prod>
<!-- alternate form, making ms end illegal: -->
<!-- 
<prod id="NT-SkipLit"><lhs>SkipLit</lhs>
<rhs>(' " ' ([^"]* - ([^"]* ']]&gt;' [^"]*)) ' " ') 
|&nbsp;(" ' " ([^']* - ([^']* ']]&gt;' [^']*)) " ' ")</rhs>
</prod>
-->
</scrap>
</p>
<!--
<wfcnote id="WF-Attvaldelim">
<head>Delimiters in Attribute Values</head>
<p>After the expansion of character and entity references,
an attribute value must not contain a "<code>&lt;</code>" 
or "<code>&amp;</code>" character unless that character was 
introduced by the expansion of a character reference 
or one of the entities &magicents;.</p>
</wfcnote>-->
<!--
This is not quite right:  &lt; should be legal, should it not?
Suppress this WFC until we get it right.
-->
<!-- Henry Thompson suggests (in substance, not form: the wording needs
to be clarified):
"Cooked Attribute values must not contain &lt; &amp; or the
quote which closed their uncooked literal,
unless arising from the expansion of a character reference or
magic reference
directly contained in their uncooked literal."
I'm not sure I agree with this rule, but it's at least coherent,
which is more than I can say for my attempt.
-->
</div2>

<div2 id='syntax'>
<head>f[^y&markup;</head>
<p><termref def='dt-text'>eLXg</termref>́C<termref def="dt-chardata">f[^</termref>y&markup;݂̂Ƃč\B<termdef id="dt-markup" term="Markup"><term>&markup;</term>́C<termref def="dt-stag">Jn^O</termref>C<termref def="dt-etag">I^O</termref>C<termref def="dt-empty">vf</termref>C<termref def="dt-entref">̎Q</termref>C<termref def="dt-charref">Q</termref>C<termref def="dt-comment">Rg</termref>C<termref def="dt-cdsection">CDATAZNV</termref> ̋؂qC<termref def="dt-doctype">^錾</termref>y<termref def="dt-pi"></termref>̌`B
</termdef>
</p>
<p><termdef id="dt-chardata" term="Character Data">&markup;ł͂ȂׂẴeLXǵC<term>f[^</term>\B</termdef></p>
<p>ApTh (&amp;)y&left-angle-bracket; (&lt;)́C&markup;̋؂qƂāC<termref def="dt-comment">Rg</termref>C<termref def="dt-pi"></termref><termref def="dt-cdsection">CDATAZNV</termref>Ŏgpꍇ<emph></emph>Ĉ܂܂̌`ŏoĂ悢B́̕C̐錾<termref def='dt-litentval'>&literal;̒l</termref>ɋLqĂ悢B ڂ́C<titleref href='wf-entities'>&well-formed;̎</titleref>ɊւKQƁB<!-- FINAL EDIT:  restore internal entity decl or leave it out. -->̕̕ŕKvȏꍇClɂ镶QƖ&string;"<code>&amp;amp;</code>"y&string;"<code>&amp;lt;</code>"gpC<termref def="dt-escape">&escape;</termref>Ȃ΂ȂȂB&right-angle-bracket; (>) ́C&string;"<code>&amp;gt;</code>"gpĕ\Ă悢Be̒ŗ"<code>]]&gt;</code>"gpƂ́CꂪC<termref def="dt-cdsection">CDATAZNV</termref>̏I&markup;ȂC<termref def='dt-compat'>݊̂</termref>C"<code>&amp;gt;</code>"͕QƂgpC&escape;Ȃ΂ȂȂB</p>

<p>vf̓eł́Cf[^́CȂ&markup;̊Jn؂q܂܂ȂCӂ&char-string;ƂBCDATAZNVł́Cf[^Ƃ́CCDATAZNV̏I؂q"<code>]]&gt;</code>"܂܂ȂCӂ&char-string;ƂB
</p>
<p>
l&single-quote;y&double-quote;܂ނ߂ɂ́CA|XgtB&single-quote;(') ́C"<code>&amp;apos;</code>"Ƃĕ\C&double-quote;(")́C"<code>&amp;quot;</code>"Ƃĕ\B
<scrap lang="ebnf">
<head>f[^</head>
<prod id='NT-CharData'>
<lhs>CharData</lhs>
<rhs>[^&lt;&amp;]* - ([^&lt;&amp;]* ']]&gt;' [^&lt;&amp;]*)</rhs>
</prod>
</scrap>
</p>
</div2>
 
<div2 id='sec-comments'>
<head>Rg</head>
 
<p><termdef id="dt-comment" term="Comment"><term>Rg</term>́C<termref def='dt-markup'>&markup;</termref>̊OȂ΁ĈǂɌĂ悢BɁC^錾ŁC@ꏊɌĂ悢B
<!-- TB
except in a <termref def="dt-cdsection">CDATA section</termref>, i.e. within
<termref def="dt-elemcontent">element content</termref>, in 
<termref def="dt-mixed">mixed content</termref>, or in the prolog.  They must
not occur within declarations or tags. -->
RǵC<termref def="dt-chardata">f[^</termref>̈ꕔł͂ȂBXML&processor;́C&application;Rg̃eLXgoƂ”\ƂĂ悢CȂƂ悢B
<termref def="dt-compat">݊̂</termref>C&string;"<code>--</code>" i&double-hyphen;j́CRgŌĂ͂ȂȂB
<scrap lang="ebnf">
<head>Rg</head>
<prod id='NT-Comment'><lhs>Comment</lhs>
<rhs>'&lt;!--'
((<nt def='NT-Char'>Char</nt> - '-') 
| ('-' (<nt def='NT-Char'>Char</nt> - '-')))* 
'-->'</rhs>
<!--
<rhs>'&lt;!&como;' 
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* '&comc;' <nt def='NT-Char'>Char</nt>*)) 
'&comc;&gt;'</rhs> -->
</prod>
</scrap>
</termdef></p>
<p>Rg̗ɎB
<eg>&lt;!&como; declarations for &lt;head> &amp; &lt;body> &comc;&gt;</eg>
</p>
</div2>

<div2 id='sec-pi'>
<head></head>
 
<p><termdef id="dt-pi" term="Processing instruction"><term></term>(PI)ɂāC&application;̂߂̖߂𕶏ɓ邱ƂłB
 
<scrap lang="ebnf">
<head></head>
<prod id='NT-PI'><lhs>PI</lhs>
<rhs>'&lt;?' <nt def='NT-PITarget'>PITarget</nt> 
(<nt def='NT-S'>S</nt> 
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* &pic; <nt def='NT-Char'>Char</nt>*)))?
&pic;</rhs></prod>
<prod id='NT-PITarget'><lhs>PITarget</lhs>
<rhs><nt def='NT-Name'>Name</nt> - 
(('X' | 'x') ('M' | 'm') ('L' | 'l'))</rhs>
</prod>
</scrap></termdef>
PÍC<termref def="dt-chardata">f[^</termref>̈ꕔł͂ȂC&application;ɓnȂ΂ȂȂBPÍC߂n&application;&identify;߂Ɏgp&target; (<nt def='NT-PITarget'>PITarget</nt>) Ŏn܂B&target; "<code>XML</code>"C"<code>xml</code>"Ȃǂ́C&TR-or-Rec;݂̌̔Ŗ͏̔ł̋Kipɗ\񂷂BXML<termref def='dt-notation'>L@</termref>@\CPI&target;錾邽߂ɎgpĂ悢B
</p>
</div2>
 
<div2 id='sec-cdata-sect'>
<head>CDATAZNV</head>
 
<p><termdef id="dt-cdsection" term="CDATA Section"><term>CDATAZNV</term>́Cf[^oƂł΁CǂɏoĂ悢B́CłȂ΁C&markup;ƂĔF镶܂ށCeLXg̋&escape;̂ɎgpBCDATAZNV́C&string;"<code>&lt;![CDATA[</code>"Ŏn܂C&string;
"<code>]]&gt;</code>"ŏIB
<scrap lang="ebnf">
<head>CDATAZNV</head>
<prod id='NT-CDSect'><lhs>CDSect</lhs>
<rhs><nt def='NT-CDStart'>CDStart</nt> 
<nt def='NT-CData'>CData</nt> 
<nt def='NT-CDEnd'>CDEnd</nt></rhs></prod>
<prod id='NT-CDStart'><lhs>CDStart</lhs>
<rhs>'&lt;![CDATA['</rhs>
</prod>
<prod id='NT-CData'><lhs>CData</lhs>

<rhs>(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* ']]&gt;' <nt def='NT-Char'>Char</nt>*))
</rhs>
</prod>
<prod id='NT-CDEnd'><lhs>CDEnd</lhs>
<rhs>']]&gt;'</rhs>
</prod>
</scrap>

CDATAZNVł́C<nt def='NT-CDEnd'>CDEnd</nt>&markup;ƂĔF̂ŁC&left-angle-bracket;yуApTh́C&literal;`ŏoĂ悢B́C"<code>&amp;lt;</code>"y"<code>&amp;amp;</code>"gp&escape;Kv͂ȂBCDATAZNV́Cqɂ͂łȂB
</termdef>
</p>

<p>"<code>&lt;greeting></code>"y"<code>&lt;/greeting></code>"C<termref def='dt-markup'>&markup;</termref>ł͂ȂC<termref def='dt-chardata'>f[^</termref>ƂĔFCDATAZNV̗CɎB
<eg>&lt;![CDATA[&lt;greeting>Hello, world!&lt;/greeting>]]&gt;</eg>
</p>
</div2>
 
<div2 id='sec-prolog-dtd'>
<head>&prolog;yѕ^錾</head>
 
<p><termdef id='dt-xmldecl' term='XML Declaration'>XMĹCgpXML&version;w肷<term>XML錾</term>Ŏn߂Ă悭Ĉ]܂B
</termdef>
</p>
<p>&TR-or-Rec;̂&version;ɓK邱Ƃ߂ɂ́C&version;ԍ "<code>1.0</code>" gpȂ΂ȂȂB镶C&TR-or-Rec;̂&version;ɓKȂƂCl"<code>1.0</code>"gp̂́C&error;ƂB&TR-or-Rec;̍&version;"<code>1.0</code>"ȊO̒lt^邱ƂCXMLƃO[v̈Ӑ}CXML̏&version;쐬邱Ƃ̊m킯ł͂ȂC쐬ƂĂCԍtɂ‚āC̕@gp邱Ƃ̊m킯łȂB&version;̉”\OȂ̂ŁCKvȏꍇCI&version;̔F”\ƂiƂāC̍\q񋟂B&processor;́CT|[gĂȂ&version;Ńxt󂯎ƂC&error;ʒmĂ悢B
</p>
<p>XML&markup;̋@\́CL\yј_\Lq邱ƁCтɑyёl̑΂_\Ɋ֘AÂ邱ƂɂBXMĹC_\ɂ‚Ă̐`邽߁Cyт炩ߒ`ꂽLPʂgpł邽߂̋@\ƂāC<termref def="dt-doctype">^錾</termref>񋟂B<!-- old
The function of the markup in an XML document is to describe its
storage and logical structures, and associate attribute-value pairs with the
logical structure.
XML provides a
mechanism, the <termref def="dt-doctype">document type declaration</termref>, 
to
define constraints on that logical structure and to support the use of
predefined storage units. --><termdef id="dt-valid" term="Validity">XML<term>&valid;</term>Ƃ́C^錾C̕^錾Ɏ𖞂ƂƂB
</termdef></p>
<p>^錾́C̍ŏ<termref def="dt-element">vf</termref>̑OɌȂ΂ȂȂB
<scrap lang="ebnf" id='xmldoc'>
<head>&prolog;</head>
<prodgroup pcw2="6" pcw4="17.5" pcw5="9">
<prod id='NT-prolog'><lhs>prolog</lhs>
<rhs><nt def='NT-XMLDecl'>XMLDecl</nt>? 
<nt def='NT-Misc'>Misc</nt>* 
(<nt def='NT-doctypedecl'>doctypedecl</nt> 
<nt def='NT-Misc'>Misc</nt>*)?</rhs></prod>
<prod id='NT-XMLDecl'><lhs>XMLDecl</lhs>
<rhs>&xmlpio; 
<nt def='NT-VersionInfo'>VersionInfo</nt> 
<nt def='NT-EncodingDecl'>EncodingDecl</nt>? 
<nt def='NT-SDDecl'>SDDecl</nt>? 
<nt def="NT-S">S</nt>? 
&pic;</rhs>
</prod>
<prod id='NT-VersionInfo'><lhs>VersionInfo</lhs>
<rhs><nt def="NT-S">S</nt> 'version' <nt def='NT-Eq'>Eq</nt> 
('"<nt def="NT-VersionNum">VersionNum</nt>"' 
| "'<nt def="NT-VersionNum">VersionNum</nt>'")</rhs>
</prod>
<prod id='NT-Eq'><lhs>Eq</lhs>
<rhs><nt def='NT-S'>S</nt>? '=' <nt def='NT-S'>S</nt>?</rhs></prod>
<prod id="NT-VersionNum">
<lhs>VersionNum</lhs>
<rhs>([a-zA-Z0-9_.:] | '-')+</rhs>
</prod>
<prod id='NT-Misc'><lhs>Misc</lhs>
<rhs><nt def='NT-Comment'>Comment</nt> | <nt def='NT-PI'>PI</nt> | 
<nt def='NT-S'>S</nt></rhs></prod>
</prodgroup>
</scrap></p>

<p>
Ⴆ΁CɎSXMĹC<termref def="dt-wellformed">&well-formed;</termref>ł邪<termref def="dt-valid">&valid;</termref>ł͂ȂB
<eg><![CDATA[<?xml version="1.0"?>
<greeting>Hello, world!</greeting>
]]></eg>
̕lƂB
<eg><![CDATA[<greeting>Hello, world!</greeting>
]]></eg>
</p>
<p><termdef id="dt-doctype" term="Document Type Declaration">
XML<term>^錾</term>́C镶NX̂߂̕@񋟂<termref def='dt-markupdecl'>&markup;錾</termref>܂ނC͎QƂB̕@C^`<term>DTD</term>ƂB^錾́C&markup;錾܂񂾊O&subset;(ʂȎނ<termref def='dt-extent'>O</termref>)QƂłC͓&subset;ɒ&markup;錾܂ނƂłBɁC̗”\ƂB镶DTD́C&subset;܂Ƃ߂̂Ƃč\B</termdef>
</p>
<p><termdef id="dt-markupdecl" term="markup declaration">
<term>&markup;錾</term>́C<termref def="dt-eldecl">vf^錾</termref>C <termref def="dt-attdecl">Xg錾</termref>C<termref def="dt-entdecl">̐錾</termref><termref def="dt-notdecl">L@錾</termref>ƂB</termdef>Ɏ&well-formed;y&validity;ɋK肷邪C̐錾́C<termref def='dt-PE'>&parameter;</termref>ɑS̖͈ꕔ܂܂Ă悢BڂḰC<titleref xml-link="simple" href="sec-physical-struct">\</titleref>ɊւKQƂ̂ƁB</p>
<scrap lang="ebnf" id='dtd'>
<head>^`</head>
<prodgroup pcw2="6" pcw4="17.5" pcw5="9">
<prod id='NT-doctypedecl'><lhs>doctypedecl</lhs>
<rhs>'&lt;!DOCTYPE' <nt def='NT-S'>S</nt> 
<nt def='NT-Name'>Name</nt> (<nt def='NT-S'>S</nt> 
<nt def='NT-ExternalID'>ExternalID</nt>)? 
<nt def='NT-S'>S</nt>? ('[' 
(<nt def='NT-markupdecl'>markupdecl</nt> 
| <nt def='NT-PEReference'>PEReference</nt> 
| <nt def='NT-S'>S</nt>)*
']' 
<nt def='NT-S'>S</nt>?)? '>'</rhs>
<vc def="vc-roottype"/>
<!--<vc def="vc-nonnullDTD"/>-->
</prod>
<!--
<prod id='NT-markupdecls'><lhs>markupdecls</lhs>
<rhs>
(<nt def='NT-S'>S</nt>?
<nt def='NT-markupdecl'>markupdecl</nt>
<nt def='NT-S'>S</nt>?)*
</rhs></prod>
-->
<prod id='NT-markupdecl'><lhs>markupdecl</lhs>
<rhs><nt def='NT-elementdecl'>elementdecl</nt> 
| <nt def='NT-AttlistDecl'>AttlistDecl</nt> 
| <nt def='NT-EntityDecl'>EntityDecl</nt> 
| <nt def='NT-NotationDecl'>NotationDecl</nt> 
| <nt def='NT-PI'>PI</nt> 
| <nt def='NT-Comment'>Comment</nt>
<!--| <nt def='NT-InternalPERef'>InternalPERef</nt> --></rhs>
<vc def='vc-PEinMarkupDecl'/>
<wfc def="wfc-PEinInternalSubset"/>
</prod>
<!--
<prod id="NT-InternalPERef"><lhs>InternalPERef</lhs>
<rhs><nt def="NT-PEReference">PEReference</nt></rhs>
<wfc def="wfc-integraldec"/>
</prod>
-->
</prodgroup>
</scrap>
<vcnote id="vc-roottype">
<head>&root;vf^</head>
<p>
^錾ɂ<nt def='NT-Name'>Name</nt>́C&root;vf̌^&match;Ȃ΂ȂȂB
</p>
</vcnote>
<!--
<vcnote id="vc-nonnullDTD">
<head>Non-null DTD</head>
<p>
The internal and external subsets of the DTD must not both
be empty.
</p>
</vcnote>
-->
<vcnote id='vc-PEinMarkupDecl'>
<head>錾y&parameter;̂ɓqȂ</head>
<p>&parameter;<termref def='dt-repltext'>&replacement-text;</termref>́C&markup;錾ɂāCɓqɂȂĂȂ΂ȂȂB‚܂C&markup;錾(<nt def='NT-markupdecl'>markupdecl</nt>)̍ŏ͍Ō̕C<termref def='dt-PERef'>&parameter;̎Q</termref>̑ΏۂƂȂ&replacement-text;Ɋ܂܂΁CƂ&replacement-text;Ɋ܂܂Ȃ΂ȂȂB</p>
</vcnote>
<wfcnote id="wfc-PEinInternalSubset">
<head>&subset;&parameter;</head>
<p>DTD̓&subset;ł́C<termref def='dt-PERef'>&parameter;̎Q</termref>́C&markup;錾o”\ȏꏊɏołB&markup;錾ɂ͏ołȂ(̐́CO&parameter;̖͊O&subset;ł̎QƂɂ͓KpȂB)B
</p>
</wfcnote>
<p>
&subset;̂ƂƓlɁCO&subset;yDTDɂĎQƂCӂ̊O&parameter;̂́CI[L<nt def="NT-markupdecl">markupdecl</nt>ɂċ^́CÅS&markup;錾ō\Ȃ΂ȂȂB&markup;錾̊Ԃɂ́C󔒖<termref def="dt-PERef">&parameter;̎Q</termref>uĂ悢BCO&subset;͊O&parameter;̂̓ëꕔ́C<termref def="dt-cond-section">tZNV</termref>gpĖĂ悢BTuZbgł́C͋ȂB
<!--In the external subset, however,  parameter-entity references can
be used to replace constructs prefixed by "<code>%</code>" in a production of
the grammar, and <termref def="dt-cond-section">conditional sections</termref>
may occur.
In the internal subset, by contrast, conditional sections may not
occur and the only parameter-entity references 
allowed are those which match the non-terminal 
<nt def="NT-InternalPERef">InternalPERef</nt>
within the rule for <nt def="NT-doctypedecl">markupdecl</nt>. 
-->
<scrap id="ext-Subset">
<head>O&subset;</head>
<prodgroup pcw2="6" pcw4="17.5" pcw5="9">
<prod id='NT-extSubset'><lhs>extSubset</lhs>
<rhs>(
<nt def='NT-markupdecl'>markupdecl</nt> 
| <nt def='NT-conditionalSect'>conditionalSect</nt> 
| <nt def='NT-PEReference'>PEReference</nt> 
| <nt def='NT-S'>S</nt>
)*</rhs>
</prod>
</prodgroup>
</scrap></p>
<p>O&subset;yъO&parameter;̂́C̓ł́C&parameter;̂&markup;錾<emph></emph>łȂC&markup;錾<emph></emph>łFCƂ_ł&subset;Ƃ͈قȂB
</p>
<p>^錾tXML̗CɎB
<eg><![CDATA[<?xml version="1.0"?>
<!DOCTYPE greeting SYSTEM "hello.dtd">
<greeting>Hello, world!</greeting>
]]></eg>
<termref def="dt-sysid">VXe&identifier;</termref> "<code>hello.dtd</code>"CDTDURIƂȂB</p>
<p>̗̂ƂC錾ǏIɗ^邱ƂłB
<eg><![CDATA[<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE greeting [
  <!ELEMENT greeting (#PCDATA)>
]>
<greeting>Hello, world!</greeting>
]]></eg>
O&subset;yѓ&subset;̗gpƂ́C&subset;O&subset;ɏoƌȂB<!--* 'is considered to'? boo. whazzat mean? -->́C&subset;̎̋yёXg錾CO&subset;̎̋yёXg錾D悷Ƃʂ炷B
</p>
</div2>

<div2 id='sec-rmd'>
<head>&standalone;錾</head>
<p><termref def="dt-xml-proc">XML&processor;</termref>́C&application;ɕ̓enC&markup;錾́C̓eɉe^邱ƂB&default-value;yю̐錾̗ƂBXML錾̈ꕔƂďoł&standalone;錾́CC&markup;錾݂̑ɂĉeȂƂwiʁC&markup;錾݂Ȃ߂ɁCꂪBjB
<scrap lang="ebnf" id='fulldtd'>
<head>&standalone;錾</head>
<prodgroup pcw2="4" pcw4="19.5" pcw5="9">
<prod id='NT-SDDecl'><lhs>SDDecl</lhs>
<rhs>
<nt def="NT-S">S</nt> 
'standalone' <nt def='NT-Eq'>Eq</nt> "'" ('yes' | 'no') "'" 
</rhs>
<rhs>
| <nt def="NT-S">S</nt> 
'standalone' <nt def='NT-Eq'>Eq</nt> '"' ('yes' | 'no') '"'
</rhs><vc def='vc-check-rmd'/></prod>
</prodgroup>
</scrap></p>
<p>&standalone;錾ɂĂ, "<code>yes</code>"̒ĺC<termref def='dt-docent'></termref>̊OɁiDTD̊O&subset;ɁC͓&subset;QƂOp^̓ɁjCXML&processor;&application;ւƓnɉe&markup;錾݂ȂƂӖB"<code>no</code>"̒ĺC̊O&markup;錾݂邩C݂͑”\邱ƂӖB&standalone;錾́C<emph>錾</emph>Oɑ݂邩ǂɒӂ邱ƁBÔւ̎QƂɑ݂ĂĂC̎̂Iɐ錾ĂƂ́C&standalone;̏Ԃɂ͉e^ȂB</p>

<p>O&markup;錾݂Ȃ΁C&standalone;錾͈ӖȂBO&markup;錾݂C&standalone;錾݂Ȃꍇ́C<code>"no"</code> ̒l̐ݒ肷B</p>
<p>XML <code>standalone="no"</code> ݒ肳Ă̂́CASY&standalone;ɕϊłĆ̕Clbg[NzM&application;ɂƂĖ]܂ȂB</p>
<vcnote id='vc-check-rmd'>
<head>&standalone;錾</head>
<p>&standalone;錾́C炩̊O&markup;錾̂ꂩ錾ĂƂ́Cl "<code>no</code>" Ȃ΂ȂȂB
<ulist>
<item><p>a) <termref def="dt-default">&default;</termref>lt̑łāC̑KpvfClw肹ɕɌ́B</p></item>
<item><p>b) &magicents;ȊO̎̂łāC̎̂ɑ΂<termref def="dt-entref">Q</termref>ɏóB</p>
</item>
<item><p>c) l<titleref href='AVNormalize'>K</titleref>̑ΏۂƂȂ鑮łāCǨʂƂĕωlőɎw肳́B</p></item>
<item>
<p>d) <termref def="dt-elemcontent">vfe</termref>—vf^łāC󔒂̗vf^̂ꂩ̃CX^Xɒڌ́B
</p></item>
</ulist>
</p>
</vcnote>
<p>&standalone;錾tXML錾̗CɎB
<eg>&lt;?xml version="&XML.version;" standalone='yes'?></eg></p>
</div2>
<div2 id='sec-white-space'>
<head>󔒂̎戵</head>
<p>XMLҏWƂ́C&markup;ڗǂ݂₷邽߂ɁCg󔒁h(&space;C^uyы󔒍sB&TR-or-Rec;ł́CI[L<nt def='NT-S'>S</nt>ŕ\)gƕ֗ȂƂB̋󔒂́Czz&version;̈̕ꕔƂĊ܂߂邱ƂӐ}Ȃ̂𕁒ʂƂBCgӖ̂h󔒂łāCzz&version;ɎcȂ΂ȂȂ̂BႦ΁Cyу\[XR[hɂ󔒂B</p>
<p><termref def='dt-xml-proc'>XML&processor;</termref>́C&markup;ȊÔׂĂ̕Ĉ܂ܕύX&application;ɓnȂ΂ȂȂB<termref def='dt-validating'>&validating;XML&processor;</termref>́C<termref def="dt-elemcontent">vfe</termref>̒̋󔒂𑼂̔&markup;ʂC&application;ɗvfe̒̋󔒂dvłȂƂƂ`Ȃ΂ȂȂB</p>
<p>
"<code>xml:space</code>"Ƃʂ<termref def='dt-attr'></termref>𕶏ɑ}邱ƂɂāC󔒂dvƂӐ}Ă悢B̑KpvfɌ󔒂CAvP[VdvȂ̂ƂĈƂvCƂӐ}B</p>
<p>&valid;ȕł́C̑gpꍇ́C̑Ɠ悤<termref def="dt-attdecl">錾</termref>Ȃ΂ȂȂB錾Ƃ́C蓾l"<code>default</code>"y "<code>preserve</code>"Ƃ<termref def='dt-enumerated'>񋓌^</termref>łȂ΂ȂȂB
</p>
<p>l"<code>default</code>"́C&application;&default;̋󔒏[hC̗vfɓKp”\Ƃ邱ƂӖBl"<code>preserve</code>"́C&application;ׂĂ̋󔒂ۑ邱ƂӖB̐錾̈Ӑ}́C"<code>xml:space</code>" ̕ʂ̎wŏ㏑ȂCvf̓eɌ邷ׂĂ̗vfɓKpƉ߂B</p>
<p><termref def='dt-root'>&root;vf</termref>ɂ‚ẮC̑̒lw肷邩C͂̑&default-value;ꍇẮC&application;ɂ󔒂̎戵ɂ‚āCȂӐ}ȂƉ߂B</p>
<p>ɎB
<eg><![CDATA[    <!ATTLIST poem   xml:space (default|preserve) 'preserve'>]]></eg>
</p>
</div2>
<div2 id='sec-line-ends'>
<head>s̎戵</head>
<p>XML<termref def='dt-parsedent'>\&parsed-entity;</termref>́CʏRs[^̃t@CɕۑCҏW̕֋X̂߂ɕ̍sɕ邱ƂB̍śCʂ́C<code>CR</code> (#xD)R[hy <code>LF</code> (#xA)R[h̉炩̑gɂĕB</p>
<p><termref def='dt-app'>&application;</termref>̏ȒPɂ邽߁CO&parsed-entity;͓&parsed-entity;&literal;̒lC"<code>#xD#xA</code>" ̂Q̘AƂ&literal;<code>#xD</code>̒PƂ&literal;܂ޏꍇɁC<termref def='dt-xml-proc'>XML&processor;</termref>́C&application;ɒP̕<code>#xA</code>nȂ΂ȂȂ(̏́C͓ɑ݂sR[h\͂̑OɐK邱ƂɂāCeՂɎłB)B</p>
</div2>
<div2 id='sec-lang-tag'>
<head>&language-identification;</head>
<p>ɂẮC̒̕gǂȎRꖔ͌`ŏĂ邩邱ƂCɗ‚ƂB<!--ŎgpghƂẗӖ́C"Espa&#x00F1;ol" y"EBNF"̑oŗᎦӖƂB--><!-- x00F1: spanish's small ntilde--></p>
<!--; ̏́i΁j̕̕\Cтɏ񒊏ô߂̌ꊲE`ԑf͋yуeLXgubN̐`ɉeyڂ”\B-->
<p>XML̗vf̂“e͑lɂĎgp<!--R͌`-->w肷邽߂ɁC"<code>xml:lang</code>" ƂO̓ʂ<termref def="dt-attr"></termref>Cɑ}Ă悢B
<!--; ̑XMLK̈ꕔƂāCXML&application;̑݉^p߂邽߂ɒ`B-->
̒ĺC<bibref ref="RFC1766"/>gRFC1766F&language-identification;̂߂̃^OhɂċK肳&language-identification;R[hɏ]B
<scrap lang='ebnf'>
<head>&language-identification;</head>
<prod id='NT-LanguageID'><lhs>LanguageID</lhs>
<rhs><nt def='NT-Langcode'>Langcode</nt> 
('-' <nt def='NT-Subcode'>Subcode</nt>)*</rhs></prod>
<prod id='NT-Langcode'><lhs>Langcode</lhs>
<rhs><nt def='NT-ISO639Code'>ISO639Code</nt> | 
<nt def='NT-IanaCode'>IanaCode</nt> | 
<nt def='NT-UserCode'>UserCode</nt></rhs>
</prod>
<prod id='NT-ISO639Code'><lhs>ISO639Code</lhs>
<rhs>([a-z] | [A-Z]) ([a-z] | [A-Z])</rhs></prod>
<prod id='NT-IanaCode'><lhs>IanaCode</lhs>
<rhs>('i' | 'I') '-' ([a-z] | [A-Z])+</rhs></prod>
<prod id='NT-UserCode'><lhs>UserCode</lhs>
<rhs>('x' | 'X') '-' ([a-z] | [A-Z])+</rhs></prod>
<prod id='NT-Subcode'><lhs>Subcode</lhs>
<rhs>([a-z] | [A-Z])+</rhs></prod>
</scrap>
<nt def='NT-Langcode'>Langcode</nt>́Ĉǂł悢B
<ulist>
<item><p>a) <bibref ref="ISO639"/>g̖O\̂߂̃R[hhŋK肳2&language-code;</p></item>
<item><p>b) Internet Assigned Numbers Authority (IANA)œo^Ă&language-code;B́C擪 "<code>i-</code>" ("<code>I-</code>")Ŏn܂B</p></item>
<item><p>c) &user;ɂĒ߂ꂽ&language-code;C͎IȎgp̂߂ɕ̒c̊Ԃ茈߂R[hB́CIANAɂĕW͓o^R[hƂ̋邽߂ɁC擪"<code>x-</code>"  "<code>X-</code>" Ŏn߂B</p></item>
</ulist></p>
<p><nt def='NT-Subcode'>Subcode</nt>́CgĂ悢Bŏ̃TuR[h݂C̓e‚̕琬Ƃ́C<bibref ref="ISO3166"/>ISO3166́g\R[h(R[h)hłȂ΂ȂȂBŏ̃TuR[h3ȏォ琬Ƃ́C<nt def='NT-Langcode'>Langcode</nt>̐擪C"<code>x-</code>"  "<code>X-</code>"Ŏn܂ȂCw肵ɑ΂TuR[hƂCIANAɓo^ꂽ̂łȂ΂ȂȂB</p>
<p>&language-code;́Cł̕\LC&country-code;́C(݂Ȃ)啶ł̕\LsƂBCXMLɂ鑼̖OƂ͈قȂC̒lɂ‚ẮC啶yя̋ʂȂƂɒӂ邱ƁB</p>
<p>ɎB
<eg><![CDATA[<p xml:lang="en">The quick brown fox jumps over the lazy dog.</p>
<p xml:lang="en-GB">What colour is it?</p>
<p xml:lang="en-US">What color is it?</p>
<sp who="Faust" desc='leise' xml:lang="de">
  <l>Habe nun, ach! Philosophie,</l>
  <l>Juristerei, und Medizin</l>
  <l>und leider auch Theologie</l>
  <l>]]><!-- x00DF german's es-zet; x00FC german's u-umlaut -->durchaus studiert mit hei&#223;em Bem&#252;h'n.<![CDATA[</l>
  </sp>]]></eg></p>
<!--<p>xml:lang ̒ĺCvf̓ey(&default-value;Œ߂Ȃ)t[eLXg(CDATA)̒l‚̗vfւׂ̂Ă̑̒lɂ‚āC̗ɓKpB-->
<p><code>xml:lang</code>Ő錾Ӑ}́C<code>xml:lang</code>̕ʂ̎wŏ㏑ȂCw肵vf̓eɊ܂ނׂĂ̗vfɓKpB</p>
<!--vfɂ xml:lang ̒l߂Ă炸CDTDɂĂ&default-value;߂ĂȂꍇC̗vfxml:lang ̒ĺCevfł̒l݂ꍇ́CpB ̗ɂ‚<term>ƂO̐p\vf́Cxml:lang̒lɊւẮCۏClB

  <p xml:lang="en">Here the keywords are
  <term xml:lang="en">shift</term> and
  <term>reduce</term>. ...</p>

XML&processor;ł͂Ȃ&application;C̑ľpɂ‚ĐӔCB
-->
<p>
&valid;ȕɂẮC&TR-or-Rec;̑̏ꏊŋK肷ƂC̑K錾Ȃ΂ȂȂBʏC錾́Č`ƂB
<eg>xml:lang  NMTOKEN  #IMPLIED</eg>
KvȂ΁C&default-value;^Ă悢BpƂwp̃tX̎Wł́CyђpŋLq΁Cxml:lang ̂Ƃɐ錾邱ƂƂȂB
<eg><![CDATA[    <!ATTLIST poem   xml:lang NMTOKEN 'fr'>
    <!ATTLIST gloss  xml:lang NMTOKEN 'en'>
    <!ATTLIST note   xml:lang NMTOKEN 'en'>]]></eg>
</p>
<!--
DTD̐݌v҂́CXNvg(yт̔h)ɕۂĈ̂ł͂ȂCXNvgyь𓯎ň̂KȏꍇCꑮƓlɃXNvg݂ΗLpƎvȂBNvfɂāCQƂꂽ̓Nꂽ\[Xɂ(v)(ꍇɂĂ͕)\vf`̂]܂BC&application;́C&TR-or-Rec;K肷͈͊OƂB-->
</div2>
</div1>
<!-- &Elements; -->

<div1 id='sec-logical-struct'>
<head>_\</head>

<p><termdef id="dt-element" term="Element">Ȃ<termref def="dt-xml-doc">XML</termref>Cˆȏ<term>vf</term>܂ށBvf̋E, <termref def="dt-stag">Jn^O</termref>y<termref def="dt-etag">I^O</termref>ɂċ؂Bvf<termref def="dt-empty"></termref>vf̂Ƃ́C<termref def="dt-eetag">vf^O</termref>ŎBeX̗vf́C^Bvf^͖O(&identifier;(generic identifier)GIƌĂԂƂB)ɂ&identified;Bvf́C‚̑‚ƂłB</termdef>́C<termref def="dt-attrname">O</termref>y<termref def="dt-attrval">l</termref>B</p>

<scrap lang='ebnf'><head>vf</head>
<prod id='NT-element'><lhs>element</lhs>
<rhs><nt def='NT-EmptyElemTag'>EmptyElemTag</nt></rhs>
<rhs>| <nt def='NT-STag'>STag</nt> <nt def='NT-content'>content</nt> 
<nt def='NT-ETag'>ETag</nt></rhs><wfc def='GIMatch'/></prod>
</scrap>
<p>&TR-or-Rec;́Cvf^yё̈ӖCgp@C(\Ɋւ邱Ƃ)Oɐ^ȂBC擪<code>(('X'|'x')('M'|'m')('L'|'l'))</code>&match;閼ÓC̔Ŗ͍̔ł̂&TR-or-Rec;ł̕Ŵ߂ɗ\񂷂B</p>

<wfcnote id='GIMatch'><head>vf^&match;</head>
<p>vf̏I^O<nt def='NT-Name'>O</nt>́C̗vf̊Jn^Oɂ^&match;Ȃ΂ȂȂB</p>
</wfcnote>

<div2 id='sec-starttags'>
<head>Jn^OCI^Oyыvf^O</head>
<p><termdef id="dt-stag" term="Start-Tag">łȂCӂXMLvf̎n܂́C<term>Jn^O</term>ɂ&markup;B
<scrap lang='ebnf'><head>Jn^O</head>
<prodgroup pcw2="6" pcw4="15" pcw5="11.5">
<prod id='NT-STag'><lhs>STag</lhs><rhs>'&lt;' <nt def='NT-Name'>Name</nt> (<nt def='NT-S'>S</nt> <nt def='NT-Attribute'>Attribute</nt>)* <nt def='NT-S'>S</nt>? '>'</rhs><wfc def="uniqattspec"/></prod>
<prod id='NT-Attribute'><lhs>Attribute</lhs><rhs><nt def='NT-Name'>Name</nt> <nt def='NT-Eq'>Eq</nt> <nt def='NT-AttValue'>AttValue</nt></rhs><vc def='ValueType'/><wfc def='NoExternalRefs'/><wfc def='CleanAttrVals'/></prod>
</prodgroup>
</scrap>
Jn^OyяI^O<nt def='NT-Name'>Name</nt>́Cvf<term>^</term>\킷B</termdef><termdef id="dt-attr" term="Attribute"><nt def='NT-Name'>Name</nt>y<nt def='NT-AttValue'>AttValue</nt>̑΂vf<term>w</term>Ƃ</termdef>C<termdef id="dt-attrname" term="Attribute Name">X̑΂ɂ<nt def='NT-Name'>Name</nt>́C<term></term></termdef>y<termdef id="dt-attrval" term="Attribute Value"><nt def='NT-AttValue'>AttValue</nt>̓e(؂q<code>'</code><code>"</code>̊Ԃ&string;)<term>l</term>ƂB</termdef></p>

<wfcnote id='uniqattspec'><head>ẅӐ</head>
<p>Jn^O͋vf^Oł́C̑QxȏoĂ͂ȂȂB</p></wfcnote>
<vcnote id='ValueType'><head>ľ^</head>
<p>͐錾ĂȂ΂ȂȂBľ^́C̑ɑ΂Đ錾^łȂ΂ȂȂ(̌^ɂ‚ẮC<titleref href='AttDecls'>Xg錾</titleref>ɂ‚Ă̋KQƁB)B</p></vcnote>
<wfcnote id='NoExternalRefs'><head>Ôւ̎QƂȂ</head>
<p>lɂ́CÔւ̒ړI͊ԐړIȎQƂ܂ނƂ͂łȂB</p></wfcnote>
<wfcnote id='CleanAttrVals'><head>l<code>&lt;</code>܂܂Ȃ</head>
<p>lŒړI͊ԐړIɎQƂ(<code>&amp;lt;</code>B)<termref def='dt-repltext'>&replacement-text;</termref>ɂ́C<code>&lt;</code>܂ł͂ȂȂB</p></wfcnote>

<p>Jn^O̗CɎB
<eg>&lt;termdef id="dt-dog" term="dog"></eg></p>
<p><termdef id="dt-etag" term="End Tag">Jn^OŎn܂vf̏ÍC<term>I^O</term>&markup;Ȃ΂ȂȂB̏I^ÓCΉJn^O̗vf^ƓOB
<scrap lang='ebnf'><head>I^O</head><prodgroup pcw2="6" pcw4="15" pcw5="11.5"><prod id='NT-ETag'><lhs>ETag</lhs><rhs>'&lt;/' <nt def='NT-Name'>Name</nt> <nt def='NT-S'>S</nt>? '>'</rhs></prod></prodgroup></scrap></termdef></p>
<p>I^O̗CɎB
<eg>&lt;/termdef></eg></p>

<p><termdef id="dt-content" term="Content">vf̊Jn^OƏI^OƂ̊Ԃ<termref def='dt-text'>eLXg</termref>C̗vf<term>e</term>ƂB
<scrap lang='ebnf'><head>vf̓e</head>
<prodgroup pcw2="6" pcw4="15" pcw5="11.5"><prod id='NT-content'><lhs>content</lhs><rhs>(<nt def='NT-element'>element</nt> | <nt def='NT-CharData'>CharData</nt> | <nt def='NT-Reference'>Reference</nt> | <nt def='NT-CDSect'>CDSect</nt> | <nt def='NT-PI'>PI</nt> | <nt def='NT-Comment'>Comment</nt>)*</rhs></prod></prodgroup></scrap></termdef></p>

<p><termdef id="dt-empty" term="Empty">vf<term></term>̂ƂC̗vf́CɏI^OŠJn^O͋vf^Oŕ\Ȃ΂ȂȂB</termdef><termdef id="dt-eetag" term="empty-element tag"><term>vf^O</term>́C̓ʂȌ`ƂB
<scrap lang='ebnf'><head>vf̂߂̃^O</head><prodgroup pcw2="6" pcw4="15" pcw5="11.5"><prod id='NT-EmptyElemTag'><lhs>EmptyElemTag</lhs><rhs>'&lt;' <nt def='NT-Name'>Name</nt> (<nt def='NT-S'>S</nt> <nt def='NT-Attribute'>Attribute</nt>)* <nt def='NT-S'>S</nt>? '/&gt;'</rhs><wfc def="uniqattspec"/></prod></prodgroup></scrap></termdef></p>

<!-- nF́gvf̂߂̃^O(tags for empty elements)h́gvf^O(empty-element tag)hƂׂƎv܂Cł傤 -->

<p>vf^ÓCeȂCӂ̗vf̕\ɗpłBvf^Oŕ\vfCL[[h<kw>EMPTY</kw>pĐ錾ȂƂ悢B</p>
<p>vf̗CɎB
<eg>&lt;IMG align="left" src="http://www.w3.org/Icons/WWW/w3c_home" />&lt;br>&lt;/br>&lt;br/></eg></p>
</div2>

<div2 id='elemdecls'><head>vf錾</head>
<p><termref def="dt-valid">&validity;</termref>ۏ؂邽߁Cvf錾yёXg錾p<termref def="dt-xml-doc">XML</termref><termref def="dt-element">vf</termref>̍\ɁC邱ƂłB</p>
<p>vf錾́Cvf<termref def="dt-content">e</termref>ɂ‚Ă̐ƂB</p>
<p>vf錾́Cvf<termref def="dt-parentchild">q</termref>Ƃďo”\ȗvf^ɂ‚āC邱ƂB&at-user-option;Cvf錾Ȃvf^̗vf錾ɂĎQƂ΁CXML&processor;́CxoĂ悢BC&error;Ƃ͂ȂB</p>

<p><termdef id="dt-eldecl" term="Element Type declaration"><term>vf^錾</term>́Č`ƂB
<scrap lang='ebnf'><head>vf^錾</head><prodgroup pcw2="5.5" pcw4="18" pcw5="9">
<prod id='NT-elementdecl'><lhs>elementdecl</lhs>
<rhs>'&lt;!ELEMENT' <nt def='NT-S'>S</nt> 
<nt def='NT-Name'>Name</nt> 
<nt def='NT-S'>S</nt> 
<nt def='NT-contentspec'>contentspec</nt>
<nt def='NT-S'>S</nt>? '>'</rhs>
<vc def='EDUnique'/></prod>
<prod id='NT-contentspec'><lhs>contentspec</lhs>
<rhs>'EMPTY' 
| 'ANY' 
| <nt def='NT-Mixed'>Mixed</nt> 
| <nt def='NT-children'>children</nt>
</rhs>
<vc def='elementvalid'/>
</prod>
</prodgroup>
</scrap>
ŁC<nt def='NT-Name'>Name</nt>́C錾Ăvf̌^ƂB</termdef></p>

<vcnote id='EDUnique'><head>vf錾̈Ӑ</head>
<p>vf^Qxȏ錾łȂB</p></vcnote>

<vcnote id='elementvalid'><head>vf&validity;</head>
<p>vf<!-- said to be -->&valid;Ƃ́C<nt def='NT-elementdecl'>elementdecl</nt>&match;錾łāC<nt def='NT-Name'>Name</nt>̗vf^&match;Ĉꂩ̏𖞂ꍇƂB<ulist>
<item><p>a) 錾<kw>EMPTY</kw>&match;Cvf<termref def='dt-content'>e</termref>ȂB</p></item>
<item><p>b) 錾<nt def='NT-children'>children</nt>&match;Cvf<termref def="dt-parentchild">qvf</termref>̕тCef̐K\ɂĐ錾ɑB</p></item>
<item><p>c) 錾<nt def='NT-Mixed'>mixed</nt>&match;Cvf̓e<termref def='dt-chardata'>f[^</termref>y<termref def='dt-parentchild'>qvf</termref>ȂBqvf̗vf^́Cvf̓efɏo閼O&match;B</p></item>
<item><p>d) 錾<kw>ANY</kw>&match;<termref def='dt-parentchild'>qvf</termref>̗vf^錾ĂB</p></item></ulist>

</p></vcnote>
<!-- with the new VC, I don't think the next few paras add anything -TWB
<p><termdef id="dt-model" term="content model">An element can declared using a <term>content model</term>, in which case its content can be categorized as <termref def="dt-elemcontent">element content</termref> or <termref def='dt-mixed'>mixed content</termref>, as explained below.</termdef></p>
<p>An element whose type declared using the keyword <kw>EMPTY</kw> must be <termref def="dt-empty">empty</termref> and may be tagged using an <termref def="dt-eetag">empty-element tag</termref> when it appears in the document.</p>
<p>If an element type is declared using the keyword <kw>ANY</kw>, then there are no validity constraints on its content:  it may contain <termref def='dt-parentchild'>child elements</termref> of any type and number, interspersed with character data.</p> -->

<p>vf錾̗CɎB
<eg>
&lt;!ELEMENT br EMPTY>
&lt;!ELEMENT p (#PCDATA|emph)* >
&lt;!ELEMENT %name.para; %content.para; >
&lt;!ELEMENT container ANY>
</eg></p>

<div3 id='sec-element-content'><head>vfe</head>

<p><termdef id='dt-elemcontent' term='Element content'>^̗vf<termref def='dt-parentchild'>q</termref>vf܂(f[^܂܂ȂB)ƂC̗vf<termref def="dt-stag">^</termref>́C<term>vfe</term>CƂB</termdef>̏ꍇĆCef܂ށBef́Cqvf̌^yюqvf̏o𐧌䂷ȒPȕ@ƂB̕@́C&content-particle;(<nt def='NT-cp'>cp</nt>s)ȂB&content-particle;́COC&content-particle;̑IXg&content-particle;̗񃊃Xg\B
<scrap lang='ebnf'><head>vfef</head><prodgroup pcw2="5.5" pcw4="16" pcw5="11">
<prod id='NT-children'><lhs>children</lhs><rhs>(<nt def='NT-choice'>choice</nt> | <nt def='NT-seq'>seq</nt>) ('?' | '*' | '+')?</rhs></prod><prod id='NT-cp'><lhs>cp</lhs><rhs>(<nt def='NT-Name'>Name</nt> | <nt def='NT-choice'>choice</nt> | <nt def='NT-seq'>seq</nt>) ('?' | '*' | '+')?</rhs></prod>
<prod id='NT-choice'><lhs>choice</lhs><rhs>'(' <nt def='NT-S'>S</nt>? cp ( <nt def='NT-S'>S</nt>? '|' <nt def='NT-S'>S</nt>? <nt def='NT-cp'>cp</nt> )*<nt def='NT-S'>S</nt>? ')'</rhs><vc def='vc-PEinGroup'/></prod>
<prod id='NT-seq'><lhs>seq</lhs><rhs>'(' <nt def='NT-S'>S</nt>? cp ( <nt def='NT-S'>S</nt>? ',' <nt def='NT-S'>S</nt>? <nt def='NT-cp'>cp</nt> )*<nt def='NT-S'>S</nt>? ')'</rhs><vc def='vc-PEinGroup'/></prod>
<!-- <prod id='NT-cps'><lhs>cps</lhs><rhs><nt def='NT-S'>S</nt>? <nt def='NT-cp'>cp</nt> <nt def='NT-S'>S</nt>?</rhs></prod>
<prod id='NT-choice'><lhs>choice</lhs><rhs>'(' <nt def='NT-S'>S</nt>? <nt def='NT-ctokplus'>ctokplus</nt> (<nt def='NT-S'>S</nt>? '|' <nt def='NT-S'>S</nt>? <nt def='NT-ctoks'>ctoks</nt>)* <nt def='NT-S'>S</nt>? ')'</rhs></prod>
<prod id="NT-ctokplus"><lhs>ctokplus</lhs><rhs><nt def="NT-cps">cps</nt>('|' <nt def="NT-cps">cps</nt>)+</rhs></prod>
<prod id="NT-ctoks"><lhs>ctoks</lhs><rhs><nt def="NT-cps">cps</nt>('|' <nt def="NT-cps">cps</nt>)*</rhs></prod>
<prod id='NT-seq'><lhs>seq</lhs><rhs>'(' <nt def='NT-S'>S</nt>?<nt def='NT-stoks'>stoks</nt> (<nt def='NT-S'>S</nt>? ',' <nt def='NT-S'>S</nt>? <nt def='NT-stoks'>stoks</nt>)*<nt def='NT-S'>S</nt>? ')'</rhs></prod>
<prod id="NT-stoks"><lhs>stoks</lhs><rhs><nt def="NT-cps">cps</nt>(',' <nt def="NT-cps">cps</nt>)*</rhs></prod>
-->
</prodgroup></scrap>
ŁC<nt def='NT-Name'>Name</nt>́C<termref def="dt-parentchild">q</termref>ƂďoĂ悢vf̌^B̕@őIXgʒuł́CIXĝ&content-particle;<termref def="dt-elemcontent">vfe</termref>̒ɌĂ悢B񃊃XgɌ&content-particle;́CXgŎw肷鏇Ԃ̂ƂɁC<termref def="dt-elemcontent">vfe</termref>ɌȂ΂ȂȂBO̓XǧɏoIvV̕<!-- nFcharacter𕶎Ɩ󂵂܂ -->́CXg̗vf&content-particle;C1ȏCӂ̉(<code>+</code>)C0ȏCӂ̉(<code>*</code>)01(<code>?</code>)o”\ȂƂK肷BŎ\yшӖ́C&TR-or-Rec;ɂ鐶Kŗp̂ƓƂB</p>

<!-- nF̕ł́Cgnamelisťɑhglist̏oK肷hƂāCnamȅoK肷Ƃ͏Ă܂BCKvƍl܂B -->

<p>vf̓eef&match;̂́CCIyьJԂZqɂāCe̗̒vfƓef̗vf^Ƃ&match;ȂCef̈‚̃pXǂƂɌB<termref def='dt-compat'>݊̂</termref>C̗vfCefɂvf^̏̕oʒu&match;邱Ƃ́C&error;ƂBڍׂȋKɂ‚ẮC<titleref xml-link="simple" href="determinism">Ief</titleref>̍QƁB
<!-- appendix <specref ref="determinism"/>. -->
<!-- appendix on deterministic content models. -->
</p>

<vcnote id='vc-PEinGroup'>
<head>O[vyуp^̂ȓqȂĂ邱</head>
<p>p^̂<termref def='dt-repltext'>&replacement-text;</termref>́C&parenthesis;ň͂܂ꂽO[vɂāCȓq\Ȃ΂ȂȂB‚܂C<nt def='NT-choice'>I</nt>C<nt def='NT-seq'></nt><nt def='NT-Mixed'></nt>iɁC&left-parenthesis;&right-parenthesis;̂ꂩ<termref def='dt-PERef'>p^</termref>&replacement-text;Ɋ܂΁C&replacement-text;Ɋ܂܂Ȃ΂ȂȂB</p>
<p><termref def='dt-interop'>݉^p̂</termref>Cp^̎QƂ<nt def='NT-choice'>I</nt>C<nt def='NT-seq'></nt><nt def='NT-Mixed'></nt>eɊ܂܂΁C&replacement-text;͋łȂƂ]܂C&replacement-text;̐擪yі̋󔒂łȂ́CRlN^(<code>|</code><code>,</code>)łȂ悢B
</p>
</vcnote>
<p>vfef̂‚̗CɎB
<eg>&lt;!ELEMENT spec (front, body, back?)>
&lt;!ELEMENT div1 (head, (p | list | note)*, div2*)>
&lt;!ELEMENT dictionary-body (%div.mix; | %dict.mix;)*></eg></p>
</div3>

<div3 id='sec-mixed-content'>
<head>&mixed-content;</head>
 
<p><termdef id='dt-mixed' term='Mixed Content'>vf^̗vfɁC<termref def="dt-parentchild">q</termref>vfɍ݂ĕf[^܂܂”\ƂC̗vf<termref def='dt-stag'>^</termref>́C<term>&mixed-content;</term>‚ƂB</termdef>̏ꍇCqvf̌^ɂ‚Ă̐񂪑݂Ă悢<!-- nFgmay be constrainedhPɁu񂳂vƖ󂵂܂B -->Cqvf̏͏o񐔂ɂ‚Ă̐͂ȂƂB
<scrap lang='ebnf'>
<head>&mixed-content;錾</head>
<prodgroup pcw2="5.5" pcw4="16" pcw5="11">
<prod id='NT-Mixed'><lhs>Mixed</lhs>
<rhs>'(' <nt def='NT-S'>S</nt>? 
'#PCDATA'
(<nt def='NT-S'>S</nt>? 
'|' 
<nt def='NT-S'>S</nt>? 
<nt def='NT-Name'>Name</nt>)* 
<nt def='NT-S'>S</nt>? 
')*' </rhs>
<rhs>| '(' <nt def='NT-S'>S</nt>? '#PCDATA' <nt def='NT-S'>S</nt>? ')'
</rhs><vc def='vc-PEinGroup'/>
<vc def='vc-MixedChildrenUnique'/>
</prod>
<!--
<prod id="NT-Mtoks"><lhs>Mtoks</lhs>
<rhs><nt def="NT-Name">Name</nt>
(<nt def='NT-S'>S</nt>? 
'|' 
<nt def='NT-S'>S</nt>? 
<nt def="NT-Name">Name</nt>)*
</rhs>
</prod>
-->
</prodgroup>
</scrap>
ŁC<nt def='NT-Name'>Name</nt>́CqƂďoĂ悢vf̌^B
</p>

<vcnote id='vc-MixedChildrenUnique'>
<head>vf^̏d̋֎~</head>
<p>‚&mixed-content;錾ɁCOoĂ͂ȂȂB
</p></vcnote>
<p>&mixed-content;錾̗CɎB
<eg>&lt;!ELEMENT p (#PCDATA|a|ul|b|i|em)*>
&lt;!ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* >
&lt;!ELEMENT b (#PCDATA)></eg></p>
</div3>
</div2>


<div2 id='attdecls'>
<head>Xg錾</head>
<p>
<termref def="dt-attr"></termref>́COyђl̑΂<termref def="dt-element">vf</termref>Ɋ֘At邽߂ɗpBẃC<termref def="dt-stag">Jn^O</termref><termref def="dt-eetag">vf</termref>^Oł”\ƂBāCF邽߂̐ḰC<titleref href='sec-starttags'>Jn^O</titleref>ɂ‚Ă̋KŎBXg錾́C̖ړIŗpB
<ulist>
<item><p>a) vf^ɓKp鑮̏WK肷B</p></item>
<item><p>b) ւ̌^ݒ肷B</p></item>
<item><p>c) <termref def="dt-default">&default-value;</termref>K肷B</p></item>
</ulist>
</p>
<p>
<termdef id="dt-attdecl" term="Attribute-List Declaration">
<term>Xg錾</term>́Cvf^Ɗ֘Atꂽeɑ΂COCf[^^y(݂)&default-value;K肷B
<scrap lang='ebnf'>
<head>Xg錾</head>
<prod id='NT-AttlistDecl'><lhs>AttlistDecl</lhs>
<rhs>'&lt;!ATTLIST' <nt def='NT-S'>S</nt> 
<nt def='NT-Name'>Name</nt> 
<nt def='NT-AttDef'>AttDef</nt>*
<nt def='NT-S'>S</nt>? '&gt;'</rhs>
</prod>
<prod id='NT-AttDef'><lhs>AttDef</lhs>
<rhs><nt def='NT-S'>S</nt> <nt def='NT-Name'>Name</nt> 
<nt def='NT-S'>S</nt> <nt def='NT-AttType'>AttType</nt> 
<nt def='NT-S'>S</nt> <nt def='NT-Default'>Default</nt></rhs>
</prod>
</scrap>

<nt def='NT-AttlistDecl'>AttlistDecl</nt>Kɑ݂<nt def="NT-Name">Name</nt>́Cvf^̖OƂB&at-user-option;C錾ĂȂvf^ɑ΂錾Ȃ΁CXML&processor;́CxoĂ悢BC&error;Ƃ͂ȂB
<nt def='NT-AttDef'>AttDef</nt><nt def='NT-Name'>Name</nt>́C̖OƂB
</termdef>
</p>
<p>
vfɑ΂āC<nt def='NT-AttlistDecl'>AttlistDecl</nt>^ꍇC炷ׂĂ̓e̓}[WBvf^̓ɁC̒`^ꍇɂ́Cŏ̐錾LƂC̐錾͖B<termref def='dt-interop'>݉^p̂߂</termref>CDTD̍쐬҂́Cvf^ɂ͍X‚̑Xg錾^ȂC鑮ɂ͍X‚̑`^ȂCyтׂĂ̑Xg錾ɂ͏ȂƂ‚̑`^CƂIĂ悢B݉^p̂߂ɁCXML&processor;́C&at-user-option;Cvf^ɕ̑Xg錾^C鑮ɕ̑`^肵ƂɁCxoĂ悢BĆC&error;Ƃ͂ȂB
</p>

<div3 id='sec-attribute-types'>
<head>̌^</head>
<p>
XML̑̌^́CRނƂB́C&string;^C&token;^yї񋓌^ƂB&string;^́ClƂĔCӂ&string;ƂB&token;^́CɎyшӖɊւlXȐB

<scrap lang='ebnf'>
<head>Attribute Types</head>
<prodgroup pcw4="14" pcw5="11.5">
<prod id='NT-AttType'><lhs>AttType</lhs>
<rhs><nt def='NT-StringType'>StringType</nt> 
| <nt def='NT-TokenizedType'>TokenizedType</nt> 
| <nt def='NT-EnumeratedType'>EnumeratedType</nt>
</rhs>
</prod>
<prod id='NT-StringType'><lhs>StringType</lhs>
<rhs>'CDATA'</rhs>
</prod>
<prod id='NT-TokenizedType'><lhs>TokenizedType</lhs>
<rhs>'ID'</rhs>
<vc def='id'/>
<vc def='one-id-per-el'/>
<vc def='id-default'/>
<rhs>| 'IDREF'</rhs>
<vc def='idref'/>
<rhs>| 'IDREFS'</rhs>
<vc def='idref'/>
<rhs>| 'ENTITY'</rhs>
<vc def='entname'/>
<rhs>| 'ENTITIES'</rhs>
<vc def='entname'/>
<rhs>| 'NMTOKEN'</rhs>
<vc def='nmtok'/>
<rhs>| 'NMTOKENS'</rhs>
<vc def='nmtok'/></prod>
</prodgroup>
</scrap>
</p>

<vcnote id='id' >
<head>ID</head>
<p>
̌^̒ĺCK<code>Name</code>&match;Ȃ΂ȂȂB‚XMLł́C‚̖OČ^̒lƂĕ񌻂Ă͂ȂȂB‚܂CID̒ĺCvfӂ&identify;Ȃ΂ȂȂB
</p>
</vcnote>
<vcnote id='one-id-per-el'>
<head>1vfƂ1ID</head>
<p>
vf^́CIDlĂ͂ȂȂB
</p>
</vcnote>
<vcnote id='id-default'>
<head>ID&default;</head>
<p>
ID́C&default;ƂāC<code>#IMPLIED</code><code>#REQUIRED</code>錾Ȃ΂ȂȂB
</p>
</vcnote>
<vcnote id='idref'>
<head>IDREF</head>
<p>
<kw>IDREF</kw>^̒ĺCK<nt def="NT-Name">Name</nt>&match;Ȃ΂ȂȂB<kw>IDREFS</kw>^̒ĺCK<nt def="NT-Names">Names</nt>&match;Ȃ΂ȂȂBeX<nt def='NT-Name'>Name</nt>́CXMLɑ݂vfID̒l&match;Ȃ΂ȂȂB‚܂C<kw>IDREF</kw>̒ĺCID̒l&match;Ȃ΂ȂȂB
</p>
</vcnote>
<vcnote id='entname'>
<head>̖</head>
<p>
<kw>ENTITY</kw>^̒ĺCK<nt def="NT-Name">Name</nt>&match;Ȃ΂ȂȂB<kw>ENTITIES</kw>^̒ĺCK<nt def="NT-Names">Names</nt>&match;Ȃ΂ȂȂBeX<nt def="NT-Name">Name</nt>́C<termref def="dt-doctype">DTD</termref>Ő錾<termref def="dt-unparsed">&unparsed-entity;</termref>&match;Ȃ΂ȂȂB
</p>
</vcnote>
<vcnote id='nmtok'>
<head>O&token;</head>
<p>
<kw>NMTOKEN</kw>^̒ĺCI[L<termref def="NT-Nmtoken">Nmtoken</termref>&match;&string;\Ȃ΂ȂȂB<kw>NMTOKENS</kw>^̒ĺCI[L<termref def="NT-Nmtokens">Nmtokens</termref>&match;&string;\Ȃ΂ȂȂB
</p>
</vcnote>
<p>
XML&processor;́C&application;ɑlnOɁC<titleref href="AVNormalize">l̐K</titleref>ŋK肷ƂɁCl𐳋KȂ΂ȂȂB
</p>
<p>
<termdef id='dt-enumerated' term='Enumerated Attribute Values'><term>񋓌^̑</term>́C錾l̈‚邱ƂłB</termdef>񋓌^ɂ́C2ނB

<scrap lang='ebnf'>
<head>񋓑̌^</head>
<prod id='NT-EnumeratedType'><lhs>EnumeratedType</lhs> 
<rhs><nt def='NT-NotationType'>NotationType</nt> 
| <nt def='NT-Enumeration'>Enumeration</nt>
</rhs></prod>
<prod id='NT-NotationType'><lhs>NotationType</lhs> 
<rhs>'NOTATION' 
<nt def='NT-S'>S</nt> 
'(' 
<nt def='NT-S'>S</nt>?  
<nt def='NT-Name'>Name</nt> 
(<nt def='NT-S'>S</nt>? '|' <nt def='NT-Name'>Name</nt>)*
<nt def='NT-S'>S</nt>? ')'
</rhs>
<vc def='notatn' /></prod>
<prod id='NT-Enumeration'><lhs>Enumeration</lhs> 
<rhs>'(' <nt def='NT-S'>S</nt>?
<nt def='NT-Nmtoken'>Nmtoken</nt> 
(<nt def='NT-S'>S</nt>? '|' 
<nt def='NT-S'>S</nt>?  
<nt def='NT-Nmtoken'>Nmtoken</nt>)* 
<nt def='NT-S'>S</nt>? 
')'</rhs> 
<vc def='enum'/></prod>
</scrap>
</p>

<vcnote id='notatn'>
<head>L@</head>
<p>̌^̒ĺC錾Ă<titleref href='Notations'>L@</titleref>̖Ö‚&match;Ȃ΂ȂȂB‚܂C錾ɑ݂L@́CׂĐ錾ĂȂ΂ȂȂB
</p>
</vcnote>
<vcnote id='enum'>
<head></head>
<p>
̌^̒ĺC錾ɑ݂<nt def='NT-Nmtoken'>Nmtoken</nt>&token;̈‚&match;Ȃ΂ȂȂB
</p>
</vcnote>
<p>
<termref def='dt-interop'>݉^p̂</termref>C<nt def='NT-Nmtoken'>Nmtoken</nt>́CPvf^̗񋓌^̑ƂāC񌻂Ȃ悢B
</p>
</div3>

<div3 id='sec-attr-defaults'>
<head>&default;</head>
 
<p>
<termref def="dt-attdecl"></termref>́C̎w肪K{ǂɂ‚Ă̏^BK{łȂꍇɂ́Cőw肵ȂƂCXML&processor;̏@̏^B

<scrap lang='ebnf'>
<head>&default;</head>
<prodgroup pcw4="14" pcw5="11.5">
<prod id='NT-Default'><lhs>Default</lhs>
<rhs>'#REQUIRED' 
|&nbsp;'#IMPLIED' </rhs>
<rhs>| (('#FIXED' S)? <nt def='NT-AttValue'>AttValue</nt>)</rhs>
<vc def='defattrvalid'/>
<wfc def="CleanAttrVals"/>
</prod>
</prodgroup>
</scrap>
<!-- improved by bosak
<scrap lang='ebnf'>
<head>Attribute Defaults</head>
<prod id='NT-Default'><lhs>Default</lhs>
<rhs>'#REQUIRED' 
|&nbsp;'#IMPLIED' </rhs>
<vc def='defattrvalid'/>
<wfc def="CleanAttrVals"/>
<rhs>| (('#FIXED' S)? <nt def='NT-AttValue'>AttValue</nt>)</rhs>
</prod>
</scrap>-->
</p>

<vcnote id='defattrvalid'>
<head>&default;̐</head>
<p>
錾&default-value;́C錾^̎吧𖞂Ȃ΂ȂȂB
</p>
</vcnote>
<p>
<kw>#REQUIRED</kw>w肵ƂC̗vf^<termref def="dt-stag">Jn^O</termref>łāC̑ɒl^Ȃ̂XML&processor;‚Ȃ΁C̕<termref def="dt-valid">&valid;</termref>Ƃ͂ȂB<kw>#IMPLIED</kw>w肵ƂC̑ȗCXML&processor;́Clw肵ȂƂAvP[Vɓ`Ȃ΂ȂȂB̂ƂC&application;̐Uɂ‚Ă̐͂ȂB
</p>
<p>
<termdef id="dt-default" term="Attribute Default">
<kw>#REQUIRED</kw>ł<kw>#IMPLIED</kw>łȂƂɂ́C<nt def='NT-AttValue'>AttValue</nt>̒lC<term>&default-value;</term>ƂȂB<kw>#FIXED</kw>̏ꍇC&default-value;ƈقȂlw肳΁Ć̕C<termref def="dt-valid">&valid;</termref>ƂȂB&default-value;錾ĂꍇC̑̏ȗ‚C錾&default-value;𑮐lɎw肵ĂƂāCXML&processor;͐U镑Ƃ]܂B
</termdef></p>

<p>Xg錾̗CɎB

<eg>&lt;!ATTLIST termdef
          id      ID      #REQUIRED
          name    CDATA   #IMPLIED>
&lt;!ATTLIST list
          type    (bullets|ordered|glossary)  "ordered">
&lt;!ATTLIST form
          method  CDATA   #FIXED "POST"></eg></p>
</div3>

<div3 id='AVNormalize'>
<head>l̐K</head>
<p>
XML&processor;́Cl&application;ɓnOɁĈƂɐKȂ΂ȂȂB

<ulist>
<item>
<p>a) ܂Clyт̒̎̓ŁCs͍sE(̓VXeɂĂ̓R[hE)ƂĎg&string;C&space-character;(#x20)‚ɒuȂ΂ȂȂ(u<titleref xml-link="simple" href="sec-line-ends"></titleref>vQƂ̂ƁB)B
</p></item>
<item>
<p>b) ɁCQƋyѓ&parsed-entity;ւ̎QƂ́CWJȂ΂ȂȂBÔւ̎QƂ́C&error;ƂB
</p></item>
<item>
<p>c) ŌɁČ^<kw>CDATA</kw>łȂ΁C&string;́Cׂ&space-character;(#x20)‚ɐKCc̋󔒕́C폜Ȃ΂ȂȂB
</p></item>
</ulist>

&non-validating;&parser;́C錾‚Ȃ́CׂāC<kw>CDATA</kw>錾ĂƂĈƂ]܂B</p>
</div3>
</div2>

<div2 id='sec-condition-sect'>
<head>tZNV</head>
<p>
<termdef id='dt-cond-section' term='conditional section'>
<term>tZNV</term>Ƃ́C<termref def='dt-doctype'>^錾̊O&subset;</termref>̈ꕔƂCL[[h̎wɂāCDTD̘_\Ɋ܂߂C肷镔ƂB
</termdef>

<scrap lang='ebnf'>
<head>tZNV</head>
<prodgroup pcw2="9" pcw4="14.5">
<prod id='NT-conditionalSect'><lhs>conditionalSect</lhs>
<rhs><nt def='NT-includeSect'>includeSect</nt>
| <nt def='NT-ignoreSect'>ignoreSect</nt>
</rhs>
</prod>
<prod id='NT-includeSect'><lhs>includeSect</lhs>
<rhs>'&lt;![' S? 'INCLUDE' S? '[' 
<!-- (<nt def='NT-markupdecl'>markupdecl</nt> 
      | <nt def="NT-conditionalSect">conditionalSect</nt>  
      | <nt def="NT-S">S</nt>)*
-->
<nt def="NT-extSubset">extSubset</nt>
']]&gt;'
</rhs>
</prod>
<prod id='NT-ignoreSect'><lhs>ignoreSect</lhs>
<rhs>'&lt;![' S? 'IGNORE' S? '[' 
<nt def="NT-ignoreSectContents">ignoreSectContents</nt>*
']]&gt;'</rhs>
</prod>
<prod id='NT-ignoreSectContents'><lhs>ignoreSectContents</lhs>
<rhs><nt def='NT-Ignore'>Ignore</nt>
('&lt;![' <nt def='NT-ignoreSectContents'>ignoreSectContents</nt>
']]&gt;' 
<nt def='NT-Ignore'>Ignore</nt>)*</rhs></prod>
<prod id='NT-Ignore'><lhs>Ignore</lhs>
<rhs><nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* ('&lt;![' | ']]&gt;') 
<nt def='NT-Char'>Char</nt>*)
</rhs></prod>
<!--<rhs>
((<nt def='NT-SkipLit'>SkipLit</nt> 
| <nt def='NT-Comment'>Comment</nt>
| <nt def='NT-PI'>PI</nt>) - 
(<nt def='NT-Char'>Char</nt>* ']]&gt;' <nt def='NT-Char'>Char</nt>*))
| ('&lt;![' <nt def='NT-ignoreSectContents'>ignoreSectContents</nt>*
']]&gt;')
</rhs>
<rhs>
| (<nt def='NT-Char'>Char</nt> - (']' | [&lt;'"]))
</rhs>
<rhs>
| ('&lt;!' (<nt def='NT-Char'>Char</nt> - ('-' | '[')))
</rhs>-->
</prodgroup>
</scrap>
</p>

<p>tZNV́CDTD̓&subset;yъO&subset;ƓlɁCSȐ錾CRg͓qɂȂtZNVC‚܂ł悢B̊ԂɁC󔒂Ă悢B
</p>
<p>
tZNṼL[[h<code>INCLUDE</code>Ȃ΁CXML&processor;́C̏tZNV̓eC̈ꕔƂĈȂ΂ȂȂBtZNṼL[[h<code>IGNORE</code>Ȃ΁C̏tZNV̓éC̈ꕔƂĈȂB\͂𐳂s߂ɂ́CtZNV(IGNORE)ɊւĂCeǂ܂Ȃ΂ȂȂƂɒӂ邱ƁB́CqɂȂtZNV‚C()łȌtZNV𐳂o邽߂ƂBL[[h<code>INCLUDE</code>Ƃ鏬ȏtZNVCL[[h<code>IGNORE</code>Ƃ傫ȏtZNVɊ܂܂Ȃ΁COyѓ̏tZNV̗ƂB
</p>
<p>
tZNṼL[[hp^̎QƂȂ΁CXML&processor;͏tZNV̈𔻒fOɁC̃p^̂WJȂ΂ȂȂB
</p>

<p>ɎB

<eg>&lt;!ENTITY % draft 'INCLUDE' >
&lt;!ENTITY % final 'IGNORE' >
 
&lt;![%draft;[
&lt;!ELEMENT book (comments*, title, body, supplements?)>
]]&gt;
&lt;![%final;[
&lt;!ELEMENT book (title, body, supplements?)>
]]&gt;
</eg>
</p>
</div2>
<!-- 
<div2 id='sec-pass-to-app'>
<head>XML Processor Treatment of Logical Structure</head>
<p>When an XML processor encounters a start-tag, it must make
at least the following information available to the application:
<ulist>
<item>
<p>the element type's generic identifier</p>
</item>
<item>
<p>the names of attributes known to apply to this element type
(validating processors must make available names of all attributes
declared for the element type; non-validating processors must
make available at least the names of the attributes for which
values are specified.
</p>
</item>
</ulist>
</p>
</div2>
--> 

</div1>
<!-- &Entities; -->

<div1 id='sec-physical-struct'>
<head>\</head>
 
<p>
<termdef id="dt-entity" term="Entity">
XMĹCˆȏ̋LPʂ\B̋LPʂC<term></term>ƂB̂́C<term>e</term>C(ȍ~Q)y<termref def='dt-doctype'>ODTD&subset;</termref>āC<term>O</term>&identified;B
</termdef>

<!-- Added for CFG -->
<!-- obscurity amputated by TWB -->
<!-- entire sentence amputated by CMSMcQ:  no one but NO ONE is
ready for entities declared as
<!ENTITY foo "http://www.foo.com/bar.xml#id">
and it's pointless to suggest that it's possible
under current circumstances. -->
<!-- An entity may be stored in, -->
<!--but need not be coterminous with, -->
<!-- but need not comprise the whole of,  -->
<!-- a single physical storage object such as a file or -->
<!-- database field. -->
<!-- End sentence added for CFG -->eXMĹC<termref def="dt-docent"></termref>ƌĂԎ̂‚B<termref def="dt-xml-proc">XML&processor;</termref>́Ĉ̕珈JnB̂ĈׂĂ܂ł悢B</p>

<p>̂́C&parsed-entity;&unparsed-entity;ƂB<termdef id="dt-parsedent" term="Text Entity"><term>&parsed-entity;</term>̓éC&parsed-entity;<termref def='dt-repltext'>&replacement-text;</termref>ƌĂԁB<termref def="dt-text">eLXg</termref>́C̖{̂̈ꕔƂĉ߂B
</termdef>
</p>

<p>
<termdef id="dt-unparsed" term="Unparsed Entity">
<term>&unparsed-entity;</term>́Ce<termref def='dt-text'>eLXg</termref>łłȂƂ悢\[XƂBeLXg̏ꍇCXMLłȂƂ悢Be&unparsed-entity;ɂ́C<termref def="dt-notation">L@</termref>֘AtC̋L@́CO&identified;BL@̖Oyъ֘Atꂽ&identifier;CXML&processor;&application;ɓnƂvȊÓCXMĹC&unparsed-entity;̓e𐧌ȂB
</termdef> 
</p>

<p>&parsed-entity;́C̎QƂɂĖOŌĂяoB&unparsed-entity;́C<kw>ENTITY</kw>^<kw>ENTITIES</kw>^̑̒lƂāCOŎQƂB</p>

<p>
<termdef id='gen-entity' term='general entity'><term>ʎ</term>́Ce̒Ŏgp&parsed-entity;ƂB܂ɂȂȂC&TR-or-Rec;ł́Cʎ̂P<emph></emph>ƌĂԁB</termdef><termdef id='dt-PE' term='Parameter entity'>p^̂́CDTDŎgp&parsed-entity;ƂB</termdef>̂Qނ̎̂́CقȂ鏑ŎQƂCقȂ镶ŔFB</p>

<!--
<div2 id='sec-synchro'>
<head>Logical and Physical Structures</head>
<p>The logical and physical structures (elements and entities)
in an XML document must
be properly nested.
<termref def='dt-stag'>Tags</termref> and <termref def='dt-element'>elements</termref> must
each begin and end in the same <termref def='dt-entity'>entity</termref>,  but may
refer to other 
entities internally; <termref def='dt-comment'>comments</termref>, 
<termref def='dt-pi'>processing instructions</termref>, 
<termref def='dt-charref'>character
references</termref>, and 
<termref def='dt-entref'>entity references</termref> must each be contained entirely
within a single entity. Entities must each contain an integral number
of elements, comments, processing instructions, and references,
possibly together with character data not contained within any element
in the entity, or else they must contain non-textual data, which by
definition contains no elements.</p></div2>
-->

<div2 id='sec-references'>
<head>QƋyю̎Q</head>
<p>
<termdef id="dt-charref" term="Character Reference">
<term>Q</term>́CISO/IEC 10646W̓̕CႦ΁C͋@킩璼ړ͕s”\ȕQƂB

<scrap lang='ebnf'>
<head>Q</head>
<prod id='NT-CharRef'><lhs>CharRef</lhs>
<rhs>'&amp;#' [0-9]+ ';' </rhs>
<rhs>| '&hcro;' [0-9a-fA-F]+ ';'</rhs>
<wfc def="wf-Legalchar"/>
</prod>
</scrap>
<wfcnote id="wf-Legalchar">
<head>ȕ</head>
<p>QƂŎQƂ镶́CI[L<termref def="NT-Char">Char</termref>ɏ]Ȃ΂ȂȂB</p>
</wfcnote>
 "<code>&amp;#x</code>" Ŏn܂΁CI[ "<code>;</code>" ܂ł̐yуAt@xbǵCISO/IEC 10646 ̕R[h16i\ƂB
<!--{ɂ‚: letter̓At@xbgƖ󂵂B OD -->
 "<code>&amp;#</code>" Ŏn܂΁CI[ "<code>;</code>" ܂ł̐́CR[h10i\ƂB
</termdef>
</p>

<p>
<termdef id="dt-entref" term="Entity Reference">
<term>̎Q</term>́CO̕t̂̓eQƂB</termdef><termdef id='dt-GERef' term='General Entity Reference'>ʎ̂ւ̎QƂ́CApTh(<code>&amp;</code>)yуZ~R(<code>;</code>)؂qƂėpB</termdef><termdef id='dt-PERef' term='Parameter-entity reference'><term>p^</term>ւ̎QƂ́Cp[ZgL(<code>%</code>)yуZ~R(<code>;</code>)؂qƂėpB
</termdef>
</p>

<scrap lang="ebnf">
<head>̎Q</head>
<prod id='NT-Reference'><lhs>Reference</lhs>
<rhs><nt def='NT-EntityRef'>EntityRef</nt> 
| <nt def='NT-CharRef'>CharRef</nt></rhs></prod>
<prod id='NT-EntityRef'><lhs>EntityRef</lhs>
<rhs>'&amp;' <nt def='NT-Name'>Name</nt> ';'</rhs>
<wfc def='wf-entdeclared'/>
<vc def='vc-entdeclared'/>
<wfc def='textent'/>
<wfc def='norecursion'/>
</prod>
<prod id='NT-PEReference'><lhs>PEReference</lhs>
<rhs>'%' <nt def='NT-Name'>Name</nt> ';'</rhs>
<wfc def='wf-entdeclared'/>
<vc def='vc-entdeclared'/>
<wfc def='textent'/>
<wfc def='norecursion'/>
<wfc def='indtd'/>
</prod>
</scrap>

<wfcnote id='wf-entdeclared'>
<head>̂錾Ă邱</head>
<p>DTDȂCp^̎QƂ܂܂ȂDTD&subset;•C "<code>standalone='yes'</code>" •ɂāC̎QƂŗp <nt def='NT-Name'>Name</nt> ́C̎̂̐錾ŗ^閼OƁC<termref def="dt-match">&match;</termref>Ȃ΂ȂȂBC&well-formed;́̕C&magicents; 錾Kv͂ȂBp^̂̏ꍇ́C錾́CQƂɐsȂ΂ȂȂBlɁCʎ̂̏ꍇ́CXg錾&default-value;ł̎QƂɁC錾Ȃ΂ȂȂB</p>

<p>O&subset;͊Op^̂Ŏ̂錾ƂC&non-validating;&processor;C錾ǂ݁C邱Ƃ<titleref href='include-if-valid'>`ÂȂ</titleref>B̕ł́Ĉ͐錾Ȃ΂ȂȂƂḰC&well-formed;ł͂ȂB
</p>
</wfcnote>

<vcnote id="vc-entdeclared">
<head>̂錾Ă邱</head>
<p>
O&subset;͊Op^̂ĂāC"<code>standalone='no'</code>"•ɂāC̎QƂŗp <nt def='NT-Name'>Name</nt> ́C̎̂̐錾ŗ^閼O<termref def="dt-match">&match;</termref>Ȃ΂ȂȂB݉^p̂߁C&valid;ȕ<titleref href="sec-escapes">炩ߒ`̂̋K</titleref>Ŏw肵ɂāC &magicents;錾邱Ƃ]܂Bp^̂̏ꍇ́C錾́CQƂɐsȂ΂ȂȂBlɁCʎ̂̏ꍇ́CXg錾&default-value;ł̎QƂɁC錾Ȃ΂ȂȂB
</p>
</vcnote>

<!-- FINAL EDIT:  is this duplication too clumsy? -->

<wfcnote id='textent'>
<head>&parsed-entity;</head>
<p>
̎QƂ́C<termref def="dt-unparsed">&unparsed-entity;</termref>̖O܂łĂ͂ȂȂB&unparsed-entity;́C<kw>ENTITY</kw>^<kw>ENTITIES</kw> ^ƂĐ錾<termref def="dt-attrval">l</termref>ƂĂQƂłB
</p>
</wfcnote>

<wfcnote id='norecursion'>
<head>ċAȂ</head>
<p>&parsed-entity;́Cꎩ̂ւ̎QƂCڂɂԐڂɂ܂ł͂ȂȂB</p>
</wfcnote>

<wfcnote id='indtd'>
<head>DTD̒</head>
<p>
p^̎QƂ́C<termref def='dt-doctype'>DTD</termref>ɂCoĂ悢B
<!--
In the external DTD subset, a parameter-entity reference is 
recognized only at the locations where
the nonterminal <nt def="NT-PEReference">PEReference</nt> or the
special operator <code>%</code> appears in a production of the
grammar.  In the internal subset, parameter-entity references
are recognized only when they match 
the <nt def="NT-InternalPERef">InternalPERef</nt> non-terminal
in the production for <nt def="NT-markupdecl">markupdecl</nt>.
-->
</p>
</wfcnote>

<p>
QƋyю̎QƂ̗CɎB
<eg>Type &lt;key>less-than&lt;/key> (&hcro;3C;) to save options.
This document was prepared on &amp;docdate; and
is classified &amp;security-level;.</eg>
</p>

<p>
p^̎QƂ̗CɎB
<eg>&lt;!ENTITY % ISOLat2
         SYSTEM "http://www.xml.com/iso/isolat2-xml.entities" >
%ISOLat2;
</eg>
</p>
</div2>
 
<div2 id='sec-entity-decl'>
<head>̐錾</head>
 
<p>
<termdef id="dt-entdecl" term="entity declaration">
̂́ĈƂɐ錾B
<scrap lang='ebnf'>
<head>̐錾</head>
<prodgroup pcw2="5" pcw4="18.5">
<prod id='NT-EntityDecl'><lhs>EntityDecl</lhs>
<rhs><nt def="NT-GEDecl">GEDecl</nt></rhs><com>ʎ</com>
<rhs>| <nt def="NT-PEDecl">PEDecl</nt></rhs><com>p^</com>
</prod>
<prod id='NT-GEDecl'><lhs>GEDecl</lhs>
<rhs>'&lt;!ENTITY' <nt def='NT-S'>S</nt> <nt def='NT-Name'>Name</nt> 
<nt def='NT-S'>S</nt> <nt def='NT-EntityDef'>EntityDef</nt> 
<nt def='NT-S'>S</nt>? '&gt;'</rhs>
</prod>
<prod id='NT-PEDecl'><lhs>PEDecl</lhs>
<rhs>| '&lt;!ENTITY' <nt def='NT-S'>S</nt> '%' <nt def='NT-S'>S</nt> 
<nt def='NT-Name'>Name</nt> <nt def='NT-S'>S</nt> 
<nt def='NT-PEDef'>PEDef</nt> <nt def='NT-S'>S</nt>? '&gt;'</rhs>
<com>p^</com>
</prod>
<prod id='NT-EntityDef'><lhs>EntityDef</lhs>
<rhs><nt def='NT-EntityValue'>EntityValue</nt>
</rhs>
<!--<wfc def="WF-EntityValue"/>-->
<rhs>| <nt def='NT-ExternalDef'>ExternalDef</nt></rhs>
<!--<wfc def="WF-External"/>-->
</prod>
<!-- FINAL EDIT: what happened to WFs here? -->
<prod id='NT-PEDef'><lhs>PEDef</lhs>
<rhs><nt def='NT-EntityValue'>EntityValue</nt> 
| <nt def='NT-ExternalID'>ExternalID</nt></rhs></prod>
</prodgroup>
</scrap>

<nt def='NT-Name'>Name</nt> ́C<termref def="dt-entref">̎Q</termref>ɂĎ̂&identify;B&unparsed-entity;Ȃ΁C<kw>ENTITY</kw> ^<kw>ENTITIES</kw>^̑lŁĈ&identify;B̎̂ȏ錾΁Cŏ̐錾pB&at-user-option;C錾̂ɊւCXML&processor;́CxoĂ悢B
</termdef>
</p>

<!--
<wfcnote id="WF-Entityvalue">
<head>Well-Formed Internal Entity</head>
<p>General entities defined by an <nt
def="NT-EntityValue">EntityValue</nt> must be well-formed, as defined
in section <specref ref="wf-entities"/>.
</p>
</wfcnote>
<wfcnote id="WF-External">
<head>Well-Formed External Entity</head>
<p>General text entities defined by an <nt
def="NT-ExternalDef">ExternalDef</nt>, must be well-formed, as defined
in the section on <titleref xml-link="simple"
href="wf-entities">well-formed entities.</titleref>.</p>
</wfcnote>
--> 

<div3 id='sec-internal-ent'>
<head></head>
<p>
<termdef id='dt-internent' term="Internal Entity Replacement Text">
̂̒` <nt def='NT-EntityValue'>EntityValue</nt>̂ƂC<term></term>ƂB́Cʌ‚̕ILPʂĈ̓éC錾ŗ^B</termdef><termref def='dt-repltext'>&replacement-text;</termref>𐶐ɂ́C<termref def='dt-litentval'>&literal;̒l</termref>ł̎̎QƋyѕQƂ̏CKvƂȂ邩ȂƂɒӂBڍׂ́C<titleref href='intern-replacement'>̂&replacement-text;̍\z</titleref>QƁB

<!-- redundant -TWB
Within the <nt def="NT-EntityValue">EntityValue</nt>,
parameter-entity references and character references are recognized
and expanded immediately. 
General-entity references within the
replacement text are not recognized
at the time the entity declaration is parsed, though they may be
recognized when the entity itself is referred to.
-->

</p>

<p>
̂́C<termref def="dt-parsedent">&parsed-entity;</termref>ƂB
</p>

<p>̐錾̗CɎB
<eg>&lt;!ENTITY Pub-Status "This is a pre-release of the specification."></eg></p>
</div3>
 
<div3 id='sec-external-ent'>
<head>O</head>
<p>
<termdef id="dt-extent" term="External Entity">
̂̂łȂ΁C<term>O</term>ƂĈƂɐ錾B

<scrap lang='ebnf'>
<head>O̐錾</head>
<prod id='NT-ExternalDef'><lhs>ExternalDef</lhs>
<rhs><nt def='NT-ExternalID'>ExternalID</nt> 
<nt def='NT-NDataDecl'>NDataDecl</nt>?</rhs></prod>
<prod id='NT-ExternalID'><lhs>ExternalID</lhs>
<rhs>'SYSTEM' <nt def='NT-S'>S</nt> 
<nt def='NT-SystemLiteral'>SystemLiteral</nt></rhs>
<rhs>| 'PUBLIC' <nt def='NT-S'>S</nt> 
<nt def='NT-PubidLiteral'>PubidLiteral</nt> 
<nt def='NT-S'>S</nt> 
<nt def='NT-SystemLiteral'>SystemLiteral</nt>
</rhs>
</prod>
<prod id='NT-NDataDecl'><lhs>NDataDecl</lhs>
<rhs><nt def='NT-S'>S</nt> 'NDATA' <nt def='NT-S'>S</nt> 
<nt def='NT-Name'>Name</nt></rhs>
<vc def='not-declared'/></prod>
</scrap>

<nt def='NT-NDataDecl'>NDataDecl</nt> ݂΁C̎̂́C<termref def="dt-unparsed">&unparsed-entity;</termref>ƂCłȂ΁C&parsed-entity;ƂB</termdef>
</p>

<vcnote id='not-declared'>
<head>L@錾Ă邱</head>
<p>
<nt def='NT-Name'>Name</nt> ́C錾<termref def="dt-notation">L@</termref>̖O&match;Ȃ΂ȂȂB
</p>
</vcnote>

<p>
<termdef id="dt-sysid" term="System Identifier">
L[[h <kw>SYSTEM</kw> ̌ <nt def='NT-SystemLiteral'>SystemLiteral</nt><term>VXe&identifier;</term>ƌĂԁBURIƂC̎̂̓eôɗpĂ悢B</termdef>URIƋɎgƂ̑nbV("<code>#</code>")yуtOg&identifier;́Cɂ́CURÎ̈ꕔƂ͂ȂBtOg&identifier;CVXe&identifier;̕Ƃė^ĂꍇCXML&processor;́C&error;oĂ悢B&TR-or-Rec;͈̔͊Ȍ(Ⴆ΁CDTD̓ʂXMLvf͓&application;̎dlɂĒ`ꂽ)ɂď㏑ȂCΓIURÍC̎̂̈ʒuCȂ킿C̎̂̐錾t@CɑΓIƂBāCDTD̓&subset;ɂ̐錾ł̑ΓIURÍC̈ʒuɂ‚đΓIƂBO&subset;ɂ̐錾ł̑ΓIURÍC̊O&subset;܂ރt@C̈ʒuɑΓIƂB
</p>

<p>
<termdef id="dt-pubid" term="Public identifier">
VXe&identifier;ȊOɁCỐC<term>J&identifier;</term>܂ł悢B
</termdef>
̂̓eoXML&processor;́ČJ&identifier;pāCURI݂̐Ă悢BXML&processor;Ɏsꍇ́CVXe&literal;ƂĎw肵URIpȂ΂ȂȂB&match;OɁCJ&identifier;ɂ󔒕Ȃ&string;́CׂĒP&space-character;(#x20)ɐKȂ΂Ȃ炸CŐ󔒕͍폜Ȃ΂ȂȂB
</p>

<p>O̐錾̗CɎB
<eg>&lt;!ENTITY open-hatch
         SYSTEM "http://www.textuality.com/boilerplate/OpenHatch.xml">
&lt;!ENTITY open-hatch
         PUBLIC "-//Textuality//TEXT Standard open-hatch boilerplate//EN"
         "http://www.textuality.com/boilerplate/OpenHatch.xml">
&lt;!ENTITY hatch-pic
         SYSTEM "../grafix/OpenHatch.gif"
         NDATA gif ></eg></p>
</div3>
 
</div2>

<div2 id='TextEntities'>
<head>&parsed-entity;</head>
<div3 id='sec-TextDecl'>
<head>eLXg錾</head>
<p>O&parsed-entity;́C<term>eLXg錾</term>Ŏn܂Ă悢B
<scrap lang='ebnf'>
<head>eLXg錾</head>
<prodgroup pcw4="12.5" pcw5="13">
<prod id='NT-TextDecl'><lhs>TextDecl</lhs>
<rhs>&xmlpio; 
<nt def='NT-VersionInfo'>VersionInfo</nt>?
<nt def='NT-EncodingDecl'>EncodingDecl</nt>
<nt def='NT-S'>S</nt>? &pic;</rhs>
<!-- <wfc def='wfc-xmldecliteral'/> -->
<!-- <wfc def='wfc-no-nonleading-encdec'/> -->
</prod>
</prodgroup>
</scrap>
</p>
<p>eLXg錾́Ĉ܂܂̌`ŌȂ΂Ȃ炸C&parsed-entity;ւ̎QƂoRĂ͂ȂȂƂɒӂB</p>
<p>O&parsed-entity;ɂāCeLXg錾́C擪ȊÔȂʒuɂoȂB</p>
</div3>
<div3 id='wf-entities'>
<head>&well-formed;&parsed-entity;</head>
<p>x<nt def='NT-document'>document</nt>K&match;΁Ĉ́C&well-formed;ƂBx<nt def='NT-ExtParsedEnt'>ExtParsedEnt</nt>K&match;΁CÖ&parsed-entity;́C&well-formed;ƂBx<nt def='NT-ExtPE'>ExtPE</nt>K&match;΁COp^̂́C&well-formed;ƂB

<scrap lang='ebnf'>
<head>&well-formed;&parsed-entity;</head>
<prod id='NT-ExtParsedEnt'><lhs>ExtParsedEnt</lhs>
<rhs><nt def='NT-TextDecl'>TextDecl</nt>? 
<nt def='NT-content'>content</nt></rhs>
</prod>
<prod id='NT-ExtPE'><lhs>ExtPE</lhs>
<rhs><nt def='NT-TextDecl'>TextDecl</nt>? 
<nt def='NT-extSubset'>extSubset</nt></rhs>
</prod>
</scrap>
&replacement-text;Cx<nt def='NT-content'>content</nt>K&match;΁C̈&parsed-entity;́C&well-formed;ƂBDTDŌ܂œǂݍ܂ȂƁCmɂ𔻒łȂƂɒӁBׂĂ̓̃p^̂́C`ɂ&well-formed;ƂB
</p>
<p>̂&well-formed;ȌʂƂāCXML̘_IyѕI\́CqƂȂB<termref def='dt-stag'>Jn^O</termref>C<termref def='dt-etag'>I^O</termref>C<termref def="dt-empty">vf^O</termref>C<termref def='dt-element'>vf</termref>C<termref def='dt-comment'>Rg</termref>C<termref def='dt-pi'></termref>C<termref def='dt-charref'>Q</termref>y<termref def='dt-entref'>̎Q</termref>C‚̎̂ŊJnCʂ̎̂ŏI邱Ƃ͂ȂB</p>
</div3>
<div3 id='charencoding'>
<head>̂ɂ镶</head>
 
<p>XML̊O&parsed-entity;́CeXCʂ̕pĂ悢BׂĂXML&processor;́CUTF-8ŕ́CUTF-16ŕ̂łȂ΂ȂȂB
<!--
It is recognized that for some purposes, the use of additional
ISO/IEC 10646 planes other than the Basic Multilingual Plane
may be required.  
A facility for handling characters in these planes is therefore a
desirable characteristic in XML processors and applications.
-->
</p>
<p>UTF-16ŕ̂́CISO/IEC 10646̕t^EyUnicode̕t^BŋK肷&byte-order-mark;(ZERO WIDTH NO-BREAK SPACEC#xFEFF)Ŏn܂Ȃ΂ȂȂB́C̕WłāCXML&markup;̈ꕔłCf[^̈ꕔłȂBXML&processor;́CUTF-8ŕUTF-16ŕƂ̋ʂs߂ɁC̕gp”\łȂ΂ȂȂB</p>
<p>XML&processor;́CUTF-8yUTF-16ŕ̂ǂނƂK{Ƃ邪C̕𐢊Eł͗pĂC̕p̂XML&processor;ł邱Ƃ]܂BUTF-8UTF-16ȊO̕pĊi[&parsed-entity;́C錾܂<titleref href='TextDecl'>eLXg錾</titleref>Ŏn߂Ȃ΂ȂȂB
<scrap lang='ebnf'>
<head></head>
<prod id='NT-EncodingDecl'><lhs>EncodingDecl</lhs>
<rhs><nt def="NT-S">S</nt>
'encoding' <nt def='NT-Eq'>Eq</nt> 
'"' <nt def='NT-EncName'>EncName</nt> '"' | "'" 
<nt def='NT-EncName'>EncName</nt> "'"
</rhs>
</prod>
<prod id='NT-EncName'><lhs>EncName</lhs>
<rhs>[A-Za-z] ([A-Za-z0-9._] | '-')*</rhs>
<com>e܂ޕ</com>
</prod>
</scrap>
<termref def='dt-docent'></termref>ł́C錾́C<termref def="dt-xmldecl">XML錾</termref>̈ꕔƂB<nt def="NT-EncName">EncName</nt>́Cgp镄̖OƂB
</p>
<!-- FINAL EDIT:  check name of IANA and charset names -->
<p>錾ł́Cl<code>UTF-8</code>C<code>UTF-16</code>C<code>ISO-10646-UCS-2</code>y<code>ISO-10646-UCS-4</code>́CUnicodeyISO/IEC 10646̊e필̂߂ɗpBl<code>ISO-8859-1</code><code>ISO-8859-9</code>܂ł́CISO 8859̑Ήp[ĝ߂ɗpBl<code>ISO-2022-JP</code>C<code>Shift_JIS</code>y<code>EUC-JP</code>́CJIS X-0208-1997̊e필̂߂ɗpBXML&processor;́CȊO̕FĂ悢BInternet Assigned Numbers Authority (IANA)ɁC(<emph>charset</emph>sƂ)o^ꂽɂ‚ẮCȊOɂ‚ĂCo^ꂽOŎQƂ邱Ƃ]܂B̓o^ꂽÓC啶E̋ʂɒ`Ă̂ŁCɑ΂r݂&processor;́C啶E̋ʂȂ@Ƃ̂]܂ƂɒӂB</p>
<p>XMLnɓnꂽ̂C錾܂ނɂ炸C錾Ŏ̈ȊO̕ŕĂC錾CÔ̍ŏȊÖʒuɏo΁C<termref def="dt-error">&error;</termref>ƂB
</p>
<p>&byte-order-mark;ł錾łn܂Ȃ̂́CUTF-8łȂ΂ȂȂB</p>

<p><!-- XML processors should make an effort to use all available
information, internal and external, to aid in detecting an entity's correct
encoding.  Such information may include, but is not limited to:
<ulist><item><p>An HTTP header</p></item>
<item><p>A MIME header obtained other than through HTTP</p></item>
<item><p>Metadata provided by the native OS file system or by document
management software</p></item>
<item><p>The bit patterns at the front of an entity, which may
be analyzed to determine if
the application of any known encoding yields a valid encoding
declaration.  See <titleref href='sec-guessing'>the appendix on
autodetection of character sets</titleref> 
for a fuller description.</p></item></ulist> -->
łȂ̂XML&processor;Ƃ́C&application;ɂ̎ʒmC<termref def='dt-fatal'>&fatal-error;</termref>ƂāCIȂ΂ȂȂB
<!--
inform the application of this fact and 
may 
allow the application to
request either that the entity should be treated as an <termref
def="dt-unparsed">unparsed entity</termref>, or that processing should
cease.-->
</p>
<p>錾̗CɎB
<eg>&lt;?xml encoding='UTF-8'?>
&lt;?xml encoding='EUC-JP'?></eg></p>
</div3>
</div2>
<div2 id='entproc'>
<head>XML&processor;ɂ̋yюQƂ̈</head>
<p>̕\́CQƁC̎QƋy&unparsed-entity;̌ďo镶yъeX̏ꍇɂ<termref def='dt-xml-proc'>XML&processor;</termref>ɗvUv񂷂Bԍ̗̃x́CF̕B
<glist>
<gitem><label>eɂQ</label>
<def><p>vf<termref def='dt-stag'>Jn^O</termref>y<termref def='dt-etag'>I^O</termref>̊Ԃ̔Cӂ̏ꏊł̎QƁBI[L<nt def='NT-content'>content</nt>ɑΉB</p></def>
</gitem>
<gitem>
<label>lɂQ</label>
<def><p><termref def='dt-stag'>Jn^O</termref>̑̒lC<termref def='dt-attdecl'></termref>ɂ&default-value;̂ꂩł̎QƁBI[L<nt def='NT-AttValue'>AttValue</nt>ɑΉB</p></def></gitem>
<gitem>
<label>lƂďo</label>
<def><p>QƂł͂ȂC<nt def='NT-Name'>Name</nt>ƂďoB<code>ENTITY</code>^ƂĐ錾̒lC<code>ENTITIES</code>^ƂĐ錾̒lɂ&space;ŋ؂&token;̈‚ƂďoB</p>
</def></gitem>
<gitem><label>̒lɂQ</label>
<def><p>̂̐錾ɂCp^͓̂<termref def='dt-litentval'>&literal;̒l</termref>̎QƁBI[L<nt def='NT-EntityValue'>EntityValue</nt>ɑΉB</p></def></gitem>
<gitem><label>DTDɂQ</label>
<def><p><termref def='dt-doctype'>DTD</termref>̓&subset;͊O&subset;ł̎QƁBC<nt def='NT-EntityValue'>EntityValue</nt><nt def="NT-AttValue">AttValue</nt>̊OƂB</p></def>
</gitem>
</glist></p>
<!-- border value changed by bosak -->
<htable border='1' cellpadding='7' align='center'>
<!-- tbody wrapper added by bosak -->
<htbody>
<tr><td bgcolor='&cellback;' rowspan='2' colspan='1'></td>
<td bgcolor='&cellback;' align='center' valign='bottom' colspan='4'>̂̌^</td>
<td bgcolor='&cellback;' rowspan='2' align='center'></td>
</tr>
<tr align='center' valign='bottom'>
<td bgcolor='&cellback;'>p^</td>
<td bgcolor='&cellback;'>&newline;</td>
<td bgcolor='&cellback;'>O&newline;&parsed-entity;&newline;</td>
<td bgcolor='&cellback;'>&unparsed-entity;</td>
</tr>
<tr align='center' valign='middle'>
<!--<td bgcolor='&cellback;' rowspan='4'>Recognition
Context</td>-->
<td bgcolor='&cellback;' align='right'>&newline;Q</td>
<td bgcolor='&cellback;'><titleref href='not-recognized'>F&newline;Ȃ</titleref></td>
<td bgcolor='&cellback;'><titleref href='included'></titleref></td>
<td bgcolor='&cellback;'><titleref href='include-if-valid'>؂̂߂Ɏ捞</titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='included'></titleref></td>
</tr>
<tr align='center' valign='middle'>
<td bgcolor='&cellback;' align='right'>&newline;Q</td>
<td bgcolor='&cellback;'><titleref href='not-recognized'>F&newline;Ȃ</titleref></td>
<td bgcolor='&cellback;'><titleref href='included'></titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='included'></titleref></td>
</tr>
<tr align='center' valign='middle'>
<td bgcolor='&cellback;' align='right'>&newline;o</td>
<td bgcolor='&cellback;'><titleref href='not-recognized'>F&newline;Ȃ</titleref></td>
<td bgcolor='&cellback;'><titleref href='not-recognized'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='not-recognized'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='notify'>ʒm</titleref></td>
<td bgcolor='&cellback;'><titleref href='not recognized'>F&newline;Ȃ</titleref></td>
</tr>
<tr align='center' valign='middle'>
<td bgcolor='&cellback;' align='right'>̒lł&newline;Q</td>
<td bgcolor='&cellback;'><titleref href='included'></titleref></td>
<td bgcolor='&cellback;'><titleref href='bypass'>&bypass;</titleref></td>
<td bgcolor='&cellback;'><titleref href='bypass'>&bypass;</titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='included'></titleref></td>
</tr>
<tr align='center' valign='middle'>
<td bgcolor='&cellback;' align='right'>DTDł&newline;Q</td>
<td bgcolor='&cellback;'><titleref href='as-PE'>PEƂ&newline;</titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
<td bgcolor='&cellback;'><titleref href='forbidden'>֎~</titleref></td>
</tr>
</htbody>
</htable>
<div3 id='not-recognized'>
<head>gFȂh</head>
<p>DTD̊Oł́C<code>%</code>́CȂ̈ӖCȂBāCDTDł̓p^̎QƂƂĔF̂łĂC<nt def='NT-content'>content</nt>ł&markup;ƂĂ͔FȂBlɁCK؂ɐ錾̒l̒ɌꍇC&unparsed-entity;̖ÓCFȂB
</p>
</div3>
<div3 id='included'>
<head>g捞݁h</head>
<p><termdef id="dt-include" term="Include">̂́C<termref def='dt-repltext'>&replacement-text;</termref>oCƁCQƎ̂̑ɁCQƂʒuŁC̈ꕔƂĊ܂܂邩̂悤<term>荞܂</term>B&replacement-text;́C<termref def='dt-chardata'>f[^</termref>y(p^̂B)<termref def="dt-markup">&markup;</termref>̂܂ł悭ĆCʏ̕@ŔFȂ΂ȂȂBC&markup;̋؂q&escape;邽߂ɗp(&magicents;)&replacement-text;́CɃf[^ƂĈ(&string;"<code>AT&amp;amp;T;</code>"́C"<code>AT&amp;T;</code>"ɓWJCcꂽApTh́C̎QƂ̋؂qƂĂ͔FȂB)BQƂ́CQƎ̂̑ɏƂC<term>荞܂</term>B
</termdef></p>
</div3>
<div3 id='include-if-valid'>
<head>g؂̂߂Ɏ捞݁h</head>
<p>&validity;<termref def="dt-valid"></termref>ɂ́CXML&processor;&parsed-entity;ւ̎QƂFƂC&replacement-text;<termref def="dt-include"></termref>Ȃ΂ȂȂB̂ÔłāCXML&validity;؂Ȃ΁Ĉ&replacement-text;荞ł<termref def="dt-may"></termref>CȂƂ悢B</p>
<p>̎挈߂́CSGMLyXML̎̂̋@\񋟂鎩捞݋@\C쐬̃W[ȖړIƂĐ݌vĂC̑&application;(ɁC̃uEY)ɂ́CKK؂ł͂ȂCƂFɂBႦ΁CuEU͊O&parsed-entity;ւ̎QƂ‚ƁC݂̎̂Ƃ\sC\vꂽƂɂCeoȂB
</p>
</div3>
<div3 id='forbidden'>
<head>g֎~h</head>
<p>͋֎~ĂC<termref def='dt-fatal'>&fatal-error;</termref>ƂB
<ulist>
<item><p>a) <termref def='dt-unparsed'>&unparsed-entity;</termref>ւ̎QƂ̏oB
</p></item>
<item><p>b) DTD<nt def='NT-EntityValue'>EntityValue</nt><nt def="NT-AttValue">AttValue</nt>ȊO̕ɂCQƖ͈ʎ̂ւ̎QƂ̏oB</p></item>
<item><p>c) l̊Ôւ̎QƁB</p>
</item>
</ulist>
</p>
</div3>
<div3 id='notify'>
<head>gʒmh</head>
<p><termref def='dt-unparsed'>&unparsed-entity;</termref>̖OC<kw>ENTITY</kw><kw>ENTITIES</kw>̑̒lɂ&token;ƂČꂽƂC&processor;́C&application;ɑ΂āC֘Atꂽ<termref def="dt-notation">L@</termref>CL@ɑ΂<termref def='dt-sysid'>VXe</termref>&identifier;y(݂)<termref def='dt-pubid'>J</termref>&identifier;ʒmȂ΂ȂȂB</p>
</div3>
<div3 id='bypass'>
<head>g&bypass;h</head>
<p>ʎ̎QƂC̐錾ɂ<nt def='NT-EntityValue'>EntityValue</nt>ɌƂC͖Ĉ܂܎cB</p>
</div3>
<div3 id='as-PE'>
<head>gPEƂĎ捞݁h</head>
<p>O&parsed-entity;̏ꍇƓlɁCp^̂́C&validity;<titleref href='include-if-valid'>؂Ƃ荞܂</titleref>KvBp^̎QƂDTDɔFĎ荞ނƂC<termref def='dt-repltext'>&replacement-text;</termref>́C̑OɈ‚&space-character;(#x20)̕tɂĈL΂B̈Ӑ}́Cp^̂&replacement-text;CDTD̂‚̕@I&token;SɊ܂ނƁC񂷂邱ƂɂB
</p>
</div3>
<!--
<div3 id='gen-char-entproc'>
<head>General and Character Entity Processing</head> 
<p>General-entity and character references are recognized in three
contexts: wherever the nonterminal <nt def='NT-content'>content</nt> may
appear, at any point within the nonterminal 
<nt def='NT-AttValue'>AttValue</nt>,
and within the 
<termref def='dt-litentval'>literal entity value</termref> 
(<nt def='NT-EntityValue'>EntityValue</nt>)  
of an internal entity declaration.
This section discusses the first two cases; the third
is discussed <titleref href='intern-replacement'>below</titleref>.
When an <termref def="dt-xml-proc">XML processor</termref> encounters
such a reference, or the name of an unparsed entity as the value
of an <kw>ENTITY</kw> or <kw>ENTITIES</kw> attribute, then:
<olist>

<item><p>In all cases, the XML processor may 
inform the application of the reference's occurrence and its identifier
(for an entity reference, the name; for a character
reference, 
the character number in decimal, hexadecimal, or binary form).</p></item>

<item><p>For both character and entity references, the processor must
remove the reference itself from the <termref def="dt-text">text</termref> data
before passing the data to the application.
</p></item>

<item><p>For character references, the processor must 
pass the character indicated
to the application in
place of the reference.
</p></item>

<item><p>For an external entity, the processor must inform the
application of the entity's <termref def="dt-sysid">system
identifier</termref>, and <termref def="dt-pubid">public identifier</termref> 
if any.
All strings
of white space in the public identifier must be normalized to single space characters (#x20),
and leading and trailing white space must be removed.</p></item>

<item><p>If the external entity is binary, the processor must inform the
application of the associated <termref def="dt-notation">notation</termref> 
name, and the notation's associated <termref def='dt-sysid'>system</termref> 
and <termref def='dt-pubid'>public</termref> (if any)
identifiers.</p></item>

<item><p><termdef id="dt-include" term="Include">For an internal
(parsed) entity, the processor must <term>include</term> the 
entity; that is, retrieve its replacement text 
and process it as a part of the document 
(i.e. as <nt def="NT-content">content</nt> or <nt
def="NT-AttValue">AttValue</nt>, whichever was being processed when
the reference was recognized), passing the result to the application
in place of the reference.  The replacement text may contain both 
<termref def='dt-chardata'>character data</termref>
and <termref def="dt-markup">markup</termref>, which must be recognized in
the usual way, except that the replacement text of entities used to escape
markup delimiters (the entities &magicents;) is always treated as
data.  (The string "<code>AT&amp;amp;T;</code>" expands to
"<code>AT&amp;T;</code>" since the ampersand replacing "<code>&amp;amp;</code>"
is not recognized
as an entity-reference delimiter.) </termdef></p>
<p>Since the entity  may contain other entity references,
an XML processor may have to repeat the inclusion process recursively.</p>
</item>
<item><p>If the entity is an external parsed entity, then in order to
<termref def="dt-valid">validate</termref> the XML document, the processor must
<termref def="dt-include">include</termref> the content of the
entity.</p></item>

<item><p>If the entity is an external parsed entity, and the processor is not
attempting to <termref def="dt-valid">validate</termref> the XML document, the
processor <termref def="dt-may">may</termref>, but need not, <termref
def="dt-include">include</termref> the entity's content.</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></item>
</olist>
</p>
<p><termdef id="dt-escape" term="escape">Entity and character
references can both be used to <term>escape</term> the left angle bracket,
ampersand, and other delimiters.   A set of general entities
(&magicents;) is specified for this purpose.
Numeric character references may also be used; they are
expanded immediately when recognized, and must 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.</termdef></p>
</div3>
<div3 id='PE-proc'>
<head>Parameter Entity Processing</head>
<p>Parameter-entity references are only recognized in the
<termref def='dt-doctype'>DTD</termref>.
Their processing, when they appear 
within the 
<termref def='dt-litentval'>literal entity value</termref> 
(<nt def='NT-EntityValue'>EntityValue</nt>) 
of an internal entity declaration,
is discussed <titleref href='intern-replacement'>below</titleref>.
They have these intended uses:
<olist>
<item><p>as a replacement for one or more complete markup declarations</p></item>
<item><p>as a replacement for one or more complete "groups" in 
element declarations</p></item>
<item><p>as a replacement for one or more complete "tokens" in
markup declarations</p></item>
</olist>
</p>
<p>The constraints requiring that PE replacement texts be properly nested
with <titleref href='vc-PEinMarkupDecl'>markup declarations</titleref>
and <titleref href='vc-PEinGroup'>content groups</titleref> 
govern the first two usages.</p>
<p>To support the third intended usage, 
when an XML processor encounters a parameter-entity reference
(outside of the 
<termref def='dt-litentval'>literal entity value</termref> in an entity
declaration), 
it must <termref def="dt-include">include</termref> 
the named entity, but first expand its 
<termref def='dt-repltext'>replacement text</termref> by attaching
space (#x20) characters to its beginning and the end, before
processing it.</p>
<p>The DTD text must match the relevant
rules of this specification's grammar after all parameter-entity 
references have been expanded.  
<!-In addition, parameter entities referred to in specific
contexts are required to satisfy certain constraints in their
replacement text; for example, a parameter entity referred to within
the internal DTD subset must match the rule for <nt
def="NT-markupdecl">markupdecl</nt>.  ->
</p>
</div3>
-->
</div2>
<div2 id='intern-replacement'>
<head>&replacement-text;̍\z</head>
<p>̂̎戵̋KŁC̒l‚̌`ɋʂ邱Ƃ͖ɗB<termdef id="dt-litentval" term='Literal Entity Value'><term>&literal;̒l</term>́C̐錾Ɏۂɑ݂Cpň͂&string;ƂB́CI[L<nt def='NT-EntityValue'>EntityValue</nt>&match;B</termdef><termdef id='dt-repltext' term='Replacement Text'><term>&replacement-text;</term>́CQƋy&parameter;̎QƂ̒uɂĈ̓eƂB</termdef></p>

<p>̐錾ŗ^&literal;̒l<!-- replacement text -->(<nt def='NT-EntityValue'>EntityValue</nt>)́CQƁC&parameter;̎QƋyшʎ̎QƂ܂ł悢B̎QƂ́C<!-- replacement text. -->&literal;̒lɊSɊ܂܂ĂȂ΂ȂȂB<termref def='dt-include'>WJ</termref>ۂ&replacement-text;(Ɏ)́CQƂ&parameter;̂<emph>&replacement-text;</emph>܂܂Ȃ΂Ȃ炸C&literal;̒lł̕QƂ̑ɎQƂ܂܂Ȃ΂ȂȂBCʎ̎QƂ́Ĉ܂܎c, WJĂ͂ȂȂB
<!-- in the replacement text that is to be included. -->
Ⴆ΁C̐錾^ƂB

<eg><![CDATA[<!ENTITY % pub    "&#xc9;ditions Gallimard" >
<!ENTITY   rights "All rights reserved" >
<!ENTITY   book   "La Peste: Albert Camus, 
&#xA9; 1947 %pub;. &rights;" >]]></eg>
̂&replacement-text;"<code>book</code>"́ĈƂƂȂB
<eg>La Peste: Albert Camus, 
&#169; 1947 &#201;ditions Gallimard. &amp;rights;</eg>
Q"<code>&amp;book;</code>"C̓e͑lɏoĂ΁Cʎ̎Q"<code>&amp;rights;</code>"́CWJĂB</p>
<p>̒PȋḰCݍpB
<!-- {ɂ‚āF interaction = ݍpi{j-->
ɂ‚Ă̏ڍׂ́C<titleref href='sec-entexpand'>̎QƂ̓WJ̕t^</titleref>QƂ̂ƁB
</p>
<!-- Replaced by the above -TB
<p>Implementors of XML processors need to know the rules for
expansion of references in more detail.  These rules only come into
play when the replacement text for an internal entity itself contains
other references.
<olist>
<item><p>In the replacement text of an internal entity, parameter-entity
references and character references in the replacement text 
are recognized and resolved 
when the entity declaration is parsed,
before the replacement text is stored in
the processor's symbol table.
General-entity references in the replacement text are not 
resolved when the entity declaration is parsed.</p></item>
<item><p>In the document, when a general-entity reference is
resolved, its replacement text is parsed.  Character references 
encountered in the replacement text are
resolved immediately; general-entity references encountered in the
replacement text may be resolved or left unresolved, as described 
<titleref href="entproc">above</titleref>.
Character and general-entity references must be
contained entirely within the entity's replacement text.  
</p></item>
</olist>
</p>

<p>Simple character references do not suffice to escape delimiters
within the replacement text of an internal entity:  they will be
expanded when the entity declaration is parsed, before the replacement
text is stored in the symbol table.  When the entity itself is
referred to, the replacement text will be parsed again, and the
delimiters (no longer character references) 
will be recognized as delimiters.  To escape the
characters &magicents; in an entity replacement text, use
a general-entity reference or a doubly-escaped character reference.
See <titleref href='sec-entexpand'>the appendix on expansion 
of entity references</titleref>
for detailed examples.</p>
-->


</div2>
<div2 id='sec-predefined-ent'>
<head>`ςݎ</head>
<p><termdef id="dt-escape" term="escape">
̎QƋyѕQƂ̂C&left-angle-bracket;CAoThyё̋؂q<term>&escape;</term>邽߂ɎgpłB‚̈ʎ́i&magicents;jC̖ړÎ߂Ɏw肷Blɂ镶QƂCl̖ړÎ߂ɎgpłBQƂ́CFƒɓWJCf[^ƂĈ̂ŁClɂ镶Q"<code>&amp;#60;</code>"y"<code>&amp;#38;</code>"́Cf[^ɏo<code>&lt;</code>y<code>&amp;</code>&escape;邽߂ɎgpłB</termdef></p>
<p>ׂĂXML&processor;́C錾Ă邩ǂɊ֌WȂC̎̂FȂĂ͂ȂȂB<termref def='dt-interop'>݉^p̂</termref>C&valid;XMĹC̎̂gpOɁC̎̂ƓlɁC錾邱Ƃ]܂B̂錾ꍇ́C&replacement-text;&escape;ꕶƂ̂ƂāĈƂɐ錾Ȃ΂ȂȂB
<eg><![CDATA[<!ENTITY lt     "&#38;#60;"> 
<!ENTITY gt     "&#62;"> 
<!ENTITY amp    "&#38;#38;"> 
<!ENTITY apos   "&#39;"> 
<!ENTITY quot   "&#34;"> 
]]></eg>
"<code>lt</code>"y"<code>amp</code>""<code>&lt;</code>"y"<code>&amp;</code>"́Ĉ̒ueLXgC&well-formed;ƂȂ悤ɓd&escape;邱ƂɒӁB
</p>
</div2>


<div2 id='Notations'>
<head>L@錾</head>

 
<p>
<termdef id="dt-notation" term="Notation">
<term>L@</term>́C<termref def="dt-extent">&unparsed-entity;</termref>̌`&identify;OC<termref def="dt-pi"></termref>̑ΏۂƂ&application;&identify;OƂB</termdef></p>
<p><termdef id="dt-notdecl" term="Notation Declaration">
<term>L@錾</term>́CL@̖OyъO&identifier;񋟂B̖ÓC̋yёXg錾тɑwɗpBO&identifier;́C^ꂽL@̃f[^łwp&application;CXML&processor;̓NCAgAvP[VT߂ɁCpłB
<scrap lang='ebnf'>
<head>L@錾</head>
<prod id='NT-NotationDecl'><lhs>NotationDecl</lhs>
<rhs>'&lt;!NOTATION' <nt def='NT-S'>S</nt> <nt def='NT-Name'>Name</nt> 
<nt def='NT-S'>S</nt> 
(<nt def='NT-ExternalID'>ExternalID</nt> | 
<nt def='NT-PublicID'>PublicID</nt>)
<nt def='NT-S'>S</nt>? '>'</rhs></prod>
<prod id='NT-PublicID'><lhs>PublicID</lhs>
<rhs>'PUBLIC' <nt def='NT-S'>S</nt> 
<nt def='NT-PubidLiteral'>PubidLiteral</nt> 
</rhs></prod>
</scrap>
</termdef></p>
<p>錾ClC`͎̐錾ŎQƂ邷ׂĂ̋L@ɂ‚āCXML&processor;́CL@̖OyъO&identifier;&application;ɒ񋟂Ȃ΂ȂȂBɁCO&identifier;C<termref def="dt-sysid">VXe&identifier;</termref>Ct@C͂̑̏ɓWJĂ悭CpāC&application;́C̋L@̃f[^&processor;NB(CXML&processor;&application;삷VXeł͗płȂL@CXML錾QƂĂĆC&error;Ƃ͂ȂBj</p>
</div2>


<div2 id='sec-doc-entity'>
<head></head>

<p><termdef id="dt-docent" term="Document Entity"><term></term>́Ĉ̌`؍\&root;łāC<termref def="dt-xml-proc">XML&processor;</termref>CJnn_ƂB</termdef>&TR-or-Rec;́CXML&processor;Ĉ݂̑ꏊǂ̂悤Ɍ‚邩́CK肵ȂB̎̂ƈقȂĈ͖OCȂ鎯ʂȂ&processor;ւ̓&stream;ɏoĂ悢B</p>
</div2>


</div1>
<!-- &Conformance; -->
<div1 id='sec-conformance'>
<head>K</head>

<p>K<termref def="dt-xml-proc">XML&processor;</termref>́C&validating;̋y&non-validating;̂́C‚ɕނB</p>
<p>&validating;VXey&non-validating;VXéC&TR-or-Rec;K肷&well-formed;ւ̈ᔽ񍐂Ȃ΂ȂȂB</p>
<p><termdef id="dt-validating" term="Validating Processor"><term>&validating;&processor;</term>́C<termref def="dt-doctype">DTD</termref>̐錾ɂĎꂽCւ̈ᔽ񍐂Ȃ΂ȂȂBɁC&TR-or-Rec;K肷&validity;ւ̈ᔽCׂĕ񍐂Ȃ΂ȂȂB
</termdef>
</p>
</div1>

<div1 id='sec-notation'>
<head>L@</head>

<p>XMĽ`Iȕ@́CȒPȊgBackus-Naur Form(EBNF)L@ɂė^B@̊eḰČ`ŁCL’`B
<eg>symbol ::= expression</eg></p>
<p>ĹCK\Œ`Ƃ͑啶Ŏn߁CłȂ΁CŎn߂B&string;&literal;́Cpň͂ށB
<!--* The distinction between symbols which can and cannot be
recognized using simple regular expressions may be used to set the
boundary between an implementation's lexical scanner and its parser,
but this specification neither constrains the placement of that
boundary nor presupposes that all implementations will have one. *-->
</p>

<p>K̉E̎ł́C–͕̕Ȃ&string;&match;邽߂ɁC̎gpB
<glist>
<gitem>
<label><code>#xN</code></label>
<def><p>ŁC<code>N</code>16i̐ƂBISO/IEC 10646̕łāCK`(UCS-4)&code-value;𕄍Ȃ2iƂĉ߂ƂCw肵lƓ̂&match;B<code>#xN</code>`̐擪Ƀ[‚邩́CӖȂB&code-value;<!-- bit string -->ɂ擪̃[̐́C̕ɂČ肳̂ŁCXMLɂƂĂ͈ӖȂB
</p></def>
</gitem>
<gitem>
<label><code>[a-zA-Z]</code>, <code>[#xN-#xN]</code></label>
<def><p>w肵͈͂̒l([̒l܂ށBj”Cӂ<termref def='dt-character'></termref>&match;B</p></def>
</gitem>
<gitem>
<label><code>[^a-z]</code>, <code>[^#xN-#xN]</code></label>
<def><p>w肵͈<emph>O</emph>̒l”Cӂ<termref def='dt-character'></termref>&match;B</p></def>
</gitem>
<gitem>
<label><code>[^abc]</code>, <code>[^#xN#xN#xN]</code></label>
<def><p>w肵ȊO̒l”Cӂ<termref def='dt-character'></termref>&match;B</p></def>
</gitem>
<gitem>
<label><code>"string"</code></label>
<def><p>&double-quote;ň͂&string;&literal;<termref def="dt-match">&match;Ă</termref>&string;&literal;&match;B</p></def>
</gitem>
<gitem>
<label><code>'string'</code></label>
<def><p>&single-quote;ň͂&string;&literal;<termref def="dt-match">&match;Ă</termref>&string;&literal;&match;B</p></def>
</gitem>
</glist>
̋ĹČ`̑gŎgpBŁC<code>A</code>y<code>B</code>́CPȎƂB
<glist>
<gitem>
<label>(<code>expression</code>)</label>
<def><p><code>expression</code>́C‚̂܂Ƃ܂ƂĈCɎgŎgĂ悢B</p></def>
</gitem>
<gitem>
<label><code>A?</code></label>
<def><p><code>A</code>͉Ȃ&match;(IvV<code>A</code>)B</p></def>
</gitem>
<gitem>
<label><code>A B</code></label>
<def><p><code>A</code>̎<code>B</code>&match;B
</p></def>
</gitem>
<gitem>
<label><code>A | B</code></label>
<def><p><code>A</code><code>B</code>CCł͂ȂC&match;B
</p></def>
</gitem>
<gitem>
<label><code>A - B</code></label>
<def><p><code>A</code>&match;邪C<code>B</code>Ƃ&match;ȂCCӂ&string;&match;B</p></def>
</gitem>
<gitem>
<label><code>A+</code></label>
<def><p><code>A</code>1ȏ̌JԂ&match;B</p></def>
</gitem>
<gitem>
<label><code>A*</code></label>
<def><p><code>A</code>0ȏ̌JԂ&match;B</p></def>
</gitem>
<!-- DEATH TO %'s
<gitem>
<label><code>%a</code></label>
<def><p>specifies that <emph>in the external DTD subset</emph> a
<termref def='dt-param-entity'>parameter entity</termref> may occur in the
text at the position where <code>a</code> may occur; if so, its
replacement text must match <code>S? a S?</code>.  If
the expression <code>a</code> is governed by a suffix operator, then
the suffix operator determines both the maximum number of parameter-entity 
references allowed and the number of occurrences of <code>a</code>
in the replacement text of the parameter entities:  <code>%a*</code>
means that <code>a</code> must occur zero or more times, and
that some of its occurrences may be replaced by references to
parameter entities whose replacement text must contain zero or 
more occurrences of <code>a</code>; it is thus a more compact way
of writing <code>%(a*)*</code>.
Similarly, <code>%a+</code> means that <code>a</code>
must occur one or more times, and may be replaced by 
parameter entities with replacement text matching 
<code>S? (a S?)+</code>.  
The recognition of parameter entities in the internal subset is much more
highly constrained.
</p></def>
</gitem>
-->
</glist>
KŎgp鑼̋L@CɎB
<glist>
<gitem>
<label><code>/* ... */</code></label>
<def><p>RgB</p></def>
</gitem>
<gitem>
<label><code>[ wfc: ... ]</code></label>
<def><p>&well-formed;BKɕt^C<termref def="dt-wellformed">&well-formed;</termref>̕Ɋւ鐧COɂ&identify;B</p></def>
</gitem>
<gitem>
<label><code>[ vc: ... ]</code></label>
<def><p>&validity;BKɕt^C<termref def="dt-valid">&valid;</termref>ȕɊւ鐧COɂ&identify;B
</p></def>
</gitem>
</glist>
</p></div1>

</body>
<back>
<!-- &SGML; -->

<!-- &Biblio; -->
<div1 id='sec-bibliography'>

<head>Ql</head>
<div2 id='sec-existing-stds'>
<head>&normative;Ql</head>
<!--* <ulist><item>
<p>Unicode and ISO/IEC 10646.  This specification depends on the
international standard ISO/IEC 10646 (with amendments AM 1 through AM 7)
and the Unicode Standard, Version 2.0 <bibref ref='Unicode'/>, 
which define the encodings and meanings of
the <termref def="dt-character">characters</termref> which 
make up XML <termref def="dt-text">text</termref>.
All the characters in ISO/IEC 10646 are present, at the same code points, 
in Unicode.</p></item>
<item><p>XXX XXX defines the syntax and semantics of 
Uniform Resource Identifiers, or URIs.</p></item>
<item><p>IETF RFC 1766, with ISO 639 and 3166, 
describe the codes that may be used in the 
special <titleref href='sec-lang-tag'>xml:lang</titleref> attribute.</p>
</item></ulist>
*-->

<blist>

<bibl id='RFC1766' key='IETF RFC 1766'>
IETF (Internet Engineering Task Force).
<emph>RFC 1766:  Tags for the Identification of Languages</emph>,
ed. H. Alvestrand.
1995.
</bibl>

<bibl id='ISO639' key='ISO 639'>
(International Organization for Standardization).
<emph>ISO 8879:1988 (E).
Code for the representation of names of languages.</emph>
[Geneva]:  International Organization for
Standardization, 1988.</bibl>

<bibl id='ISO3166' key='ISO 3166'>
(International Organization for Standardization).
<emph>ISO 3166-1:1997 (E).
Codes for the representation of names of countries and their subdivisions 
&mdash; Part 1: Country codes</emph>
[Geneva]:  International Organization for
Standardization, 1997.</bibl>

<bibl id='ISO10646' key='ISO/IEC 10646'>ISO
(International Organization for Standardization).
<emph>ISO/IEC 10646-1993 (E).  Information technology &mdash; Universal
Multiple-Octet Coded Character Set (UCS) &mdash; Part 1:
Architecture and Basic Multilingual Plane.</emph>
[Geneva]:  International Organization for
Standardization, 1993 (plus amendments AM 1 through AM 7).
</bibl>

<bibl id='Unicode' key='Unicode'>The Unicode Consortium.
<emph>The Unicode Standard, Version 2.0.</emph>
Reading, Mass.:  Addison-Wesley Developers Press, 1996.</bibl>

</blist>

</div2>

<div2><head>̎Ql</head> 

<blist>

<bibl id='Aho' key='Aho/Ullman'>Aho, Alfred V., 
Ravi Sethi, and Jeffrey D. Ullman.
<emph>Compilers:  Principles, Techniques, and Tools</emph>.
Reading:  Addison-Wesley, 1986, rpt. corr. 1988.</bibl>

<bibl id="Berners-Lee" xml-link="simple" key="Berners-Lee et al.">
Berners-Lee, T., R. Fielding, and L. Masinter.
<emph>Uniform Resource Identifiers (URI):  Generic Syntax and
Semantics</emph>.
1997.
(Work in progress; see updates to RFC1738.)</bibl>

<bibl id='ABK' key='Br&#252;ggemann-Klein'>Br&#252;ggemann-Klein, Anne.
<emph>Regular Expressions into Finite Automata</emph>.
Extended abstract in I. Simon, Hrsg., LATIN 1992, 
S. 97-98. Springer-Verlag, Berlin 1992. 
Full Version in Theoretical Computer Science 120: 197-213, 1993.
<!--
Universitat Freiburg, Institut fur Informatik,
Bericht 33, Juli 1991.-->
</bibl>

<bibl id='ABKDW' key='Br&#252;ggemann-Klein and Wood'>Br&#252;ggemann-Klein, Anne,
and Derick Wood.
<emph>Deterministic Regular Languages</emph>.
Universit&#228;t Freiburg, Institut f&#252;r Informatik,
Bericht 38, Oktober 1991.
</bibl>

<bibl id="RFC1738" xml-link="simple" key="IETF RFC1738">
IETF (Internet Engineering Task Force).
<emph>RFC 1738:  Uniform Resource Locators (URL)</emph>, 
ed. T. Berners-Lee, L. Masinter, M. McCahill.
1994.
</bibl>

<bibl id="RFC1808" xml-link="simple" key="IETF RFC1808">
IETF (Internet Engineering Task Force).
<emph>RFC 1808:  Relative Uniform Resource Locators</emph>, 
ed. R. Fielding.
1995.
</bibl>

<bibl id="RFC2141" xml-link="simple" key="IETF RFC2141">
IETF (Internet Engineering Task Force).
<emph>RFC 2141:  URN Syntax</emph>, 
ed. R. Moats.
1997.
</bibl>

<bibl id='ISO8879' key='ISO/IEC 8879'>ISO
(International Organization for Standardization).
<emph>ISO/IEC 8879-1986 (E).  Information processing &mdash; Text and Office
Systems &mdash; Standard Generalized Markup Language (SGML).</emph>  First
edition &mdash; 1986-10-15.  [Geneva]:  International Organization for
Standardization, 1986.
</bibl>


<bibl id='ISO10744' key='ISO/IEC 10744'>ISO
(International Organization for Standardization).
<emph>ISO/IEC 10744-1992 (E).  Information technology &mdash;
Hypermedia/Time-based Structuring Language (HyTime).
</emph>
[Geneva]:  International Organization for
Standardization, 1992.
<emph>Extended Facilities Annexe.</emph>
[Geneva]:  International Organization for
Standardization, 1996. 
</bibl>



</blist>
</div2>
</div1>
<div1 id='CharClasses'>
<head>NX</head>

<p>UnicodeWɒ`&property;ɂāĆC&base-character;(BaseChar)(́C&diacritical-mark;eAt@xbg̃At@xbg܂)C&ideographic;(ideographic)y&combining-character;(CombiningChar)(̃NX́CقƂǂ&diacritical-mark;܂)ɃNXB̃NX́CC&letter;(Letter)̃NXƂȂB10il(Digit)y&extender;(Extender)ʂB
<scrap lang="ebnf" id="CHARACTERS">
<head></head>
<prodgroup pcw3="3" pcw4="15">
<prod id="NT-Letter"><lhs>Letter</lhs>
<rhs><nt def="NT-BaseChar">BaseChar</nt> 
| <nt def="NT-Ideographic">Ideographic</nt></rhs> </prod>
<prod id='NT-BaseChar'><lhs>BaseChar</lhs>
<rhs>[#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]
</rhs></prod>
<prod id='NT-Ideographic'><lhs>Ideographic</lhs>
<rhs>[#x4E00-#x9FA5]
|&nbsp;#x3007
|&nbsp;[#x3021-#x3029]
</rhs></prod>
<prod id='NT-CombiningChar'><lhs>CombiningChar</lhs>
<rhs>[#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
</rhs></prod>
<prod id='NT-Digit'><lhs>Digit</lhs>
<rhs>[#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]
</rhs></prod>
<prod id='NT-Extender'><lhs>Extender</lhs>
<rhs>#x00B7
|&nbsp;#x02D0
|&nbsp;#x02D1
|&nbsp;#x0387
|&nbsp;#x0640
|&nbsp;#x0E46
|&nbsp;#x0EC6
|&nbsp;#x3005
|&nbsp;[#x3031-#x3035]
|&nbsp;[#x309D-#x309E]
|&nbsp;[#x30FC-#x30FE]
</rhs></prod>

</prodgroup>
</scrap>
</p>
<p>Œ`镶NX́CUnicodef[^x[XĈƂɓ邱ƂłB
<ulist>
<item>
<p>a) OJńCLl, Lu, Lo, Lt, NlJeS̈‚łȂ΂ȂȂB</p>
</item>
<item>
<p>b) OJnȊO̖ÓCMc, Me, Mn, Lm, NdJeS̈‚łȂ΂ȂȂB</p>
</item>
<item>
<p>c) &compatibility-area;ɂ镶(#xF900傫#xFFFE菬)́CXMLɂ閼OƂẮCȂB</p>
</item>
<item>
<p>d) &font-decomposition;&compatibility-decomposition;•(‚܂Cf[^x[X̂TԖڂ̃tB[h"compatibility formatting tag"́B́CTԖڂ̃tB[hC"&lt;"Ŏn܂邱Ƃɂă}[NtB)́CȂB</p>
</item>
<item>
<p>e) ́̕COJnƂĈB́C&property-file;C̕At@xbgɗގƌȂƂɂB
[#x02BB-#x02C1], #x0559, #x06E5, #x06E6ƂB</p>
</item>
<item>
<p>f) #x20DD-#x20E0́̕C(Unicode 5.14ɂ)OB</p>
</item>
<item>
<p>g) #x00B7́̕C&property-list;ɂāC&extender;(extender)ɕނB</p>
</item>
<item>
<p>h) #x0387́Cɑ鐳K`#x00B7Ȃ̂ŁCOɒljB</p>
</item>
<item>
<p>i) ':'y'_'́COJnƂċB</p>
</item>
<item>
<p>j) '-'y'.'́COƂċB</p>
</item>
</ulist>
</p>
</div1>
<inform-div1 id="sec-xml-and-sgml">
<head>XMLySGML</head>

<p>XMĹCSGML&subset;ƂĐ݌vĂBȂ킿CׂĂ<termref def="dt-valid">&valid;</termref>XMĹCKiɓKSGMLɂȂBSGMLɉۂȊOɁCXMLȂ鐧ۂɊւڍׂ́Cʂ<loc href='http://www.w3.org/TR/NOTE-sgml-xml'>K</loc>QƂ̂ƁB̋ḰCXML̐SGML錾܂݁ĆCSGML&parser;ɎgpłB
</p>
</inform-div1>
<inform-div1 id="sec-entexpand">
<head>̎QƋyѕQƂ̓WJ</head>
<p>̕t^́C̎QƋyѕQƂFCWJCA̗CɎgĎB</p>
<p>
DTDC̐錾܂ޏꍇlB
<eg><![CDATA[<!ENTITY example "<p>An ampersand (&#38;#38;) may be escaped
numerically (&#38;#38;#38;) or with a general entity
(&amp;amp;).</p>" >
]]></eg>
XML&processor;́Ĉ̐錾\͂_ŕQƂFCB"<code>example</code>"̒lƂāC&string;ۑB
<eg><![CDATA[<p>An ampersand (&#38;) may be escaped
numerically (&#38;#38;) or with a general entity
(&amp;amp;).</p>
]]></eg>
"<code>&amp;example;</code>"QƂƁC̃eLXǵCĂэ\͂B̂ƂCvf"<code>p</code>"̊Jn^OyяI^OFCO‚̎QƂFWJB̌ʁCvf"<code>p</code>"́C̓e(ׂăf[^ƂC؂q&markup;݂͑ȂB)B
<eg><![CDATA[An ampersand (&) may be escaped
numerically (&#38;) or with a general entity
(&amp;).
]]></eg>
</p>
<p>Kyт̌ʂڍׂɎ߁CɕGȗB̗ŁCsԍ́CQƂ̕֋X̂߂ɕtB
<eg><![CDATA[1 <?xml version='1.0'?>
2 <!DOCTYPE test [
3 <!ELEMENT test (#PCDATA) >
4 <!ENTITY % xx '&#37;zz;'>
5 <!ENTITY % zz '&#60;!ENTITY tricky "error-prone" >' >
6 %xx;
7 ]>
8 <test>This sample shows a &tricky; method.</test>
]]></eg>
ƁĈƂƂȂB
<ulist spacing="compact">
<item><p>a) 4sڂŁC37Ԗڂ̕ւ̎QƂ𒼂ɓWJCp^"<code>xx</code>"CV{e[u"<code>%zz;</code>"ƂlƂƂɕۑB&replacement-text;Ăё邱Ƃ͂Ȃ̂ŁCp^"<code>zz</code>"ւ̎QƂ͔FȂ("<code>zz</code>"́C܂錾ĂȂ̂ŁC΁C&error;ƂȂB)B</p></item>
<item><p>b) 5sڂŁCQ"<code>&amp;#60;</code>"𒼂ɓWJCp^"<code>zz</code>""<code>&lt;!ENTITY tricky "error-prone" ></code>"Ƃ&replacement-text;ƂƂɕۑB́C&well-formed;̎̐錾ƂB</p></item>
<item><p>c) 6sڂŁC"<code>xx</code>"ւ̎QƂFC"<code>xx</code>"&replacement-text;(Ȃ킿C"<code>%zz;</code>")\͂B"<code>zz</code>"ւ̎QƂ𑱂ĔFC&replacement-text;("<code>&lt;!ENTITY tricky "error-prone" ></code>")\͂Bʎ"<code>tricky</code>"́C̎_ł́C錾ĂC&replacement-text;́C"<code>error-prone</code>"ƂB </p></item>
<item><p>d) 8sڂŁCʎ"<code>tricky</code>"ւ̎QƂFCWJBvf"<code>test</code>"̊SȓéC(eꎩ̕\B)&string;ƂȂB‚܂C<emph>This sample shows a error-prone method.</emph>
</p></item>
</ulist>
</p>
</inform-div1> 
<inform-div1 id="determinism">
<head>Ief</head>
<p><termref def='dt-compat'>݊̂</termref>Cvf錾ɂef́CIƂKvB
</p>
<!-- FINAL EDIT:  WebSGML allows ambiguity? -->
<p>SGMĹCIef(SGMLł́C񂠂܂ƌĂԁB)vBSGMLVXepč쐬XML&processor;́C񌈒Ief&error;ƂĂ悢B</p>
<p>Ⴆ΁Cef<code>((b, c) | (b, d))</code>͔񌈒IƂȂB́Cŏ<code>b</code>^ƂCf̂<code>b</code>&match;̂]܂C̗̎vfǂ݂邱ƂȂɂ́C&parser;͒m邱ƂłȂƂɂB̏ꍇ́C<code>b</code>ւ̓‚̎QƂ́C‚̎QƂɂ܂Ƃ߂邱ƂłCf́C<code>(b, (c | d))</code>ƂȂBŁCŏ<code>b</code>Cef̈‚̖OƂ&match;邱Ƃ͖炩ƂȂB&parser;́Cǂ݂āCɗ̂mKvȂB<code>c</code><code>d</code>C󗝂B</p>
<p>`IɎBAho, Sethi, and Ullman <bibref ref='Aho'/>3.9̃ASY3.5̕WIȃASYpāCefLI[g}g\邱ƂłB̎̑̃ASYł́CK\ɂeẌʒu(‚܂CK\̍\؂ɂeX̖[m[h)ɑ΂āCfollow set(ɂǂ̈ʒuɈړ”\\)\Bʒuɑ΂follow setɂāC̈ʒuvf^ŃxtĂ΁C̓ef&error;ƂȂC&error;ԂꍇB
</p>
<p>ׂĂ̔񌈒Ief𓙉ȌIefɕϊ邱Ƃ͂łȂC̔񌈒IefϊASY݂BBr&#252;ggemann-Klein 1991 <bibref ref='ABK'/>QƂ̂ƁB</p>
</inform-div1>
<inform-div1 id="sec-guessing">
<head>̎o</head>
<p>
XML̕錾́Cê̓xƂċ@\Cǂ̕gp邩BCXML&processor;́CxǂޑOɁCǂ̕gp邩mKvCꂪCxƂ邱ƂɂȂBʓIɂ́ĆC]IȏԂƂȂBCXMLɂẮCSɂ͐]Ił͂ȂB́CXMLC̓‚̓_ňʓIȏꍇɑ΂鐧邱ƂɂB‚̐́Cǂ̎L‚̃̕T|[gz肷邱ƂƂB̈‚̐́CêŎgp镶o”\ƂCXML̕錾̈ʒuyѓeɊւ鐧ƂB̏ꍇɁCXML̃f[^Xg[ɉC̏񂪗płBł́CXML̎̂&processor;ɓnƂC(O)𔺂ǂɂāC‚̏ꍇɕB܂ŏ̏ꍇB</p>
<p>
UTF-8`UTF-16`ł͂ȂXML̂́Cŏ̕e<code>&lt;?xml</code>'ƂXML錾Ŏn܂<emph>Ȃ΂ȂȂ</emph>̂ŁCǂ̓K&processor;C͂ɂ2INebg4INebg𒲂ׂ΁Ĉǂ̏ꍇĂ͂܂邩ołB̃Xgǂލۂɂ́CUCS-4'&lt;'"<code>#x0000003C</code>"C'?'"<code>#x0000003F</code>"CyUTF-16̃f[^&stream;̕KvƂ&byte-order-mark;"<code>#xFEFF</code>"ƂƂmĂƖ𗧂‚ȂB</p>
<p>
<ulist>
<item>
<p>a) <code>00 00 00 3C</code>: UCS-4, big-endian }V (1234)</p>
</item>
<item>
<p>b) <code>3C 00 00 00</code>: UCS-4, little-endian }V (4321)</p>
</item>
<item>
<p>c) <code>00 00 3C 00</code>: UCS-4, ʂł͂ȂINebg (2143)</p>
</item>
<item>
<p>d) <code>00 3C 00 00</code>: UCS-4, ʂł͂ȂINebg (3412)</p>
</item>
<item>
<p>e) <code>FE FF</code>: UTF-16, big-endian</p>
</item>
<item>
<p>f) <code>FF FE</code>: UTF-16, little-endian</p>
</item>
<item>
<p>g) <code>00 3C 00 3F</code>: UTF-16, big-endian, &byte-order-mark;Ȃ(āCɂ΁C&error;ƂB)B</p>
</item>
<item>
<p>h) <code>3C 00 3F 00</code>: UTF-16, little-endian, &byte-order-mark;Ȃ(āCɂ΁C&error;ƂB)B</p>
</item>
<item>
<p>i) <code>3C 3F 78 6D</code>: UTF-8, ISO 646, ASCII, ISO 8859̊ep[gCShift-JISCEUCCтɔCӂ̑7rbgC8rbg͍ݕ̕łāCASCIIʏ̈ʒuCyђlƂ邱Ƃۏ؂́B̂ǂɑΉ邩o邽߂ɂ́Cۂ̕錾ǂݍ܂Ȃ΂ȂȂBC炷ׂẮ̕CASCIIɑ΂ērbgp^[gp̂ŁC錾̂́CmɓǍ݉”\ƂB
</p>
</item>
<item>
<p>j) <code>4C 6F A7 94</code>: EBCDIC (͂̕ώBǂ̃R[hy[Wgp邩m邽߂ɂ́C錾Ŝǂݍ܂Ȃ΂ȂȂB)</p>
</item>
<item>
<p>k) ̑: 錾ȂUTF-8BłȂƂɂ́Cf[^&stream;Ă邩CfГIɂȂĂ邩C炩̌`ɂĖߍ܂ĂB</p>
</item>
</ulist>
</p>
<p>
̒x̎ʂłCXML̕錾ǂݍ݁C&identifier;͂ɂ͏\ƂB&identifier;̉͂́CގeẌ̕ˆ‚ʂ邽߂ɕKvƂ(Ⴆ΁CUTF-8y8859ʂ邽߁C8859̊ep[gʂ邽߁CgpĂEBCDICR[hy[Wʂ邽߁CȂǁB)B
</p>
<p>
錾̓eASCIIɌ肵Ă̂ŁCǂ̕ނ̕gp邩o΁C&processor;́C錾Ŝ𐳊mɓǂݍނƂłBƂāCLgpĂ镶́C̕ނ̂ꂩɂĂ͂܂̂ŁCIy[eBOVXe͓`vgR^OMs”\ȂƂłCxŕȂ萳mɎƂCXML錾ɂĉ”\ƂȂB
</p>
<p>
&processor;gp镶o΁Cꂼ̏ꍇɑ΂ĕʌ‚̓̓[`ĂяoC͓͂eɑ΂K؂ȕϊ֐ĂяoƂɂāCK؂ȓ삪”\ƂȂB</p>
<p>
̂Ƀxt邢ȂVXełlC\tgEFAC錾XVɎ̂̕W͕ςȂ΁CXML̕錾́C@\ȂB[`̎҂́Ĉ̃xtɎgpyъȌ̐m̕ۏ؂ɒӂ̂]܂B
</p>
<p>QԖڂ̏ꍇ́CXML̎̂̑ɁC񂪑݂ƂłāC‚̃t@CVXeyуlbg[NvgRł́C̕񂪑݂B̏񂪗płƂC<!-- (e.g. both the
internal encoding declaration and an external label),  -->̑ΓIȗDxyт炪Ƃ̖]܂@́CXML̔zɎgpC荂̃vgR̈ꕔƂċK̂悢BႦ΁CxyъO&header;ɑ݂MIME`̃x̑ΓIȗDxɑ΂ḰCtext/xmlyapplication/xmlMIME^`RFC̈ꕔƂȂ悢BC݉^p̂߂ɁC̋Kɏ]Ƃ]܂B
<ulist>
<item><p>a) XML̎̂t@Cɑ݂΁C&byte-order-mark;yѕ錾PÍC(݂)肷邽߂ɎgpBׂ̂Ă&hueristics;yя́C&error;񕜂̂߂ɗpB
</p></item>
<item><p>b) XML̎̂MIME^text/xmlŔzƂ́CMIME^̂charsetp^@肷Bׂ̂Ă&hueristics;yя́C&error;񕜂̂߂ɗpB
</p></item>
<item><p>c) XML̎̂ <!-- via the HTTP protocol -->MIME^application/xmlŔzƂ́C&byte-order-mark;yѕ錾PI(݂)̌̂߂ɎgpBׂ̂Ă&hueristics;&error;񕜂̂߂ɗpB
</p></item>
</ulist>
̋ḰCvgRɂ‚Ă̎ȂƂɂpBɁCMIME^text/xmlyapplication/xml`CK肷RFCɑ݂K肪C̋KɎđB
</p>
</inform-div1>
<!--
<div1 id='sec-trival-grammar'>
<head>A Trivial Grammar for XML Documents</head>
<p>The grammar given in the body of this specification is relatively
simple, but for some purposes it is convenient to have an even simpler
one.  
A very simple, though non-conforming, <termref def="dt-xml-proc">XML
processor</termref> could parse a <termref
def="dt-wellformed">well-formed</termref> XML document using the
following simplified grammar, recognizing all element boundaries
correctly, though not expanding entity references and not detecting
all errors:

<scrap lang="ebnf">
<head>Trivial text grammar</head>
<prodgroup pcw2="5.5" pcw4="17" pcw5="10">
<prod id='NT-simpleDoc'><lhs>simpleDoc</lhs>
<rhs>(<nt def='NT-SimpleData'>SimpleData</nt> 
| <nt def='NT-Markup'>Markup</nt>)*</rhs></prod>
<prod id="NT-SimpleData"><lhs>SimpleData</lhs>
<rhs>[^&lt;&amp;]*</rhs>
<com>cf. PCData</com>
</prod>
<prod id="NT-SimpleLit"><lhs>SimpleLit</lhs>
<rhs>('"' [^"]* '"')</rhs>
<rhs>|&nbsp;("'" [^']* "'")</rhs>
<com>cf. SkipLit</com>
</prod>
<prod id='NT-Markup'><lhs>Markup</lhs>
<rhs>'&lt;' <nt def='NT-Name'>Name</nt> 
(<nt def='NT-S'>S</nt> 
<nt def='NT-Name'>Name</nt> 
<nt def='NT-S'>S</nt>? '=' <nt def='NT-S'>S</nt>?
<nt def='NT-SimpleLit'>SimpleLit</nt>)* 
<nt def='NT-S'>S</nt>? '&gt;'</rhs><com>start-tags </com>
<rhs>| '&lt;' <nt def='NT-Name'>Name</nt> 
(<nt def='NT-S'>S</nt> 
<nt def='NT-Name'>Name</nt> 
<nt def='NT-S'>S</nt>? '=' <nt def='NT-S'>S</nt>?
<nt def='NT-SimpleLit'>SimpleLit</nt>)* 
<nt def='NT-S'>S</nt>? '/&gt;'</rhs><com>empty elements</com>
<rhs>| '&lt;/' 
<nt def='NT-Name'>Name</nt> 
<nt def='NT-S'>S</nt>? '&gt;'</rhs>
<com>end-tags </com>
<rhs>| '&amp;' <nt def='NT-Name'>Name</nt> ';'</rhs>
<com>entity references </com>
<rhs>| '&amp;#' [0-9]+ ';'</rhs>
<com>decimal character references </com>
<rhs>| '&hcro;' [0-9a-fA-F]+ ';'</rhs>
<com>hexadecimal character references </com>
<rhs>| '&lt;!&como;' 
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* '&comc;' <nt def='NT-Char'>Char</nt>*))
'&comc;&gt;'</rhs>
<com>comments </com>
<rhs>| '&lt;?'
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* &pic; <nt def='NT-Char'>Char</nt>*))
'&pic;'</rhs>
<com>processing instructions </com>
<rhs>| '&lt;![CDATA[' 
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* ']]&gt;' <nt def='NT-Char'>Char</nt>*))
']]&gt;'</rhs>
<com>CDATA sections</com>
<rhs>| '&lt;!DOCTYPE' 
(<nt def="NT-Char">Char</nt> - ('[' | ']'))+
('[' 
<nt def="NT-simpleDTD">simpleDTD</nt>*
']')? '&gt;'</rhs>
<com>doc type declaration</com>
</prod>
<prod id="NT-simpleDTD"><lhs>simpleDTD</lhs>
<rhs>'&lt;!&como;' 
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* '&comc;' <nt def='NT-Char'>Char</nt>*))
'&comc;&gt;'</rhs>
<com>comment </com>
<rhs>| '&lt;?'
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* &pic; <nt def='NT-Char'>Char</nt>*))
'&pic;'</rhs>
<com>processing instruction </com>
<rhs><nt def="NT-SimpleLit">SimpleLit</nt></rhs>
<rhs>(<nt def="NT-Char">Char</nt> - (']' | '&lt;' | '"' | "'"))+
</rhs>

<rhs>'&lt;!' (<nt def="NT-Char">Char</nt> - ('-'))+</rhs>
<com>declarations other than comment</com>
</prod>
</prodgroup>
</scrap>
Most processors will require the more complex
grammar given in the body of this specification.

</p>
</div1>
-->

<inform-div1 id="sec-xml-wg">
<head>&informative;W3C XML [LOO[v</head>
 
<p>&TR-or-Rec;́CW3C XML [LOO[v(WG)CJFBWG&TR-or-Rec;FƂƂ́CWĜׂĂ̈ψF[sƂƂKӖȂBXML WǦ݂̈ψyшȑÖψɎB</p>
 
<!-- parens and spaces removed from role elements by bosak 1997.11.07 -->
<orglist>
<member><name>Jon Bosak, Sun</name><role>Chair</role></member>
<member><name>James Clark</name><role>Technical Lead</role></member>
<member><name>Tim Bray, Textuality and Netscape</name><role>XML Co-editor</role></member>
<member><name>Jean Paoli, Microsoft</name><role>XML Co-editor</role></member>
<member><name>C. M. Sperberg-McQueen, U. of Ill.</name><role>XML Co-editor</role></member>
<member><name>Dan Connolly, W3C</name></member>
<member><name>Steve DeRose, INSO</name></member>
<member><name>Dave Hollander, HP</name></member>
<member><name>Eliot Kimber, Highland</name></member>
<member><name>Eve Maler, ArborText</name></member>
<member><name>Tom Magliery, NCSA</name></member>
<member><name>Murray Maloney, Muzmo and Grif</name></member>
<member><name>c@^Cxm[bNXVXe()</name></member>
<member><name>Joel Nava, Adobe</name></member>
<member><name>Peter Sharpe, SoftQuad</name></member>
<member><name>John Tigue, DataChannel</name></member>
</orglist>

</inform-div1>
</back>
</spec>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
End:
-->