blob: 05f15bda18b84ddcfb142027b7550c6d56604ab1 [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>
<link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" />
<title>Creating a WML or cHTML file</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="tjcrewml"><a name="tjcrewml"><!-- --></a>
<h1 class="topictitle1">Creating a WML or cHTML file</h1>
<p>To create a new WML or CHTML file, complete the following steps:</p>
<ol><li class="skipspace"><span>From the Web perspective, select <span><span class="menucascade"><span class="uicontrol">File</span> &gt; <span class="uicontrol">New</span> &gt; <span class="uicontrol">Other</span> &gt; <span class="uicontrol">Web</span> &gt; <span class="uicontrol">WML File</span></span></span>. </span></li>
<li class="skipspace"><span>Click <span class="uicontrol">Next</span> to open the wizard.</span> <p><b>Note</b>:
you can also start this wizard by starting the <a href="tjcrehtm.html">New HTML File Wizard</a> and selecting WML from the Markup
Language pull-down.
</li>
<li class="skipspace"><span>Click <span class="uicontrol">Browse</span> to select the folder in which
you want to create the file. </span> <p> Make sure you choose a folder
under the WebContent folder of the Web project. This ensures that the file
is available for validation, publishing, and deployment.
</li>
<li class="skipspace"><span>Type a name for your new file.</span></li>
<li class="skipspace"><span>Ensure that either the <span class="uicontrol">WML 1.3</span> or <span class="uicontrol">Compact
HTML</span> option is displayed in the <span><span class="uicontrol">Markup Language</span></span> drop-down
list.</span></li>
<li class="skipspace"><span>You have two options for proceeding: </span><ul><li>If you want to accept the defaults associated with a new WML or cHTML
file, select <span class="uicontrol">Finish</span>. By default, you will generate
a blank WML or cHTML page.</li>
<li>If you want to specify or customize the file options, select the <b>Configure
advanced options</b> check box and click <b>Next</b>. </li>
</ul>
</li>
<li class="skipspace"><span>Select the appropriate encoding value to add to the file's WML
or cHTML declaration from the <span class="uicontrol">Encoding</span> list button.
WML files use HTML settings. The default is the value set in the <span class="uicontrol">HTML
Files</span> preferences page, which is accessed by selecting <span class="uicontrol">Window
&gt; Preferences</span>, and then expanding the <span class="uicontrol">Web and XML Files</span> preferences.</span></li>
<li class="skipspace"><span>Ensure that the proper content type is selected in the <span class="uicontrol">Content
Type</span> drop-down list. </span> The default for a WML file is <span class="uicontrol">text/vnd.wap.wml</span>;
the default for a cHTML file is <span class="uicontrol">text/html</span>.</li>
<li class="skipspace"><span>Select the <span class="uicontrol">Document Type</span> that you wish to
associate with the WML or cHTML file. </span> <p>The default for a WML
file is <span class="uicontrol">WML 1.3</span>; the default for a cHTML file is <span class="uicontrol">Compact
HTML 1.0 Draft</span>.
</li>
<li class="skipspace"><span>Click <span><span class="uicontrol">Finish</span></span> to create the file
in the project that you have selected.</span></li>
</ol>
<p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>