Information technology — ASN.1 encoding rules: Mapping W3C XML schema definitions into ASN.1 — Part 5: — Amendment 1: Efficiency enhancements

Technologies de l'information — Règles de codage ASN.1: Mappage en ASN.1 des définitions de schéma XML du W3C — Partie 5: — Amendement 1: Mises en évidence de l'efficacité

General Information

Status
Withdrawn
Publication Date
17-Mar-2008
Withdrawal Date
17-Mar-2008
Current Stage
9599 - Withdrawal of International Standard
Completion Date
15-Dec-2009
Ref Project

Relations

Buy Standard

Standard
ISO/IEC 8825-5:2004/Amd 1:2008 - Efficiency enhancements
English language
59 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

INTERNATIONAL ISO/IEC
STANDARD 8825-5
First edition
2004-11-15
AMENDMENT 1
2008-03-15

Information technology — ASN.1
encoding rules: Mapping W3C XML
schema definitions into ASN.1
AMENDMENT 1: Efficiency enhancements
Technologies de l'information — Règles de codage ASN.1: Mappage en
ASN.1 des définitions de schéma XML du W3C
AMENDEMENT 1: Mises en évidence de l'efficacité




Reference number
ISO/IEC 8825-5:2004/Amd.1:2008(E)
©
ISO/IEC 2008

---------------------- Page: 1 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008(E)
PDF disclaimer
This PDF file may contain embedded typefaces. In accordance with Adobe's licensing policy, this file may be printed or viewed but
shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In
downloading this file, parties accept therein the responsibility of not infringing Adobe's licensing policy. The ISO Central Secretariat
accepts no liability in this area.
Adobe is a trademark of Adobe Systems Incorporated.
Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation
parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In
the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below.


COPYRIGHT PROTECTED DOCUMENT


©  ISO/IEC 2008
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means,
electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or
ISO's member body in the country of the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland

ii © ISO/IEC 2008 – All rights reserved

---------------------- Page: 2 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008(E)
Contents Page
Page
1) Summary . 1
2) Introduction. 1

3) Clause 1. 2
4) Subclause 2.1. 2
5) Subclause 2.2. 3
6) Subclause 3.1.2 . 3
7) Subclause 7.1. 3
8) Subclause 7.3. 4
9) Subclauses 7.4, 7.5 and 7.6. 4
10) Subclause 7.8. 4
11) Clause 9. 5
12) Subclause 9.1. 5
13) Subclause 9.4. 5
14) Subclause 9.4 bis. 5
15) Subclause 10.1.1 . 5
16) Subclause 10.2.1 . 6
17) Subclause 10.2.2 . 6
18) Subclause 10.3.2 . 6
19) Subclause 10.3.4.1. 6
20) Subclause 10.3.5 . 6
21) Subclause 10.4.1 . 7
22) Subclause 10.4.2.1. 7
23) Subclauses 10.4.3, 10.4.4 and 10.4.5 . 7
24) Subclause 10.4.6 . 8
25) Clause 11 and Table 2 . 8
26) Subclause 12.1.1 . 9
27) Subclause 12.3.1 . 9
28) Subclause 12.4.1 . 10
29) Subclause 12.4.1.4. 10
30) Subclause 12.4.3 . 10
31) Subclause 12.5.2.1. 11
32) Subclause 13.1. 11
33) Subclause 13.2. 12
34) Subclause 13.3. 12
35) Subclause 13.4. 12
36) Subclause 13.7. 12
37) Subclause 13.8. 12
38) Subclauses 13.9.2 bis and 13.9.2 ter . 12
39) Subclause 13.9.3 . 13
40) Subclause 13.10.2. 13
41) Subclause 13.10.5. 13
42) Subclause 14.1. 13
43) Subclause 14.5. 14
44) Subclause 14.6. 14
© ISO/IEC 2008 – All rights reserved iii

