Library tutorials & articles

Wireless Markup Language (WML) Tutorial

Meta Tags

The head Element

The head element contains information about the deck. The head element may contain an access element and/or several meta elements.

The access Element

The access element is used to limit access to the deck, and must be included within the head section if used. By default, WML decks are public. There may only be one access element in a document. The following table shows the attributes used with the access element.

Attributes for the access Element
Attribute Description

domain

The domain of other decks that are able to access cards in the deck. The default value is the domain of the current deck.

path

The root directory of other decks that are able to access cards in the deck. The default value is the root of the domain, "/".

The following declaration states that the deck is only accessible from Juicy Studio, and only from the /wmlpages directory.

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
    <access domain="juicystudio.com" path="/wmlpages"/>
</head>
    <!-- Rest of content here -->
</wml>

The meta Element

The meta element allows you to provide meta data about the deck. Any number of meta elements may be used in the head of the WML document. The following table shows the attributes that may be used with the meta element.

Attributes for the meta Element
Attribute Description

content

This attribute is required, and specifies the meta data for either a http-equiv attribute or the name attribute.

forua

An optional attribute that determines if the property should reach the user agent. The possible values are false, and true. If the value is set to true, it must be sent to the user agent.

http-equiv

Equivalent of HTTP headers. Each meta element must contain either a http-equiv attribute or a name attribute.

name

Used for meta types that have no HTTP equivalent. Each meta element must contain either a name attribute or a http-equiv attribute.

The following meta tag instructs the user agent to expire this page from the cache after 1 day (86,400 seconds).

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
    <meta forua="true" http-equiv="Cache-Control" content="max-age=86400"/>
</head>
    <!-- Rest of content here -->
</wml>

Some devices will not refresh the deck if the deck is navigated to with the prev element. The must-revalidate parameter may be used to override this. The following example prevents the page from being cached.

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
    <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
    <meta forua="true" http-equiv="Cache-Control" content="no-cache"/>
</head>
    <!-- Rest of content here -->
</wml>

Comments

  1. 19 Jul 2005 at 12:13

    hi
            I am Jagannath working as Sr.Programmer in Med Write India Ltd. I have one doubt that how to search the latest modified file on the stipulated time and date.If you will help me then i will be happy


    Bye
    Jagannath
    my alternate email address is b_jagan03@yahoo.co.in
    Phno : 09849654314



  2. 16 Feb 2004 at 00:49

    Nice articlae but require more info on this

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Wireless Markup Language (WML) Tutorial.

Leave a comment

Sign in or Join us (it's free).

Gez Lemon I'm available for contract work. Please visit Juicify for details.
AddThis

Related podcasts

  • EarthClassMail.com - Moving from LAMP to .NET 3.5

    Scott chats with Matt Davis, architect at EarthClassMail.com, about their move from a LAMP stack (Linux/Apache/mysql/PHP) to .NET 3.5. What's working, what's not, and what kinds of issues are they running into as their architect their solution.

Events coming up

  • Dec 3

    The Auckland PHP December meetup

    Auckland, New Zealand

    Topic: Magento E-Commerce platform Speaker: Robert Popovic, LERO9, Robert is the Technical Director and co-founder of LERO9. Robert attended the Electrotechnical Faculty at The University of Belgrade where he graduated with a Masters in Computer Science and Information Technology. Robert has worked exclusively in the field of web and software development throughout his career.

Want to stay in touch with what's going on? Follow us on twitter!