Variables

WML provides the flexibility to parameterize its content, allowing variables to be used to improve caching behavior and better user interaction. Only one kind of data type is available within the WML language: strings. In addition, only text (including attribute values) can be substituted. No substitution of any other WML element or their attributes can occur.

Throughout the examples in this book, you’ve used the name attribute of elements to define your variables. However, the WML specification also provides the SETVAR element, should you want to define variables outside an element. Often, the SETVAR element is used to clear any variable data from the cache.

The SETVAR Element (Not Covered in This Book)

The SETVAR element enables ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.