moz-bonobo-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[moz-bonobo-list] gtkmathview-bonobo and MathML embedding


From: Luca Padovani
Subject: [moz-bonobo-list] gtkmathview-bonobo and MathML embedding
Date: Tue, 23 Mar 2004 21:36:51 +0100

Hi everybody,

I apparently found a way of circumventing one of the major drawbacks of
using the <object> tag in HTML pages for referring to a resource whose
content is rendered by a plugin (the gtkmathview-bonobo plugin in my
case, but the technique is rather general.) In fact it strikes me that I
haven't seen any documentation about this "feature".

The trick is indeed simple: just make the data attribute of the <object>
element have as content the id of an element local to the same HTML
file, say #math1, and then put somewhere in the same file an element
<input type="hidden"> whose content is the MathML markup. The root
<math> element will have a id="#math1" attribute. In fact, you can put
the <input> element as child of the <object> element itself. At this
point the plugin will load a document that is contained within the same
HTML page, no need to put the plugin content in an external file. On
galeon this works flawlessly, presumably it does on mozilla as well.

A complete sample XHTML file is attached to this email.

Is this absolutely obvious to you or really nobody has thought of this
before?

Cheers,
--luca

GtkMathView-Bonobo test page

The embedded object should display a mathematical formula.
No viewer capable of displaying the test document installed. x 2 = click for the answer
reply via email to

[Prev in Thread] Current Thread [Next in Thread]