WML navigation, designed specifically for WML devices, uses a deck, which contain cards that make up pages shown on the device.
Constant | Definition |
---|---|
mwp.tree.wml.conversion.size | Used to estimate the amount of conversion overhead the final markup (output from MCS) will undergo before it arrives at the target device. This includes transformations as the markup travels through proxies and other changes in the markup before it is saved in the WML device's buffer (example: The single quote (') character gets converted to " - increasing buffer usage by 5 characters). |
mwp.tree.wml.deck.size | Used to calculate the number of bytes occupied by the markup that declares the WML deck. If an image is used as a header in the deck, its size should be included in this number. This will be added to the total byte count only once per page response. |
mwp.tree.wml.card.size | Used to calculate the number of bytes occupied by the markup that declares each WML card. This number will be added to the total byte count for each card added to the deck. |
mwp.tree.wml.link.size | Used to calculate the number of bytes occupied by the markup that declares each nav link on a WML card. |
mwp.tree.wml.do-go.link.size | Used to calculate the number of bytes occupied by the markup that declares each <do><go> WML link on a WML card. |
The markup in the following example has been formatted. The markup sent to a device will not have carriage return and line feed characters, so these should not be counted when calculating the constant values. Review the code and then look at the values for the various excerpts.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<template>
<do label="Log in" name="i" type="options">
<go href="/wps/portal/!ut/p/.scr/Login/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
<do label="I forgot my password" name="p" type="options">
<go href="/wps/portal/!ut/p/.scr/ForgotPassword/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
</template>
<card id="card_0" title="Mobile Portal"><p>
...more links...
<a href="/wps/portal/!ut/p/.cmd/cs/.ce/7_0_A/.s/7_0_15H/_th/J_0_3B/_s.7_0_A/7_0_12S/_s.7_0_A/7_0_15H">PageA</a><br/>
...more links...
</p><p></p></card>
</wml>
The following sections of code from the example show the sections of code that are used to determine the constant size.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<template>
<do label="Log in" name="i" type="options">
<go href="/wps/portal/!ut/p/.scr/Login/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
<do label="I forgot my password" name="p" type="options">
<go href="/wps/portal/!ut/p/.scr/ForgotPassword/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
</template>
<card id="card_0" title="Mobile Portal"><p>
...more links...
<a href="/wps/portal/!ut/p/.cmd/cs/.ce/7_0_A/.s/7_0_15H/_th/J_0_3B/_s.7_0_A/7_0_12S/_s.7_0_A/7_0_15H">PageA</a><br/>
...more links...
</p><p></p></card>
</wml>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<template>
<do label="Log in" name="i" type="options">
<go href="/wps/portal/!ut/p/.scr/Login/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
<do label="I forgot my password" name="p" type="options">
<go href="/wps/portal/!ut/p/.scr/ForgotPassword/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
</template>
<card id="card_0" title="Mobile Portal"><p>
...more links...
<a href="/wps/portal/!ut/p/.cmd/cs/.ce/7_0_A/.s/7_0_15H/_th/J_0_3B/_s.7_0_A/7_0_12S/_s.7_0_A/7_0_15H">PageA</a><br/>
...more links...
</p><p></p></card>
</wml>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<template>
<do label="Log in" name="i" type="options">
<go href="/wps/portal/!ut/p/.scr/Login/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
<do label="I forgot my password" name="p" type="options">
<go href="/wps/portal/!ut/p/.scr/ForgotPassword/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
</template>
<card id="card_0" title="Mobile Portal"><p>
...more links...
<a href="/wps/portal/!ut/p/.cmd/cs/.ce/7_0_A/.s/7_0_15H/_th/J_0_3B/_s.7_0_A/7_0_12S/_s.7_0_A/7_0_15H">PageA</a><br/>
...more links...
</p><p></p></card>
</wml>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<template>
<do label="Log in" name="i" type="options">
<go href="/wps/portal/!ut/p/.scr/Login/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
<do label="I forgot my password" name="p" type="options">
<go href="/wps/portal/!ut/p/.scr/ForgotPassword/_th/J_0_3B/_s.7_0_A/7_0_12S"></go>
</do>
</template>
<card id="card_0" title="Mobile Portal"><p>
...more links...
<a href="/wps/portal/!ut/p/.cmd/cs/.ce/7_0_A/.s/7_0_15H/_th/J_0_3B/_s.7_0_A/7_0_12S/_s.7_0_A/7_0_15H">PageA</a><br/>
...more links...
</p><p></p></card>
</wml>