| <?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> |
| <link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" /> |
| <title>Converting HTML files to XHTML files</title> |
| <script language="JavaScript"> |
| function popup_window( url, id, width, height ) |
| { |
| popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' ); |
| popup.focus(); |
| } |
| </script><script language="JavaScript" src="help/liveHelp.js"></script></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> > <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> |
| <p> |
| (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| </p> |
| </body> |
| </html> |