Part III Fundamentals of Mobile Content
Correct syntax requires that a Boolean attribute whose value is implicit in HTML should, in
XHTML, be set equal to itself. Thus, the preceding example should be written:
<input type="checkbox" checked="checked"/>
Define all Element and Attribute Names in Lowercase
XML is case-sensitive and since XHTML DTDs define elements and attributes in lowercase,
content needs to obey this requirement.
This is illegal in XHTML:
<H1>My Big Title</H1>
<Table width="90%">
Correct XHTML form:
<h1>My Big Title</h1>
<table width="90%">
Nest Elements Correctly
The following code shows two elements incorrectly nested:
<p>This is bold <b>text</p></b>
The correct nested format is:
<p>This is bold <b>text</b></p>
Encode Non-US-ASCII Characters Using URL Encoding
Non-US-ASCII characters are not valid in hrefs or any other URL attribute values (RFC 1738).
This means the author must encode such characters using URL encoding. URL encoding of a
character consists of a "%" symbol, followed by the two-digit hexadecimal representation (case-
insensitive) of the ISO-Latin code point for the character.
Note: Different web servers use different encodings.
Document Rules
XHTML is HTML defined as an XML application. The XML document rules require that all
documents have one root element and conform to the XML specification. Any XHTML
documents that you work with must also follow this convention.
A Root Element is Required
The root element contains all the other elements on a page. In XHTML, the root element is the
element.
<html>
XML Declaration Required
The XML declaration declares that the current document conforms to the XML specification. The
declaration has three attributes: version, encoding, and standalone.
The shortened syntax is as follows:
<?xml version="1.0"?>
28 - BEA WebLogic Mobility Server User Guide
Need help?
Do you have a question about the WebLogic and is the answer not in the manual?