Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

WBXML Tables
[WBXML Library]


Files

file  wbxml_tables.c
 WBXML Tables.

file  wbxml_tables.h
 WBXML Tables.


Compounds

struct  WBXMLAttrEntry_s
 WBXML Application Token structure: Attribute token. More...

struct  WBXMLAttrValueEntry_s
 WBXML Application Token structure: Attribute Value token. More...

struct  WBXMLExtValueEntry_s
 WBXML Application Token structure: Extension Value token. More...

struct  WBXMLLangEntry_s
 Language structure. More...

struct  WBXMLNameSpaceEntry_s
 Name Space. More...

struct  WBXMLPublicIDEntry_s
 WBXML Public ID structure. More...

struct  WBXMLTagEntry_s
 WBXML Application Token structure: Tag token. More...


Defines

#define WBXML_PUBLIC_ID_UNKNOWN   0x01
#define WBXML_PUBLIC_ID_WML10   0x02
#define WBXML_PUBLIC_ID_WTA10   0x03
#define WBXML_PUBLIC_ID_WML11   0x04
#define WBXML_PUBLIC_ID_SI10   0x05
#define WBXML_PUBLIC_ID_SL10   0x06
#define WBXML_PUBLIC_ID_CO10   0x07
#define WBXML_PUBLIC_ID_CHANNEL11   0x08
#define WBXML_PUBLIC_ID_WML12   0x09
#define WBXML_PUBLIC_ID_WML13   0x0A
#define WBXML_PUBLIC_ID_PROV10   0x0B
#define WBXML_PUBLIC_ID_WTAWML12   0x0C
#define WBXML_PUBLIC_ID_CHANNEL12   WBXML_PUBLIC_ID_UNKNOWN
#define WBXML_PUBLIC_ID_EMN10   0x0D
#define WBXML_PUBLIC_ID_DRMREL10   0x0E
#define XML_PUBLIC_ID_WML10   "-//WAPFORUM//DTD WML 1.0//EN"
#define XML_PUBLIC_ID_WTA10   "-//WAPFORUM//DTD WTA 1.0//EN"
#define XML_PUBLIC_ID_WML11   "-//WAPFORUM//DTD WML 1.1//EN"
#define XML_PUBLIC_ID_SI10   "-//WAPFORUM//DTD SI 1.0//EN"
#define XML_PUBLIC_ID_SL10   "-//WAPFORUM//DTD SL 1.0//EN"
#define XML_PUBLIC_ID_CO10   "-//WAPFORUM//DTD CO 1.0//EN"
#define XML_PUBLIC_ID_CHANNEL11   "-//WAPFORUM//DTD CHANNEL 1.1//EN"
#define XML_PUBLIC_ID_WML12   "-//WAPFORUM//DTD WML 1.2//EN"
#define XML_PUBLIC_ID_WML13   "-//WAPFORUM//DTD WML 1.3//EN"
#define XML_PUBLIC_ID_PROV10   "-//WAPFORUM//DTD PROV 1.0//EN"
#define XML_PUBLIC_ID_WTAWML12   "-//WAPFORUM//DTD WTA-WML 1.2//EN"
#define XML_PUBLIC_ID_CHANNEL12   "-//WAPFORUM//DTD CHANNEL 1.2//EN"
#define XML_PUBLIC_ID_EMN10   "-//WAPFORUM//DTD EMN 1.0//EN"
#define XML_PUBLIC_ID_DRMREL10   "-//OMA//DTD DRMREL 1.0//EN"
#define WBXML_PUBLIC_ID_OTA_SETTINGS   WBXML_PUBLIC_ID_UNKNOWN
#define XML_PUBLIC_ID_OTA_SETTINGS   NULL
#define WBXML_PUBLIC_ID_SYNCML_SYNCML10   WBXML_PUBLIC_ID_UNKNOWN
#define WBXML_PUBLIC_ID_SYNCML_DEVINF10   WBXML_PUBLIC_ID_UNKNOWN
#define WBXML_PUBLIC_ID_SYNCML_METINF10   WBXML_PUBLIC_ID_UNKNOWN
#define XML_PUBLIC_ID_SYNCML_SYNCML10   "-//SYNCML//DTD SyncML 1.0//EN"
#define XML_PUBLIC_ID_SYNCML_DEVINF10   "-//SYNCML//DTD DevInf 1.0//EN"
#define XML_PUBLIC_ID_SYNCML_METINF10   "-//SYNCML//DTD MetInf 1.0//EN"
#define WBXML_PUBLIC_ID_SYNCML_SYNCML11   0x0F21
#define WBXML_PUBLIC_ID_SYNCML_DEVINF11   0x0F2D
#define WBXML_PUBLIC_ID_SYNCML_METINF11   WBXML_PUBLIC_ID_UNKNOWN
#define XML_PUBLIC_ID_SYNCML_SYNCML11   "-//SYNCML//DTD SyncML 1.1//EN"
#define XML_PUBLIC_ID_SYNCML_DEVINF11   "-//SYNCML//DTD DevInf 1.1//EN"
#define XML_PUBLIC_ID_SYNCML_METINF11   "-//SYNCML//DTD MetInf 1.1//EN"
#define WBXML_PUBLIC_ID_WV_CSP11   0x10
#define WBXML_PUBLIC_ID_WV_CSP12   WBXML_PUBLIC_ID_UNKNOWN
#define XML_PUBLIC_ID_WV_CSP11   "-//OMA//DTD WV-CSP 1.1//EN"
#define XML_PUBLIC_ID_WV_CSP12   "-//OMA//DTD WV-CSP 1.2//EN"

