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
|
<pre>Network Working Group S. Legg
Request for Comments: 4914 eB2Bcom
Category: Experimental July 2007
<span class="h1">Abstract Syntax Notation X (ASN.X) Representation</span>
<span class="h1">of Encoding Instructions for</span>
<span class="h1">the XML Encoding Rules (XER)</span>
Status of This Memo
This memo defines an Experimental Protocol for the Internet
community. It does not specify an Internet standard of any kind.
Discussion and suggestions for improvement are requested.
Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The IETF Trust (2007).
Abstract
Abstract Syntax Notation X (ASN.X) is an Extensible Markup Language
(XML) representation for Abstract Syntax Notation One (ASN.1)
specifications. This document specifies the ASN.X representation of
encoding instructions for the XML Encoding Rules (XER).
<span class="grey">Legg Experimental [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Conventions .....................................................<a href="#page-3">3</a>
<a href="#section-3">3</a>. Preprocessing of ImportedTypesIdentification ....................<a href="#page-4">4</a>
<a href="#section-4">4</a>. EncodingInstructionAssignmentList Translation ...................<a href="#page-4">4</a>
<a href="#section-5">5</a>. EncodingInstruction Translation .................................<a href="#page-5">5</a>
<a href="#section-5.1">5.1</a>. AnyAttributesInstruction Translation .......................<a href="#page-6">6</a>
<a href="#section-5.1.1">5.1.1</a>. NamespaceRestriction Translation ....................<a href="#page-7">7</a>
<a href="#section-5.2">5.2</a>. AnyElementInstruction Translation ..........................<a href="#page-7">7</a>
<a href="#section-5.3">5.3</a>. AttributeInstruction Translation ...........................<a href="#page-7">7</a>
<a href="#section-5.4">5.4</a>. Base64Instruction Translation ..............................<a href="#page-8">8</a>
<a href="#section-5.5">5.5</a>. DecimalInstruction Translation .............................<a href="#page-8">8</a>
<a href="#section-5.6">5.6</a>. DefaultForEmptyInstruction Translation .....................<a href="#page-8">8</a>
<a href="#section-5.7">5.7</a>. ElementInstruction Translation .............................<a href="#page-8">8</a>
<a href="#section-5.8">5.8</a>. EmbedValuesInstruction Translation .........................<a href="#page-8">8</a>
<a href="#section-5.9">5.9</a>. GlobalDefaultsInstruction Translation ......................<a href="#page-8">8</a>
<a href="#section-5.10">5.10</a>. ListInstruction Translation ...............................<a href="#page-9">9</a>
<a href="#section-5.11">5.11</a>. NameInstruction Translation ...............................<a href="#page-9">9</a>
<a href="#section-5.12">5.12</a>. NamespaceInstruction Translation .........................<a href="#page-10">10</a>
<a href="#section-5.13">5.13</a>. PIOrCommentInstruction Translation .......................<a href="#page-10">10</a>
<a href="#section-5.14">5.14</a>. TextInstruction Translation ..............................<a href="#page-11">11</a>
<a href="#section-5.15">5.15</a>. UntaggedInstruction Translation ..........................<a href="#page-11">11</a>
<a href="#section-5.16">5.16</a>. UseNilInstruction Translation ............................<a href="#page-12">12</a>
<a href="#section-5.17">5.17</a>. UseNumberInstruction Translation .........................<a href="#page-12">12</a>
<a href="#section-5.18">5.18</a>. UseOrderInstruction Translation ..........................<a href="#page-12">12</a>
<a href="#section-5.19">5.19</a>. UseQNameInstruction Translation ..........................<a href="#page-12">12</a>
<a href="#section-5.20">5.20</a>. UseTypeInstruction Translation ...........................<a href="#page-12">12</a>
<a href="#section-5.21">5.21</a>. UseUnionInstruction Translation ..........................<a href="#page-12">12</a>
<a href="#section-5.22">5.22</a>. WhiteSpaceInstruction Translation ........................<a href="#page-12">12</a>
<a href="#section-6">6</a>. TargetList Translation .........................................<a href="#page-13">13</a>
<a href="#section-6.1">6.1</a>. TypeIdentification Translation ............................<a href="#page-13">13</a>
<a href="#section-6.2">6.2</a>. BuiltInTypeIdentification Translation .....................<a href="#page-15">15</a>
<a href="#section-6.3">6.3</a>. IdentifiersInContext Translation ..........................<a href="#page-17">17</a>
<a href="#section-7">7</a>. Security Considerations ........................................<a href="#page-18">18</a>
<a href="#section-8">8</a>. References .....................................................<a href="#page-18">18</a>
<a href="#section-8.1">8.1</a>. Normative References ......................................<a href="#page-18">18</a>
<a href="#section-8.2">8.2</a>. Informative References ....................................<a href="#page-19">19</a>
<a href="#appendix-A">Appendix A</a>. ASN.1 for XER Encoding Instruction Notation ...........<a href="#page-20">20</a>
<a href="#appendix-B">Appendix B</a>. ASN.1 for Target List Notation ........................<a href="#page-24">24</a>
<a href="#appendix-C">Appendix C</a>. ASN.X for XER Encoding Instruction Notation ...........<a href="#page-26">26</a>
<a href="#appendix-D">Appendix D</a>. ASN.X for Target List Notation ........................<a href="#page-33">33</a>
<span class="grey">Legg Experimental [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Abstract Syntax Notation X (ASN.X) [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>] is an Extensible Markup
Language (XML) [<a href="#ref-XML10" title=""Extensible Markup Language (XML) 1.0 (Fourth Edition)"">XML10</a>] [<a href="#ref-XML11" title=""Extensible Markup Language (XML) 1.1 (Second Edition)"">XML11</a>] representation for Abstract Syntax
Notation One (ASN.1) [<a href="#ref-X.680">X.680</a>] specifications. The ASN.X
representation for the ASN.1 basic notation [<a href="#ref-X.680">X.680</a>] [<a href="#ref-X.680-1">X.680-1</a>] is
described elsewhere [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>].
The grammar of ASN.1 permits the application of encoding instructions
[<a href="#ref-X.680-1">X.680-1</a>], through type prefixes and encoding control sections, that
modify how abstract values are encoded by nominated encoding rules.
The generic notation for type prefixes and encoding control sections
is defined by the ASN.1 basic notation; however, the notation for
specific encoding instructions, i.e., the EncodingInstruction and
EncodingInstructionAssignmentList productions of the notation, are
defined separately for each set of encoding rules using encoding
instructions. This document specifies the ASN.X representation for
EncodingInstructionAssignmentList and EncodingInstruction as they are
defined for the XML Encoding Rules (XER) [<a href="#ref-X.693">X.693</a>][X.693-1].
ASN.X is defined in terms of rules for translating from an ASN.1
specification. This does not preclude an ASN.X module being written
directly without a pre-existing ASN.1 module; however, such an ASN.X
module is considered valid if and only if there exists, in principle,
an ASN.1 module that when translated would yield the ASN.X module.
By design, an ASN.X module is also the Robust XML Encoding Rules
(RXER) [<a href="#ref-RXER" title=""Robust XML Encoding Rules (RXER) for Abstract Syntax Notation One (ASN.1)"">RXER</a>] encoding of an ASN.1 value. The ASN.1 type definitions
for such values, insofar as they pertain to the ASN.1 basic notation,
are provided elsewhere [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>]; however, this document provides the
ASN.1 type definitions for representing XER encoding instructions as
abstract values. These definitions appear in <a href="#appendix-A">Appendix A</a>.
The ASN.X translation of the ASN.1 module in <a href="#appendix-A">Appendix A</a> is presented
in <a href="#appendix-B">Appendix B</a>.
The General Considerations of the specification for ASN.X [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>]
also apply here.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", and "MAY" in this document are
to be interpreted as described in <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a> [<a href="#ref-BCP14" title=""Key words for use in RFCs to Indicate Requirement Levels"">BCP14</a>]. The key
word "OPTIONAL" is exclusively used with its ASN.1 meaning.
<span class="grey">Legg Experimental [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
A reference to an ASN.1 production [<a href="#ref-X.680">X.680</a>] (e.g., Type, NamedType) is
a reference to the text in an ASN.1 specification corresponding to
that production.
The description of the translation of XER encoding instructions into
ASN.X makes use of definitions from the XML Information Set (Infoset)
[<a href="#ref-INFOSET" title=""XML Information Set (Second Edition)"">INFOSET</a>]. In particular, information item property names follow the
Infoset convention of being shown in square brackets, e.g.,
[local name]. Literal values of Infoset properties are enclosed in
double quotes; however, the double quotes are not part of the
property values. In the sections that follow, "information item"
will be abbreviated to "item", e.g., "element information item" is
abbreviated to "element item". Element items will be referred to by
their [local name] in angle brackets, e.g., "the <name> element item"
means the element item with the [local name] "name". Attribute items
will be referred to by their [local name], e.g., "the name attribute
item" means the attribute item with the [local name] "name".
Code points for characters [<a href="#ref-UNICODE" title=""The Unicode Standard, Version 4.0"">UNICODE</a>] are expressed using the Unicode
convention U+n, where n is four to six hexadecimal digits, e.g., the
space character is U+0020.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Preprocessing of ImportedTypesIdentification</span>
Interpretation of an ImportedTypesIdentification depends on a
SymbolList in the Imports of a module, but a SymbolList does not have
a direct translation into ASN.X. A module containing at least one
ImportedTypesIdentification must be preprocessed so that each
ImportedTypesIdentification has the intended effect.
If an EncodingInstruction in an XER EncodingInstructionAssignmentList
has a Targets instance that is an ImportedTypesIdentification, then
each Type affected by the ImportedTypesIdentification MUST be
replaced by an EncodingPrefixedType where the Type in the
EncodingPrefixedType is the original Type and the EncodingPrefix
contains the EncodingInstruction minus the TargetList. The
ImportedTypesIdentification SHALL be removed. If the
EncodingInstruction in the EncodingInstructionAssignmentList has no
other Targets instances, then it MUST be removed from the
EncodingInstructionAssignmentList.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. EncodingInstructionAssignmentList Translation</span>
As described in the specification for ASN.X [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>], the translation
of an EncodingControlSection for XER is an element item with the
[local name] "XER". The translation of the
EncodingInstructionAssignmentList in such an EncodingControlSection
determines the content of the <XER> element item.
<span class="grey">Legg Experimental [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
An element item with the [local name] "annotation" MAY be added to
the [children] of the <XER> element item.
The translation of each EncodingInstruction nested in the
EncodingInstructionAssignmentList SHALL be appended to the [children]
of the <XER> element item.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. EncodingInstruction Translation</span>
The translation of an EncodingInstruction for XER can appear in the
translation of an EncodingInstructionAssignmentList (see the previous
section) or an EncodingPrefix. The translation for an EncodingPrefix
is described by the specification for ASN.X [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>].
The translation of an EncodingInstruction in an
EncodingInstructionAssignmentList for XER is an element item with the
[local name] "targettedInstruction". The translation of the
PositiveInstruction or NegatingInstruction in the EncodingInstruction
SHALL be added to the [children] of the <targettedInstruction>
element item. The translation of the TargetList nested in the
encoding instruction SHALL be appended to the [children] of the
<targettedInstruction> element item.
Aside: The TargetList appears within an EncodingInstruction in an
EncodingInstructionAssignmentList, but its ASN.X translation
appears immediately after the translation of the
EncodingInstruction, rather than within it.
Example
ENCODING-CONTROL XER
GLOBAL-DEFAULTS MODIFIED-ENCODINGS
ATTRIBUTE MyType
<encodingControls>
<XER>
<targettedInstruction>
<globalDefaults>
<modifiedEncodings/>
</globalDefaults>
</targettedInstruction>
<targettedInstruction>
<attribute/>
<target type="MyType"/>
</targettedInstruction>
</XER>
</encodingControls>
<span class="grey">Legg Experimental [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
The translation of an EncodingInstruction for XER in an
EncodingPrefix is the translation of the PositiveInstruction or
NegatingInstruction in the EncodingInstruction.
Aside: The TargetList within an EncodingInstruction in an
EncodingPrefix is required to be empty and has no ASN.X
translation in this context.
The translation of a PositiveInstruction is the translation of the
AnyAttributeInstruction, AnyElementInstruction, AttributeInstruction,
Base64Instruction, DecimalInstruction, DefaultForEmptyInstruction,
EmbedValuesInstruction, GlobalDefaultsInstruction, ListInstruction,
NameInstruction, NamespaceInstruction, PIOrCommentInstruction,
TextInstruction, UntaggedInstruction, UseNilInstruction,
UseNumberInstruction, UseOrderInstruction, UseQNameInstruction,
UseTypeInstruction, UseUnionInstruction or WhitespaceInstruction in
the PositiveInstruction.
The translation of a NegatingInstruction that is an
ElementInstruction is the translation of that ElementInstruction.
The translation of a NegatingInstruction that is not an
ElementInstruction is an element item where the [local name] is the
concatenation of "not-" and the [local name] that would be used by
the translation of the PositiveInstruction in the
NegatingInstruction. No items are added to the [attributes] or
[children] of the element item resulting from the translation of a
NegatingInstruction.
Example
[XER:NOT ATTRIBUTE] MyType
<type>
<prefixed>
<XER><not-attribute/></XER>
<type ref="MyType"/>
</prefixed>
</type>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. AnyAttributesInstruction Translation</span>
The translation of an AnyAttributesInstruction is an element item
with the [local name] "anyAttributes". If a NamespaceRestriction is
present in the AnyAttributesInstruction, then the translation of the
NamespaceRestriction SHALL be added to the [children] of the
<anyAttributes> element item.
<span class="grey">Legg Experimental [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Example
ANY-ATTRIBUTES FROM "http://example.com" ABSENT
<anyAttributes>
<namespace>http://example.com</namespace>
<local/>
</anyAttributes>
<span class="h4"><a class="selflink" id="section-5.1.1" href="#section-5.1.1">5.1.1</a>. NamespaceRestriction Translation</span>
The NamespaceRestriction production is common to the
AnyAttributesInstruction production and the AnyElementInstruction
production.
The translation of a NamespaceRestriction of the "FROM URIList" form
is an element item with the [local name] "from". The translation of
each QuotedURIorAbsent nested in the URIList SHALL be appended to the
[children] of the <from> element item.
The translation of a NamespaceRestriction of the "EXCEPT URIList"
form is an element item with the [local name] "except". The
translation of each QuotedURIorAbsent nested in the URIList SHALL be
appended to the [children] of the <except> element item.
The translation of a QuotedURIorAbsent that is a QuotedURI is an
element item with the [local name] "namespace". The sequence of
character items for the URI in the QuotedURI is added to the
[children] of the <namespace> element item.
The translation of a QuotedURIorAbsent of the "ABSENT" form is an
element item with the [local name] "local".
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. AnyElementInstruction Translation</span>
The translation of an AnyElementInstruction is an element item with
the [local name] "anyElement". If a NamespaceRestriction is present
in the AnyElementInstruction, then the translation of the
NamespaceRestriction SHALL be added to the [children] of the
<anyElement> element item.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. AttributeInstruction Translation</span>
The translation of an AttributeInstruction is an element item with
the [local name] "attribute".
<span class="grey">Legg Experimental [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Example
ATTRIBUTE
<attribute/>
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. Base64Instruction Translation</span>
The translation of a Base64Instruction is an element item with the
[local name] "base64".
<span class="h3"><a class="selflink" id="section-5.5" href="#section-5.5">5.5</a>. DecimalInstruction Translation</span>
The translation of a DecimalInstruction is an element item with the
[local name] "decimal".
<span class="h3"><a class="selflink" id="section-5.6" href="#section-5.6">5.6</a>. DefaultForEmptyInstruction Translation</span>
The translation of a DefaultForEmptyInstruction is an element item
with the [local name] "defaultForEmpty". The translation of the
Value in the DefaultForEmptyInstruction SHALL be added to the
[children] or [attributes] of the <defaultForEmpty> element item.
Example
DEFAULT-FOR-EMPTY AS "unspecified"
<defaultForEmpty literalValue="unspecified"/>
<span class="h3"><a class="selflink" id="section-5.7" href="#section-5.7">5.7</a>. ElementInstruction Translation</span>
The translation of an ElementInstruction is an element item with the
[local name] "element".
<span class="h3"><a class="selflink" id="section-5.8" href="#section-5.8">5.8</a>. EmbedValuesInstruction Translation</span>
The translation of an EmbedValuesInstruction is an element item with
the [local name] "embedValues".
<span class="h3"><a class="selflink" id="section-5.9" href="#section-5.9">5.9</a>. GlobalDefaultsInstruction Translation</span>
The translation of a GlobalDefaultsInstruction is an element item
with the [local name] "globalDefaults".
If the DefaultSetting in the GlobalDefaultsInstruction is "MODIFIED-
ENCODINGS", then an element item with the [local name]
"modifiedEncodings" SHALL be added to the [children] of the
<globalDefaults> element item.
<span class="grey">Legg Experimental [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
If the DefaultSetting in the GlobalDefaultsInstruction is a
ControlNamespace, then the translation of the ControlNamespace SHALL
be added to the [children] of the <globalDefaults> element item.
The translation of a ControlNamespace is an element item with the
[local name] "controlNamespace". An attribute item with the
[local name] "name" SHALL be added to the [attributes] of the
<controlNamespace> element item. The [normalized value] of this
attribute item is the Uniform Resource Identifier (URI) [<a href="#ref-URI" title=""Uniform Resource Identifiers (URI): Generic Syntax"">URI</a>] in the
QuotedURI in the ControlNamespace. If the ControlNamespace has a
Prefix, then an attribute item with the [local name] "prefix" SHALL
be added to the [attributes] of the <controlNamespace> element item.
The [normalized value] of this attribute item is the NCName in the
QuotedNCName in the Prefix.
Example
GLOBAL-DEFAULTS
CONTROL-NAMESPACE "http://example.com" PREFIX "ex"
<globalDefaults>
<controlNamespace name="http://example.com" prefix="ex"/>
</globalDefaults>
<span class="h3"><a class="selflink" id="section-5.10" href="#section-5.10">5.10</a>. ListInstruction Translation</span>
The translation of a ListInstruction is an element item with the
[local name] "list".
<span class="h3"><a class="selflink" id="section-5.11" href="#section-5.11">5.11</a>. NameInstruction Translation</span>
The translation of a NameInstruction is an element item with the
[local name] "name".
If the NewNameOrKeyword in the NameInstruction is a NewName, then an
attribute item with the [local name] "newName" SHALL be added to the
[attributes] of the <name> element item. The [normalized value] of
this attribute item is the character string value of the
RestrictedCharacterStringValue in the NewName.
If the NewNameOrKeyword in the NameInstruction is a Keyword, then an
attribute item with the [local name] "conversion" SHALL be added to
the [attributes] of the <name> element item. The [normalized value]
of this attribute item is the word in the Keyword with all letters
downcased, i.e., "capitalized", "uncapitalized", "uppercased", or
"lowercased".
<span class="grey">Legg Experimental [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Example
NAME AS UNCAPITALIZED
<name conversion="uncapitalized"/>
NAME AS "category"
<name newName="category"/>
<span class="h3"><a class="selflink" id="section-5.12" href="#section-5.12">5.12</a>. NamespaceInstruction Translation</span>
The translation of a NamespaceInstruction is an element item with the
[local name] "namespace".
If a NamespaceSpecification is present in the NamespaceInstruction,
then an attribute item with the [local name] "name" SHALL be added to
the [attributes] of the <namespace> element item. The
[normalized value] of this attribute item is the URI in the QuotedURI
in the NamespaceSpecification.
If a Prefix is present in the NamespaceSpecification, then an
attribute item with the [local name] "prefix" SHALL be added to the
[attributes] of the <namespace> element item. The [normalized value]
of this attribute item is the NCName in the QuotedNCName in the
Prefix.
Example
NAMESPACE AS "http://example.com" PREFIX "ex"
<namespace name="http://example.com" prefix="ex"/>
<span class="h3"><a class="selflink" id="section-5.13" href="#section-5.13">5.13</a>. PIOrCommentInstruction Translation</span>
The translation of a PIOrCommentInstruction is an element item with
the [local name] "piOrComment".
An attribute item with the [local name] "text" SHALL be added to the
[attributes] of the <piOrComment> element item. The
[normalized value] of this attribute item is the character string
value of the RestrictedCharacterStringValue in the
PIOrCommentInstruction.
An attribute item with the [local name] "position" SHALL be added to
the [attributes] of the <piOrComment> element item. The
[normalized value] of this attribute item is "beforeTag" if the
keyword in the Position in the PIOrCommentInstruction is BEFORE-TAG,
<span class="grey">Legg Experimental [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
"beforeValue" if the keyword in the Position is BEFORE-VALUE,
"afterValue" if the keyword in the Position is AFTER-VALUE, or
"afterTag" if the keyword in the Position is AFTER-TAG.
Example
PI-OR-COMMENT AS "<!-- This is a comment. -->" BEFORE-TAG
<piOrComment text="&lt;!-- This is a comment. --&gt;"
position="beforeTag"/>
<span class="h3"><a class="selflink" id="section-5.14" href="#section-5.14">5.14</a>. TextInstruction Translation</span>
The translation of a TextInstruction is an element item with the
[local name] "text".
If a TextToBeUsed is present in the TextInstruction and the
NewNameOrKeyword in the TextToBeUsed is a NewName, then an attribute
item with the [local name] "newName" SHALL be added to the
[attributes] of the <text> element item. The [normalized value] of
this attribute item is the character string value of the
RestrictedCharacterStringValue in the NewName.
If a TextToBeUsed is present in the TextInstruction and the
NewNameOrKeyword in the TextToBeUsed is a Keyword, then an attribute
item with the [local name] "conversion" SHALL be added to the
[attributes] of the <name> element item. The [normalized value] of
this attribute item is the word in the Keyword with all letters
downcased, i.e., "capitalized", "uncapitalized", "uppercased", or
"lowercased".
Examples
TEXT AS UPPERCASED
<text conversion="uppercased"/>
TEXT AS "A4"
<text newName="A4"/>
<span class="h3"><a class="selflink" id="section-5.15" href="#section-5.15">5.15</a>. UntaggedInstruction Translation</span>
The translation of an UntaggedInstruction is an element item with the
[local name] "untagged".
<span class="grey">Legg Experimental [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
<span class="h3"><a class="selflink" id="section-5.16" href="#section-5.16">5.16</a>. UseNilInstruction Translation</span>
The translation of a UseNilInstruction is an element item with the
[local name] "useNil".
<span class="h3"><a class="selflink" id="section-5.17" href="#section-5.17">5.17</a>. UseNumberInstruction Translation</span>
The translation of a UseNumberInstruction is an element item with the
[local name] "useNumber".
<span class="h3"><a class="selflink" id="section-5.18" href="#section-5.18">5.18</a>. UseOrderInstruction Translation</span>
The translation of a UseOrderInstruction is an element item with the
[local name] "useOrder".
<span class="h3"><a class="selflink" id="section-5.19" href="#section-5.19">5.19</a>. UseQNameInstruction Translation</span>
The translation of a UseQNameInstruction is an element item with the
[local name] "useQName".
<span class="h3"><a class="selflink" id="section-5.20" href="#section-5.20">5.20</a>. UseTypeInstruction Translation</span>
The translation of a UseTypeInstruction is an element item with the
[local name] "useType".
<span class="h3"><a class="selflink" id="section-5.21" href="#section-5.21">5.21</a>. UseUnionInstruction Translation</span>
The translation of a UseUnionInstruction is an element item with the
[local name] "useUnion".
<span class="h3"><a class="selflink" id="section-5.22" href="#section-5.22">5.22</a>. WhiteSpaceInstruction Translation</span>
The translation of a WhiteSpaceInstruction is an element item with
the [local name] "whiteSpace".
An attribute item with the [local name] "action" SHALL be added to
the [attributes] of the <whiteSpace> element item. The
[normalized value] of this attribute item is the word in the
WhiteSpaceAction in the WhiteSpaceInstruction with all letters
downcased, i.e., "replace" or "collapse".
Example
WHITESPACE COLLAPSE
<whiteSpace action="collapse"/>
<span class="grey">Legg Experimental [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. TargetList Translation</span>
The TargetList production is common to all the encoding instructions.
The translation of a TargetList is the concatenation of the
translations of each Targets instance in the TargetList.
The translation of a Targets instance is an element item with the
[local name] "target". The translation of the TypeIdentification,
BuiltInTypeIdentification or IdentifiersInContext in the Targets
instance SHALL be added to the [children] and/or [attributes] of the
<target> element item.
Aside: A Targets instance that is an ImportedTypesIdentification
will have been removed by the preprocessing described in
<a href="#section-3">Section 3</a>.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. TypeIdentification Translation</span>
The translation of a TypeIdentification of the "ALL" form is an
element item with the [local name] "allTypes"; otherwise, the
translation of a TypeIdentification is the translation of its
ModuleAndTypeReference followed by the translation of its
ComponentReference, if present, followed by the translation of its
QualifyingInformationPart, if present.
The translation of a ModuleAndTypeReference is an attribute item with
the [local name] "type". The [normalized value] of this attribute
item is a qualified name [<a href="#ref-XMLNS10" title=""Namespaces in XML 1.0 (Second Edition)"">XMLNS10</a>] for the expanded name
corresponding to the typereference in the ModuleAndTypeReference (see
<a href="#section-5.1">Section 5.1</a> of the specification for ASN.X [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>]).
The translation of a ComponentReference is an element item with the
[local name] "component". The [children] property of the <component>
element item is set to the sequence of character items for a solidus
('/', U+002F) separated list of the translations of the ComponentId
instances in the ComponentIdList in the ComponentReference, excluding
"ALL" if present. Leading and/or trailing white space character
items [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>] MAY be added to the [children] of the <component>
element item. White space character items MAY be added immediately
before and/or after any character item for the solidus character
('/', U+002F). If the final ComponentId in the ComponentIdList in
the ComponentReference is "ALL", then an element item with the
[local name] "allTextuallyPresent" SHALL follow the <component>
element item.
<span class="grey">Legg Experimental [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
If a ComponentId identifies the Type in a NamedType, then the
translation of the ComponentId is a qualified name for the expanded
name [<a href="#ref-XMLNS10" title=""Namespaces in XML 1.0 (Second Edition)"">XMLNS10</a>] of the NamedType [<a href="#ref-RXEREI" title=""Encoding Instructions for the Robust XML Encoding Rules (RXER)"">RXEREI</a>]. If the NamedType is
subject to an RXER ATTRIBUTE or ATTRIBUTE-REF encoding instruction
[<a href="#ref-RXEREI" title=""Encoding Instructions for the Robust XML Encoding Rules (RXER)"">RXEREI</a>], or subject to an RXER COMPONENT-REF encoding instruction
that references a top-level NamedType that is subject to an RXER
ATTRIBUTE encoding instruction, then the qualified name is prefixed
with the commercial at character ('@', U+0040).
If a ComponentId identifies a Type that is not in a NamedType (i.e.,
the component type for a SEQUENCE OF Type or SET OF Type), then the
translation of the ComponentId is the character string "item".
If a ComponentId does not identify a Type and the ComponentId is an
identifier, then the translation of the ComponentId is the
identifier.
If a ComponentId does not identify a Type and the ComponentId is "*",
then the translation of the ComponentId is the character string
"item".
The <component> element item is required to be self-contained [<a href="#ref-RXER" title=""Robust XML Encoding Rules (RXER) for Abstract Syntax Notation One (ASN.1)"">RXER</a>].
Aside: An element item is self-contained if all namespace prefixes
used by the element item and its contents are declared within the
element item.
The translation of a QualifyingInformationPart is the translation of
the QualifyingInformation instance in the QualifyingInformationPart.
The translation of a QualifyingInformation instance of the
"identifier" form is an element item with the [local name]
"identifier". An attribute item with the [local name] "name" SHALL
be added to the [attributes] of the <identifier> element item. If
the ModuleTypeAndReference and ComponentReference (if present) in the
TypeIdentification identify a BIT STRING, ENUMERATED, or INTEGER type
where the associated BitStringType, EnumeratedType, or IntegerType
(respectively) is subject to an RXER VALUES encoding instruction,
then the [normalized value] of the attribute item is the replacement
name [<a href="#ref-RXEREI" title=""Encoding Instructions for the Robust XML Encoding Rules (RXER)"">RXEREI</a>] for the identifier; otherwise, the [normalized value]
is the identifier.
The translation of a QualifyingInformation instance of the "ALL" form
is an element item with the [local name] "allIdentifiers".
<span class="grey">Legg Experimental [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Examples
Assume this type assignment:
MyType ::= SEQUENCE {
a SEQUENCE OF CHOICE {
b ENUMERATED { red, green, blue },
c INTEGER
}
}
MyType.a.*.ALL
<target type="MyType">
<component> a / item </component>
<allTextuallyPresent/>
</target>
MyType.a.*.b:ALL
<target type="MyType">
<component> a / item / b </component>
<allIdentifiers/>
</target>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. BuiltInTypeIdentification Translation</span>
The translation of a BuiltInTypeIdentification is the translation of
its BuiltInTypeName followed by the translation of its
BuiltInTypeQualifyingInformationPart, if present.
If the BuiltInTypeName is "BIT STRING", "BOOLEAN",
"CHARACTER STRING", "EMBEDDED PDV", "EXTERNAL", "GeneralizedTime",
"INTEGER", "NULL", "ObjectDescriptor", "OBJECT IDENTIFIER",
"OCTET STRING", "REAL", "RELATIVE-OID", or "UTCTime", then the
translation of the BuiltInTypeName is an attribute item with the
[local name] "type". The [normalized value] of this attribute item
is a qualified name with the namespace name being
"urn:ietf:params:xml:ns:asnx" and the local part being the
BuiltInTypeName with any white space separators replaced by a single
hyphen character ('-', U+002D), e.g., BIT STRING becomes BIT-STRING.
If the BuiltInTypeName is a RestrictedCharacterStringType, then the
translation of the BuiltInTypeName is an attribute item with the
[local name] "type". The [normalized value] of this attribute item
is a qualified name with the namespace name being
"urn:ietf:params:xml:ns:asnx" and the local part being the
RestrictedCharacterStringType, i.e., BMPString, GeneralString,
<span class="grey">Legg Experimental [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
GraphicString, IA5String, ISO646String, NumericString,
PrintableString, TeletexString, T61String, UniversalString,
UTF8String, VideotexString, or VisibleString.
If the BuiltInTypeName is "CHOICE", then the translation of the
BuiltInTypeName is an element item with the [local name] "choice".
If the BuiltInTypeName is "ENUMERATED", then the translation of the
BuiltInTypeName is an element item with the [local name]
"enumerated".
If the BuiltInTypeName is "INSTANCE OF", then the translation of the
BuiltInTypeName is an element item with the [local name]
"instanceOf".
If the BuiltInTypeName is "SEQUENCE", then the translation of the
BuiltInTypeName is an element item with the [local name] "sequence".
If the BuiltInTypeName is "SEQUENCE OF", then the translation of the
BuiltInTypeName is an element item with the [local name]
"sequenceOf".
If the BuiltInTypeName is "SET", then the translation of the
BuiltInTypeName is an element item with the [local name] "set".
If the BuiltInTypeName is "SET OF", then the translation of the
BuiltInTypeName is an element item with the [local name] "setOf".
The translation of a BuiltInTypeQualifyingInformationPart is the
translation of the BuiltInTypeQualifyingInformation instance in the
BuiltInTypeQualifyingInformationPart.
The translation of a BuiltInTypeQualifyingInformation instance of the
"identifier" form is an element item with the [local name]
"identifier". An attribute item with the [local name] "name" SHALL
be added to the [attributes] of the <identifier> element item. The
[normalized value] of this attribute item is the identifier in the
BuiltInTypeQualifyingInformation instance.
The translation of a BuiltInTypeQualifyingInformation instance of the
"ALL" form is an element item with the [local name] "allIdentifiers".
<span class="grey">Legg Experimental [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Examples
BOOLEAN:true
<target xmlns:asnx="urn:ietf:params:xml:ns:asnx"
type="asnx:BOOLEAN">
<identifier name="true"/>
</target>
ENUMERATED:ALL
<target>
<enumerated/>
<allIdentifiers/>
</target>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. IdentifiersInContext Translation</span>
The translation of an IdentifiersInContext instance is an element
item with the [local name] "components".
If the IdentifierList in the IdentifiersInContext instance is not of
the "ALL" or "COMPONENTS" form, then for each identifier in the
IdentifierList, an element item with the same [local name] (i.e.,
"attribute", "element", "component", "group", "item", "member", or
"simpleContent") as the translation of the NamedType corresponding to
the identifier SHALL be appended to the [children] of the
<components> element item. An attribute item with the [local name]
"name" SHALL be added to the [attributes] of each <attribute>,
<element>, <component>, <group>, <item>, <member>, or <simpleContent>
element item. The [normalized value] of each of these attribute
items is a qualified name for the expanded name [<a href="#ref-XMLNS10" title=""Namespaces in XML 1.0 (Second Edition)"">XMLNS10</a>] of the
NamedType [<a href="#ref-RXEREI" title=""Encoding Instructions for the Robust XML Encoding Rules (RXER)"">RXEREI</a>] corresponding to the identifier.
If the IdentifierList in the IdentifiersInContext instance is of the
"ALL" form, then an element item with the [local name]
"allTextuallyPresent" SHALL be appended to the [children] of the
<components> element item.
If the IdentifierList in the IdentifiersInContext instance is of the
"COMPONENTS" form, then an element item with the [local name]
"allFirstLevel" SHALL be appended to the [children] of the
<components> element item.
An element item with the [local name] "in" SHALL be appended to the
[children] of the <components> element item. The translation of the
TypeIdentification in the IdentifiersInContext instance SHALL be
added to the [children] and/or [attributes] of the <in> element item.
<span class="grey">Legg Experimental [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Example
Assume this type assignment:
MyType ::= SEQUENCE {
field INTEGER,
fieldAtt [RXER:NAME AS "field"][RXER:ATTRIBUTE] BOOLEAN
}
field, fieldAtt IN MyType
<target>
<components>
<element name="field"/>
<attribute name="field"/>
<in type="MyType"/>
</components>
</target>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
The ASN.X translation of an XER encoding instruction is semantically
equivalent to the original XER encoding instruction. The security
considerations that apply to an application built from an original
ASN.1 specification with XER encoding instructions apply equally to
an application built from the ASN.X translation of the ASN.1
specification.
See the main specification for ASN.X [<a href="#ref-ASN.X" title=""Abstract Syntax Notation X (ASN.X)"">ASN.X</a>] for security
considerations related to ASN.X modules.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. References</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Normative References</span>
[<a id="ref-BCP14">BCP14</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-URI">URI</a>] Berners-Lee, T., Fielding, R. and L. Masinter, "Uniform
Resource Identifiers (URI): Generic Syntax", STD 66, <a href="./rfc3986">RFC</a>
<a href="./rfc3986">3986</a>, January 2005.
[<a id="ref-RXER">RXER</a>] Legg, S. and D. Prager, "Robust XML Encoding Rules (RXER)
for Abstract Syntax Notation One (ASN.1)", <a href="./rfc4910">RFC 4910</a>, July
2007.
[<a id="ref-RXEREI">RXEREI</a>] Legg, S., "Encoding Instructions for the Robust XML
Encoding Rules (RXER)", <a href="./rfc4911">RFC 4911</a>, July 2007.
<span class="grey">Legg Experimental [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
[<a id="ref-ASN.X">ASN.X</a>] Legg, S., "Abstract Syntax Notation X (ASN.X)", <a href="./rfc4912">RFC 4912</a>,
July 2007.
[<a id="ref-X.680">X.680</a>] ITU-T Recommendation X.680 (07/02) | ISO/IEC 8824-1,
Information technology - Abstract Syntax Notation One
(ASN.1): Specification of basic notation.
[<a id="ref-X.680-1">X.680-1</a>] ITU-T Recommendation X.680 (2002) Amendment 1 (10/03) |
ISO/IEC 8824-1:2002/Amd 1:2004, Support for EXTENDED-XER.
[<a id="ref-X.693-1">X.693-1</a>] Amendment 1: (to ITU-T Rec. X.693 | ISO/IEC 8825-4) XER
encoding instructions and EXTENDED-XER.
[<a id="ref-XML10">XML10</a>] Bray, T., Paoli, J., Sperberg-McQueen, C., Maler, E. and
F. Yergeau, "Extensible Markup Language (XML) 1.0 (Fourth
Edition)", W3C Recommendation,
<a href="http://www.w3.org/TR/2006/REC-xml-20060816">http://www.w3.org/TR/2006/REC-xml-20060816</a>, August 2006.
[<a id="ref-XML11">XML11</a>] Bray, T., Paoli, J., Sperberg-McQueen, C., Maler, E.,
Yergeau, F., and J. Cowan, "Extensible Markup Language
(XML) 1.1 (Second Edition)", W3C Recommendation,
<a href="http://www.w3.org/TR/2006/REC-xml11-20060816">http://www.w3.org/TR/2006/REC-xml11-20060816</a>, August 2006.
[<a id="ref-XMLNS10">XMLNS10</a>] Bray, T., Hollander, D., Layman, A., and R. Tobin,
"Namespaces in XML 1.0 (Second Edition)", W3C
Recommendation,
<a href="http://www.w3.org/TR/2006/REC-xml-names-20060816">http://www.w3.org/TR/2006/REC-xml-names-20060816</a>, August
2006.
[<a id="ref-INFOSET">INFOSET</a>] Cowan, J. and R. Tobin, "XML Information Set (Second
Edition)", W3C Recommendation,
<a href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204">http://www.w3.org/TR/2004/REC-xml-infoset-20040204</a>,
February 2004.
[<a id="ref-UNICODE">UNICODE</a>] The Unicode Consortium, "The Unicode Standard, Version
4.0", Boston, MA, Addison-Wesley Developers Press, 2003.
ISBN 0-321-18578-1.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Informative References</span>
[<a id="ref-X.693">X.693</a>] ITU-T Recommendation X.693 (12/01) | ISO/IEC 8825-4:2002,
Information technology - ASN.1 encoding rules: XML
encoding rules (XER).
<span class="grey">Legg Experimental [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. ASN.1 for XER Encoding Instruction Notation</span>
This appendix is normative.
XER-EncodingInstructionNotation
{ iso(1) identified-organization(3) dod(6)
internet(1) private(4) enterprise(1)
xmled(21472) asnx(1) module(0) xer-ei-notation(3) }
-- Copyright (C) The IETF Trust (2007). This version of
-- this ASN.1 module is part of <a href="./rfc4914">RFC 4914</a>; see the RFC itself
-- for full legal notices.
--
-- Regarding this ASN.1 module or any portion of it, the author
-- makes no guarantees and is not responsible for any damage
-- resulting from its use. The author grants irrevocable permission
-- to anyone to use, modify, and distribute it in any way that does
-- not diminish the rights of anyone else to use, modify, and
-- distribute it, provided that redistributed derivative works do
-- not contain misleading author or version information.
-- Derivative works need not be licensed under similar terms.
DEFINITIONS
RXER INSTRUCTIONS
AUTOMATIC TAGS
EXTENSIBILITY IMPLIED ::= BEGIN
IMPORTS
AnyURI,
NCName
FROM AdditionalBasicDefinitions
{ iso(1) identified-organization(3) dod(6)
internet(1) private(4) enterprise(1)
xmled(21472) asnx(1) module(0) basic(0) }
Annotation,
Value
FROM AbstractSyntaxNotation-X
{ iso(1) identified-organization(3) dod(6)
internet(1) private(4) enterprise(1)
xmled(21472) asnx(1) module(0) notation(1) }
TargetList
FROM TargetListNotation
{ iso(1) identified-organization(3) dod(6)
internet(1) private(4) enterprise(1)
xmled(21472) asnx(1) module(0)
target-list-notation(4) }
;
<span class="grey">Legg Experimental [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
XER-EncodingInstructionAssignmentList ::= SEQUENCE {
annotation Annotation OPTIONAL,
instructions [GROUP] XER-TargettedEncodingInstructions
}
XER-TargettedEncodingInstructions ::= SEQUENCE SIZE (1..MAX) OF
targettedInstruction XER-TargettedEncodingInstruction
XER-TargettedEncodingInstruction ::= SEQUENCE {
instruction [GROUP] XER-GeneralEncodingInstruction,
targetList [GROUP] TargetList OPTIONAL
}
XER-EncodingInstruction ::= XER-GeneralEncodingInstruction
(WITH COMPONENTS { ..., globalDefaults ABSENT })
XER-GeneralEncodingInstruction ::= [SINGULAR-INSERTIONS] CHOICE {
anyAttributes XER-WildcardInstruction,
not-anyAttributes XER-NegatingInstruction,
anyElement XER-WildcardInstruction,
not-anyElement XER-NegatingInstruction,
attribute XER-SimpleInstruction,
not-attribute XER-NegatingInstruction,
base64 XER-SimpleInstruction,
not-base64 XER-NegatingInstruction,
decimal XER-SimpleInstruction,
not-decimal XER-NegatingInstruction,
defaultForEmpty XER-DefaultForEmptyInstruction,
not-defaultForEmpty XER-NegatingInstruction,
embedValues XER-SimpleInstruction,
not-embedValues XER-NegatingInstruction,
globalDefaults XER-GlobalDefaultsInstruction,
list XER-SimpleInstruction,
not-list XER-NegatingInstruction,
name XER-NameInstruction,
not-name XER-NegatingInstruction,
namespace XER-NamespaceInstruction,
not-namespace XER-NegatingInstruction,
piOrComment XER-PIOrCommentInstruction,
not-piOrComment XER-NegatingInstruction,
text XER-TextInstruction,
not-text XER-NegatingInstruction,
untagged XER-SimpleInstruction,
not-untagged XER-NegatingInstruction,
element XER-NegatingInstruction,
useNil XER-SimpleInstruction,
not-useNil XER-NegatingInstruction,
useNumber XER-SimpleInstruction,
<span class="grey">Legg Experimental [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
not-useNumber XER-NegatingInstruction,
useOrder XER-SimpleInstruction,
not-useOrder XER-NegatingInstruction,
useQName XER-SimpleInstruction,
not-useQName XER-NegatingInstruction,
useType XER-SimpleInstruction,
not-useType XER-NegatingInstruction,
useUnion XER-SimpleInstruction,
not-useUnion XER-NegatingInstruction,
whiteSpace XER-WhiteSpaceInstruction,
not-whiteSpace XER-NegatingInstruction
}
XER-SimpleInstruction ::= SEQUENCE { }
XER-NegatingInstruction ::= XER-SimpleInstruction
XER-WildcardInstruction ::= SEQUENCE {
namespaceRestriction [GROUP] XER-NamespaceRestriction OPTIONAL
}
XER-NamespaceRestriction ::= [NO-INSERTIONS] CHOICE {
from XER-URIList,
except XER-URIList
}
XER-URIList ::= SEQUENCE SIZE(1..MAX) OF
uriOrAbsent [GROUP] XER-QuotedURIorAbsent
XER-QuotedURIorAbsent ::= [SINGULAR-INSERTIONS] CHOICE {
namespace AnyURI,
local NULL
}
XER-DefaultForEmptyInstruction ::= SEQUENCE {
value [GROUP] Value
}
XER-GlobalDefaultsInstruction ::= SEQUENCE {
defaultSetting [GROUP] [SINGULAR-INSERTIONS] CHOICE {
modifiedEncodings NULL,
controlNamespace XER-ControlNamespace
}
}
XER-ControlNamespace ::= SEQUENCE {
name [ATTRIBUTE] AnyURI,
prefix [ATTRIBUTE] NCName OPTIONAL
<span class="grey">Legg Experimental [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
}
XER-NameInstruction ::= SEQUENCE {
newNameOrKeyword [GROUP] XER-NewNameOrKeyword
}
XER-NewNameOrKeyword ::= [NO-INSERTIONS] CHOICE {
newName [ATTRIBUTE] UTF8String,
conversion [ATTRIBUTE] XER-Conversion
}
XER-Conversion ::= ENUMERATED {
capitalized (0),
uncapitalized (1),
uppercased (2),
lowercased (3)
}
XER-NamespaceInstruction ::= SEQUENCE {
namespace [GROUP] XER-NamespaceSpecification OPTIONAL
}
XER-NamespaceSpecification ::= [HOLLOW-INSERTIONS] SEQUENCE {
name [ATTRIBUTE] AnyURI,
prefix [ATTRIBUTE] NCName OPTIONAL
}
XER-PIOrCommentInstruction ::= SEQUENCE {
text [ATTRIBUTE] UTF8String,
position [ATTRIBUTE] XER-Position
}
XER-Position ::= ENUMERATED {
beforeTag (0),
beforeValue (1),
afterValue (2),
afterTag (3)
}
XER-TextInstruction ::= SEQUENCE {
newNameOrKeyword [GROUP] XER-NewNameOrKeyword OPTIONAL
}
XER-WhiteSpaceInstruction ::= SEQUENCE {
action [ATTRIBUTE] XER-WhiteSpaceAction
}
XER-WhiteSpaceAction ::= ENUMERATED {
<span class="grey">Legg Experimental [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
replace (0),
collapse (1)
}
ENCODING-CONTROL RXER
SCHEMA-IDENTITY "urn:oid:1.3.6.1.4.1.21472.1.0.3"
TARGET-NAMESPACE "urn:ietf:params:xml:ns:asnx" PREFIX "asnx"
END
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. ASN.1 for Target List Notation</span>
This appendix is normative.
TargetListNotation
{ iso(1) identified-organization(3) dod(6)
internet(1) private(4) enterprise(1)
xmled(21472) asnx(1) module(0) target-list-notation(4) }
-- Copyright (C) The IETF Trust (2007). This version of
-- this ASN.1 module is part of <a href="./rfc4914">RFC 4914</a>; see the RFC itself
-- for full legal notices.
--
-- Regarding this ASN.1 module or any portion of it, the author
-- makes no guarantees and is not responsible for any damage
-- resulting from its use. The author grants irrevocable permission
-- to anyone to use, modify, and distribute it in any way that does
-- not diminish the rights of anyone else to use, modify, and
-- distribute it, provided that redistributed derivative works do
-- not contain misleading author or version information.
-- Derivative works need not be licensed under similar terms.
DEFINITIONS
RXER INSTRUCTIONS
AUTOMATIC TAGS
EXTENSIBILITY IMPLIED ::= BEGIN
IMPORTS
Markup,
NCName,
QName
FROM AdditionalBasicDefinitions
{ iso(1) identified-organization(3) dod(6)
internet(1) private(4) enterprise(1)
xmled(21472) asnx(1) module(0) basic(0) }
;
<span class="grey">Legg Experimental [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
TargetList ::= SEQUENCE SIZE (1..MAX) OF target Targets
Targets ::= [NO-INSERTIONS] CHOICE {
allTypes NULL,
identifiedTypes [GROUP] QualifiedTypeIdentification,
components IdentifiersInContext,
allImportsFrom SEQUENCE { }
-- allImportsFrom is not used in this version
}
-- TypeIdentification and BuiltInTypeIdentification
QualifiedTypeIdentification ::= [HOLLOW-INSERTIONS] SEQUENCE {
types [GROUP] [SINGULAR-INSERTIONS] CHOICE {
specificType [GROUP] SpecificTypeIdentification,
choice NULL,
enumerated NULL,
instanceOf NULL,
sequence NULL,
sequenceOf NULL,
set NULL,
setOf NULL
},
qualification [GROUP] QualifyingInformationPart OPTIONAL
}
SpecificTypeIdentification ::= [HOLLOW-INSERTIONS] SEQUENCE {
type [ATTRIBUTE] QName,
component Markup OPTIONAL,
allTextuallyPresent NULL OPTIONAL
}
QualifyingInformationPart ::= [NO-INSERTIONS] CHOICE {
allIdentifiers NULL,
identifier SEQUENCE {
name [ATTRIBUTE] NCName
}
}
IdentifiersInContext ::= SEQUENCE {
identifiers [GROUP] IdentifierList,
in CHOICE {
allTypes NULL,
specificType [GROUP] SpecificTypeIdentification
}
}
IdentifierList ::= [NO-INSERTIONS] CHOICE {
list [GROUP] IdentifiedComponents,
<span class="grey">Legg Experimental [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
allTextuallyPresent NULL,
allFirstLevel NULL
}
IdentifiedComponents ::= SEQUENCE SIZE (1..MAX) OF
identifiedComponent [GROUP] IdentifiedComponent
IdentifiedComponent ::= [SINGULAR-INSERTIONS] CHOICE {
component GenericIdentifiedComponent,
element GenericIdentifiedComponent,
attribute GenericIdentifiedComponent,
group GenericIdentifiedComponent,
member GenericIdentifiedComponent,
item GenericIdentifiedComponent,
simpleContent GenericIdentifiedComponent
}
GenericIdentifiedComponent ::= SEQUENCE {
name [ATTRIBUTE] QName
}
ENCODING-CONTROL RXER
SCHEMA-IDENTITY "urn:oid:1.3.6.1.4.1.21472.1.0.4"
TARGET-NAMESPACE "urn:ietf:params:xml:ns:asnx" PREFIX "tln"
END
<span class="h2"><a class="selflink" id="appendix-C" href="#appendix-C">Appendix C</a>. ASN.X for XER Encoding Instruction Notation</span>
This appendix is non-normative.
<?xml version="1.0"?>
<asnx:module xmlns:asnx="urn:ietf:params:xml:ns:asnx"
xmlns:tln="urn:ietf:params:xml:ns:asnx"
name="XER-EncodingInstructionNotation"
identifier="1.3.6.1.4.1.21472.1.0.3"
schemaIdentity="urn:oid:1.3.6.1.4.1.21472.1.0.3"
targetNamespace="urn:ietf:params:xml:ns:asnx"
targetPrefix="asnx"
extensibilityImplied="true">
<annotation>
Copyright (C) The IETF Trust (2007). This version of
this ASN.X module is part of <a href="./rfc4914">RFC 4914</a>; see the RFC itself
for full legal notices.
Regarding this ASN.X module or any portion of it, the author
<span class="grey">Legg Experimental [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
makes no guarantees and is not responsible for any damage
resulting from its use. The author grants irrevocable permission
to anyone to use, modify, and distribute it in any way that does
not diminish the rights of anyone else to use, modify, and
distribute it, provided that redistributed derivative works do
not contain misleading author or version information.
Derivative works need not be licensed under similar terms.
</annotation>
<import name="AbstractSyntaxNotation-X"
identifier="1.3.6.1.4.1.21472.1.0.1"
schemaIdentity="urn:oid:1.3.6.1.4.1.21472.1.0.1"
namespace="urn:ietf:params:xml:ns:asnx"/>
<import name="TargetListNotation"
identifier="1.3.6.1.4.1.21472.1.0.4"
schemaIdentity="urn:oid:1.3.6.1.4.1.21472.1.0.4"
namespace="urn:ietf:params:xml:ns:asnx"/>
<namedType name="XER-EncodingInstructionAssignmentList">
<type>
<sequence>
<optional>
<element name="annotation" type="asnx:Annotation"/>
</optional>
<group name="instructions"
type="asnx:XER-TargettedEncodingInstructions"/>
</sequence>
</type>
</namedType>
<namedType name="XER-TargettedEncodingInstructions">
<type>
<sequenceOf minSize="1">
<element name="targettedInstruction"
type="asnx:XER-TargettedEncodingInstruction"/>
</sequenceOf>
</type>
</namedType>
<namedType name="XER-TargettedEncodingInstruction">
<type>
<sequence>
<group name="instruction"
type="asnx:XER-GeneralEncodingInstruction"/>
<optional>
<group name="targetList" type="tln:TargetList"/>
</optional>
<span class="grey">Legg Experimental [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
</sequence>
</type>
</namedType>
<namedType name="XER-EncodingInstruction">
<type>
<constrained type="asnx:XER-GeneralEncodingInstruction">
<withComponents partial="true">
<element name="globalDefaults" use="absent"/>
</withComponents>
</constrained>
</type>
</namedType>
<namedType name="XER-GeneralEncodingInstruction">
<type>
<choice insertions="singular">
<element name="anyAttributes"
type="asnx:XER-WildcardInstruction"/>
<element name="not-anyAttributes"
type="asnx:XER-NegatingInstruction"/>
<element name="anyElement" type="asnx:XER-WildcardInstruction"/>
<element name="not-anyElement"
type="asnx:XER-NegatingInstruction"/>
<element name="attribute" type="asnx:XER-SimpleInstruction"/>
<element name="not-attribute"
type="asnx:XER-NegatingInstruction"/>
<element name="base64" type="asnx:XER-SimpleInstruction"/>
<element name="not-base64" type="asnx:XER-NegatingInstruction"/>
<element name="decimal" type="asnx:XER-SimpleInstruction"/>
<element name="not-decimal" type="asnx:XER-NegatingInstruction"/>
<element name="defaultForEmpty"
type="asnx:XER-DefaultForEmptyInstruction"/>
<element name="not-defaultForEmpty"
type="asnx:XER-NegatingInstruction"/>
<element name="embedValues" type="asnx:XER-SimpleInstruction"/>
<element name="not-embedValues"
type="asnx:XER-NegatingInstruction"/>
<element name="globalDefaults"
type="asnx:XER-GlobalDefaultsInstruction"/>
<element name="list" type="asnx:XER-SimpleInstruction"/>
<element name="not-list" type="asnx:XER-NegatingInstruction"/>
<element name="name" type="asnx:XER-NameInstruction"/>
<element name="not-name" type="asnx:XER-NegatingInstruction"/>
<element name="namespace" type="asnx:XER-NamespaceInstruction"/>
<element name="not-namespace"
type="asnx:XER-NegatingInstruction"/>
<element name="piOrComment"
<span class="grey">Legg Experimental [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
type="asnx:XER-PIOrCommentInstruction"/>
<element name="not-piOrComment"
type="asnx:XER-NegatingInstruction"/>
<element name="text" type="asnx:XER-TextInstruction"/>
<element name="not-text" type="asnx:XER-NegatingInstruction"/>
<element name="untagged" type="asnx:XER-SimpleInstruction"/>
<element name="not-untagged"
type="asnx:XER-NegatingInstruction"/>
<element name="element" type="asnx:XER-NegatingInstruction"/>
<element name="useNil" type="asnx:XER-SimpleInstruction"/>
<element name="not-useNil" type="asnx:XER-NegatingInstruction"/>
<element name="useNumber" type="asnx:XER-SimpleInstruction"/>
<element name="not-useNumber"
type="asnx:XER-NegatingInstruction"/>
<element name="useOrder" type="asnx:XER-SimpleInstruction"/>
<element name="not-useOrder"
type="asnx:XER-NegatingInstruction"/>
<element name="useQName" type="asnx:XER-SimpleInstruction"/>
<element name="not-useQName"
type="asnx:XER-NegatingInstruction"/>
<element name="useType" type="asnx:XER-SimpleInstruction"/>
<element name="not-useType" type="asnx:XER-NegatingInstruction"/>
<element name="useUnion" type="asnx:XER-SimpleInstruction"/>
<element name="not-useUnion"
type="asnx:XER-NegatingInstruction"/>
<element name="whiteSpace"
type="asnx:XER-WhiteSpaceInstruction"/>
<element name="not-whiteSpace"
type="asnx:XER-NegatingInstruction"/>
</choice>
</type>
</namedType>
<namedType name="XER-SimpleInstruction">
<type>
<sequence/>
</type>
</namedType>
<namedType name="XER-NegatingInstruction"
type="asnx:XER-SimpleInstruction"/>
<namedType name="XER-WildcardInstruction">
<type>
<sequence>
<optional>
<group name="namespaceRestriction"
type="asnx:XER-NamespaceRestriction"/>
<span class="grey">Legg Experimental [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
</optional>
</sequence>
</type>
</namedType>
<namedType name="XER-NamespaceRestriction">
<type>
<choice insertions="none">
<element name="from" type="asnx:XER-URIList"/>
<element name="except" type="asnx:XER-URIList"/>
</choice>
</type>
</namedType>
<namedType name="XER-URIList">
<type>
<sequenceOf minSize="1">
<group name="uriOrAbsent" type="asnx:XER-QuotedURIorAbsent"/>
</sequenceOf>
</type>
</namedType>
<namedType name="XER-QuotedURIorAbsent">
<type>
<choice insertions="singular">
<element name="namespace" type="asnx:AnyURI"/>
<element name="local" type="asnx:NULL"/>
</choice>
</type>
</namedType>
<namedType name="XER-DefaultForEmptyInstruction">
<type>
<sequence>
<group name="value" type="asnx:Value"/>
</sequence>
</type>
</namedType>
<namedType name="XER-GlobalDefaultsInstruction">
<type>
<sequence>
<group name="defaultSetting">
<type>
<choice insertions="singular">
<element name="modifiedEncodings" type="asnx:NULL"/>
<element name="controlNamespace"
type="asnx:XER-ControlNamespace"/>
<span class="grey">Legg Experimental [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
</choice>
</type>
</group>
</sequence>
</type>
</namedType>
<namedType name="XER-ControlNamespace">
<type>
<sequence>
<attribute name="name" type="asnx:AnyURI"/>
<optional>
<attribute name="prefix" type="asnx:NCName"/>
</optional>
</sequence>
</type>
</namedType>
<namedType name="XER-NameInstruction">
<type>
<sequence>
<group name="newNameOrKeyword" type="asnx:XER-NewNameOrKeyword"/>
</sequence>
</type>
</namedType>
<namedType name="XER-NewNameOrKeyword">
<type>
<choice insertions="none">
<attribute name="newName" type="asnx:UTF8String"/>
<attribute name="conversion" type="asnx:XER-Conversion"/>
</choice>
</type>
</namedType>
<namedType name="XER-Conversion">
<type>
<enumerated>
<enumeration name="capitalized" number="0"/>
<enumeration name="uncapitalized" number="1"/>
<enumeration name="uppercased" number="2"/>
<enumeration name="lowercased" number="3"/>
</enumerated>
</type>
</namedType>
<namedType name="XER-NamespaceInstruction">
<type>
<span class="grey">Legg Experimental [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
<sequence>
<optional>
<group name="namespace" type="asnx:XER-NamespaceSpecification"/>
</optional>
</sequence>
</type>
</namedType>
<namedType name="XER-NamespaceSpecification">
<type>
<sequence insertions="hollow">
<attribute name="name" type="asnx:AnyURI"/>
<optional>
<attribute name="prefix" type="asnx:NCName"/>
</optional>
</sequence>
</type>
</namedType>
<namedType name="XER-PIOrCommentInstruction">
<type>
<sequence>
<attribute name="text" type="asnx:UTF8String"/>
<attribute name="position" type="asnx:XER-Position"/>
</sequence>
</type>
</namedType>
<namedType name="XER-Position">
<type>
<enumerated>
<enumeration name="beforeTag" number="0"/>
<enumeration name="beforeValue" number="1"/>
<enumeration name="afterValue" number="2"/>
<enumeration name="afterTag" number="3"/>
</enumerated>
</type>
</namedType>
<namedType name="XER-TextInstruction">
<type>
<sequence>
<optional>
<group name="newNameOrKeyword"
type="asnx:XER-NewNameOrKeyword"/>
</optional>
</sequence>
</type>
<span class="grey">Legg Experimental [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
</namedType>
<namedType name="XER-WhiteSpaceInstruction">
<type>
<sequence>
<attribute name="action" type="asnx:XER-WhiteSpaceAction"/>
</sequence>
</type>
</namedType>
<namedType name="XER-WhiteSpaceAction">
<type>
<enumerated>
<enumeration name="replace" number="0"/>
<enumeration name="collapse" number="1"/>
</enumerated>
</type>
</namedType>
</asnx:module>
<span class="h2"><a class="selflink" id="appendix-D" href="#appendix-D">Appendix D</a>. ASN.X for Target List Notation</span>
This appendix is non-normative.
<?xml version="1.0"?>
<asnx:module xmlns:asnx="urn:ietf:params:xml:ns:asnx"
xmlns:tln="urn:ietf:params:xml:ns:asnx"
name="TargetListNotation"
identifier="1.3.6.1.4.1.21472.1.0.4"
schemaIdentity="urn:oid:1.3.6.1.4.1.21472.1.0.4"
targetNamespace="urn:ietf:params:xml:ns:asnx"
targetPrefix="tln"
extensibilityImplied="true">
<annotation>
Copyright (C) The IETF Trust (2007). This version of
this ASN.X module is part of <a href="./rfc4914">RFC 4914</a>; see the RFC itself
for full legal notices.
Regarding this ASN.X module or any portion of it, the author
makes no guarantees and is not responsible for any damage
resulting from its use. The author grants irrevocable permission
to anyone to use, modify, and distribute it in any way that does
not diminish the rights of anyone else to use, modify, and
distribute it, provided that redistributed derivative works do
not contain misleading author or version information.
Derivative works need not be licensed under similar terms.
<span class="grey">Legg Experimental [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
</annotation>
<namedType name="TargetList">
<type>
<sequenceOf minSize="1">
<element name="target" type="tln:Targets"/>
</sequenceOf>
</type>
</namedType>
<namedType name="Targets">
<type>
<choice insertions="none">
<element name="allTypes" type="asnx:NULL"/>
<group name="identifiedTypes"
type="tln:QualifiedTypeIdentification"/>
<element name="components" type="tln:IdentifiersInContext"/>
<element name="allImportsFrom">
<annotation>
allImportsFrom is not used in this version
</annotation>
<type>
<sequence/>
</type>
</element>
</choice>
</type>
</namedType>
<namedType name="QualifiedTypeIdentification">
<annotation>
TypeIdentification and BuiltInTypeIdentification
</annotation>
<type>
<sequence insertions="hollow">
<group name="types">
<type>
<choice insertions="singular">
<group name="specificType"
type="tln:SpecificTypeIdentification"/>
<element name="choice" type="asnx:NULL"/>
<element name="enumerated" type="asnx:NULL"/>
<element name="instanceOf" type="asnx:NULL"/>
<element name="sequence" type="asnx:NULL"/>
<element name="sequenceOf" type="asnx:NULL"/>
<element name="set" type="asnx:NULL"/>
<element name="setOf" type="asnx:NULL"/>
</choice>
<span class="grey">Legg Experimental [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
</type>
</group>
<optional>
<group name="qualification"
type="tln:QualifyingInformationPart"/>
</optional>
</sequence>
</type>
</namedType>
<namedType name="SpecificTypeIdentification">
<type>
<sequence insertions="hollow">
<attribute name="type" type="asnx:QName"/>
<optional>
<element name="component" type="asnx:Markup"/>
</optional>
<optional>
<element name="allTextuallyPresent" type="asnx:NULL"/>
</optional>
</sequence>
</type>
</namedType>
<namedType name="QualifyingInformationPart">
<type>
<choice insertions="none">
<element name="allIdentifiers" type="asnx:NULL"/>
<element name="identifier">
<type>
<sequence>
<attribute name="name" type="asnx:NCName"/>
</sequence>
</type>
</element>
</choice>
</type>
</namedType>
<namedType name="IdentifiersInContext">
<type>
<sequence>
<group name="identifiers" type="tln:IdentifierList"/>
<element name="in">
<type>
<choice>
<element name="allTypes" type="asnx:NULL"/>
<group name="specificType"
<span class="grey">Legg Experimental [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
type="tln:SpecificTypeIdentification"/>
</choice>
</type>
</element>
</sequence>
</type>
</namedType>
<namedType name="IdentifierList">
<type>
<choice insertions="none">
<group name="list" type="tln:IdentifiedComponents"/>
<element name="allTextuallyPresent" type="asnx:NULL"/>
<element name="allFirstLevel" type="asnx:NULL"/>
</choice>
</type>
</namedType>
<namedType name="IdentifiedComponents">
<type>
<sequenceOf minSize="1">
<group name="identifiedComponent"
type="tln:IdentifiedComponent"/>
</sequenceOf>
</type>
</namedType>
<namedType name="IdentifiedComponent">
<type>
<choice insertions="singular">
<element name="component" type="tln:GenericIdentifiedComponent"/>
<element name="element" type="tln:GenericIdentifiedComponent"/>
<element name="attribute" type="tln:GenericIdentifiedComponent"/>
<element name="group" type="tln:GenericIdentifiedComponent"/>
<element name="member" type="tln:GenericIdentifiedComponent"/>
<element name="item" type="tln:GenericIdentifiedComponent"/>
<element name="simpleContent"
type="tln:GenericIdentifiedComponent"/>
</choice>
</type>
</namedType>
<namedType name="GenericIdentifiedComponent">
<type>
<sequence>
<attribute name="name" type="asnx:QName"/>
</sequence>
</type>
<span class="grey">Legg Experimental [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
</namedType>
</asnx:module>
Author's Address
Dr. Steven Legg
eB2Bcom
Suite 3, Woodhouse Corporate Centre
935 Station Street
Box Hill North, Victoria 3129
AUSTRALIA
Phone: +61 3 9896 7830
Fax: +61 3 9896 7801
EMail: steven.legg@eb2bcom.com
<span class="grey">Legg Experimental [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc4914">RFC 4914</a> ASN.X: XER Encoding Instructions July 2007</span>
Full Copyright Statement
Copyright (C) The IETF Trust (2007).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Legg Experimental [Page 38]
</pre>
|