1、Information technology MPEG systems technologies Part 1: Binary MPEG format for XML AMENDMENT 2: Conservation of prefixes and extensions on encoding of wild cardsAmendment 2:2009 (IDT) toNational Standard of CanadaCAN/CSA-ISO/IEC 23001-1-08(ISO/IEC 23001-1:2006, IDT)NOT FOR RESALE.PUBLICATION NON DE
2、STINE LA REVENTE.CSA Standards Update ServiceAmendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08October 2009Title: Information technology MPEG systems technologies Part 1: Binary MPEG format for XML AMENDMENT 2: Conservation of prefixes and extensions on encoding of wild cardsPagination: 24 pages (iii pre
3、liminary and 21 text)To register for e-mail notification about any updates to this publicationgo to www.ShopCSA.caclick on E-mail Services under MY ACCOUNTclick on CSA Standards Update ServiceThe List ID that you will need to register for updates to this publication is 2419160.If you require assista
4、nce, please e-mail techsupportcsa.ca or call 416-747-2233.Visit CSAs policy on privacy at www.csagroup.org/legal to find out how we protect your personal information.Reference numberISO/IEC 23001-1:2006/Amd.2:2008(E)ISO/IEC 2008INTERNATIONAL STANDARD ISO/IEC23001-1First edition2006-04-01AMENDMENT 22
5、008-02-15Information technology MPEG systems technologies Part 1: Binary MPEG format for XML AMENDMENT 2: Conservation of prefixes and extensions on encoding of wild cards Technologies de linformation Technologies des systmes MPEG Partie 1: Format binaire de MPEG pour XML AMENDEMENT 2: Conservation
6、des prfixes et des extensions pour lencodage des caractres de remplacement ISO/IEC 23001-1:2006/Amd.2:2008(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which
7、 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 Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Inco
8、rporated. 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 th
9、at 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 mech
10、anical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs 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 copyrightiso.org Web www.is
11、o.org ii ISO/IEC 2008 All rights reservedAmendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08ISO/IEC 23001-1:2006/Amd.2:2008(E) ISO/IEC 2008 All rights reserved iiiForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized
12、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 committee
13、s 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 St
14、andards 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. Publica
15、tion 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
16、patent rights. Amendment 2 to ISO/IEC 23001-1:2006 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 29, Coding of audio, picture, multimedia and hypermedia information. Amendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08ISO/IEC 23001-1:2006/Amd.2:2008(E) ISO
17、/IEC 2008 All rights reserved 1Information technology MPEG systems technologies Part 1: Binary MPEG format for XML AMENDMENT 2: Conservation of prefixes and extensions on encoding of wild cards In 6.2.2, replace: DecoderInit () Number of bits Mnemonic SystemsProfileLevelIndication 8+ vluimsbf8 with:
18、 DecoderInit () Number of bits Mnemonic SystemsProfileLevelIndication 8+ vluimsbf8 UnitSizeCode 3 bslbf NoAdvancedFeatures 1 bslbfReservedBits 4 bslbfIf (! NoAdvancedFeatures) AdvancedFeatureFlags_Length 8+ vluimsbf8 /* FeatureFlags */ InsertFlag 1 bslbf AdvancedOptimisedDecodersFlag 1 bslbfAddition
19、alSchemaFlag 1 bslbfAdditionalSchemaUpdatesOnlyFlag 1 bslbf FragmentReferenceFlag 1 bslbfMPCOnlyFlag 1 bslbfHierarchyBasedSubstitutionCodingFlag 1 bslbf ContextPathTableFlag 1 bslbfPrefixTableFlag 1 bslbfReservedBitsZero /*for additional Flags */ 24 bslbf If (PrefixTableFlag) PrefixTable () Reserved
20、BitsZero AdvancedFeatureFlags_Lent Amendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08ISO/IEC 23001-1:2006/Amd.2:2008(E) 2 ISO/IEC 2008 All rights reservedh*8-33-PrefixTable_length*8 /* FeatureFlags end */ /* Start FUUConfig */ If (! AdditionalSchemaUpdatesOnlyFlag) NumberOfSchemas 8+ vluimsbf8 for (k=0;
21、k which is equivalent to encoding the following sequence of events: START_ELT_1, START_ELT_2, END_ELT, START_ELT_2, END_ELT Amendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08ISO/IEC 23001-1:2006/Amd.2:2008(E) 16 ISO/IEC 2008 All rights reservedBelow is a representation of the initial table of symbols (th
22、e IDLE event is a non-existent event). Events SymbolIDLE 0 ADD_ANAME 1 ADD_ENAME 2 ADD_NS 3 END_ELEMENT 4 START_ELEMENT_1 25 START_ATTRIBUTE_51 126 START_ELEMENT_52 127 The START_ELEMENT_1 is first encoded with byte #25. The event is then moved to the front of the table, which leads to: Events Symbo
23、lSTART_ELEMENT_1 25 IDLE 0 ADD_ANAME 1 ADD_ENAME 2 ADD_NS 3 END_ELEMENT 4 START_ATTRIBUTE_51 126 START_ELEMENT_52 127 Then, the START_ELT_2 is encoded with the byte #27. The double event START_ELT_1 ; START_ELT_2 is then added to the front of the table, pulling out the START_ELEMENT_52 event. The ev
24、ent START_ELT_2 is then moved up. This leads to: Amendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08ISO/IEC 23001-1:2006/Amd.2:2008(E) ISO/IEC 2008 All rights reserved 17Events Symbol START_ELT_2 27 START_ELT_1 ; START_ELT 2 127 START_ELEMENT_1 25 IDLE 0 ADD_ANAME 1 ADD_ENAME 2 ADD_NS 3 END_ELEMENT 4 STAR
25、T_ATTRIBUTE_51 126 The END_ELT is then encoded with the byte #4. And the table is modified as follows: END_ELEMENT 4 START_ELT 2 ; END_ELT 125 START_ELT_1;START_ELT_2; END_ELT 126 START_ELT_2 27 START_ELT_1 ; START_ELT 2 127 START_ELEMENT_1 25 IDLE 0 ADD_ANAME 1 ADD_ENAME 2 ADD_NS 3 START_ATTRIBUTE_
26、50 124 And the upcoming START_ELT_2, END_ELT events are encoded with only one byte (#125). As a conclusion, the input sequence of events: START_ELT_1, START_ELT_2, END_ELT, START_ELT_2, END_ELT is encoded with the following symbols : #25, #27, #4, #125 Amendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08IS
27、O/IEC 23001-1:2006/Amd.2:2008(E) 18 ISO/IEC 2008 All rights reservedIn 7.5.3.3 (Single AnyAttribute Decoding), replace all subclauses with: 7.5.3.3.1 Syntax SingleSchemaAnyAttributeDecoding() Number of bits Mnemonic GlobalAttributeSchemaID ceil( log2( NumberOfSchemas + NumberOfAdditionalSchemas) ) u
28、imsbf SchemaAnyAttribute_Length 5+ vluimsbfif (GlobalAttributeSchemaID = LAXSchemaID) /lax encoding NumberOfLaxAnyAttributes 5+ vluimsbf5 for (i=0;i Zlib A contextual advanced optimised decoder dedicated to the compression of strings UniformQuantizer An advanced optimised decoder to compress large s
29、eries of floating point numbers using uniform quantization technique NonUniformQuantizer An advanced optimised decoder to compress large series of floating point numbers using non-uniform quantization technique QNameExpression An advanced optimised decoder to encode QName expressions with conservati
30、on of validity after decoding In Clause 8, add: 8.8 Optimized decoder for QName expressions 8.8.1 Overview A qualified name (QName) in XML is an element or attribute that is associated with an XML namespace (it can be prefixed or unprefixed). The optimized decoder for QName expressions enables to ma
31、intain the validity of QName expressions such as XPath expressions after decoding. It should be associated to the specifc XML data-type (QNameExprType) defined below. Amendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08ISO/IEC 23001-1:2006/Amd.2:2008(E) ISO/IEC 2008 All rights reserved 21During encoding, t
32、he codec first replaces in a QName expression every known prefixes by numerical ones, based on their respective namespace unique ID (as assigned in the decoderInit). It then encodes the resulting expression as an UTF-8 string expression. During decoding, the codec decodes the UTF-8 string and then r
33、eplaces all numerical prefixes by their local equivalent according to the current namespace/prefix association map. As numerical prefixes are not allowed in XML, there is no ambiguity that the QName expression optimised decoder replaces an already existing prefix. 8.8.2 Decoding process 8.8.2.1 Synt
34、ax QNameExpressionDecode() Number of bits Mnemonic Expression_Length 5+ vluimsbf5 Expression 8* Expression_Length bslbf 8.8.2.2 Semantics Name Definition Expression An UTF-8 string expression. After being decoded, every numerical prefixes “x:“ where x is a number which refers to a Schema ID, should
35、be replaced by the prefix which is bound to this schema. Amendment 2:2009 toCAN/CSA-ISO/IEC 23001-1-08ISO/IEC 23001-1:2006/Amd.2:2008(E) ICS 35.040 ISO/IEC 2008 All rights reserved Copyright NoticeThis Amendment to the International Standard contains information copyright protected by the Internatio
36、nal Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC). Except as permitted under the laws of Canada, no extract of this Amendment to the International Standard may be reproduced, stored in any retrieval system, or transmitted in any form or by any means,
37、electronic, photocopying, recording, or otherwise, without prior permission from the Standards Council of Canada (SCC). Requests for permission to reproduce this Amendment to the International Standard or parts thereof should be addressed to Manager, Technical Document Centre Standards Council of Ca
38、nada 270 Albert Street, Suite 200 Ottawa, Ontario K1P 6N7 The Canadian adoption of this Amendment to the International Standard contains information copyright protected by the Canadian Standards Association. All rights reserved. No part of this adopted Amendment may be reproduced in any form whatsoe
39、ver without the prior permission of the publisher. ISO/IEC material is reprinted with permission. Requests for permission to reproduce this adopted Amendment or parts thereof should be addressed to Manager, Sales Canadian Standards Association 5060 Spectrum Way, Suite 100 Mississauga, Ontario L4W 5N
40、6Copyright violators will be prosecuted to the full extent of the law.PRINTED IN CANADAIMPRIMEAU CANADA100%The Canadian Standards Association (CSA) prints its publications on Rolland Enviro100, which contains 100% recycled post-consumer fibre, is EcoLogo and Processed Chlorine Free certified, and was manufactured using biogas energy.