An HDML deck is used to transport and cache sets of HDML cards. It is the smallest unit of HDML a service can transmit to the UP.Link server, and the only HDML unit for which you can specify a Time To Live (TTL)--the period during which the phone caches the deck.
You can also use a deck to group cards for which you want to set the same bookmarking and access settings.
To define a deck, you use an <HDML> statement. The statement must include one or more statements defining display, choice, or entry cards. It can also specify options and actions that apply to the entire deck.
<HDML
| |
The version of the HDML language used for the deck. The syntax is You must specify a version number. If you do not, the HDML compiler generates an error message. | |
The number of seconds the UP.Phone should cache the deck after it receives it.
If you do not specify a value, the UP.Phone caches the deck for 30 days. If | |
Flag specifying whether the cards in the deck can be marked. To allow the cards to be marked, specify
If you set the
If the statement for a card within the deck specifies the | |
Specifies whether deck access control is enabled. If you specify | |
Specifies the domain of URLs that are allowed to request cards in the deck if The default value is the current deck's domain.
For a detailed explanation and examples of how the | |
Specifies the base path of URLs that are allowed to request cards within the deck when
The default value is
For a detailed explanation and examples of how the | |
>
| |
actions
| |
cards
| One or more cards. A deck must contain at least one card. For more information on defining cards see <CHOICE> and <DISPLAY>. |
</HDML>
|
The following HDML statements generate the display shown in Figure 2-10:
FIGURE 2-10. Deck with a single display card
Suppose you want to make sure the UP.Phone does not cache the card. You also want to allow the user to mark the deck. To do this, you change the HDML statements to the following:
When you specify the MARKABLE=TRUE option, the mark (MARK) label appears as shown in Figure 2-11. Note that some phones do not display the mark label.
FIGURE 2-11.
Display card with the MARKABLE=TRUE option
The following HDML deck generates the display shown in Figure 2-12:
FIGURE 2-12. Entry card with FILL option set to RIGHT