Originally Published: Tuesday, 28 August 2001 Author: S.D. Campbell
Published to: develop_articles/Development Articles Page: 3/3 - [Printable]

WAP and the Wireless Web: Part 2

Sean Campbell continues his series on the wireless web and Linux with part 2 of his look at WAP. In this installment we take a closer look at WML, the language used on your server to define a document for a wireless device.

Extensive Example Deck  << Page 3 of 3  

Example Deck for Linux.com

What follows is an example deck (index.wml) which could be used as Linux.com's introductory WAP page. This deck contains all the elements we've spoken of in this article and could be hosted immediately on any server able to serve WML content.


<?xml version="1.0"?>
<!-- Linux.com WAP page (index.wml)                              -->
<!-- $Revision: 1.2 $                                            -->
<!-- Written by S.D. Campbell (whytwolf@spots.ab.ca)             -->
<!-- Created 20 August 2001                                      -->
<!-- Revised $Date: 2001/08/26 22:42:13 by $Author: whytwolf $   -->
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<!-- HOME CARD -->
	<card title="Linux.com - A Means to World Liberation" id="home">
		<p>
			Depth Gauge: <b><a href="http://www.linux.com/index.wml">Linux.com</a></b><br/>
		</p>
		<p>
			<a href="http://www.linux.com/about.wml">About Linux.com</a><br/>
		</p>
		<p>
			Welcome to Linux.com, a volunteer supported site created for and by the Linux and Open Source communities.  Our mission is to educate, inform and entertain.<br/>
		</p>
		<!-- Menu Selection -->
		<p>
			Select a Section: 
			<select name="menu" value="home">
				<option value="home">Home</option>
				<option value="learn">Learn</option>
				<option value="enhance">Enhance</option>
				<option value="develop">Develop</option>
				<option value="interact">Interact</option>
				<option value="opinion">Opinion</option>
			</select>
			<do type="accept" lable="go">
				<go href="#$(menu:e)"/>
			</do>
		</p>
		<!-- End Menu Selection -->
	</card>
<!-- LEARN CARD -->
	<card title="Learn" id="learn">
		<p>Linux.com -- Learn</p>
		<!-- Include Learn articles below -->
		<!-- Menu Selection -->
		<p>
			Select a Section: 
			<select name="menu" value="learn">
				<option value="home">Home</option>
				<option value="learn">Learn</option>
				<option value="enhance">Enhance</option>
				<option value="develop">Develop</option>
				<option value="interact">Interact</option>
				<option value="opinion">Opinion</option>
			</select>
			<do type="accept" lable="go">
				<go href="#$(menu:e)"/>
			</do>
		</p>
		<!-- End Menu Selection -->
	</card>
<!-- ENHANCE CARD -->
	<card title="Enhance" id="enhance">
		<p>Linux.com -- Enhance</p>
		<!-- Include Enhance articles below -->
		<!-- Menu Selection -->
		<p>
			Select a Section: 
			<select name="menu" value="enhance">
				<option value="home">Home</option>
				<option value="learn">Learn</option>
				<option value="enhance">Enhance</option>
				<option value="develop">Develop</option>
				<option value="interact">Interact</option>
				<option value="opinion">Opinion</option>
			</select>
			<do type="accept" lable="go">
				<go href="#$(menu:e)"/>
			</do>
		</p>
		<!-- End Menu Selection -->
	</card>
<!-- DEVELOP CARD -->
	<card title="Develop" id="develop">
		<p>Linux.com -- Develop</p>
		<!-- Include Develop articles below -->
		<!-- Menu Selection -->
		<p>
			Select a Section: 
			<select name="menu" value="develop">
				<option value="home">Home</option>
				<option value="learn">Learn</option>
				<option value="enhance">Enhance</option>
				<option value="develop">Develop</option>
				<option value="interact">Interact</option>
				<option value="opinion">Opinion</option>
			</select>
			<do type="accept" lable="go">
				<go href="#$(menu:e)"/>
			</do>
		</p>
		<!-- End Menu Selection -->
	</card>
<!-- INTERACT CARD -->
	<card title="Interact" id="interact">
		<p>Linux.com -- Interact</p>
		<!-- Include Interact articles below -->
		<!-- Menu Selection -->
		<p>
			Select a Section: 
			<select name="menu" value="interact">
				<option value="home">Home</option>
				<option value="learn">Learn</option>
				<option value="enhance">Enhance</option>
				<option value="develop">Develop</option>
				<option value="interact">Interact</option>
				<option value="opinion">Opinion</option>
			</select>
			<do type="accept" lable="go">
				<go href="#$(menu:e)"/>
			</do>
		</p>
		<!-- End Menu Selection -->
	</card>
<!-- OPINION CARD -->
	<card title="Opinion" id="opinion">
		<p>Linux.com -- Opinion</p>
		<!-- Include Opinion articles below -->
		<!-- Menu Selection -->
		<p>
			Select a Section: 
			<select name="menu" value="opinion">
				<option value="home">Home</option>
				<option value="learn">Learn</option>
				<option value="enhance">Enhance</option>
				<option value="develop">Develop</option>
				<option value="interact">Interact</option>
				<option value="opinion">Opinion</option>
			</select>
			<do type="accept" lable="go">
				<go href="#$(menu:e)"/>
			</do>
		</p>
		<!-- End Menu Selection -->
	</card>
</wml>

[1] As of July 31, 2001 the WAP forum has released the WAP 2.0 specification, but most of the first WAP enabled devices supported the 1.0 or 1.1 specification, and even those which support the 2.0 specification in the future will be backwards compatible. For the purposes of this series of articles, we'll be writing 1.1 compliant WML.

Sean Campbell (I-Net+, CIWA) is a web developer, programmer and technical writer, and has worked in the IT industry in one capacity or another for almost ten years. He currently teaches Web Design and Development at Applied Multimedia Training Centers. In addition to his programming and technical writing background, Sean - a native of Prince Edward Island - has been known to publish fiction, and non-fiction on the web. He lives in Calgary, Alberta, Canada with his wife, Christina and a psychotic German Shepherd named Phelan. His webpage can be viewed at: http://www.spots.ab.ca/~whytwolf/





Extensive Example Deck  << Page 3 of 3