Advice on XML editor development

Peter Murray-Rust peter at ursus.demon.co.uk
Mon Apr 27 23:06:54 BST 1998


At 21:30 27/04/98 +0800, James K. Tauber wrote:
>
>What I am envisaging is a generic editor that given an editing sheet for
>MathML would become an equation editor or given an editing sheet CML would
>enable editing of molecular structure diagrams. Of course, such editing
>sheets would include code but that code would presumable have a lot of
>overlap with the code attached to XSL stylesheets for display. I would
>imagine Java Classes, for example with both display and editing interfaces
>for this purpose.

I have thought about this a lot and have been working on about the third
version for CML support. Say we are working at a node-centered level - e.g.
the DOM/JUMBO or whatever knows about <MOL>...</MOL> but there is no point
in either a tree- or eventstream display or editing of the children. We
click on <MOL> and might expect the following types of functionality:
	- display()   // to anywhere , probably a new JFrame
	- getDisplayComponent(boolean editable) // returns a JComponent which
			// can be embedded in a TabbedPane, Table, etc.
	- highlight(String foreignAddress); highlights a subcomponent of the
object (e.g. an atom in a molecule)
	- drawToGraphics(Graphics g, Scaler s);
		// draw onto an exiting graphics so that many objects can be rendered.
Scaler is a GKS-like scaling (I expect Java2D will supersede that)

This could be very general - it would allow a molecule and a maths eqn to
be draw to the same surface, either to be edited, parts of them to be
highlighted, etc.
	I am reasonably confident this will work - if others are interested in
following this discussion I'd be delighted.

	P.

>
>Is anyone working on this sort of thing?
>
>James
>
>--
>James Tauber / jtauber at jtauber.com
>Perth, Western Australia
>XML Pages: http://www.jtauber.com/xml/
>
>
>xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
>Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
>To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
>(un)subscribe xml-dev
>To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
>subscribe xml-dev-digest
>List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
>
>
Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list