Comments: How do you implement a XML language in Mozilla?

Use XTF?

http://croczilla.com/xtf/
http://bugzilla.mozilla.org/show_bug.cgi?id=253225

(From Alex: Oh, wow, that's cool!

Posted by clav at September 19, 2004 1:15 PM

IIRC, Mozilla's XTF technology is something meant for this purpose. No idea if it is on the trunk already, though...

Posted by jens.b at September 19, 2004 2:21 PM

> (8) Package all this up as an XPI (is it even possible to install a new XML language by XPI? If not, it should be.)

either you do 1-7, or you do 8... ;)

but see http://www.croczilla.com/xtf

Posted by christian biesinger at September 19, 2004 3:10 PM

So this assumes to install a new XML-based language. I can perfectly understand this from several technical points of view.

But what about dynamically loaded new XML-based languages? No need to bother the user -- albeit she/he might be bothered by loading times. But then, what will happen to security? XTF opens things up to all scripting languages within Mozilla & Co., but what will be the implications (just think also of geometry management, et cetera)?

I'm eagerly waiting for a larger article or paper on this subject! It seems to me like opening Pandora's box, but it has to be done in order to really make use of XML in browsers (and that stronly implies using and integrating multiple XML-based languages).

Posted by Harald Albrecht at September 19, 2004 7:45 PM

wmlbrowser.mozdev.org tries to implement WML in Mozilla in pure Javascript. It uses XSLT to transform to HTML.

Posted by Matthew Wilson at September 20, 2004 12:34 AM

Much of this depends *very* much on item 1.

Once you have done that, you need to find out whether you can implement that XML language by means of existing elements and CSS, or if you have to write nsIFrames for it. If you have to write nsIFrame, then you're stuck and you need to get that impl into content/layout, like SVG has to. If you don't, you may want to look into XBL. XUL is mostly implemented in XBL, why not others?

If XBL doesn't cut it, you may want to look into XTF.

Forget about your own document or your own element implementations if you don't plan to convince folks to land this thing on the main mozilla codebase. Let alone a viewer (note that you drop most of XML if you take it to another viewer, I suppose).

Default stylesheets AKA catalogs is a burning issue, help wanted bug should be open on that one.
Good proposals should be posted before a patch, so that drivers et al can review those and put them into the necessary context on 2.0.

Posted by Axel Hecht at September 20, 2004 4:15 AM

use XTF system to feed the layer 5 tracks to the system

Posted by Jon at September 28, 2004 5:58 AM