Intranet Journal   Earthweb  
Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   Intranet Journal Subjects
Search Earthweb

Privacy Policy



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

internet commerce
Be a Commerce Partner
















 

[ Home | Discussion Forum | How Do I... | Lotus Notes Intranets | Microsoft SharePoint | Products | Shopping  ]

free news!


Wireless Apps: The Reality Today


Jean-Baptiste Minchelli, Consultant

Introduction
Today's Wireless environments
Multi-Device Wireless environments
Purpose of a Wireless application

Multi-Device Wireless environments

Introduction

Web applications based on application servers offering multi-device support are tending to replace scripting languages. Although they require greater modeling work during the early phases of application development, these solutions have the advantage of being based on a single data layer. The separation of data and presentation is now the objective of these application layers. The tendency is therefore to use the new document description standards (such as XML) to achieve this. These application servers are Java-based, on the whole.

Architecture

Setting up Wireless applications is now more complex than setting up conventional Web applications.

The main difficulty can be put down to the fact that content needs to be provided for an ever-increasing number of devices. Hence, the language, protocol and interface must all be taken into account when setting up the service. The ideal development environment should therefore clearly separate content from presentation. Indeed, such an environment would mean we would not have to worry about the specific features of each device, while remembering nonetheless that these exist!

A multi-device environment must therefore be independent from:

  • The access platform: The client side of the application must be easy to implement.
  • The network and protocol: The system must be able to communicate with as many Wireless networks as possible.

The extensibility of the system is also important, as it must allow support for devices which do not yet exist.

Click here for a larger image

Technical Multi-Device Architecture

An example of a multi-device application

Our next step will be to create a multi-device application using XML/XSL. Derived from XML meta-language, XSL is a language in its own right. Its elements and attributes are described using XML syntax. Both XSL and XSLT are W3C specifications; version 1.0 has been an official recommendation since November 16, 1999. XSLT describes the manner in which an XML document can be transformed into another XML document. An XSLT Processor is needed to carry out an XSL transformation. The processor takes an XML document and an XSL stylesheet and generates output (XML, HTML, WML…). We used the Xalan processor for the XSLT example presented in this article.


XSLT Architecture

Our XML Document:

<?xml version="1.0"?>
<Article id="tmk0600-1" language="english">
<Title>E-business : Reshaping the Application Server Market</Title>
<PubDate>June 2000</PubDate>
<Author><FirstName>Jean-Christophe</FirstName>
<Surname>Cimetiere</Surname>
<JobTitle>CEO</JobTitle>
<OrgName>Techmetrix Research</OrgName>
<Email>jcc@techmetrix.com</Email>
</Author>
<Abstract>...</Abstract>
<Sect1>...</sect1>
</Article>

Our HTML XSL stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<ul>
</xsl:template>
<xsl:template match="Contents/Article">
<li><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<xsl:apply-templates/>
<a>
<xsl:attribute name="href">../<xsl:value-of select="@id"/>.html
</xsl:attribute>
Read the story
</a>
</font></li><br/><Br/>
</xsl:template>
<xsl:template match="Contents/Article/Title">
<b>
<xsl:apply-templates/>
</b><Br/>
</xsl:template>
<xsl:template match="Contents/Article/Abstract">
<xsl:apply-templates/>
<Br/>
</xsl:template>
</xsl:stylesheet>

Our WML XSL stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<wml>
<template>
<do type="options" name="home" label="Home">
<go href="http://www.trendmarkers.com/wap/index.wml"/>
</do>
<do type="prev" name="previous" label="Back"> <prev/>
</do>
</template>
<xsl:apply-templates/>
</wml>
</xsl:template>
<xsl:template match="Contents/Article">
<xsl:variable name="filename">
<xsl:value-of select="@id"/>
</xsl:variable>
<card id="{$filename}">
<p>
<xsl:apply-templates/>
<Br/>
<anchor title="Link">
<go>
<xsl:attribute name="href">../<xsl:value-of select="$filename"/>.wml</xsl:attribute>
</go>
Read the story
</anchor>
</p>
</card>
</xsl:template>
<xsl:template match="Contents/Article/Title">
<b>
<xsl:apply-templates/>
</b>
<Br/>
</xsl:template>
<xsl:template match="Contents/Article/Abstract">
<xsl:apply-templates/>
<Br/>
</xsl:template>
</xsl:stylesheet>

From this example, we generate HTML content on the fly using a Java Servlet. Alternatively, we could have used another stylesheet to generate WML or HDML content — all you need is to have as many stylesheets as desired presentations. True, application servers offer more and more components for reading/writing XML flow, but what are really lacking are more highly developed components capable of exploiting XSLT fully and easily.

Recap

Pros

Cons

  • Ease of deployment: new services and/or media quick to implement.
  • Ease of maintenance.
  • Lengthy design phase.
  • Tricky development.

From this short example we can see that it is possible to use a single data layer (the XML document in our example) to build a multi-device Wireless application. But as we saw earlier on, to implement such applications more extensive study is required in initial phases. Not only must you have an application which can be used in Wireless, but you also need to take the particular features of each device into account.

Printer Friendly Version

TechMetrix

TechMetrix Research is a technically focused analyst firm focused on e-business application development needs. Based in Boston, Mass., the firm publishes comparison reports and product reviews designed to aid enterprises with decision making and to keep pace with the fast-moving e-business market.

TechMetrix is a U.S.-based subsidiary of SQLI, a European company that offers on-site development services to international organizations. SQLI specializes in e-business project development.



Of Interest
· Intranet eXchange Discussion Board

· Advice and Opinions

email this page

Tutorials
and more at:
Intranet Journal's Tutorials
Intranet Journal Favorites

Creating a PHP-Based Content Management System

The Spyware Guide

Introduction to Microsoft SharePoint Portal

Intranet Journal
Part of the EarthWeb Network

Managing Editor
Intranet Journal

Tom Dunlap

EarthWeb Home Page
Jupitermedia Home Page

Media Kit




The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers