Websydian v6.1 online documentationOnline documentation - Websydian v6.1

The Deck Generator Main Function

One Deck Generator function is defined for each WML Deck generated by the WAP application.  The Deck Generator functions produce the WML documents sent to the users of the WAP application.

Generation of WML Deck from Deck Template

The Deck Generator function generates the WML Decks sent to the WAP user.  The Deck generation process is controlled by a WML Deck Template defined for each Deck Generator function.

The Websydian Deck Generator pattern contains the same functionality as the normal Websydian HTML Page Generator, only the templates read by the generator functions differ.  A WML Template is read by the Deck Generator which substitutes the replacement markers in the template generating a WML Deck.

In WML, a Deck consists of one or more Cards which are the units displayed by the micro-browser implemented in WAP telephones and other handheld devices.  The Deck/Card structure is built into the Websydian architecture by scoping Card Generator functions under the Deck Generator.

Each Deck Generator automatically inherits a Template function which may contain Event Handlers and Jump functions common for all Cards in the WML Deck.  Deck Generators also inherit a Deck Template Generator function which generates the Deck Templates used by the Deck Generators.

More Information

See the Structure of WML Deck and Generation of WML Decks Split into Card Generators Background documents for more information on the WML Deck structure and the Deck Generation process.