Christian Biesinger <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Matthew Wilson wrote: > > Currently I create and register an instance of nsIURIContentListener > > to listen for content of type "text/vnd.wap.wml". When I recieve > > content of this type, I transform it to HTML using XSLT - but then I > > don't know where to send it. > > It seems to me that you would be better off using nsIStreamConverter > instead of nsIURIContentListener - that way, you wouldn't have to care > where the content ends up, you just convert the data of type > text/vnd.wap.wml to text/html (or application/xhtml+xml or whatever) and > gecko will do the rest. > > This would mean that "Page Info" showed a wrong content type > (text/html), but I think XSLT has the same problem.
Thanks for the tip. Just hacking together a prototype, if I register with the category manager with ?from=text/vnd.wap.wml&to=text/html, I don't seem to see anything happening. If I register with ?from=text/vnd.wap.wml&to=*/* then I do get the callbacks to my object called (loading a WML file over HTTP from a bookmark). Is that what you would expect? -- Matthew _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib