Re: kannel OTA/OMA dev ?
Aarno Syvänen <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
I meant: check how wml_compiler.c calls string_table* functions. Try to do same with ota_compiler.c functions with same name. String table is just for compression and can be done after tokenization. On 22 Oct 2008, at 14:13, Guillaume Godart wrote: > Yes I think it's the point. Unfortunately I don't have any idea how to > do that ! I have never worked with the kannel code and I was a newbie > user three days ago !!! My c++ knowledge is almost null because I > didn't > develop with c++ since a small university project, seven years ago. > > How to add string table to ota_compiler.c ? > > > > > > > Le mercredi 22 octobre 2008 à 13:41 +0200, Aarno Syvänen a écrit : >> Yep. Libxml creates a parse tree using WML DTD and wml compiler >> picks tokens from the tree. Perhaps you should try adding string >> table code to ota_compiler.c ? >> >> On 22 Oct 2008, at 13:02, P. A. Bagyenda wrote: >> >>> ota_compiler.c >>> On Oct 22, 2008, at 13:07, Guillaume Godart wrote: >>> >>>> are you absolutely sure it is the source code used to compile wbxml >>>> content from xml content ? >>>> >>>> >>>> >>>> >>>> >>>> >>>> Le mercredi 22 octobre 2008 à 11:31 +0200, Aarno Syvänen a écrit : >>>>> Hi, >>>>> >>>>> wml_compiler.c does have string table code. Perhaps you can begin >>>>> with >>>>> it. >>>>> >>>>> Aarno >>>>> >>>>> On 22 Oct 2008, at 10:03, Guillaume Godart wrote: >>>>> >>>>>> Thank you for your work ! >>>>>> >>>>>> The solution is to add the three token (CODEC, MEDIASUBTYPE and >>>>>> PRIORITYINDEX) in a string table at the begining of the wbxml >>>>>> content. >>>>>> How can I patch kannel to do that ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Le mercredi 22 octobre 2008 à 05:04 +0200, Stipe Tolj a écrit : >>>>>>> Guillaume Godart schrieb: >>>>>>>> solution seems to be described here : >>>>>>>> http://discussion.forum.nokia.com/forum/showthread.php?t=124252 >>>>>>>> >>>>>>>> they speak about inserting a string table in the begining of >>>>>>>> the >>>>>>>> wbxml, >>>>>>>> adding the 3 words CODEC, MEDIASUBTYPE and PRIORITYINDEX. >>>>>>> >>>>>>> ok, after reviewing a couple of documents and specs: >>>>>>> >>>>>>> These XML elements have NOT being defined by OMA to be >>>>>>> tokenized. >>>>>>> Which means if >>>>>>> there is no defined WBXML token for them in the token tables, >>>>>>> any >>>>>>> XML->WBXML >>>>>>> conversion will leave them as plain ASCII encoded bytes in the >>>>>>> resulting WBXML >>>>>>> string stream. >>>>>>> >>>>>>> Stipe >>>>>>> >>>>>> >>>>>> >>>>> >>> >> >> > >