Typedefs

typedef WBXMLPublicIDEntry_s WBXMLPublicIDEntry
 WBXML Public ID structure.

typedef WBXMLTagEntry_s WBXMLTagEntry
 WBXML Application Token structure: Tag token.

typedef WBXMLNameSpaceEntry_s WBXMLNameSpaceEntry
 Name Space.

typedef WBXMLAttrEntry_s WBXMLAttrEntry
 WBXML Application Token structure: Attribute token.

typedef WBXMLAttrValueEntry_s WBXMLAttrValueEntry
 WBXML Application Token structure: Attribute Value token.

typedef WBXMLExtValueEntry_s WBXMLExtValueEntry
 WBXML Application Token structure: Extension Value token.

typedef WBXMLLangEntry_s WBXMLLangEntry
 Language structure.


Functions

const WBXMLLangEntrywbxml_tables_get_main (void)
 Get Main Table.

const WBXMLLangEntrywbxml_tables_search_table (const WBXMLLangEntry *main_table, const WB_UTINY *public_id, const WB_UTINY *system_id, const WB_UTINY *root)
 Search for a Language Table.

unsigned int wbxml_tables_get_wbxml_publicid (const WBXMLLangEntry *main_table, WBXMLLanguage lang_id)
 Get the WBXML Public ID corresponding to given WBXML Language.

const WBXMLTagEntrywbxml_tables_get_tag_from_xml (const WBXMLLangEntry *lang_table, const WB_UTINY *xml_name)
 Search for a Tag Entry in Language Table, given the XML Name of the Tag.

const WBXMLAttrEntrywbxml_tables_get_attr_from_xml (const WBXMLLangEntry *lang_table, WB_UTINY *xml_name, WB_UTINY *xml_value, WB_UTINY **value_left)
 Search for an Attribute Entry in Language Table, given the XML Name and Value of the Attribute.

const WBXMLExtValueEntrywbxml_tables_get_ext_from_xml (const WBXMLLangEntry *lang_table, WB_UTINY *xml_value)
 Search for an Extension Token Entry in Language Table, given the XML Value of the Extension.