---------------------- Page: 3 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008(E)
45) Subclause 18.2. 15
46) Subclause 18.3. 15
47) Subclause 18.4. 15
48) Subclause 19.1. 15
49) Subclause 19.2.1 . 15
50) Subclause 19.2 bis . 15
51) Subclause 19.4.2 and Table 5. 16
52) Subclause 19.5. 16
53) Subclause 19.6. 16
54) Subclauses 20.1, 20.2, 20.3, 20.4 and 20.5. 17
55) Subclause 20.8. 17
56) Subclause 20.9.1 . 17
57) Subclause 21.1. 17
58) Subclause 21.1 bis . 18
59) Subclause 21.2. 18
60) Subclause 21.2 bis . 18
61) Subclause 21.3. 19
62) Subclause 22.4. 19
63) Subclause 22.5. 20
64) Subclause 23.1. 20
65) Subclause 23.2. 20
66) Subclause 23.3. 20
67) Subclause 23.7. 20
68) Subclause 23.8. 20
69) Subclause 23.8.3 . 21
70) Subclause 24.1. 21
71) Subclause 24.3. 21
72) Subclause 24.7. 21
73) Subclause 24.8. 21
74) Subclause 25.1. 22
75) Subclause 25.3. 22
76) Subclause 25.7. 22
77) Subclause 25.8. 22
78) Subclause 26.1. 23
79) Subclause 26.5. 23
80) Subclause 26.6. 23
81) Subclause 27.1. 23
82) Subclause 27.1 bis . 24
83) Subclause 27.2. 24
84) Subclause 27.7. 24
85) Subclause 27.7.1 . 24
86) Subclause 27.7.1 bis. 24
87) Subclause 27.9. 24
88) Subclause 27.11 . 25
89) Subclause 27.12 . 25
iv © ISO/IEC 2008 – All rights reserved

---------------------- Page: 4 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008(E)
90) Subclause 27.12.2. 25

91) Subclause 28.2. 25
92) Subclause 28.3. 25
93) Subclause 28.4. 25
94) Clause 29. 26
95) Clause 30. 27
96) Subclause 31.2. 28
97) Annex A . 28
98) Annex A bis . 32
99) Annex B . 36
100) Annex C . 36

© ISO/IEC 2008 – All rights reserved v

---------------------- Page: 5 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008(E)
Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical
Commission) form the specialized system for worldwide standardization. National bodies that are members of
ISO or IEC participate in the development of International Standards through technical committees
established by the respective organization to deal with particular fields of technical activity. ISO and IEC
technical committees collaborate in fields of mutual interest. Other international organizations, governmental
and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information
technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1.
International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2.
The main task of the joint technical committee is to prepare International Standards. Draft International
Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as
an International Standard requires approval by at least 75 % of the national bodies casting a vote.
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent
rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.
Amendment 1 to ISO/IEC 8825-5 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information
technology, Subcommittee SC 6, Telecommunications and information exchange between systems in
collaboration with ITU-T. The identical text is published as ITU-T Rec. X.694/Amd.1 (05/2007).

vi © ISO/IEC 2008 – All rights reserved

---------------------- Page: 6 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008 (E)
INTERNATIONAL STANDARD
ITU-T RECOMMENDATION
Information technology – ASN.1 encoding rules:
Mapping W3C XML schema definitions into ASN.1
Amendment 1

