1、 ETSI TS 102 322 V1.1.1 (2004-05)Technical Specification Specification for a Lightweight Microbrowserfor interactive tv applications,based on and compatible with WMLEuropean Broadcasting Union Union Europenne de Radio-Tlvision EBUUER ETSI ETSI TS 102 322 V1.1.1 (2004-05) 2 Reference DTS/JTC-016 Keyw
2、ords broadcasting, content, digital, TV ETSI 650 Route des Lucioles F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice Individ
3、ual copies of the present document can be downloaded from: http:/www.etsi.org The present document may be made available in more than one electronic version or in print. In any case of existing or perceived difference in contents between such versions, the reference version is the Portable Document
4、Format (PDF). In case of dispute, the reference shall be the printing on ETSI printers of the PDF version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of status. Information on the curre
5、nt status of this and other ETSI documents is available at http:/portal.etsi.org/tb/status/status.asp If you find errors in the present document, send your comment to: editoretsi.org Copyright Notification No part may be reproduced except as authorized by written permission. The copyright and the fo
6、regoing restriction extend to reproduction in all media. European Telecommunications Standards Institute 2004. European Broadcasting Union 2004. All rights reserved. DECTTM, PLUGTESTSTM and UMTSTM are Trade Marks of ETSI registered for the benefit of its Members. TIPHONTMand the TIPHON logo are Trad
7、e Marks currently being registered by ETSI for the benefit of its Members. 3GPPTM is a Trade Mark of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. ETSI ETSI TS 102 322 V1.1.1 (2004-05) 3 Contents Intellectual Property Rights12 Foreword.12 Introduction 12 1 S
8、cope 14 2 References 15 3 Definitions, abbreviations and typographical conventions 15 3.1 Definitions15 3.2 Abbreviations .16 3.3 Typographical conventions 16 4 WTVML XSDs 17 4.1 Introduction 17 5 WTVML specification .19 5.1 Decks and cards19 5.1.1 WML element.19 5.1.1.1 Mode attribute.20 5.1.1.2 Up
9、date attribute.20 5.1.1.3 Attributes defined elsewhere.20 5.1.1.4 Example 20 5.1.2 Precache element 21 5.1.2.1 Href attribute .21 5.1.2.2 Cache-set attribute.21 5.1.2.3 The cache-control attribute22 5.1.3 Void 22 5.1.4 Card element.23 5.1.4.1 Mode attribute.24 5.1.4.2 Paragap attribute .24 5.1.4.3 S
10、croll attribute.24 5.1.4.4 Tabindex attribute .24 5.1.4.5 Hint attribute .24 5.1.4.6 Hspace attribute.24 5.1.4.7 Vspace attribute.24 5.1.4.8 Navigation attribute.25 5.1.4.9 Example 25 5.2 Event bindings26 5.2.1 Onevent element .26 5.2.1.1 Type attribute 27 5.2.2 Timer element.27 5.2.2.1 Value attrib
11、ute.27 5.2.2.2 Retro attribute .28 5.2.3 Do element29 5.2.3.1 Type attribute 30 5.2.3.2 Label attribute .30 5.2.3.3 Name attribute.30 5.2.3.4 Title attribute.30 5.2.3.5 Focus attribute.31 5.2.3.6 Void.31 5.2.3.7 Localsrc attribute.31 5.2.3.8 Icon attribute .31 5.2.3.9 Font attribute .31 5.2.3.10 Bgl
12、ocalsrc attribute .31 5.2.3.11 Bgoffset attribute.31 5.2.3.12 Pos attribute.32 5.2.3.13 Example 32 ETSI ETSI TS 102 322 V1.1.1 (2004-05) 4 5.3 Tasks 33 5.3.1 Go element33 5.3.1.1 Setattr subelement .34 5.3.1.2 Sendreferer attribute34 5.3.1.3 Target attribute34 5.3.1.4 Cache-control attribute34 5.3.1
13、.5 Timeout attribute.34 5.3.1.6 Example 34 5.3.2 Prev element .36 5.3.2.1 Settattr subelement36 5.3.2.2 Example 36 5.3.3 Refresh element 37 5.3.3.1 Settattr subelement37 5.3.4 Noop element38 5.3.4.1 Settattr subelement38 5.3.4.2 Example 38 5.4 Variables.39 5.4.1 Setvar element 39 5.4.1.1 Name attrib
14、ute.40 5.4.1.2 Cache-control attribute40 5.4.2 Setattr element 40 5.4.2.1 Name attribute.41 5.4.2.2 Value attribute.41 5.4.2.3 Examples.41 5.4.3 Variable retrieval and setattr syntax41 5.5 Card fields 43 5.5.1 Select element.43 5.5.1.1 Localsrc attribute.44 5.5.1.2 Style attribute 44 5.5.1.3 Pivot a
15、ttribute44 5.5.2 Optgroup element .45 5.5.2.1 Localsrc attribute.45 5.5.3 Option element46 5.5.3.1 Localsrc attribute.46 5.5.4 Input element 47 5.5.4.1 Name attribute.48 5.5.4.2 Type attribute 48 5.5.4.3 Value attribute.48 5.5.4.4 Format attribute.48 5.5.4.5 Size attribute .49 5.5.4.6 Maxlength attr
16、ibute .49 5.5.4.7 Emptyok attribute50 5.5.4.8 Borderwidth attribute 50 5.5.4.9 Bgcolor attribute .50 5.5.4.10 Cursorcolor attribute .50 5.5.4.11 Bordercolor attribute .50 5.5.4.12 Borderunfocused attribute.50 5.5.4.13 Borderfocused attribute.50 5.5.4.14 Label attribute .50 5.5.4.15 Localsrc attribut
17、e.50 5.5.4.16 Pos attribute.51 5.5.4.17 Example 51 5.6 Images 52 5.6.1 Img element 52 5.6.1.1 Frames attribute.53 5.6.1.2 Loop attribute53 5.6.1.3 Ticks attribute .53 5.6.1.4 Index attribute .53 5.6.1.5 Cache-control attribute53 5.7 Tables .54 5.7.1 Table element54 5.7.1.1 Align attribute .55 ETSI E
18、TSI TS 102 322 V1.1.1 (2004-05) 5 5.7.1.2 Columns attribute55 5.7.1.3 Rowgap attribute .55 5.7.1.4 Colgap attribute.55 5.7.1.5 Vspace attribute.55 5.7.1.6 Hspace attribute.55 5.7.1.7 Hpad attribute55 5.7.1.8 Vpad attribute55 5.7.1.9 Colwidths attribute56 5.7.1.10 Bgimage attribute56 5.7.1.11 Bgcolor
19、 attribute .56 5.7.1.12 Bgradius attribute56 5.7.1.13 Bordercolor attribute .56 5.7.1.14 Borderwidth attribute 56 5.7.1.15 Update attribute.56 5.7.1.16 Example 57 5.7.2 Tr element.58 5.7.2.1 Title attribute.59 5.7.2.2 Height attribute .59 5.7.2.3 Localsrc attribute.59 5.7.2.4 Bgimage attribute59 5.7
20、.2.5 Bgradius attribute59 5.7.2.6 Bgcolor attributes59 5.7.2.7 Borderwidth attribute 59 5.7.2.8 Bordercolor attributes59 5.7.2.9 Update attribute.60 5.7.2.10 Example 60 5.7.3 Td element 61 5.7.3.1 Align attribute .63 5.7.3.2 Title attribute.63 5.7.3.3 Height attribute .63 5.7.3.4 Width attribute 63
21、5.7.3.5 Hspace attribute.63 5.7.3.6 Vspace attribute.63 5.7.3.7 Hpad attribute64 5.7.3.8 Vpad attribute64 5.7.3.9 Linegap attribute .64 5.7.3.10 Colspan attribute .64 5.7.3.11 Rowspan attribute .64 5.7.3.12 Localsrc attribute.64 5.7.3.13 Bgimage attribute64 5.7.3.14 Bgradius attribute64 5.7.3.15 Bgc
22、olor attributes64 5.7.3.16 Borderwidth attribute 65 5.7.3.17 Bordercolor attributes65 5.7.3.18 Mode attribute.65 5.7.3.19 Update attribute.65 5.7.3.20 Example 65 5.8 Text 67 5.8.1 Font element .67 5.8.1.1 Size attribute .68 5.8.1.2 Fgstatic attribute68 5.8.1.3 Fgcolor attribute68 5.8.1.4 Fgfocused a
23、ttribute68 5.8.1.5 Fgactivated attribute68 5.8.1.6 Example 68 5.8.2 Paragraphs.69 5.8.2.1 Linegap attribute .71 5.8.2.2 Update attribute.71 5.8.2.3 Example 71 6 WTVML 6.3 Modeset specification.72 6.1 Introduction 72 ETSI ETSI TS 102 322 V1.1.1 (2004-05) 6 6.2 Cache control72 6.2.1 Head element 72 6.
24、2.2 Meta element 72 6.2.2.1 Http-equiv attribute .72 6.2.2.2 Content attribute73 6.3 WTVML 6.3 Screen objects.73 6.3.1 AV element.73 6.3.1.1 Id attribute.74 6.3.1.2 Mode attribute.74 6.3.1.3 Rect-src attribute .74 6.3.1.4 Rect attribute .75 6.3.1.5 Hscale attribute .75 6.3.1.6 Vscale attribute .75 6
25、.3.1.7 Video attribute.75 6.3.1.8 Audio attribute 76 6.3.1.9 Toggle attribute .76 6.3.1.10 Offset attribute 76 6.3.1.11 Bgimage attribute76 6.3.1.12 Service attribute 77 6.3.1.13 Example 77 6.3.2 Status element.77 6.3.2.1 Id attribute.78 6.3.2.2 Align attribute .78 6.3.2.3 Rect attribute .78 6.3.2.4
26、 Examples.78 6.3.3 Resume element79 6.3.3.1 Id attribute.79 6.3.3.2 Localsrc attribute.79 6.3.3.3 Rect attribute .79 6.3.3.4 Example 79 6.3.4 Img element 80 6.3.4.1 Id attribute.80 6.3.4.2 Src attribute.81 6.3.4.3 Localsrc attribute.81 6.3.4.4 Vspace attribute.81 6.3.4.5 Hspace attribute.81 6.3.4.6
27、Align attribute .81 6.3.4.7 Height Essential, or potentially Essential, IPRs notified to ETSI in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web server (http:/webapp.etsi.org/IPR/home.asp). Pursuant to the ETSI IPR Policy, no inv
28、estigation, including IPR searches, has been carried out by ETSI. No guarantee can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or may be, or may become, essential to the present document. Foreword This Technical Spec
29、ification (TS) has been produced by Joint Technical Committee (JTC) Broadcast of the European Broadcasting Union (EBU), Comit Europen de Normalisation ELECtrotechnique (CENELEC) and the European Telecommunications Standards Institute (ETSI). NOTE: The EBU/ETSI JTC Broadcast was established in 1990 t
30、o co-ordinate the drafting of standards in the specific field of broadcasting and related fields. Since 1995 the JTC Broadcast became a tripartite body by including in the Memorandum of Understanding also CENELEC, which is responsible for the standardization of radio and television receivers. The EB
31、U is a professional association of broadcasting organizations whose work includes the co-ordination of its members activities in the technical, legal, programme-making and programme-exchange domains. The EBU has active members in about 60 countries in the European broadcasting area; its headquarters
32、 is in Geneva. European Broadcasting Union CH-1218 GRAND SACONNEX (Geneva) Switzerland Tel: +41 22 717 21 11 Fax: +41 22 717 24 81 Introduction The WTVML Specification is a televisual, internet compatible content authoring format based on XML. It has all the required elements, attributes and events
33、necessary to describe the user interface and user interaction models for the majority of Interactive TV services. The format supports key features to enable service oriented applications and also provides a good balance between the explicit layout and design requirements necessary for television and
34、 flexibility and dynamic capabilities of the Internet. Uniquely, the format fully describes the rendering and interaction of the Interactive TV service in such a manner as to allow its implementation in a number of different mechanisms and technologies, essentially deliverying a high degree of porta
35、bility to applications developed in the format. The format also assumes a user agent behaviour that is more sophisticated and more stateful than a standard internet based HTML browser, making it ideal for use in environments where a real time network connection is either not always available or is o
36、f a relatively low bandwidth. The format combines the best of explicit “pixel perfect“ control required for TV user interfaces, and the dynamic layout and internet compatibility requirements necessary for e-business and dynamic content. It provides a good separation between the layout of high level
37、objects, and the dynamic layout of elements in the main mark-up language. This separation also allows for the default attribute values to be set for a given layout, effectively creating sets of inherited styles. One useful by product of this separation is the ability to deploy the service in a funct
38、ionally identical way by interoperating differently or replacing the high level layout for different device types. The format assumes a rich event model, and contains explicit state and variable management, allowing sophisticated user interface effects to be created without the use of scripting. ETS
39、I ETSI TS 102 322 V1.1.1 (2004-05) 13The present document contains the exhaustive set of elements and attributes that can be used to author a WTVML application. The present document also makes references in many places to the “browsers behaviour“. It is common to implement WTVML functionality by way
40、 of a “microbrowser“ and “gateway“ architecture. In this architecture, the gateway processes the raw WTVML and generates compiled “bytecode“ to be passed to the user agent to execute. It is expected that different networks may implement their own output formats from the gateway, consisting of WTVML
41、bytecodes extended from the standard WAP Forum byte codes, HTML and Javascript, Java execution classes or even code that can be run directly on legacy set-top boxes middleware or APIs. In all instances where the term “the browser“ is used in the present document, it is take to mean the combination o
42、f the gateway and client devices operating together to perform the function of a “browser“ from the authors point of view. In many places references are made in the present document to previous versions of WTVML or even to the original WML 1.3 or 1.2.1 specification. These are preserved in order for
43、 the industry to consider backwards compatibility issues with content already authored and available using early (non-public) versions of the WTVML specification. In all cases where third-parties are implementing the present document, functionality documented as “Version 6“ or above should be consid
44、ered to be “standard“. WTVML is “backwards compatible“ with WML 1.3, in such a way that given a valid WTVML mode context and style, and WML 1.3 services can be displayed in a WTVML browser object and menu object. As such, textual content in the WTVML browser object is often in the present document r
45、eferred to as WML as well as WTVML. The reader of the present document should have all necessary information to develop WTVML compatible products and services. This would include: native browser implementations of the WTVML standard for various devices; gateway implementations of the WTVML standard,
46、 driving a variety of display mechanisms and formats; Tooling and service authoring frameworks, needing to output WTVML to publish their services to compatible browsers and networks; Individual services authors, wishing to develop in WTVML directly. The present document is intended to be an exhausti
47、ve description of the format. Individuals wanting to learn the format should also consider reading training material and internet resources on the subject. A list of WTVML related material, as well as an online developers forum is available on line at ETSI ETSI TS 102 322 V1.1.1 (2004-05) 141 Scope
48、 The present document is the initial public release of WTVML. WTVML is an evolving standard designed to provide a device independent means to author service applications for televisions and other similarly capable small foot-print devices. The growth of Digital TV receivers around the world is proba
49、bly the most significant area or growth in digital devices, as PC based Internet and Mobile devices all reach maturity or saturation. The need for a common authoring format for Interactive TV services is therefore clear, and yet the market is moving too quickly for it to stop and re-define a new format for television. It is with this in mind, and the belief that all Digital TV operators (including BSkyB) will benefit from a growth and in standardization of the Interactive Services marketplace on a pan-national scale, that this tried and tested