WB_BOOL wbxml_tables_contains_attr_value_from_xml (const WBXMLLangEntry *lang_table, WB_UTINY *xml_value)
 Check if an XML Attribute Value contains at least one Attribute Value defined in Language Attribute Values Table.

const WB_TINY * wbxml_tables_get_xmlns (const WBXMLNameSpaceEntry *ns_table, WB_UTINY code_page)
 Get an XML NameSpace, given a WBXML Code Page.


Define Documentation

#define WBXML_PUBLIC_ID_CHANNEL11   0x08
 

Definition at line 59 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_CHANNEL12   WBXML_PUBLIC_ID_UNKNOWN
 

I don't undestand what is the Channel1.2 WBXML Public ID

Definition at line 64 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_CO10   0x07
 

Definition at line 58 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_DRMREL10   0x0E
 

Definition at line 66 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_EMN10   0x0D
 

Definition at line 65 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_OTA_SETTINGS   WBXML_PUBLIC_ID_UNKNOWN
 

Definition at line 84 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_PROV10   0x0B
 

Definition at line 62 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SI10   0x05
 

Definition at line 56 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SL10   0x06
 

Definition at line 57 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SYNCML_DEVINF10   WBXML_PUBLIC_ID_UNKNOWN
 

Definition at line 91 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SYNCML_DEVINF11   0x0F2D
 

Definition at line 100 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SYNCML_METINF10   WBXML_PUBLIC_ID_UNKNOWN
 

Definition at line 92 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SYNCML_METINF11   WBXML_PUBLIC_ID_UNKNOWN
 

Definition at line 101 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SYNCML_SYNCML10   WBXML_PUBLIC_ID_UNKNOWN
 

Definition at line 89 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_SYNCML_SYNCML11   0x0F21
 

Definition at line 99 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_UNKNOWN   0x01
 

Definition at line 50 of file wbxml_tables.h.

Referenced by wbxml_parser_create(), wbxml_parser_get_wbxml_public_id(), and wbxml_tables_get_wbxml_publicid().

#define WBXML_PUBLIC_ID_WML10   0x02
 

Definition at line 53 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_WML11   0x04
 

Definition at line 55 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_WML12   0x09
 

Definition at line 60 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_WML13   0x0A
 

Definition at line 61 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_WTA10   0x03
 

Definition at line 54 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_WTAWML12   0x0C
 

Definition at line 63 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_WV_CSP11   0x10
 

Definition at line 108 of file wbxml_tables.h.

#define WBXML_PUBLIC_ID_WV_CSP12   WBXML_PUBLIC_ID_UNKNOWN
 

Definition at line 109 of file wbxml_tables.h.

#define XML_PUBLIC_ID_CHANNEL11   "-//WAPFORUM//DTD CHANNEL 1.1//EN"
 

Definition at line 74 of file wbxml_tables.h.

#define XML_PUBLIC_ID_CHANNEL12   "-//WAPFORUM//DTD CHANNEL 1.2//EN"
 

Definition at line 79 of file wbxml_tables.h.

#define XML_PUBLIC_ID_CO10   "-//WAPFORUM//DTD CO 1.0//EN"
 

Definition at line 73 of file wbxml_tables.h.

#define XML_PUBLIC_ID_DRMREL10   "-//OMA//DTD DRMREL 1.0//EN"
 

Definition at line 81 of file wbxml_tables.h.

#define XML_PUBLIC_ID_EMN10   "-//WAPFORUM//DTD EMN 1.0//EN"
 

Definition at line 80 of file wbxml_tables.h.

#define XML_PUBLIC_ID_OTA_SETTINGS   NULL
 

Definition at line 85 of file wbxml_tables.h.

#define XML_PUBLIC_ID_PROV10   "-//WAPFORUM//DTD PROV 1.0//EN"
 

Definition at line 77 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SI10   "-//WAPFORUM//DTD SI 1.0//EN"
 

Definition at line 71 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SL10   "-//WAPFORUM//DTD SL 1.0//EN"
 

