A wysiwyg XML editor
The following screenshots are from the old Etna 0.3.1 version.
When you start Etna for the first time, it shows an empty window. You have to register a schema, or install an extension that will register one for you.
Open the dialog, and indicate the relaxng file. This screenshot shows messages when the schema is ok and when there is an error.
You may install extensions, just the same way you do in Firefox.
A dialog box allows you to view which schemas are installed, and manage them (including removal). When a relaxNG schema contains additional informations (like description and schema name), Etna will display them in place of the schema url.
The “new document” dialog displays a list of possible new documents (depending on which schemas you have). Like in the schema manager, name and description of possible new documents are shown, based on data found in the schemas.
Once you choosed a new document type, you may start editing it directly.
The way this document is displayed is based on the CSS stylesheet bundled with the corresponding schema.
By default, Etna has two toolbars. Additional buttons, toolbars, menu items, etc…, can be added by XUL extensions.
The first default toolbar has two buttons : one to surround content with a specific xml element, another to insert new elements.
The second toolbar shows you the “XML path” of the currently focused element, and a drop down menu allows you to add a new element before or after the current element, or to transform it.
Again, the elements available for insertion are defined by labels in the relaxNG schema: in this example, you don’t have <p> or <em>, but “paragraph” or “emphasis”.
When XML elements require attributes, an additional sidebar allows you to specify and edit them.