Efficiency enhancements
Conventions used in this amendment: Original, unchanged, text is in normal font. Deleted text is struck-through, thus:
deleted text. Inserted text is underlined, thus: inserted text. Text in new clauses is not underlined.
1) Summary
Replace the Summary with the following:
This Recommendation | International Standard defines rules for mapping an XSD Schema (a schema conforming to the
W3C XML Schema specification) to an ASN.1 schema in order to use ASN.1 encoding rules such as the Basic
Encoding Rules (BER), the Distinguished Encoding Rules (DER), the Packed Encoding Rules (PER) or the XML
Encoding Rules (XER) for the transfer of information defined by the XSD Schema.
The use of this Recommendation | International Standard with the ASN.1 Extended XML Encoding Rules
(EXTENDED-XER) provides the same XML representation of values as that defined by the original XSD Schema, but
also provides the ability to encode the specified XML with an efficient binary representation (binary XML). An XML
document can be converted to binary XML (for storage or transfer) using the ASN.1 generated by this mapping, and the
resulting binary can be converted back to the same XML document for further XML processing.
Two versions of the mapping are defined. Version 1 of the mapping was published in 2004, and a Corrigendum was
issued to this Version renaming the types DATE-TIME and DURATION in Annex A (in order to avoid conflict with the
application of ITU-T Rec. X.680/Amd. 3 | ISO/IEC 8824-1/Amd. 3 (known as the time types amendment). The
Version 2 mapping is more efficient in two areas: the ASN.1 time types are used rather than VisibleString for mappings
of dates and times; the Fast Infoset specification (ITU-T Rec. X.891 | ISO/IEC 24824-1) is used for the mapping of
XSD wild-cards. Both these changes to the mapping provide much more compact binary encodings for the XML
specified by the XSD.
NOTE – The specification of the Version 1 mapping (with applicable corrections) will be maintained in the next edition of this
Recommendation | International Standard, but it is expected that subsequent editions will document only the Version 2 mapping.
Application of the ASN.1 extended XML Encoding Rules to both versions of the mapping will produce the same XML
(which is the same as that specified by the XSD). However, application of other ASN.1 encoding rules to the Version 1
mapping results in a verbose character-based encoding of date and time types and of XSD wild-cards, whilst application
to the Version 2 mapping results in a more compact binary encoding using ASN.1 time types and the Fast Infoset
specification.
2) Introduction
Replace the Introduction with the following:
This Recommendation | International Standard specifies Version 1 and Version 2 of a mapping from a W3C XML
Schema definition (an XSD Schema) into an ASN.1 schema. The mappings can be applied to any XSD Schema. Both
mappingsIt specifyies 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 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.
 ITU-T Rec. X.694 (2004)/Amd.1 (05/2007) 1

---------------------- Page: 7 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008 (E)
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 defined using an XSD
Schema.
The ASN.1 schema provides a clear separation between the specification of the information content of messages (their
abstract syntax) and the precise form of the XML document (for example, use of attributes instead of elements). This
results in both a clearer and generally a less verbose schema than the original XSD Schema.
Annex A forms an integral part of this Recommendation | International Standard, and is an ASN.1 module containing a
set of ASN.1 type assignments that correspond to each of the XSD built-in datatypes for Version 1 of the mapping.
Mappings of XSD Schemas into ASN.1 schemas either import the type reference names of those type assignments or
include the type definitions in-line.
Annex A bis also forms an integral part of this Recommendation | International Standard and provides the ASN.1
module for Version 2 of the mapping.
Annex B does not form an integral part of this Recommendation | International Standard, and summarizes the object
identifier values assigned in this Recommendation | International Standard.
Annex C does not form an integral part of this Recommendation | International Standard, and gives examples of the
mapping of XSD Schemas into ASN.1 schemas.
Annex D does not form an integral part of this Recommendation | International Standard, and describes the use of the
mapping defined in this Recommendation | International Standard, in conjunction with standardized ASN.1 Encoding
Rules, to provide compact and canonical encodings for data defined using an XSD Schema.
3) Clause 1
Replace the first paragraph of clause 1 with the following (retaining the remaining paragraphs):
This Recommendation | International Standard specifies two Versions of a mapping from any XSD Schema into an
ASN.1 schema. The ASN.1 schema for both Versions supports the same semantics and validates the same set of XML
documents.
4) Subclause 2.1
Replace subclause 2.1 with the following:
2.1 Identical Recommendations | International Standards
NOTE – The complete set of ASN.1 Recommendations | International Standards are listed below, as they can all be applicable in
particular uses of this Recommendation | International Standard. Where these are not directly referenced in the body of this
Recommendation | International Standard, a † symbol is added to the reference.
– ITU-T Recommendation X.680 (2002) | ISO/IEC 8824-1:2002, Information technology – Abstract
Syntax Notation One (ASN.1): Specification of basic notation.
– ITU-T Recommendation X.680 (2002)/Amd. 3 (2006)| ISO/IEC 8824-1:2002/Amd. 3:2006, Information
technology – Abstract Syntax Notation One (ASN.1): Specification of basic notation – Amendment 3:
Time type support.
– ITU-T Recommendation X.681 (2002) | ISO/IEC 8824-2:2002, Information technology – Abstract
Syntax Notation One (ASN.1): Information object specification. †
– ITU-T Recommendation X.682 (2002) | ISO/IEC 8824-3:2002, Information technology – Abstract
Syntax Notation One (ASN.1): Constraint specification.
– ITU-T Recommendation X.683 (2002) | ISO/IEC 8824-4:2002, Information technology – Abstract
Syntax Notation One (ASN.1): Parameterization of ASN.1 specifications. †
2 ITU-T Rec. X.694 (2004)/Amd.1 (05/2007)

