fmorbini / scxmlgui

A graphical user interface for editing SCXML finite state machines.
Other
105 stars 37 forks source link

Layout information encoded as XML comments #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Save an SCXML file in scxmlgui.

What is the expected output? What do you see instead?

I expect the output SCXML document to encode layout information as tags or 
attributes in a non-SCXML namespace, possibly reusing an existing XML 
application for encoding graphical layout information such as GraphML. Instead, 
I layout information is encoded as XML comments.

What version of the product are you using? On what operating system?

The JAR linked from the project home page.

Please provide any additional information below.

SCXML is meant to be a hand-editable format. This is still useful, even when 
using a graphical tool like scxmlgui. Encoding layout information as special 
comments is a brittle approach, as it may easily break when the user is editing 
an an SCXML file by hand, or when processing the SCXML with a different tool. I 
think it would be better to encode this layout information as tags or 
attributes in a different XML namespace, as this allows the layout information 
to be explicitly encoded in the structure of the document. The best approach 
might be to leverage an existing XML application for encoding layout 
information, such as GraphML.

If you think this would be a useful feature, and are able to accept a patch, I 
might be able to do this work myself.

Original issue reported on code.google.com by jbea...@cs.mcgill.ca on 27 Feb 2012 at 11:10

GoogleCodeExporter commented 9 years ago
of course you can submit a patch and it sounds an interesting feature to add.

Original comment by fmorbini on 27 Feb 2012 at 11:55

GoogleCodeExporter commented 9 years ago

Original comment by fmorbini on 27 Feb 2012 at 11:56