Page 59 - DCAP512_WAP_AND_WML
P. 59

Unit 5: Understanding WAP in WML




                                                                                                Notes


             Notes  Several other companies were soon on Ericcson’s heels, developing various other
             technologies to compete in this soon-to-explode  market, two  major players including
             Nokia (http://www.nokia.com) and Phone.com,  formally known  as Unwired  Planet
             (http://www.phone.com).

          5.1 WML Decks and Cards

          WML pages are called DECKS. They are constructed as a set of CARDS, related to each other with
          links.  When a WML page  is accessed  from a  mobile phone,  all the  cards  in  the page  are
          downloaded from the WAP server. Navigation between the cards is done by the phone computer
          - inside the phone - without any extra access trips to the server.
          WML Programming Model

          The WML programming model offers for
              Application navigation (cards and decks)
              User interaction, events

              Definition of tasks, work to be performed
          Writing WML Code and Data Formatting
          <?xml version=”1.0"?><!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN””http:/
          /www.wapforum.org/DTD/wml_1.1.xml”><wml><card  id=”HTML”  title=”HTML
          Tutorial”><p>Our  HTML  Tutorial  is an  award winning  tutorial from  W3Schools.</p></
          card><card id=”XML” title=”XML Tutorial”><p>Our XML Tutorial is an award winning tutorial
          from W3Schools.</p></card></wml>
          As it can be seen from the example, the WML document is an XML document. The DOCTYPE is
          defined to be wml, and the DTD is accessed at www.wapforum.org/DTD/wml_1.1.xml.
          The document content is inside the <wml>...</wml> tags. Each card in the document is inside
          <card>...</card> tags, and actual paragraphs are inside <p>...</p> tags. Each card element has
          an id and a title.



              Task  Try to explain the code which is written above for data formatting.

          Self Assessment


          Fill in the blanks:
          1.   WML pages are called ……………........
          2.   ……………........ between the cards is done by the phone computer — inside the phone —
               without any extra access trips to the server.
          3.   The document content is inside the ……………........ tags.

          5.2 Creating First Card

          The whole WML-page is called a Deck and it consists of one or more cards. Each card contains the
          information that is displayed on the cellular devices in one screen. So in one Deck you can define


                                           LOVELY PROFESSIONAL UNIVERSITY                                   53
   54   55   56   57   58   59   60   61   62   63   64