---------------------- Page: 8 ----------------------
ISO/IEC 8825-5:2004/Amd.1:2008 (E)
– ITU-T Recommendation X.690 (2002) | ISO/IEC 8825-1:2002, Information technology – ASN.1
encoding Rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and
Distinguished Encoding Rules (DER).
– ITU-T Recommendation X.690 (2002)/Amd.2 (2006) | ISO/IEC 8825-1:2002/Amd.2:2007, Information
technology – ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding
Rules (CER) and Distinguished Encoding Rules (DER) – Amendment 2: Time type support.
– ITU-T Recommendation X.691 (2002) | ISO/IEC 8825-2:2002, Information technology – ASN.1
encoding rules: Specification of Packed Encoding Rules (PER).
– ITU-T Recommendation X.691 (2002)/Amd.2 (2006) | ISO/IEC 8825-2:2002/Amd.2:2007, Information
technology – ASN.1 encoding rules: Specification of Packed Encoding Rules (PER) – Amendment 2:
Time type support. †
– ITU-T Recommendation X.692 (2002) | ISO/IEC 8825-3:2002, Information technology – ASN.1
encoding rules: Specification of Encoding Control Notation (ECN). †
– ITU-T Recommendation X.693 (2001) | ISO/IEC 8825-4:2002, Information technology – ASN.1
encoding rules: XML Encoding Rules (XER).
– ITU-T Recommendation X.693 (2001)/Amd.1 (2003) | ISO/IEC 8825-4:2002/Amd.1:2004, Information
technology – ASN.1 encoding rules: XML Encoding Rules (XER) – Amendment 1: XER encoding
instructions and EXTENDED-XER.
– ITU-T Recommendation X.693 (2002)/Amd.2 (2006) | ISO/IEC 8825-4:2002/Amd.2:2006, Information
technology – ASN.1 encoding rules: XML Encoding Rules (XER) – Amendment 2: Time type support.
– ITU-T Recommendation X.891 (2005) | ISO/IEC 24824-1:2007, Information technology – Generic
applications of ASN.1: Fast Infoset.
5) Subclause 2.2
In subclause 2.2, replace "ISO 8601:2000" with "ISO 8601:2004".
6) Subclause 3.1.2
Replace subclause 3.1.2 with the following:
3.1.2 This Recommendation | International Standard also uses the terms defined in W3C XML Schema and
W3C XML Information Set.
NOTE 1 – It is believed that these terms do not conflict with the terms referenced in 3.1.1. If such a conflict occurs, the definition
of the term in 3.1.1 applies.
NOTE 2 – In particular, the terms "schema component" and "property (of a schema component)" are defined in W3C XML
Schema, and the terms "element information item" and "attribute information item" areis defined in W3C XML Information Set.
NOTE 3 – The terms "top-level simple type definition" and "top-level complex type definition" do not include XSD built-in types,
when used in this Recommendation | International Standard.
7) Subclause 7.1
Replace subclause 7.1 with the following:
7.1 A mapping is based on a source XSD Schema, which is a set of schema components (see W3C XML Schema
Part 1, 2.2). No particular representation of schema components or sets of schema components is required or assumed
for the mapping, although it is expected that the source XSD Schema will usually be provided as one or more XML
schema documents (see W3C XML Schema Part 1, 3.15.2).
NOTE 1 – The schema components represented in multiple XML schema documents become part of the same XSD Schema
through the use of the xsd:include xsd:redefine and xsd:import element information items.
NOTE 21 – Since the mapping is defined in terms of schema components (and not in terms of their XML representation), it is not
affected by details of the XML representation, such as
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.