Work With Xhtml - BEA WebLogic User Manual

Mobility server
Hide thumbs Also See for WebLogic:
Table of Contents

Advertisement

Work with XHTML

Converting your existing HTML documents into XHMTL documents is one of the first steps in
preparing a current web application for multi-channel use. All XHTML documents must be
"well-formed". This means that they must follow XML syntax and document rules.
This section introduces the key changes you need to make to existing mark-up and how these
changes can be automated.
Syntax Rules
The syntax rules require that you:
Close all elements
Terminate empty elements
Quote all attribute values
Give values to all attributes
Define all element and attribute names in lower case (because XHTML is case-sensitive)
Nest elements correctly
Close all Elements
Unlike HTML, all elements must have an opening and closing tag.
In HTML, this is allowed:
<p>This is a paragraph.
In XHTML, the
tag must be closed:
<p>
<p>This is a paragraph.</p>
Terminate Empty Elements
Some tags are termed "empty" because they have their functionality self-contained within the tag
(such as a line break
<br>
They do, however, need to be closed. To make these tags well-formed, add a slash (/) before the
final angle bracket (>).
For example,
<br />
<img src="myimg.jpg" />
Quote all Attribute Values
Delimit all attributes with double quotation marks:
<table width="100%">
Supply Values for all Attributes
All attributes must have explicit values. Attribute minimization is forbidden. For example, the
following HTML code has a minimized attribute "checked":
<input type=checkbox checked/>
or an image
tag) and do not have separate closing tags.
<img>
Part III Fundamentals of Mobile Content
BEA WebLogic Mobility Server User Guide - 27

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WebLogic and is the answer not in the manual?

This manual is also suitable for:

Weblogic mobility server

Table of Contents