Information technology — ASN.1 encoding rules — Part 5: Mapping W3C XML schema definitions into ASN.1
Introduction: This Recommendation | International Standard specifies version 1 and version 2 of a mapping from a W3C XML Schema definition (an XSD Schema) into an Abstract Syntax Notation One (ASN.1) schema. The mappings can be applied to any XSD Schema. Both mappings specify the generation of one or more ASN.1 modules containing type definitions, together with ASN.1 XER encoding instructions. These are jointly described as an ASN.1 schema for Extensible Markup Language (XML) documents. This ASN.1 schema (produced by either version of the mapping), when used with the ASN.1 Extended XML Encoding Rules (EXTENDED-XER), can be used to generate and to validate the same set of W3C XML 1.0 documents as the original XSD Schema. The resulting ASN.1 types and encodings support the same semantic content as the XSD Schema. Thus ASN.1 tools can be used interchangeably with XSD tools for the generation and processing of the specified XML documents. Other standardized ASN.1 encoding rules, such as the Distinguished Encoding Rules (DER) or the Packed Encoding Rules (PER), can be used in conjunction with this standardized mapping, but produce encodings for version 2 of the mapping that differ from (and are less verbose than) those produced by version 1 for XSD constructs involving dates and times or wildcards. The combination of this Recommendation | International Standard with ASN.1 Encoding Rules provides fully standardized and vendor-independent compact and canonical binary encodings for data originally
Scope: This Recommendation | International Standard specifies two versions of a mapping from any XSD Schema into an Abstract Syntax Notation One (ASN.1) schema. The ASN.1 schema for both versions support the same semantics and validate the same set of XML documents. This Recommendation | International Standard specifies the final XER encoding instructions that are to be applied as part of the defined mapping to ASN.1 types, but does not specify which syntactic form is to be used for the specification of those final XER encoding instructions, or the order or manner of their assignment. NOTE – Implementers of tools generating these mappings may choose any syntactic form or order of assignment that results in the specified final XER encoding instructions being applied. Examples in this Recommendation | International Standard generally use the type prefix form, but use of an XER Encoding Control Section may be preferred for the mapping of a complete XSD Schema, as a matter of style. There are different ways (syntactically) of assigning XER encoding instructions for use in EXTENDED-XER encodings (e.g., use of ASN.1 type prefix encoding instructions or use of an XER encoding control section). The choice of these syntactic forms is a matter of style and lies outside the scope of this Recommendation | International Standard.
Contents: