SIST ETS 300 715 E1:2003
(Main)Terminal Equipment (TE); MHEG script interchange representation (MHEG-SIR)
- Abstract
Specify a representation allowing the description of access & process- ing of Mulitmedia & Hypermedia Information used in AVI applications in a platform-independent way.
- Status
- Published
- Publication Date
- 30-Nov-2003
- Current Stage
- 6060 - National Implementation/Publication (Adopted Project)
- Start Date
- 01-Dec-2003
- Due Date
- 01-Dec-2003
- Completion Date
- 01-Dec-2003
SIST ETS 300 715 E1:2003 is the Slovenian standard identical to ETS 300 715 Edition 1 from ETSI. It specifies MHEG-SIR, a platform-independent script interchange representation for describing and processing multimedia and hypermedia information in AVI applications. It is written for MHEG applications, MHEG engines, and implementers that need scripts to be encoded, interpreted, and exchanged in a consistent way.
What does SIST ETS 300 715 E1:2003 specify?
SIST ETS 300 715 E1:2003 specifies the coded representation of the MHEG script object class and the semantics that MHEG engines shall follow when interpreting interchanged scripts. In practice, it tells you how to package script data, how an engine should execute it, and how scripts can call external services or manipulate MHEG objects.
The scope is limited to the script object class within ISO/IEC 13522 and extends the base MHEG provisions so that scripts can carry data-processing logic and run-time access in a standard form. It applies to applications that interchange multimedia and hypermedia information.
The document is organised as follows:
- Clauses 1 to 5 cover scope, references, definitions, general background, and conformance.
- Clauses 6 to 9 explain the MHEG-SIR model, the MHEG/MHEG-3 relationship, and the virtual machine.
- Clauses 10 and 11 define access to the run-time environment and to MHEG objects.
- Clause 12 defines script declarations.
- Clause 13 defines the instruction set and its execution rules.
- Clause 14 maps IDL into MHEG-SIR.
- Clause 15 defines the MHEG-3 API.
| Annex | What it covers |
|---|---|
| A | Formal syntax of interchanged scripts in ASN.1 |
| B | Encoding of interchanged scripts and program code |
| C | Predefined types, functions, and messages, including their encoding |
| D | Platform mapping specification form for run-time environment access |
| E | Framework for defining an MHEG API in IDL and mapping it to MHEG-SIR |
| F | Normative IDL specification of the MHEG-3 API |
| G | Relationship with ISO/IEC 13522-1 and ISO/IEC 13522-5 |
| H | Informative EBNF syntax for MHEG-SIR scripts |
| J | Informative textual notation for MHEG-SIR scripts |
| K | MHEG entities such as MHEG objects, mh-objects, and rt-objects |
| L | Main features of MHEG-SIR |
What are the key requirements of SIST ETS 300 715 E1:2003?
SIST ETS 300 715 E1:2003 sets requirements on script conformance, script structure, execution behaviour, external service access, and the MHEG-3 API. These requirements matter because they determine whether a script object can be exchanged, decoded, and interpreted predictably by different engines.
Conformance and application scope
Clause 5 separates conformance into information objects, implementations, and applications. A conforming MHEG-3 script object must itself conform to ISO/IEC 13522 representation rules and must encapsulate a conforming MHEG-3 interchanged script. For users, that means the script content and the object that carries it are both part of interoperability.
Clause 5 also ties testing to ISO/IEC 9646. If you need to verify an engine or an object for conformance, the standard expects conformance measurements to use that testing framework.
Script structure and execution model
Clause 12 defines an interchanged script as a sequence of:
- type declarations
- constant declarations
- global variable declarations
- package declarations
- handler declarations
- routine declarations
This structure matters because it tells implementers what to parse before execution begins and what is only used later at run time. Routines contain the program code, while declarations describe the data and interfaces that code can use.
Clause 9 defines the MHEG-SIR virtual machine, including memory areas, stacks, queues, script statuses, and processing units. The model is deliberately abstract: an engine may implement it in any way, but it shall behave as if it followed the same interpretation rules. The practical result is predictable execution across implementations.
Instructions and data handling
Clause 13 defines the instruction set and groups instructions into control flow, variable, stack, arithmetic, logical, comparison, memory, and conversion operations. The instruction set includes calls, jumps, pushes and pops, allocation and freeing, and access to constructed data. For a reader, this means MHEG-SIR can express both computation and structured script logic, not just simple message passing.
Clause 13.4 defines type conversion rules for the parameter stack. Some conversions are reversible or lossless, while others are truncating. This matters when routines pass values between external services, variables, and stack operations, because type compatibility is not left to guesswork.
External services and MHEG object access
Clause 10 explains how scripts call external services through package declarations. A package declaration describes services and exceptions by name, signature, and identifiers, and the run-time platform must provide a platform mapping specification for those services when one exists. In practice, this is the bridge between portable script logic and platform-specific software or services.
Clause 10 also requires the package mapping to define availability, loading, unloading, invocation, data encoding, parameter passing, return value retrieval, and exception retrieval. That means a script can be written against abstract service descriptions, while the platform mapping tells the engine how to reach the actual implementation.
Clause 11 defines access to the MHEG API. MHEG actions are invoked through the same general mechanism as external services, but the MHEG API is treated as predefined. The standard also defines how scripts receive MHEG messages, including those related to API run operations and API exceptions.
IDL mapping and the MHEG-3 API
Clause 14 maps IDL specifications into MHEG-SIR package, type, service, and exception declarations. It also maps IDL operations, attributes, inherited operations, exceptions, types, and constants. For implementers, this is the rule set that makes external interfaces language-independent inside an MHEG-SIR script.
Clause 15 defines the MHEG-3 API as the unique IDL module MHEG_3. It includes the objects ScriptInterpreter, MhScript, RtScript, and RoutineInvocation, together with predefined types and exceptions. The predefined MHEG-3 API functions are synchronous, so script authors and engine implementers can rely on call-and-response behaviour.
What terms does SIST ETS 300 715 E1:2003 define?
SIST ETS 300 715 E1:2003 defines a set of terms that anchor the execution model and the interface model.
- MHEG-SIR - The script interchange representation defined by the standard for MHEG script objects.
- interchanged script - The coded representation of the script data attribute of an MHEG script object.
- mh-script - The internal representation, within an MHEG engine, of an available MHEG script object.
- rt-script - The run-time representation created from an mh-script and executed by the engine.
- MHEG-3 engine - An MHEG engine that processes and interprets MHEG-SIR interchanged scripts.
- MHEG API - The API that an MHEG engine provides to applications for manipulating MHEG objects.
- IDL - Interface Definition Language, used here to specify types, operations, attributes, and exceptions in a platform-independent way.
- RoutineInvocation - The MHEG-3 API object that represents the invocation context of a routine and carries its parameters and execution state.
Who uses SIST ETS 300 715 E1:2003?
SIST ETS 300 715 E1:2003 is used by people who build, integrate, test, or buy systems that exchange MHEG scripts. That includes MHEG engine developers, terminal equipment vendors, multimedia system integrators, and teams that need predictable script interoperability.
Typical users and tasks include:
- engine implementers defining how scripts are parsed, prepared, and executed
- application developers packaging multimedia or hypermedia logic as interchanged scripts
- platform providers defining the platform mapping specification for external services
- quality and conformance teams checking script objects and engine behaviour
- system integrators linking MHEG scripts to external data, functions, or device services
- buyers and technical evaluators checking whether a product supports MHEG-SIR and the MHEG-3 API
What changed in SIST ETS 300 715 E1:2003 from the previous edition?
SIST ETS 300 715 E1:2003 is identical to ETS 300 715 Edition 1.
Which standards are used with SIST ETS 300 715 E1:2003?
SIST ETS 300 715 E1:2003 relies on several cited standards and companion parts:
- ISO/IEC 8824-1 - provides ASN.1 basic notation used for formal syntax
- ISO/IEC 8825-1 - provides BER, CER, and DER encoding rules; this ETS uses DER for interchanged scripts
- ISO/IEC 9646 Parts 1 to 5 - provides the conformance testing methodology and framework
- ISO/IEC 10646-1 - provides the UCS character repertoire used for text-related types
- ISO/IEC 13522-1 - provides the base notation for MHEG object representation and the script class framework
- ISO/IEC 13522-4 - provides the registration procedure for MHEG format identifiers
- ISO/IEC 13522-5 - provides support for base-level applications and the related InterchangedProgram context
- ISO/IEC 14750-1 - provides the CORBA IDL notation used for interface mapping
- IEEE 754-1985 - defines binary floating-point arithmetic used in numeric semantics
What does the SIST ETS 300 715 E1:2003 document contain?
The document contains a formal model of how MHEG-SIR scripts are built and executed, plus the syntax and encoding rules needed for interchange. Clause 13 includes a structured instruction catalogue with semantics for control flow, arithmetic, stack operations, memory management, and data access.
It also contains mapping rules for IDL, including how operations, attributes, types, constants, and exceptions are turned into MHEG-SIR declarations. Annex F gives the full MHEG-3 API in IDL form, while Annex H and Annex J provide syntax notations that help developers and testers read or generate scripts.
Annex B gives the octet-level coding of script programs, and Annex C identifies the predefined elements used by engines. Annex K describes the MHEG entities that an engine handles, and Annex L summarises the main functional and technical features of MHEG-SIR, including hardware independence, compact representation, and secure script processing.
Get Certified
Connect with accredited certification bodies for this standard

