Re: Is libxml2 invoked whenever Kannel fetches a XML file
Aarno Syvänen <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wiral Ltd |
| Message-ID | <[email protected]> |
Hi, > I am summarizing the actions once more here: > > 1) RENAMED hello.wml TO hello.xml FILE. BUT text/html > > 2) COPIED SAMPLE libxml2 (WAP-GENERATING) XML FILE > TO APACHE DOCUMENTROOT STILL text/html > > 3) CONFIGURED XML ENGINE COCOON WITH APACHE. IN > SAMPLE COCOON XML FILE REPLACED HTML TAGS > WITH WML TAGS. BUT STILL text/html Kannel is a gateway, not a content server. It cannot know file extensions. (Or tags, before parsing the content!). But does see response headers. > > 4) WROTE A SERVLET PROGRAM, SET CONTENT-TYPE > AS text/vnd.wap.wml AND HURRAH OUTPUT OF > SERVLET SEEN IN ERICSSON R380 That's true. Kannel compiles content with wml compiler, if Content-Type is text/vnd.wap.wml. (If Content-Type text/vnd.wap.wmlscript, it uses wmlscript compiler.) > > 5) CONCLUSION: WHENEVER KANNEL SEES .xml > EXTENSION, FETCHES OUTPUT AND PASSES > IT ON TO libxml2. GNOME XML LIBRARY > FAILS TO PROCESS OUTPUT AND LABELS > IT AS text/html Yes, Kannel does use Gnome XML. But decisions are based on Content-Type, as I said previously. Aarno