Definition at line 72 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SYNCML_DEVINF10   "-//SYNCML//DTD DevInf 1.0//EN"
 

Definition at line 95 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SYNCML_DEVINF11   "-//SYNCML//DTD DevInf 1.1//EN"
 

Definition at line 104 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SYNCML_METINF10   "-//SYNCML//DTD MetInf 1.0//EN"
 

Definition at line 96 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SYNCML_METINF11   "-//SYNCML//DTD MetInf 1.1//EN"
 

Definition at line 105 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SYNCML_SYNCML10   "-//SYNCML//DTD SyncML 1.0//EN"
 

Definition at line 94 of file wbxml_tables.h.

#define XML_PUBLIC_ID_SYNCML_SYNCML11   "-//SYNCML//DTD SyncML 1.1//EN"
 

Definition at line 103 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WML10   "-//WAPFORUM//DTD WML 1.0//EN"
 

Definition at line 68 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WML11   "-//WAPFORUM//DTD WML 1.1//EN"
 

Definition at line 70 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WML12   "-//WAPFORUM//DTD WML 1.2//EN"
 

Definition at line 75 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WML13   "-//WAPFORUM//DTD WML 1.3//EN"
 

Definition at line 76 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WTA10   "-//WAPFORUM//DTD WTA 1.0//EN"
 

Definition at line 69 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WTAWML12   "-//WAPFORUM//DTD WTA-WML 1.2//EN"
 

Definition at line 78 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WV_CSP11   "-//OMA//DTD WV-CSP 1.1//EN"
 

Todo:
Also defined to "-//WIRELESSVILLAGE//DTD CSP 1.1//EN" (so choose one)

Definition at line 111 of file wbxml_tables.h.

#define XML_PUBLIC_ID_WV_CSP12   "-//OMA//DTD WV-CSP 1.2//EN"
 

Definition at line 112 of file wbxml_tables.h.


Typedef Documentation

typedef struct WBXMLAttrEntry_s WBXMLAttrEntry
 

WBXML Application Token structure: Attribute token.

typedef struct WBXMLAttrValueEntry_s WBXMLAttrValueEntry
 

WBXML Application Token structure: Attribute Value token.

typedef struct WBXMLExtValueEntry_s WBXMLExtValueEntry
 

WBXML Application Token structure: Extension Value token.

Note:
For Wireless-Village, the content can be tokenized with Extension Tokens

typedef struct WBXMLLangEntry_s WBXMLLangEntry
 

Language structure.

typedef struct WBXMLNameSpaceEntry_s WBXMLNameSpaceEntry
 

Name Space.

Note:
For SyncML, where a WBXML Code Page is associated to an XML Name Space

typedef struct WBXMLPublicIDEntry_s WBXMLPublicIDEntry
 

WBXML Public ID structure.

typedef struct WBXMLTagEntry_s WBXMLTagEntry
 

WBXML Application Token structure: Tag token.


Function Documentation

WB_BOOL wbxml_tables_contains_attr_value_from_xml const WBXMLLangEntry   lang_table,
WB_UTINY *    xml_value
 

Check if an XML Attribute Value contains at least one Attribute Value defined in Language Attribute Values Table.

Parameters:
lang_table The Language Table to search in
xml_value The XML Attribute Value to check
Returns:
TRUE if this value contains an Attribute Value, FALSE otherwise

const WBXMLAttrEntry* wbxml_tables_get_attr_from_xml const WBXMLLangEntry   lang_table,
WB_UTINY *    xml_name,
WB_UTINY *    xml_value,
WB_UTINY **    value_left
 

Search for an Attribute Entry in Language Table, given the XML Name and Value of the Attribute.

