RTML 1.1 Document Type Definition

Current version of RTML 1.1 Document Type Definition.

The RTML 1.1 DTD is an external DTD, existing in a separate file from the XML (RTML 1.1) files referencing it. It is meant to be referenced from the header of your RTML 1.1 file. Not every browser will display the RTML 1.1 DTD directly. For example, if you are using Internet Explorer in Windows, you will see this error alert: Cannot have a DTD declaration outside of a DTD. Line 40, Position 11 . The reason is that IE does not expect to be interpreting a DTD. It expects to be interpreting an XML file. To view the DTD, click "Source" and then "OK" in the alert.

Referencing the RTML 1.1 DTD from an RTML 1.1 file.

Place these two lines at the top of your RTML 1.1 file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE RTML SYSTEM "http://hou.lbl.gov/rtml/rtml.dtd">

The URL in the second line signifies that your RTML 1.1 file will use an "external document type definition" instead of including its own "internal document type definition", physically located in the same file. Note that the external document type definition here cannot be used as an internal document type definition. The reason is that this DTD contains "parameter entities", indicated by the % symbol. Parameter entities can reside only in an external DTD. However, an internal document type definition can refer to an external one.

Different browsers treat external DTD's differently.

The current version of Netscape Navigator on both Windows and Macintosh platforms--version 4.7--displays the RTML 1.1 DTD directly.
Windows Internet Explorer 5 will not display the RTML 1.1 DTD directly, but will instead try to use it in conjunction with an RTML 1.1 file: the result of trying to view the RTML 1.1 DTD directly is a failure message.

The RTML 1.1 DTD in action.

The link just given displays a sample RTML 1.1 file, using the RTML 1.1 DTD. What you will see depends on the platform and on the browser you are using.

To get your copy of the RTML 1.1 Document Type Definition.

Click on the link at the top of the page and save the text directly from the display.

Return to RTML 1.1 Main Page.