×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2004
    Location
    India
    Posts
    8

    how to run wml 2.0?

    hi,

    i want to run wml 2.0 on nokia mobile internet toolkit.
    how it possible? wml 2.0 support wml script or not.

  2. #2
    Registered User
    Join Date
    Sep 2003
    Posts
    14

    WAP2: XHTML code example

    you need to use XHTML on Nokia browsers (XHTML doesn't support wml script)

    for example:

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <style type="text/css">.Card {BACKGROUND-COLOR:#FFFFFF; font-style:normal; font-family:sans-serif}.Header {color:#006699; font-weight:bold}.Paragraph {color:#4C4C4C; font-weight:normal}<style>
    <title>CSS Test</title>
    </head>
    <body class="Card" id="test">
    <p class="Header" align="center">
    Hello this is my header
    </p>
    <p class="Paragraph">
    And this is my Paragraph test
    <br/>
    </p>
    </body>
    </html>
    Last edited by yosi1; 2004-04-08 at 15:08.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    14

    WML2 using WML namespace, identified by the “wml:” prefix.

    This code will work perfectly on Openwave SDK 6.2.2:

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <style type="text/css">.Card {BACKGROUND-COLOR:#FFFFFF; font-style:normal; font-family:sans-serif}.Header {color:#006699; font-weight:bold}.Paragraph {color:#4C4C4C; font-weight:normal}<style>
    </head>
    <wml:card class="Card" id="test">
    <p class="Header" align="center">
    Hello this is my WML2 header
    </p>
    <p class="Paragraph">
    This code will work perfectly on Openwave SDK 6.2.2
    <br/>
    </p>
    </wml:card>
    </html>

  4. #4
    Registered User
    Join Date
    Sep 2003
    Posts
    14

    Design guidelines for WML2

    The design guidelines for WML2 were:
    • Defer to XHTML in the case of duplicated semantics (elements, attributes, and attribute values).
    • Remove WML elements, attributes, and attribute values when they can be expressed in XHTML and CSS.
    • Include WML1 elements and attributes when WML1 features cannot be expressed in XHTML and CSS. These
    elements are included using the WML namespace, identified by the ¡°wml:¡± prefix.
    • Deprecate elements and attributes where the W3C has also deprecated them.

    The result is a document type with an XHTML core and WAP extensions. The core document type, known as XHTML
    Mobile Profile, can be used to author content convergent with W3C specifications. The WML2 document type
    (XHTML core plus WAP extensions) can be used to deliver WML1 content to WAP 2 clients, achieving backward
    compatibility with WML1 in a manner that is transparent to the end user. The structure and relationship of the
    document types allows an efficient implementation of a user agent that supports both types.

    for more information:
    http://simon.dehartog.nl/datasheets/...20010911-a.pdf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×