Skip to page content or Skip to Accesskey List.

Work

Main Page Content

Dvb Html A New Standard Part 2

Rated 3.93 (Ratings: 3)

Want more?

  • More articles in Code
 

Mark Bolton

Member info

User since: 07 Mar 2002

Articles written: 3

Continuing from Part 1, we start to look in further detail at the Standard and its effect on web development.

Document Type Definition and XML Namespace Requirements

As the DVB-HTML specification requires content to be validated against a specific DTD then any content to be displayed will have to provide the doctype declaration at the head of the document. This doctype is shown below:

<! DOCTYPE html PUBLIC "-// DVB//DTD XHTML DVB-HTML 1.0//EN" 

"http://www.dvb.org/mhp/dvb/dvbhtml-1-0.dtd">

Also as the namespace policies set down by the W3C are respected for XHTML the namespace link should also be included in the header information. Your document should now look like this:

><! DOCTYPE html PUBLIC "-// DVB//DTD XHTML DVB-HTML 1.0//EN"

"http://www.dvb.org/mhp/dvb/dvbhtml-1-0.dtd">

<html xmlns="http://www.w3.org/xhtml">

<head>

</head>

<body>

</body>

</html>

DVB-HTML uses modules from the W3C XHTML Modularisation Recommendation and also adds a module to handle the specialist Intrinsic Events required for event handling.

Supported Modules

  • Structure
  • Text
  • Hypertext
  • List
  • Presentation
  • Bidirectional text
  • Forms
  • Basic Tables
  • Image
  • Client-side image map
  • Object
  • Frames
  • Target
  • Iframe
  • Meta Information
  • Scripting
  • Style Sheets
  • Style attribute
  • Link
  • Base
  • DVB Intrinsic Events (defined by DVB)
  • Un-supported Modules

  • Applet
  • Edit
  • Basic Forms
  • Tables
  • Server-side image map
  • Intrinsic events
  • Name Identification
  • Legacy
  • The only module added is the DVB intrinsic events, this has been done to include three event handlers to the body and frame elements which are:

  • dvbdomstable - ensures the DVB-HTML document has been fully received and parsed
  • load - when all parts of an embedded Object element have been received
  • unload - when the document is removed from the window or frame
  • the additional module has been produced in accordance with the XML namespace defined by the DVB. These additional events have been added so that MHP can trigger other events.

    In order to use the additional module and remove any potential conflicts with the W3C XML namespace a separate XML namespace is used by DVB-HTML and all commands are prefixed by dvbhtml:. An example of this is shown below:

    ><! DOCTYPE html PUBLIC "-// DVB//DTD XHTML DVB-HTML 1.0//EN"

    "http://www.dvb.org/mhp/dvb/dvbhtml-1-0.dtd">

    <html xmlns="http://www.w3.org/xhtml">

    <head>

    <script type="text/ecmascript" src="scriptname.js">

    </head>

    <body xmlns:dvbhtml="http://www.dvb.org/mhp"

    dvbhtml:ondvbdomstable="startevent()">

    <!-- content here -->

    </body>

    </html>

    Comment

    Our browser sniffing previously described in part 1 also enabled us to identify which modules would be supported, so at this stage we are ready to produce a document or application using the DVB-HTML standard.

    In Part 3 of this series we take a look at the supported MIME media types and CSS for a DVB-MHP system.

    References

    Mark Bolton is an engineer working on the development of Hi-Definition-Television (HDTV), who also has an active interest in the development of the internet through his company Boltonmedia

    Currently based in Shanghai, China and actively developing websites in both English and Chinese whilst designing and developing new methods of viewing these websites

    The access keys for this page are: ALT (Control on a Mac) plus:

    evolt.org Evolt.org is an all-volunteer resource for web developers made up of a discussion list, a browser archive, and member-submitted articles. This article is the property of its author, please do not redistribute or use elsewhere without checking with the author.