Knowledge Systems Institute
BA513 Multi-media Information Systems
Wireless bank and WML
Prof : Dr. S.K Chang
Student : Jin Lung Chen
Decks and Cards
The central organizing metaphor of WML is the deck of cards. A card equals a single interaction between the user agent and user. From the perspective of an end-user of a wireless device, a card often corresponds to the contents of a single screen. In addition, one or more cards can be organized into a deck, which corresponds to an HTML page. Decks permit developers to organize related cards.
ˇ@
Sample deck
<xml version="1.0">
<wml>
<card id="card1" title="My First Deck">
<p>
Hello WorldˇK
</p>
</card>
</wml>
Decks, the basic unit of WML applications, must contain standard XML document header declarations and begin and end with the <wml> and </wml> tags. All elements occur within these tags, including template elements, which define attributes for all cards that belong to that deck. Other elements (<head> and <access>) specify information about the deck as a whole, including access control information. All WML and WMLScript decks must be must be compiled into byte code before being sent over the narrowband channel. Scripts are not embedded in WML but are instead referenced by WMLScript URLs.
ˇ@
Sample card
Cards are defined by the <card> and </card> elements, as shown below:
<wml>
<card id="sample_card" title="title">
<p>
This is a sample card.
</p>
</card>
</wml>
Card elements can be defined by attributes such as id, title, and class, which add unique information to a particular instance of <card> and help define its relationship to other cards.