blob: b32dbfc1a500470ac7f2b6df777dd90e4fe5ede4 [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>Creating a WML or cHTML file</title>
</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.</p>
</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.</p>
</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></p>.
</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>
</body>
</html>