New editorial edition, December 2026. This historical address is retained for existing links; the text below is newly written.
Specification Query Mapping
To reduce search time when inspecting legacy WAP assets, use the following table to map technical questions to their specific documentation sources.
| Technical Question | Specification & Section |
|---|---|
| How is the deck/card hierarchy defined? | WML 1.3, Section 11 |
| Where are XML and DOCTYPE requirements specified? | WML 1.3, Section 11.1 |
| How do anchor/go or short href links function? | WML 1.3, Sections 9.8–9.9 |
| How is uncompressed monochrome WBMP Type 0 defined? | WAEMT WBMP, Section 4.5.1 |
WML 1.3 Structural Details
According to the WML 1.3 specification, a 'deck' is a collection of cards enclosed by the <wml> element. Each individual 'card' within that deck contains structured content and navigation elements.
Navigation logic, specifically the use of anchor/go elements or the short 'a href' syntax, allows the href attribute to refer to a specific card ID using a fragment identifier. This is critical for preserving navigation in derivative copies of WML files.
WBMP Type 0 Bitmap Decoding
WBMP Type 0 is an uncompressed monochrome bitmap. Here the type and fixed header are both 00. Width and height use variable-length unsigned integer encoding; the small values 8 and 2 each fit in one byte. Do not insert a leading zero byte for either dimension.
Pixel data follows a specific bit-order: bit 1 represents white, bit 0 represents black. The most significant bit is the leftmost pixel, and rows are processed from top to bottom. Any unused bits at the end of a pixel row must be set to zero.
Decode a six-byte, eight-by-two WBMP
Constructed example: 00 00 08 02 AA 55. The header occupies four bytes and the pixel payload two. The interpretation follows the specification; it is not an assumption about the header layout.
| Zero-based byte offset | Hex value | Meaning |
|---|---|---|
| 0 | 00 | Type 0 |
| 1 | 00 | Fixed header |
| 2 | 08 | Width: eight pixels |
| 3 | 02 | Height: two pixels |
| 4 | AA | First row: 10101010, white/black alternating |
| 5 | 55 | Second row: 01010101, black/white alternating |
00 00 08 02 AA 55
4 header bytes + 2 pixel bytes = 6 bytes total
Row 1: white black white black white black white black
Row 2: black white black white black white black white- Verify WML 1.3 XML/DOCTYPE presence via Section 11.1
- Confirm WBMP TypeField is 00 for Type 0 uncompressed files
- Check that unused bits in WBMP pixel rows are zero
- Validate WML card navigation by matching href fragments to card IDs
Use WML 1.3 Section 11 for deck/card hierarchy and WAEMT WBMP Section 4.5.1 for Type 0 monochrome bitmap bit-ordering and header structure.