Document Types > Document Types Available from Arbortext > XHTML
  
XHTML
Description
The XHTML document type is an implementation of XHTML 1.0. XHTML 1.0 (eXtensible HTML) is a reformulation of HTML 4.0 written as an application of XML 1.0. XHTML elements and their attributes are defined in the World Wide Web Consortium (W3C) Recommendation for HTML 4.0. The official W3C definition of XHTML 1.0 is available at www.w3.org.
The Arbortext Editor implementation of the XHTML 1.0 document type supports the XHTML transitional DTD.
The document type includes a template and a sample document along with a sample stylesheet.
* 
The distributed document types are samples. You can modify them for your own use or use them as examples for customizing your own document types. They are not intended for production use.
You can make any changes as needed, for example, a stylesheet or other configuration setting does not suit your environment.
You should never alter the schema or DTD of any of the distributed document types directly. If you want to customize a distributed document type, make a copy of it and make changes to the copied version.
The stylesheets were created to style only the sample instances; they are not recommended or supported for a production environment. It is expected that you will customize the sample stylesheets before using them in a production environment.
Tag help is available for the elements in this document type. Tag help refers to the help that appears when you place the mouse pointer over a tag in your document and press SHIFT+F1.
The public identifier for the transitional DTD is:
-//W3C//DTD XHTML 1.0 Transitional//EN
Features
The XHTML Version 1.0 document type includes all of the same features as the HTML Version 4.01 document type, with the following differences:
In XHTML, the script and style elements are declared as having #PCDATA content. As a result, Arbortext Editor will automatically replace '<' and '&' characters with '&lt;' and '&amp;' entity references. To avoid the expansion of these entities, place the content of the script or style element within a CDATA marked section or use external script and style references.
The HTML 4.0 Strict DTD forbids the nesting of an a element within an a element, but it is not possible to spell out such prohibitions in XML. Although these prohibitions cannot be defined in the DTD, avoid nesting the following elements.
In a elements, do not nest other a elements.
In pre elements, do not nest img, object, big, small, or sup elements.
In button elements, do not nest input, select, text area, label, button, form, fieldset, iframe, or isindex elements.
In label elements, do not nest other label elements.
In form elements, do not nest other form elements.
Some HTML browsers improperly display XML processing instructions and incorrectly interpret XML's empty element syntax.
To save a version of the XML file that displays properly in these browsers, select File > Save for HTML Browsers . Doing so causes Arbortext Editor to add an extra html_compat class attribute value as necessary to the XML file and to write the file without the processing instructions.
In XML, URIs (Uniform Resource Identifiers) that end with fragment identifiers of the form #abc do not refer to elements with attribute name = "abc". Rather, they refer to elements with an attribute defined to be of type ID. (For example, the id attribute in HTML 4.0.) Many existing HTML browsers do not support the use of ID-type attributes in this manner. To display the document with a browser, you may wish to supply both id and name values in the target element. For example:
<a id="abc" name="abc">text</a>
To specify a character encoding in the document, use both the encoding attribute specification on the xml declaration and a meta http-equiv statement.
For example,
<?xml version="1.0" encoding="EUC-JP"?>
<meta http-equiv="Content-type" content='text/html;
charset="EUC-JP"'/>
These encoding and charset values should agree with each other. If they do not agree, the value of the encoding attribute of the xml declaration takes precedence.
Tools Menu Options
The HTML menu option displays on the Tools menu when you open an XHTML document type. The Tools > HTML menu options are described in HTML.