BSI Group
BSI (British Standards Institution) is the business standards company that helps organizations make excellence a habit.

NYCE
Mexican standards and certification body.

ANCE
Mexican certification and testing association.
Sponsored listings
Frequently Asked Questions
SIST ETS 300 715 E1:2003 is a standard published by the Slovenian Institute for Standardization (SIST). Its full title is "Terminal Equipment (TE); MHEG script interchange representation (MHEG-SIR)". This standard covers: Specify a representation allowing the description of access & process- ing of Mulitmedia & Hypermedia Information used in AVI applications in a platform-independent way.
Specify a representation allowing the description of access & process- ing of Mulitmedia & Hypermedia Information used in AVI applications in a platform-independent way.
SIST ETS 300 715 E1:2003 is classified under the following ICS (International Classification for Standards) categories: 33.160.60 - Multimedia systems and teleconferencing equipment; 35.180 - IT terminal and other peripheral equipment. The ICS classification helps identify the subject area and facilitates finding related standards.
SIST ETS 300 715 E1:2003 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.
Standards Content (Sample)
Contents
- Introduction
- 1 Scope
- 2 Normative references
- 3 Definitions
- 3.1 Definitions
- 3.2 Abbreviations
- 4 General
- 5 Conformance
- 5.1 Information object conformance
- 5.2 Implementation conformance
- 5.3 Application conformance
- 5.4 Test Methods
- 6 Overview
- 6.1 Description methodology
- 6.2 Data processing operations
- 6.3 Access to external data and functions
- 7 MHEG/MHEG-3 relationship
- 7.1 MHEG entities
- 7.2 Functional entities
- 7.3 MHEG-SIR script interpreter
- 8 Elements of MHEG-SIR
- 8.1 Data types
- 8.2 Data
- 8.3 Functions
- 8.4 Messages
- 8.5 Instructions
- 8.6 Identifiers
- 9 The MHEG-SIR virtual machine
- 9.1 Structure of the MHEG-SIR virtual machine
- 9.2 Structures and notations
- 9.3 Memory areas
- 9.4 Script statuses
- 9.5 Processing units
- 10 Provisions for run-time environment access
- 10.1 General model
- 10.2 Declaration of IDL interfaces
- 10.3 Invocation of external operations in an MHEG-SIR program
- 10.4 Handling of external exceptions in an MHEG-SIR program
- 10.5 Invocation of external operations by an MHEG-3 engine
- 10.6 Handling of external exceptions by an MHEG-3 engine
- 10.7 Platform mapping specifications
- 11 Provisions for MHEG object manipulation
- 11.1 Invoking MHEG actions
- 11.2 Receiving MHEG messages
- 12 MHEG-SIR declarations
- 12.1 Type declaration
- 12.2 Constant declaration
- 12.3 Global variable declaration
- 12.4 Package declaration
- 12.5 Handler declaration
- 12.6 Routine declaration
- 13 MHEG-SIR instructions
- 13.1 Presentation methodology
- 13.2 Classification of MHEG-SIR instructions
- 13.3 Description of instructions
- 13.4 Type conversion rules
- 14 IDL mapping to MHEG-SIR
- 14.1 IDL specifications
- 14.2 IDL interfaces and modules
- 14.3 IDL operations
- 14.4 IDL attributes
- 14.5 IDL inherited operations
- 14.6 IDL exceptions
- 14.7 IDL types
- 14.8 IDL constants
- 15 The MHEG-3 API
- 15.1 ScriptInterpreter object
- 15.2 MhScript object
- 15.3 RtScript object
- 15.4 RoutineInvocation object
- Annex A (normative): ASN.1 specification of interchanged scripts
- Annex B (normative): Coded representation of interchanged scripts
- Annex C (normative): MHEG-SIR predefined elements
- Annex D (normative): IDL Platform mapping specification form
- Annex E (normative): MHEG API definition process
- Annex F (normative): IDL specification of the MHEG-3 API
- Annex G (normative): Relationships with other parts of ISO/IEC 13522
- Annex H (informative): MHEG-SIR syntax (EBNF notation)
- Annex J (informative): Textual notation for MHEG-SIR scripts
- Annex K (informative): MHEG entities
Introduction
Multimedia and Hypermedia information coding Experts Group (MHEG) part 1 (ISO/IEC 13522-1 [5]) is a generic International Standard/Recommendation, which specifies the coded representation of multimedia/hypermedia information objects (MHEG objects) for interchange as final form units within or across services and applications, by any means of interchange including local area networks, wide area telecommunication or broadcast networks, storage media, etc.
ISO/IEC 13522 consists of the following parts, under the general title Information technology - Coding of multimedia and hypermedia information:
- Part 1: Base notation;
- Part 3: MHEG script interchange representation;
- Part 4: Registration procedure for MHEG format identifier;
- Part 5: Support for base-level interactive applications;
- Part 6: Support for enhanced interactive applications.
Annexes A to G form an integral part of this ETS.
Annexes H to L are for information only.
SIST ETS 300 715 E1:2003 Page 12 ETS 300 715: June 1997 Blank page
SIST ETS 300 715 E1:2003 Page 13 ETS 300 715: June 1997
1 Scope
The scope of this European Telecommunications Standard (ETS) is to extend the coded representation of the Multimedia and Hypermedia information coding Experts Group (MHEG) script object class defined by a part of ISO/IEC 13522, including ISO/IEC 13522-1 [5] and ISO/IEC 13522-5 [7]. This ETS specifies the MHEG script interchange representation (MHEG-SIR) for the contents of script objects, i.e. the encoding of the script data component of the MHEG script class. MHEG engines are system or application components that handle, interpret and present MHEG objects. This ETS also specifies the semantics of interchanged scripts. These semantics are defined in terms of minimum requirements on the behaviour of MHEG engines that support the interpretation of interchanged scripts.
This ETS is applicable to all applications that interchange multimedia and hypermedia information.
2 Normative references
This ETS incorporates by dated and undated reference, provisions from other publications. These normative references are cited at the appropriate places in the text and the publications are listed hereafter. For dated references, subsequent amendments to or revisions of any of these publications apply to this ETS only when incorporated in it by amendment or revision. For undated references the latest edition of the publication referred to applies.
[1] ISO/IEC 8824-1 (1995)/ITU-T Recommendation X.680 (1995): "Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation".
[2] ISO/IEC 8825-1 (1994)/ITU-T Recommendation X.690 (1995): "Information technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)".
[3] ISO/IEC 9646 Parts 1 to 5 (1991): "Information Technology - Open Systems Interconnection - Conformance testing methodology and framework". [4] ISO/IEC 10646-1 (1993): "Information technology - Universal Multiple-Octet Character Set (UCS) - Part 1: Architecture and Basic Multilingual Plane". [5] ISO/IEC 13522-1/ITU-T Recommendation T.171: "Information technology - Coding of Multimedia and Hypermedia Information: - Part 1: MHEG object representation - Base Notation".
[6] ISO/IEC 13522-4: "Information technology - Coding of Multimedia and Hypermedia Information: - Part 4: Registration procedure for MHEG format identifiers".
[7] ISO/IEC 13522-5: "Information technology - Coding of multimedia and hypermedia information - Part 5: Support for base-level applications". [8] ISO/IEC 14750-1 Working Draft: "CORBA IDL as an Interface Definition Language for ODP Systems".
[9] IEEE 754-1985: "IEEE Standard for Binary Floating-Point Arithmetic".
SIST ETS 300 715 E1:2003 Page 14 ETS 300 715: June 1997
3 Definitions
3.1 Definitions
For the purposes of this ETS, the definitions given in ISO/IEC 8824-1 [1], ISO/IEC 8825-1 [2] and the following definitions apply:
Application Programming Interface (API): Boundary across which a software application uses facilities of programming languages to invoke software services. These facilities may include procedures or operations, shared data objects and resolution of identifiers. attribute: (1) MHEG attribute (see ISO/IEC 13522-1 [5]); (2) IDL attribute (q.v.).
conforming MHEG-3 engine: MHEG-3 engine whose implementation conforms to the provisions of this ETS.
conforming MHEG-3 interchanged script: Interchanged script that conforms to the provisions of this ETS.
conforming MHEG-3 object: MHEG script object whose coded representation conforms to the provisions of this ETS.
frame: Record of elements on the call stack that define an execution context; one such record is pushed onto the call stack everytime a routine is called, to memorize the current execution context; one is popped from the call stack when the routine is returned from, to restore the execution context at the time of calling.
hypermedia (ADJ.): Featuring access monomedia and multimedia information by interaction with explicit links.
interchanged script: The coded representation of the "script data" attribute of an MHEG script object. Interface Definition Language (IDL): Formal notation that is used to specify types and objects through the definition of the interface that they provide, as defined by ISO/IEC 14750-1 [8]. IDL attribute: Named, typed association between an object and a value; it is declared as part of an IDL interface; it is made visible to clients as a pair of operations: an accessor (get) and a modifier (set); if it is read-only, it only provides an accessor.
IDL exception: Message that can be raised when an exceptional condition occurs during the performance of the request to an IDL operation; it is defined in an IDL module and may have members, which are returned to the caller together with the message identifier.
IDL instance: Object that provides the operations, signatures and semantics specified by an IDL interface; its creation and management is implementation-specific. IDL interface: Description, using IDL, of a set of operations that a client may request of an IDL object. IDL object: Identifiable, encapsulated entity that provides one or more services which can be requested by a client.
IDL operation: Service that can be requested and is provided by an IDL object; it is defined within an IDL interface by a name, a signature which defines the type of its parameters and return value, and the list of exceptions that its invocation may raise.
mh-script: Internal representation, within an MHEG engine, of an "available" MHEG script object. MHEG action: Operation that applies to MHEG objects and consists of sequential and/or parallel combinations of MHEG elementary actions.
SIST ETS 300 715 E1:2003 Page 15 ETS 300 715: June 1997 MHEG action object: MHEG object that describes MHEG actions.
MHEG application: Application that involves the interchange of MHEG objects within itself or with another application.
MHEG conforming object: Information object whose coded representation conforms to the provisions of another part of ISO/IEC 13522.
MHEG elementary action: One of the basic operations applying to MHEG objects; it maps one MHEG API primitive.
MHEG engine: Process or set of processes able to interpret MHEG objects. MHEG entity: Any MHEG object, rt-object, content data, script data, socket, channel or other construction defined by ISO/IEC 13522.
MHEG link: MHEG object that defines spatio-temporal relationships among MHEG objects expressed in terms of trigger conditions and actions.
MHEG object: Coded representation of an instance of an MHEG object class. MHEG script class: MHEG class defining a structure to interchange script data in a specified encoded form.
MHEG script object: The coded representation of an instance of an MHEG script class. MHEG API: The API provided by an MHEG engine to MHEG applications for the manipulation of MHEG objects.
MHEG-3 (ADJ.): Applies to entities that conform to the provisions of this ETS. MHEG-3 application: MHEG application that interchanges scripts within itself and/or with other applications as the "script data" component of MHEG script objects, according to the representation specified by this ETS.
MHEG-3 engine: MHEG engine that processes and interprets MHEG-SIR interchanged scripts. MHEG-3 profile: Profile of this ETS.
MHEG-SIR: (1) The script interchange representation defined by this ETS; (2) (adj). Applies to an entity defined as part of this Script Interchange Representation. (MHEG-SIR) call stack: Stack that is associated with each running rt-script by the MHEG-SIR virtual machine and that contains a call frame for each active function invocation. MHEG-SIR code: Encoded sequence of MHEG-SIR instructions.
(MHEG-SIR) constant: Static, typed, named value which is declared within an interchanged script and whose value is globally accessible and unchanged throughout the execution of the script. (MHEG-SIR) constructed type: Type described as a combination of other types using one of the following constructors: sequence, string, array, union, structure. (MHEG-SIR) data identifier: Integer that uniquely identifies the name of a data element of an interchanged script (constant, global variable, dynamic variable, local variable). (MHEG-SIR) exception: Message triggered during the invocation of a service. (MHEG-SIR) function: Named code sequence whose execution may be invoked by an interchanged script; it may be a routine, a predefined function or a service.
SIST ETS 300 715 E1:2003 Page 16 ETS 300 715: June 1997 (MHEG-SIR) function identifier: Integer that uniquely identifies a function within an interchanged script. (MHEG-SIR) global variable: Variable with global scope.
(MHEG-SIR) instruction: Elementary unit of code of an MHEG-SIR interchanged script; it consists of an op-code followed by zero or more operands.
(MHEG-SIR) instruction execution unit: Within an MHEG-SIR script interpreter, virtual processing unit that executes an MHEG-SIR instruction.
MHEG-SIR interchanged script: Interchanged script coded according to MHEG-SIR. (MHEG-SIR) local variable: Variable with local scope within a routine. (MHEG-SIR) message: Event that may be received by the script interpreter during the execution of the script; it may be either predefined (MHEG API exception, MHEG-3 API operation and exception, internal exception) or declared within an interchanged script (exception provided by an external interface). (MHEG-SIR) message identifier: Integer that uniquely identifies a message within an interchanged script.
(MHEG-SIR) message queue: Queue that is associated with each running rt-script by the MHEG-SIR virtual machine and that contains the messages targeted at the rt-script. (MHEG-SIR) object reference: MHEG-SIR value that represents an IDL instance and that is passed as the parameter of an external call to request a service from this instance. (MHEG-SIR) operand: Parameter of an instruction; it is encoded next to the instruction's op-code. (MHEG-SIR) package: Set of external functions that are provided by a module of the run-time environment and that are accessible to an rt-script and declared within an interchanged script; it is composed of services and exceptions.
(MHEG-SIR) parameter: Piece of data exchanged with a function call, a message or an instruction. (MHEG-SIR) parameter stack: Stack that is associated with each running rt-script by the MHEG-SIR virtual machine and that is used to provide parameters to and retrieve results of instructions. (MHEG-SIR) predefined type: A type whose description and identifier are predefined by this ETS and thus need not be declared within interchanged scripts; it may be either a primitive type or a constructed type.
(MHEG-SIR) primitive type: Basic predefined type, as opposed to constructed type. (MHEG-SIR) routine: Function that is declared within an interchanged script together with the virtual machine code that defines its semantics.
(MHEG-SIR) rt-script execution unit: Within an MHEG-SIR script interpreter, virtual processing unit that executes script code.
(MHEG-SIR) script interpreter: The part of an MHEG-3 engine, that handles and interprets interchanged scripts.
(MHEG-SIR) service: External function that is declared within an interchanged script and whose implementation is made accessible to an rt-script by the run-time environment on the execution platform. (MHEG-SIR) variable: Within the MHEG-SIR virtual machine, named, typed memory unit whose value may be changed at any time when its scope is active and whose most recent value may be read. (MHEG-SIR) virtual machine: Abstract description of the memory units and instruction execution engine of an MHEG-SIR script interpreter.
SIST ETS 300 715 E1:2003 Page 17 ETS 300 715: June 1997 multimedia (ADJ.): That handles several types of representation media. multimedia and hypermedia application: Application that features presentation of multimedia information to the user and interactive navigation across this information by the user. multimedia application: Application that features presentation of multimedia information to the user. platform mapping specification: Specification of how MHEG-3 engine implementations shall map IDL specifications to run-time environment components on one type of platform. queue: Collection of elements that are inserted and removed in first-in first-out (FIFO) order. rt-script: Run-time instance (or copy) of an mh-script, created by an MHEG engine. scope: Context of reference for a variable; if it is global, the variable may be referenced by any script instruction; if it is local, the variable may only be referenced in the local execution context. scripting language: Programming language intended for easy and rapid design of applications by nonprofessional programmers. Script Interchange Representation (SIR): Coded representation used by an application to interchange scripts for the purpose of implementing dynamic behaviour.
stack: Collection of elements that are inserted (pushed) and removed (popped) in last-in first-out (LIFO) order.
3.2 Abbreviations
For the purposes of this ETS, the following abbreviations apply:
API Application Programming Interface ASN.1 Abstract Syntax Notation One CORBA Common Object Request Broker Architecture CS Call Stack CT Constant Table DER Distinguished Encoding Rules DID Data IDentifier DT Data Table EBNF Extended Backus-Naur Form ER Error Register ETR ETSI Technical Report FID Function IDentifier FP Frame Pointer FR Function Register GT Global variable definition Table HT Handler definition Table IDL Interface Definition Language IEC International Electrotechnical Commission IP Instruction Pointer IR Instruction Register JTC Joint Technical Committee LIFO Last In First Out LT Local variable Table MHEG Multimedia and Hypermedia information coding Experts Group MID Message IDentifier MPEG/DSM-CC Moving Picture Experts Group - Digital Storage Media Command and Control MQ Message Queue PID Package IDentifier PS Parameter Stack PT Package definition Table QP Queue Pointer rt Run-time
SIST ETS 300 715 E1:2003 Page 18 ETS 300 715: June 1997 RT Routine definition Table SIR Script Interchange Representation SP Stack Pointer ST Service definition Table TID Type IDentifier TLV Type-Length-Value TT Type definition Table VT Variable Table XT eXception definition Table
4 General
ISO/IEC 13522 [1] specifies the coded representation of multimedia/hypermedia information objects (MHEG objects) for interchange as final form units within or across services and applications, by any means of interchange including local area networks, wide area telecommunication or broadcast networks, storage media, etc.
MHEG objects are usually produced by computer tools taking as a source form multimedia applications designed using multimedia scripting languages. In this context, one of the MHEG object classes, the script class, is intended to complement the other MHEG classes in expressing the functionality commonly supported by scripting languages. Script objects express more powerful control mechanisms and describe more complex relationships among MHEG objects than can be expressed by MHEG action and link objects alone. Furthermore, script objects express access and interaction with external services provided by the run-time environment.
Other parts of this International Standard define the coded representation for script objects in an open manner so that script objects may encapsulate either standardized or proprietary script code. Script objects encapsulate scripts that may be encoded in any encoding format as registered according to ISO/IEC 13522-4 [6].
5 Conformance
This ETS defines conformance requirements:
- on information objects, i.e. MHEG script objects;
- on implementations, i.e. MHEG engine implementations.
5.1 Information object conformance
A conforming MHEG-3 script object shall meet all of the following criteria:
1) its coded representation shall conform to the provisions of another part of ISO/IEC 13522; 2) its coded representation shall encapsulate a conforming MHEG-3 interchanged script. The information object conformance is evaluated on the information objects that are interchanged in the purpose of their execution on a terminal.
5.1.1 Profiles
This ETS defines no profiles.
NOTE 1: However, MHEG-3 profiles may be defined by other standards or by other parts of ISO/IEC 13522. In accordance with the profile definition framework, standardized MHEG-3 profiles should be at least as constraining; information objects claiming conformance to such profiles should at least conform to this ETS. An MHEG-3 profile should define all of the following:
- a profile of the MHEG-SIR virtual machine defined by this ETS;
- a profile of IDL, together with its mapping to MHEG-SIR, for the expression of interface between scripts and the external environment;
SIST ETS 300 715 E1:2003 Page 19 ETS 300 715: June 1997 - an API for the manipulation of MHEG objects defined by another part of ISO/IEC 13522, together with a mapping of this interface to MHEG-SIR.
NOTE 2: According to ISO recommendations, MHEG-3 profiles should ensure upward compatibility of the ASN.1 encoding, so that interchanged scripts conforming to an MHEG-3 profile also conform to this ETS.
5.1.2 Encoding
A conforming MHEG-3 interchanged script shall be encoded according to the encoding rules defined by annex B.
5.1.3 Syntax
A conforming MHEG-3 interchanged script shall conform to the ASN.1 syntax defined by annex A.
5.1.4 Semantics
A conforming MHEG-3 interchanged script shall only include semantically valid declarations and instruction sequences as defined by clauses 12 and 13.
5.2 Implementation conformance
An implementation of this ETS is an MHEG-3 engine.
A conforming MHEG-3 engine shall support the interpretation of conforming MHEG-3 script objects. This ETS defines the semantics of MHEG-3 interchanged scripts. This implies conformance requirements not on information objects, but on the behaviour of MHEG-3 engines. NOTE 1: Although a conforming script might not realize the semantics implied by its designer, the way conforming engines behave in interpreting this script is predictable. NOTE 2: This ETS does not consider conformance for a system, an engine or a process as far as it is not related to the interpretation of interchanged scripts.
5.2.1 Conformance requirements
A conforming MHEG-3 engine shall meet all of the following criteria:
...