Parameters:
lang_table The Language Table to search in
xml_name The XML Name of the Attribute to search
xml_value The XML Value of the Attribute to search
value_left Is the WBXMLAttrEntry returned EXACTLY the Attribute we are searching ? (ie: is the Attribute Value found matching the one we were looking for ?). If Yes, then this is NULL. If not, then this is the attribute value part that we still have to encode.
Returns:
The Attribute Entry of this XML Attribute Name in Language Table, or NULL if not found
Note:
Has the Attribut Value can be expressed in many ways in WBXML, this function is focused on searching for the ATTRIBUTE NAME ! Thus, when Attribute Name is found in Table, we search for an Entry with the same Attribute Name / Attribute Value pair. If found the 'value_left' parameter is set to NULL. If not, we still return an Entry matching the Attribute Name, but the 'value_left' parameter is the Attribute Value part that is not included in the Attrbute Token.

const WBXMLExtValueEntry* wbxml_tables_get_ext_from_xml const WBXMLLangEntry   lang_table,
WB_UTINY *    xml_value
 

Search for an Extension Token Entry in Language Table, given the XML Value of the Extension.

Parameters:
lang_table The Language Table to search in
xml_value The XML Value of the Extension to search
Returns:
The Extension Token Entry of this XML Value in Language Table, or NULL if not found

const WBXMLLangEntry* wbxml_tables_get_main void   
 

Get Main Table.

Returns:
The main WBXML languages Table

Definition at line 2332 of file wbxml_tables.c.

References sv_table_entry.

Referenced by wbxml_parser_create(), wbxml_parser_parse(), wbxml_tree_clb_xml_doctype_decl(), and wbxml_tree_clb_xml_start_element().

const WBXMLTagEntry* wbxml_tables_get_tag_from_xml const WBXMLLangEntry   lang_table,
const WB_UTINY *    xml_name
 

Search for a Tag Entry in Language Table, given the XML Name of the Tag.

Parameters:
lang_table The Language Table to search in
xml_name The XML Name of the Tag to search
Returns:
The Tag Entry of this XML Name in Language Table, or NULL if not found

Referenced by wbxml_tree_clb_xml_start_element().

unsigned int wbxml_tables_get_wbxml_publicid const WBXMLLangEntry   main_table,
WBXMLLanguage    lang_id
 

Get the WBXML Public ID corresponding to given WBXML Language.

Parameters:
main_table The Main Languages Table to search in
lang_id The Language ID
Returns:
The WBXML Public ID (can be WBXML_PUBLIC_ID_UNKNOWN if Language doesn't have one, or if Language not found)

Definition at line 2385 of file wbxml_tables.c.

References WBXMLLangEntry_s::langID, NULL, WBXMLLangEntry_s::publicID, WB_ULONG, WBXML_PUBLIC_ID_UNKNOWN, WBXMLLanguage, and WBXMLPublicIDEntry_s::wbxmlPublicID.

Referenced by wbxml_parser_parse().

const WB_TINY* wbxml_tables_get_xmlns const WBXMLNameSpaceEntry   ns_table,
WB_UTINY    code_page
 

Get an XML NameSpace, given a WBXML Code Page.

Parameters:
ns_table The NameSpace Table
code_page The WBXML Code Page
Returns:
The XML NameSpace, or NULL if not found

const WBXMLLangEntry* wbxml_tables_search_table const WBXMLLangEntry   main_table,
const WB_UTINY *    public_id,
const WB_UTINY *    system_id,
const WB_UTINY *    root
 

Search for a Language Table.

Parameters:
main_table Main Table Array to search in
public_id The Public ID to search [can be NULL]
system_id The System ID to search [can be NULL]
root The Root Element to search [can be NULL]
Returns:
The Language Table found, or NULL if none found
Note:
This function try to find the correct Language Table thanks to the XML Public ID, then (if not found) by the XML System ID, and finally (if not found) by the Root XML Element

Referenced by wbxml_tree_clb_xml_doctype_decl(), and wbxml_tree_clb_xml_start_element().


Generated on Mon Nov 24 20:09:48 2003 for WBXML Library by doxygen1.3-rc1