blob: 70e28736e9a44213cad75c8db8c3159979daf337 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Converting HTML files to XHTML files</title>
</head>
<body id="tjxhtcnv"><a name="tjxhtcnv"><!-- --></a>
<h1 class="topictitle1">Converting HTML files to XHTML files</h1>
<div><div class="skipspace"> The Extensible HyperText Markup Language (XHTML), a set of document
types that rework the HTML code using XML, is the successor of HTML. To take
advantage of the specifications that have been developed for XHTML, you can
convert existing HTML pages to XHTML pages.<p>To convert an existing HTML
file to an XHTML file, complete the following steps: </p>
</div>
<ol><li class="skipspace"><span>Select <span><span class="menucascade"><span class="uicontrol">Tools</span> &gt; <span class="uicontrol">Convert
to XHTML</span></span></span>.</span></li>
<li class="skipspace"><span>Typically, you should accept the <span><span class="uicontrol">Insert XML declaration</span></span> check
box default in the <span><span class="uicontrol">Convert to XHTML</span></span> dialog
box. In addition, you should select the appropriate <span><span class="uicontrol">XHTML document
type</span></span> from the list box.</span></li>
<li class="skipspace"><span>Click <span><span class="uicontrol">OK</span></span>.</span> <p> A new
XHTML file <u>replaces</u> the converted HTML file, though the file extension
does not change. You can open the newly created XHTML file in the Source page
to verify that the appropriate XML declaration and document type value are
reflected.</p>
</li>
<li class="skipspace"><span>The <span class="uicontrol">Convert to XHTML</span> dialog is also available
for existing <i>XHTML</i> files, because it may be applicable in the following
cases: </span> <ul><li>It can be used to change DOCTYPE declaration from one XHTML DTD to another;
for example, from XHTML 1.0 Transitional to XHTML Basic 1.0.</li>
<li>It can be used to clean up tags that don't conform to XHTML standards,
such as upper case tags in an existing XHTML file.</li>
</ul>
</li>
</ol>
</div>
</body>
</html>