EditiX Manual
EditiX XML Editor 2019 is now available
Released 03/22/07
For version 5.2.2
EditiX is a cross-platform and
multi-purposes XML Editor and XSLT Debugger.
1. General Interface
a. Global view
The user interface has four
parts :
- A set of menus which are active depending on the current document
type
- A toolbar varying with the current document type
- A tab list of opened documents with an icon and a file name
depending
on
the current document type and the current document path
- A status bar with data about the current editing state
- A panel on the left side containing various windows like a file browser, a project manager, an xpath evaluator...
Each XML document has two views, a full text view and a custom XML
view. The custom XML view hides all non needed XML parts focusing for
editing. For
switching between the two views you must update the editor / fullTextView preference.
b. Document type
Each document has a document type that has to be choosen when opening
a file according
to the selected filter from the file dialog box.
When
opening a document from the "Open recent" menu item or by opening a
project from the "Open project" menu item, the document type is
always restored. User may also change the default file encoding. User
cannot define a new document type but it is always possible to assign
another document type for a template document from the
"Template" menu and the "Edit templates" item.
Here a list of available document types :
Document
Type
|
Role
|
Icon
|
XML |
Standard XML document
|
![XML](images/star_blue.png)
|
DTD |
Document Type
declaration
|
![XSD](images/star_red.png)
|
TEXT |
Simple text document
without XML content
|
![TEXT](images/text.png)
|
XSLT |
XSL Transformations
document
|
![XSLT](images/star_green.png)
|
XHTML |
XHTML document
|
![XHTML](images/star_yellow.png)
|
FO |
XSL-FO document
|
|
RNG |
XML RelaxNG document
|
|
XSD |
W3C XML Schema
document
|
![XSD](images/star_red.png)
|
SVG |
Scalable Vector
Graphics document
|
![XHTML](images/star_yellow.png)
|
DOCBOOK |
DocBook document
|
![DOCBOOK](images/star_blue2.png)
|
ANT |
Ant project document
|
![ANT](images/wrench.png)
|
The document's icon is shown in the tab list of opened documents and
when opening
a recent document from the "File" menu.
c. Menu content
The accessibility to the menu items depends on the current
document
type. The following table contains each menu detail
with the supported document type. When a document type is mentionned,
it means this menu item will be activated for this
document type otherwise it will be disabled.
- File menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
New... |
Create a new document from the
available templates |
N |
All |
Open... |
Open a document from the file
system |
O |
All |
Open recent... |
Shows documents that were most
recently loaded, in order to select one to open. |
|
All |
Insert file... |
Insert a document at the caret
location |
|
All |
Close |
Close the current document. A
dialog box will be prompted if the document must be saved before closing |
Alt F4 |
All |
Close all |
Close all the opened document. A
dialog box will ask to save changed documents that are not saved. |
|
All |
Close and Delete |
Close the current document and
delete it. User can't read it again. A dialog will ask to confirm
deleting. |
|
All |
Import/HTML |
Insert an HTML document
converting to XHTML |
|
All |
Import/CSV |
Import an Excel CSV file format.
User can choose the column separators. |
|
All |
Save |
Save the current document for
the file system, ftp, webdav or zip. The user doesn't have to worry
about the way the file has been loaded. |
S |
All |
Save as... |
Save the current document to the
file system. |
|
All |
Save as template... |
Store the current document as a
template for the "New..." item usage. User can delete it from the
"Template" menu. |
|
All |
Save all |
Save all the opened documents |
|
All |
Open by FTP... |
Browse an FTP server for editing
a file. User will have to specify the host, user name and password. If
a proxy is needed, it is required to update the "proxy" preference. Use
the "Save" item for saving. |
|
All |
Open by WebDAV... |
Browse a WebDAV server for
editing a file. Use the "Save" item for saving. |
|
All |
Open by ZIP... |
Browse a zip or jar file for
editing a file. Use the "Save" item for saving. |
|
|
Project/Project Manager |
Display the project panel. |
alt 2 |
All |
Project/Open project... |
Open a collection of documents
using a project file (*.pre) |
|
All |
Project/Open recent project |
Shows the most recently opened
projects in order to choose one to open. |
|
All |
Project/Save project |
Save all the opened documents
from the current project (*.pre) |
|
All |
Project/Save project as... |
Save all opened documents inside
a project (*.pre) browsing the file system |
|
All |
Project/Close project |
Close all opened documents
from the current project. A dialog asks to save modified documents. |
|
All |
File browser |
Show or hide the file browser.
This is a facility for editing quickly a document from the file system. |
alt 1 |
All
|
File info |
Panel with the current file encoding and type. User can also change these values |
alt 3 |
All |
Encoding |
Select a file encoding (like
UTF-8 e.g.) for reading or writing a file. In
case of uncertainty about encoding the "DEFAULT" value is recommended.
This value is also available
inside the preferences through the "file" category or when opening a new document |
|
All |
Print... |
Print the current document |
P |
All |
Quit |
Exit from editiX. (Quit EditiX) |
|
All |
- Edit menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Undo |
Undo the last action. This is
unauthorized if you format the document. |
Z |
All |
Redo |
Redo the last action. |
Y |
All |
Cut |
Cut the selection |
X |
All |
Copy |
Copy the selection |
C |
All |
Paste |
Paste the clipboard |
V |
All |
Copy XPath location |
Copy to the clibboard the current xpath location
at the caret. |
|
XML;XHTML;DOCBOOK |
Copy File location |
Copy to the clipboard the current file location |
|
All |
Select tag |
Select the whole tag |
T |
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK |
Select all |
Select the whole document |
A |
All |
Surround by a Tag... |
Surround the selection by a tag.
If a schema is available, the user has to select the surrounding
tag from the schema. |
ctrl shift T |
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK |
Surround by a Comment |
Surround the selection by an XML
comment. |
M |
DTD;XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK |
Surround by a CDATA Section |
Surround the selection by an XML
CDATA section. |
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK |
- Search menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Find... |
Search a character string in the
whole
document.
|
F
|
All
|
Search again
|
Repeat the last search
|
F3
|
All
|
Replace... |
Search and replace a character
string in
the whole document.
|
|
All
|
Search in a tree... |
Show a dialog box with a tree
clone to navigate in the whole document.
|
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
XPath... |
Show a dialog box for
searching
nodes by an XPath expression.
|
B
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Search using multiple criterias...
|
Search a part of the document
with XML criterias like a tag, an attribute name or value or
a namespace.
|
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Show next tag |
Move the caret
from the current location o the next tag. |
ctrl shift U
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Show previous tag |
Move the caret from the current
location to the previous
tag.
|
ctrl shift I
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Show the begin of the tag |
Show without moving the caret
the beginning of the tag.
|
ctrl shift L
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Show the end of the tag |
Show the end of the tag without
moving the caret.
|
ctrl shift P
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Go to line... |
Choose a line number where to
move the
caret.
|
G
|
All
|
- XML menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Check or Validate |
If a schema is available then
parse
and check the validity of the document. If no schema is available only
check if the document is well-formed.
|
K
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Format |
If the document can be checked
or validated then format the content with some tab characters.
|
R
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Comment... |
Insert or edit an XML comment.
|
|
XML;XSLT;XHTML;XSD;RNG;FO;DOCBOOK
|
Use a temporary schema for completion |
Generate an inner schema for
having a content assitant without available schema.
|
|
XML
|
Disabled / Enabled syntax popup |
Enabled/Disable the content
assistant.
|
|
All
|
XPath builder... |
Builder for general XPath
expressions. When editing an XSLT document, it applies only to the XML
data document.
|
|
XML;XSLT
|
XQuery builder...
|
Builder for XQuery expression.
Useful mainly for XSLT 2.0.
|
|
XML;XSLT
|
Compare to... |
Called "XML Differencing" it
compares
both XML documents and showes each change.
|
|
All
|
Insert a Character Reference...
|
Put a character reference like

 using a dialog box for choosing the decimal or hexadecimal
value
|
|
All
|
Locked/Unlocked tag update |
Avoid the user to corrupt a tag.
So when locking use can only update the text part.
|
|
XML;XSLT;XHTML;XSD;RNG;FO
|
XML Catalog...
|
Use a set of OASIS XML Catalogs
for working with custom DTD or Schema location
|
|
ALL
|
- DTD/Schema menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Assign DTD to document... |
Insert a DTD declaration inside
the current XML document. |
|
XML |
Assign W3C XML Schema to document... |
Insert a W3C XML Schema
declaration inside the current XML document. Note that the user will
have to move the inserted part if the initial document was not empty. |
|
XML |
Assign XML Relax NG Schema to
document... |
It will bind your document to a
Relax NG schema. Thus the code assistant and the "Check or Validate"
action will work with it. Note that using a project you can save this
relation. |
|
XML |
Check this DTD |
Scan the current DTD and check
for invalid declaration or usage. |
|
DTD |
Generate a DTD from this document |
Generate a new DTD from the
current XML document. Thus the user will be able to validate its
document. |
|
XML |
Generate a W3C XML Schema from this document |
Generate a new W3C XML Schema
from the current XML document. Thus the user will be able to validate
its
document. |
|
XML |
Generate a documentation from this DTD |
Generate an HTML documentation with the DTD content |
|
DTD |
Convert DTD to W3C XML Schema |
Convert the current DTD to a W3C
XM Schema. |
|
DTD |
Convert DTD to XML RelaxNG |
Convert the current DTD to a XML
RelaxNG Schema. |
|
DTD |
Convert XML RelaxNG to W3C XML Schema |
Convert the current XML RelaxNG
schema to a W3C XML Schema. |
|
RNG |
Convert XML RelaxNG to DTD |
Convert the current XML RelaxNG
schema to a DTD. |
|
RNG |
- XSLT menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Assign XSLT to this document... |
Insert an XML processing
instruction for binding an XSLT document to the current one. Thus some
browsers like IE will transform the document
automatically.
|
|
XML;DOCBOOK
|
Assign CSS to this document... |
Insert an XML processing
instruction for binding a CSS document to
the current one. Thus some browsers like IE will transform the document
automatically. |
|
XML;DOCBOOK
|
Transform using XSLT... |
It will display a dialog box
with the XSLT parameters like the data source, the XSLT document and
the final result document. Once the parameters fixed, the
transformation will operate.
|
|
XML;DOCBOOK
|
Transform a document with this XSLT... |
This is very similar to the
previous one except the XSLT document will be the current one. Once the
parameters fixed, the transformation will operate. |
|
XSLT
|
Enabled/Disabled XSLT completion |
By default enabled, if disabled
the content assistant will not be shown for avoiding conflicts between
the stylesheet tags and the result document tags.
|
|
XSLT
|
Start XSLT debug |
Start the XSL transformation in
a debug mode for analysis the way the processing is completed. This
action requires to have at least one breakpoint.
|
|
XSLT
|
Run until the next breakpoint |
Run in a debug mode to the next
breakpoint.
|
ctrl shift B
|
XSLT
|
Run step by step |
Run in a debug mode until the
next tag.
|
ctrl shift E
|
XSLT
|
Terminate XSLT debug |
Conclude the XSL Transformation
in a debug mode. It will show the final result.
|
|
XSLT
|
List of breakpoints |
Display a dialog box with the
user's breakpoints
|
|
XSLT
|
Repeat last transformation |
Redo the last XSL transformation.
|
J |
XML;DOCBOOK;XSLT
|
- FO menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
FO Transformation... |
Display a dialog box for
choosing the parameters of the FO Transformation like the final
document type (PDF...).
|
|
FO
|
Repeat last transformation |
Repeat the last transformation
with the parameters from the previous item.
|
|
FO
|
- DocBook menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
DocBook Transformation... |
Display a dialog box for
choosing the parameters of the DocBook Transformation like the final
document type (PDF...).
|
|
DOCBOOK
|
Repeat last transformation |
Repeat the last transformation
with the parameters from the previous item.
|
ctrl shift J
|
DOCBOOK
|
- Options menu
Menu item |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Preferences... |
Display a dialog box with the
user's preferences. Such preference will modify the way EditiX is
working. Note that it is required to restart editix after changing a
value. |
|
All |
External Tools... |
Show a dialog box for running an
external command. This command can contain some macros like the current
document path... |
|
All |
Check the last version... |
It will ask to the EditiX site
the last available version. |
|
All |
Install a custom parser... |
Install and use a java JAXP
compatible XML parser |
|
All |
Install a custom transformer... |
Install and use a java JAXP
compatible XSLT transformer |
|
All |
Clean the last opened files history... |
Remove the file from the open recent submenu in the file menu |
|
All |
- Template menu
Document type |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Edit templates... |
This is a dialog box for
updating the templates parameters like the assigned extensions or the
icon...
|
|
All
|
Generate a minimal template... |
It will analysis the current
document and produce a minimal document that can be used as a template
for the next usage.
|
|
All |
Insert template param |
It will insert a template
parameter (current date, version, author, encoding...) used when
creating a new document from the template
|
|
All |
- View menu
Document type |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
Split/Unsplit Vertically |
Split or unsplit the current
document vertically. Thus the user can modify one view and look at
another
one. |
|
All |
Split/Unsplit Horizontally |
Split or unsplit the current
document horizontally. Thus the user can modify one view and look at
another one. |
|
All |
Hide/Show tree |
Hide or show the document tree.
Hide will maximize the user editing space. |
|
All |
Select... |
Display a dialog box for
selecting a document from its file path. |
|
All |
Windows |
Sub menu with all the windows (shown in the left panel side). |
|
All |
Extract the current editor |
Will open the current editor in a new individual window. This is useful when requiring to compare multiple documents. It can be used too on the editor tabs with a popup menu. |
|
All |
Extracted editors |
Show the extracted editors due to the previous action. This the selected window will be put in the frontground. |
|
All |
HTML preview |
Show a dialog box with a preview
of the current XHTML document. This previous is limited to HTML 3.2
standard. For more details, you will have to use an external browser. |
|
XHTML |
SVG preview |
Display a dialog box with an SVG
preview. Take a little delay into account before the first content
display. |
|
All |
- Help menu
Document type |
Role |
ctrl or
command + shortkey (except if alt or ctrl is specified before) |
Document type |
User Manual... |
The Editix Manual download from http://www.japisoft.com/doc-editix/manual/index.html |
|
All |
User interface... |
It will generate and show an
HTML document will all the menu content and each item tooltip. |
|
All |
Tip of the day... |
Display a tip for the day. This
dialog box can be shown when starting editiX. |
|
All |
FAQ... |
This is a minimal documentation
about XML and XSLT. It contains some external references for learning
more. |
|
All |
Support... |
Dialog box with all the links
for contacting the editiX team. |
|
All |
Reference documentation |
Standard HTML references mainly with W3C links. |
ctrl + 1 ... n or alt + 1 .. n |
All |
Release NEWS... |
It displays the list of changes
for each version |
|
All |
Report a bug... |
Report a bug if your internet
connection is enabled |
|
All |
Feature request... |
Send a feature request if your
internet connection is enabled |
|
All |
Reporting List... |
List of the last reported bugs
or suggests with the support replying |
|
All |
Register... |
Dialog box for unlocking editiX.
It requires to buy a key at http://www.editix.com/buy.html |
|
All |
About... |
Set of information about the
product version. |
|
All |
d. ToolBar content
- Default :
Icon
|
![NEW](images/document_new.png)
|
![OPEN](images/document_add.png)
|
![SAVE](images/disk_blue.png)
|
![SAVE TO](images/disk_blue_ok.png)
|
![UNDO](images/undo.png)
|
![REDO](images/redo.png)
|
![CUT](images/cut.png)
|
![COPY](images/copy.png)
|
![PASTE](images/paste.png) |
![FIND](images/find.png)
|
![REPLACE](images/find_text.png)
|
![PARSE](images/text_ok.png)
|
![FORMAT](images/text_code.png)
|
![SPLIT VERT](images/window_split_ver.png)
|
![SPLIT HOR](images/window_split_hor.png)
|
Role
|
New document
|
Open a document
|
Save the current document
|
Save the current document to
another path.
|
Undo
|
Redo
|
Cut
|
Copy
|
Paste
|
Find
|
Search/Replace
|
Check or validate the current
document
|
Format the current document
|
Split vertically
|
Split horizontally
|
Shortkey*
|
ctrl N
|
ctrl O
|
ctrl S
|
|
ctrl Z
|
ctrl Y
|
ctrl X
|
ctrl C
|
ctrl P
|
ctrl F
|
|
ctrl K
|
|
|
|
* on Mac OS X the ctrl key is replaced by the "command" key.
- For XSLT document :
It contains the default toolbar and also this content.
Icon
|
![ELEMENT](images/element_stop.png)
|
![DEBUG_RUN](images/breakpoint_run.png)
|
![DEBUG_NEXT](images/breakpoint_into.png)
|
![DEBUG_ELEMENT](images/breakpoint_down.png)
|
![DEBUG_STOP](images/stop.png)
|
![TRANSFORM](images/transform.png)
|
Role
|
Enabled/Disable the content assistant
|
Start degugging
|
Run until the next breakpoint
|
Run step by step
|
Stop debugging
|
Apply a transformation
|
Shortkey
|
|
|
ctrl shift B
|
ctrl shift E
|
|
|
- For DTD document :
It contains the default toolbar and also this content.
Icon
|
![PARSE_DTD](images/text_ok.png)
|
Role
|
Analysis the DTD
|
Shortkey
|
|
e. Status bar
The status bar located at the bottom of the screen has the following
sections from the left to the right :
Background task
|
XPath location for the caret
|
Error message
|
Column : Line
|
Caps key status
|
Num lock key status
|
- Background task :
It displays the following icon
when a background task is working.
It can be :
- An XSL Transformation
- A DocBook Transformation
- An XSL-FO Transformation
By clicking on this icon, the user can visualize the current tasks.
When a task is terminated, a dialog box is
displayed and if there's no background tasks the icon disappears.
- XPath location for the caret/cursor :
This is an XPath location from the current caret/cursor location. This
XPath
location has the following structure :
/tag[ number of node ]/tag...
/a/b[2] means the second 'b' element from the root 'a'.
- Error message :
An error message appears while checking or validating a document (XML
or DTD) or while transforming a document. When detecting multiple
errors a red icon is added. By clicking on this icon, the user can
visualize all the errors from an external list.
f. File browser
The File browser is a left tree available with the bound item of the
File menu or the View menu. This tree browes your home directory by
default. This tree maintains the last selected element (file or
directory) even when closing and reopening EditiX.
For using the browser, you must select a filter with the document you
want to open and click on the "Open" bottom button.
Inside the tree you can rename an element by double-clicking or moving
a file using a drag'n drop. There's also actions inside a top toolbar
for refreshing the current directory content, creating a new directory
or a new file and deleting the current file or directory.
Note that the current tree selection is saved with your project.
A shortcut key ctrl alt F is
here for opening or closing the File browser.
2. File management
EditiX supports several ways for editing a file. Basically the file
system is supported, but it is also possible to load and handle a
document by a remote access like FTP. We describe here the way the user
can manage its files.
a. Standard file access
A file is accessed following the user environment locally or by a
network. In all theses cases, it is mapped to a file system. When
loading a document from the file system, editiX has to guess the right
document type. For helping it, the user has to choose a filter matching
the good document type from the file
dialog box. For each filter a set
of documents are highlighted depending on the document type extensions.
These extensions are defined from the template dialog box. We write
here the default extensions with the bound document type.
Document type
|
File
extension
|
Standard XM document
|
xml
|
Document Type Declaration (DTD)
|
dtd
|
Text
|
txt
|
XSL Transformations
|
xsl
|
XHTML 1.0 document
|
html;htm
|
DocBook
|
xml
|
W3C XML Schema
|
xsd
|
XM RelaxNG Schema
|
rng
|
Mathematical Markup Language
(MathML) 1.0
|
mml
|
Scalable Vector Graphics (SVG)
1.0
|
svg
|
XSL-FO
|
fo
|
ANT
|
xml
|
TIP : If you want to
select another document without having the right file extension, select
the filter "All the files" and
select the right file and select the document type choosing
the good filter.
The user can update a file extension by editing a template from the
"Template" menu and the "Edit templates..." item.
When using multiple extensions, a ';' must separate each extension for
instance "htm;html".
When opening a same file more than once, EditiX will advertise the user
that the document is already
edited, but the user will have also the option to continue having
multiples times the same document.
When closing a document, editiX will check if the document has been
modified since the last opening
moment. For this last case a dialog box will ask the user to save its
work before closing. This is similar
when closing all the opened documents.
The following shortkey : ctrl
(or command for MAC) S for
saving the current document is useful.
b. Remote file access
As a facility, EditiX provides several protocols for editing a
document.
Here the following protocol for file format included :
- FTP (File Transfer Protocol) access : Menu File, Item "Open by
FTP..."
- WebDAV access : Menu File, Item "Open by WebDAV..."
- ZIP or JAR file format : Menu File, Item "Open by ZIP..."
The first and the second require to choose an host name, a user account
and a user password. As it uses the network, a proxy
may be specified with the proxy preference (Menu "Options" and the Item
"Preferences..."). The last protocol needs an archive file
mainly with the zip or jar file extension. It is advised not to update
an archive > 10 Mb for memory saving.
Here the following supported actions :
Name
|
Role
|
Browse / Close
|
Browse the content of the remote
resource or an archive file. Once the browsing is authorized, the user
can
close the connection after usage.
|
New
|
Create an empty file from the
current browsed directory.
|
Delete
|
Delete the selected file. It
doesn't delete a directory.
|
Rename
|
Rename the selected file. The
new name must'nt contain the absolute path.
|
Unlock / Lock
|
This is only provided for the
webDAV protocol.
|
For browsing into a directory, the user has to double-click on a
directory. The behavior is
similar between ftp, webDAV or zip. By pressing the "Ok" button, the
selected file is
edited. For saving a document content the user must use the standard
"Save" action. Note that
if the "Save as..." action is used, it will not work with the initial
resource location but only
on the file system. The last user parameter and the last selected file
is saved by EditiX, so for
editing again a document, it isn't required to browse on the specific
resource but only to click on the
"Ok" button. Note that the "Open recent..." menu item is not updated
with the
last selected resource from
this way.
c. Project
For displaying the project panel, use the File/Project/Project Manager menu item or the View/Windows/Project Manager menu item. This panel contains your favorite files with the respective parameters like transformation (XSLT, FO), maximized state... Note that when a file is not found it is colored in red.
Note : If you leave EditiX having this panel opened, it will be restored automatically at the next EditiX call.
A project is stored in a file with the ".pre" extension. You may save/load your project or use the default one.
Toolbar actions :
Put the current opened document into the selected project node
Add a new group
Edit the group name
Delete the selected node (group or file)
Lock enabled : The current project file will be loaded automatically when editix's loading
Menu File / Project :
- ProjectManager : Show or hide the project panel. Note that it will save the project panel visibility for the next editix usage
- Open project... : Open a project file (*.pre)
- Save project : Save the current project file (*.pre)
- Save project as... : Save the current project file (*.pre)
- Export project as a ZIP document... : Export the project content in a zip. Note that it will create relative paths even for XSLT transformation... So your ZIP file can be reused on another machine and can work directly.
- Action / Open the selected file : Open the selected file from the project
- Action / Add the current document : Add the currenct opened document to selected project node.
- Action / Add a folder : Add a folder to the selected project node.
- Action / Rename a folder : Rename the selected project folder.
- Action / Delete a file reference or a folder : Delete the selected project node. Note that, it will not delete physically your file.
- Check project files : Check all files from the project. When a file is not found it is shown in red.
- Lock the project state for the next editix usage : A way to store the project panel state for the next usage.
Drag'n and drop is both available for project nodes (group or file) or from the file system. For opening your document just double-click on the file node, if the document is already opened it will be selected. When leaving the project, the visible files are saved and will be restored the next time the project will be visible.
3. Editing
The EditiX editing part is built on a tree / text synchronization
system. These system gives to the user
a confortable way to navigate by the tree and updating a document by
the text. When a schema is
provided (DTD, W3C XML Schema or RelaxNG) a content assistant is
available. This content
works both on the available tags for a location and the available
attributes and values.
a. Tree
The tree is another view of the text part. The tree is always
synchronized with the document content and
the current document location. When a tree can't be synchronized to the
text due to a user document error
this icon is located at the root
. By
clicking on this icon, the user can visualize the error on the
text part. A tooltip is also available with a message summing up the
problems.
User can select a node by clicking on the tree, thus the corresponding
element is selected inside the text. It is also possible to move or
copy a node by dragging and dropping
the good content (Due to a problem with the JDK implementation on Mac
OS X, this action is
reserved to Unix/Linux and Windows).
We list here the available tree actions :
Action
|
Role
|
![COMMENT A NODE](images/note_pinned.png)
|
Comment the select node. If a
comment is located inside the node, this action is rejected so in this
case commenting the node will need to remove all inner comments.
|
![COPY](images/copy.png)
|
Copy the selected node and its
content.
|
![CUT](images/cut.png)
|
Cut the selected node and its
content.
|
![PASTE](images/paste.png)
|
Past the last copied or cut node.
|
![FILTER](images/text_tree.png)
|
Switch to another tree view. We
detail it after.
|
A filter
displays each tree nodes with
several methods we describe below :
- Default : The local node name is displayed with the first
attribute value if available. If the node has more than one attribute a
"..." content is added
- Prefix : The namespace prefix is displayed followed by the local
node name. If there's no namespace prefix a "?" text is shown.
- Namespace : This is the namespace value followed by the local
node name. If there's no namespace a "?" text is shown.
- Qualified name : This is the prefix and the local name.
For example with this node : <ns:node
xmlns:ns="http://www.japisoft.com" att1="value"/> the
previous filters will show theses values :
Default filter
|
node
value
|
Prefix filter
|
ns
node
|
Namespace filter
|
http://www.japisoft.com
node
|
Qualified name filter
|
ns:node
|
b. Editor
The editor content is synchronized with a tree view except for the TEXT
and DTD document types. The editor is a space
for updating a document. For the document types containing XML content,
the
editor controls that the user inserts a well-formed XML
content and signals in the other case by a message the problem to the
user. The editor underlines with a red line the user
errors inside the text and the status bar contains the error details.
Each time the caret/cursor is updated, the status bar contains
the XPath location except for the attribute or value of a tag. For
sample "/content/node1[10]" means that the caret/cursor is located
in the node 10 of the document root "content". This xpath
location can be stored inside the clipboard calling the "Copy XPath
location"
item of the "Edit" menu.
The current node is located both with a left bar and by underlining the
beginning and the ending part of the node. The "Search" menu includes
actions for going to the beginning and the end of the current
node. Note that the left bar contains a single action displayed as a
square for
selecting the current node. This left bar is also colorized in red when
an error occur with a tooltip containing the main
error.
Inside the XSLT document type editing, the left bar is larger and the
user can add/remove breakpoints. These breakpoints are also
available from the "List of breakpoints" item of the "XSLT" menu.
By clicking on
or
,
the editing is splitted and the user can visualize a part of the text
while editing another one.
c. Content assistant
A content assistant is available inside the editor part. This content
assistant will change depending on the document type. There's
several content assistants, each one can be accessible with a previous
user sequence. In all the cases, when available the content assistant
doesn't
avoid the user to insert any text but it filters the possibilities
depending on the current inserted sequence, the availability of a
schema or
the document type.
- Default
This is available when inserting "<!". It offers an XML declaration,
a Comment or a CDATA section.
- DTD
It is available when inserting a "<!" sequence. This is a simple
list of the available DTD parts like ELEMENT, ATTRIBUTE, ENTITY or
NOTATION.
- A document with a schema
This last case is the more complex one and works with the following
schemas :
- DTD
- W3C XML Schema
- XML RelaxNG
The DTD is detected when your document contains the following content
sample :
<!DOCTYPE root SYSTEM
"file://myDTD.dtd">
This sequence comes before the previous document element. The path can
be absolute or relativly to the document location.
It is also possible to use an HTTP protocol like
"http://www.japisoft.com/myDTD.dtd" as a path.
The W3C XML Schema is detected when your document contains the
following content example :
<root
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="file://mySchema.xsd">
The path works in a similar way than the DTD, so it can be absolute or
relative or even be an HTTP url. Note that is is also
possible to use the "noNamespaceSchemaLocation" attribute name rather
that "schemaLocation".
The tag content assistant is available when inserting the '<'
character. The attribute name assistant is
available when inserting a space inside a tag defintion. The attribute
value assistant is available when inserting a double-quote or a quote
before an attribute value. The content assistant can be called using
the ctrl + space combination.
For RelaxNG, the user has to use the "XML" menu and the "Use XML Relax
NG..." item. By selecting it, a dialog box will
prompt the user to choose an XML RelaxNG document. Once selected both
the content assistant and the "Check or Validate"
action will work with this selected RelaxNG document. Note that the
user needn't to set this value each time it uses this document
by saving a project. This last act will save all the user parameters
and the next time the project is loaded the content assistant will work
automatically with the relagNG document.
- Any XML document without a
schema
This feature is available by the "XML" menu and the "Use a temporary
schema for completion" item. This action will generate
an inner schema usable by the content assistant. For remark, this is
generally better to generate a schema using for instance the
"DTD/Schema" menu and generating a W3C XM schema or a DTD.
d. Namespace Manager
The namespace manager is available inside the XML menu. This is a
wizard for adding / removing namespace definitions or setting the
current namespace. This user interface works with the selected node
inside the text editor.
This dialog contains a table with three columns :
- A namespace prefix : This is a prefix definition or a bound
namespace for the current node (meaning the definition is inside an
ancestor node)
- A namespace URL : This is the namespace URL bound to the prefix.
When a node is "qualified" it is inside this namespace URL.
- A current flag. This flag is for deciding what is the current
namespace. There's only one activated flag because a node can't be
assigned to several namespaces.
When adding a namespace definition without a prefix then a default
namespace is added (under the format xmlns="...").
Here a sample with namespaces :
<p1:element1 xmlns:p1="http://www.p1.com"
xmlns:p2="http://www.p2.com">
<p2:element2/>
</p1:element1>
We have two namespace definitions for the URL http://www.p1.com and
http://www.p2.com. The node "element1" is inside a namespace mapped to
the URL http://www.p1.com and the node "element2" is mapped to a
namespace with the URL http://www.p2.com.
4. Templates
A template is a document that can be reused for creating a new
document. Basically a template is
a content with several parameters. One major parameter is the document
type (look at this section 1.b.).
a. Creating a template
Creating a template is available by the "File" menu and the "Save as
template...". All new templates are
stored in the user directory .editix/template.
Note that this is possible since the 3.0 to update a template
content, in this last case
the user has to remove the bad one and save a new one.
When saving a template, the current document type will be used, a
dialog box will ask for the template name. This
template name will appear the next one by creating a new document.
b. Updating a template
Click on the "Edit templates..." item from the "Template" menu for
updating a template. Several actions are
available :
- Edit : The template (default one or not) will be editable inside
EditiX.
- Remove : Remove the selected template. This action is disabled
for the default templates.
If the user clicks on the "cancel" action none of the previous actions
will be take into account. For updating a template content,
the template must be removed by the "Remove" action and saved again
with the "Save as template..." action from the
"File" menu.
c. Using parameters
A template can have macros from the "Template" menu under the
"insert... param" items. Each time an item is activated
an element under the format ${name}is inserted at the current
caret/cursor
location. Theses elements will be resolved when creating
a new document from the template. We provide below the meaning of these
elements.
- ${date}: Insert the current date/time
- ${cursor} : The caret/cursor will be at this location
- ${default-encoding} : This is the default document encoding like
UTF8 available from the File menu.
- ${lastname}, ${firstname}, ${address}, ${phone}, ${email},
${company} : User information
Here a sample of template for defining a default XML document.
<?xml version="1.0" encoding="${default-encoding}"?>
<!-- New document created at ${date} -->
${cursor}
c
5. XML Differencing
XML Differencing is a technology for comparing two XML documents. This
is a
tool that navigates through each
tree content and searches and showes the differences node by node like
a "node moved" or with "other attributes".
This tool is available from the "XML" menu under the "Compare to..."
item. When activating it, a dialog box
is shown.
This interface is composed of three parts :
- The left tree which is the current document (or a new selected
one)
- The right tree which is another XML document choosen by the user
- A summary table for each selected node from one of the previous
trees.
Selecting a document is accessible by clicking on this icon
or by inserting a path in the left field.
If your XML document
is not well-formed a dialog box will show you this is impossible to
compare this document to another one.
Once both documents are choosen, EditiX will show you the differences
inside the tree with the following icons and colors :
![ADD](images/add.png)
|
Element
added
|
![attribute](images/element_down.png)
|
Element
moved
|
![ELEMENT](images/element.png)
|
Element equal
|
![ELEMENT_DOWN](images/nav_down_right_green.png)
|
At
least, one different descendant
|
![MINUS](images/minus.png)
|
Element
removed
|
Each time the user selects a tree node, a summary table below is
updating with each known changes including all the descendants. By
clicking
on a table line the bound tree node is selected. A summary table is
also available from the right tree with the opposite content from the
left tree.
Note that there's no icon or color for attributes or text changes but
this is available inside the summary table.
a. Comparing the
current document to another one
When comparing two similar documents a dialog will display a message
"Both documents are equal". When editing a document, by clicking
on the "Compare to..." item from the "XML menu" the left document will
be automatically the current one and the user has just to select the
right document. When clicking on a tree node, the similar text part is
selected thus the user can modify its document for adapting to the
change.
For comparing again the document the user must press the "enter" key
inside the field containing its document location.
b. Diff content
Here we comment the summary table content. We have notified before that
by selecting a node inside a tree we have a list of changes of all its
descendants. The summary table has two parts :
- The "Change" column with a name for classifying the difference :
"attribute removed, attribute added, attribute changed, element
different,
element added, element removed, element moved"
- The "Content" column which contains the detail about the change.
For the case of an attribute this is the name or the value of the
attribute. For the case of an element this is the name of the tag.
Here a sample of summary table for the left tree :
Change
|
Content
|
Meaning
|
attributed removed
|
icon
|
The "icon" attribute has been
removed. Click on this line for selecting fastly the good node.
|
attribute added
|
doc
|
The "doc" attribute has been
added. Click on this line for selecting fastly the good node.
|
Element added
|
toolbar
|
The "toolbar" tag has been
added. Click on this line for displaying where it is located inside the
tree.
|
attribute changed
|
id=fo
|
The attribute "id" has a value
"fo" which is not equal to the "id" attribute compared to the right
document. Click on this line for showing the bound node inside the tree
|
6. XML Schema
A schema is a way to detect a document matching a grammar. So this is a
set of rules for defining a grammar. When
"checking or validating" by this action
, EditiX will check if
this document has a schema and will "validate" automatically
if the document matches the bound grammar. When a document has no
schema, EditiX will only check if the document
is well formed from the XML point of view.
EditiX works with three schemas :
- A DTD (Document Type definition) which is a very common and
simple way to check a document
- A W3C XML Schema which is a pure XML schema that is more precise
and complex than a DTD
- A XML RelaxNG Schema which is may be between the DTD and the W3C
XML Schema
a. DTD
A DTD is not an XML document, it defines the legal building blocks of
an XML document.
Here a sample :
<!ELEMENT root ( child1, child2 )>
<!ELEMENT child1 #PCDATA>
<!ELEMENT child2 #PCDATA>
It means that the root element must be a child node "child1" followed
by a child node "child2". Both children
has a text content declared as a #PCDATA. For learning more about a DTD
look at this link.
For building a new DTD, the user must activate the "New..." item from
the "File" menu and choose the DTD item
inside the template list. Once choosen a dedicated editor is opened. Note
that this editor doesn't contain a tree due
to the way a DTD is structured. This editor has a content assistant
when the user insert this "<!" sequence. A
toolbar contains this action
(or from the "DTD/Schema" menu) for checking the content of the DTD. If
a problem
is detected the status bar will contain the error message.
Rather than building a new DTD, it is possible to generate a new one
from a document instance. For using this
feature, you must edit an XML document and use the "Generate a DTD from
this document" from the "DTD/Schema" menu.
A DTD will be generated factoring all the common points of your
document, be sure that your document doesn't contain
some wrong parts before generating a new DTD.
Once your DTD terminated you just have to save it. The file name will
be terminated by the extension "dtd".
For using a DTD, it is required to assign it to your XML document. This
action is possible with the "Assign DTD to
document..." item from the "DTD/Schema" menu. You must being editing an
XML document for that. When activating
this item a dialog box is
shown and the user has to select the root node of the document (if it
isn't filled automatically) and
a path to the DTD. This action will generate a new line inside the
current XML document containing a similar declaration :
<!DOCTYPE root SYSTEM
"file://myDTD.dtd">
Meaning 'check if the document starting with a root node matches the
grammar of the DTD shema located inside myDTD.dtd path'
By default the declaration contains an absolute path which may
be wrong if you move your schema or your document to another machine.
For avoiding this problem, it is possible to use a relative path from
the current document path. For instance :
<!DOCTYPE root SYSTEM
"myDTD.dtd">
Meaning 'Check if the document starting with a root node matches the
grammar of the DTD schema located at the same document path inside a
myDTD.dtd document'
It is also possible to use an URL like that
<!DOCTYPE root SYSTEM
"http://www.mysite.com/myDTD.dtd">
Meaning 'Check if the document starting with a root node matches the
grammar of the DTD schema located inside the www.mysite.com web site
inside a myDTD.dtd document'
For checking that a document matches a DTD the action
is available from the toolbar or from the "XML" menu.
Note that it is possible to convert a DTD to a W3C XML Schema or to an
XML RelaxNG schema from the "DTD/schema" menu.
b. W3C XML Schema
A W3C XML Schema is an XML document containing some rules for
validating that an XML document matches a grammar. For learning
more about W3C XML Schema, look at this link.
Here a sample of an W3C XML Schema for a document starting by a "root"
and containing a sequence of two children "child1" and "child2" that
contain a text content.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element ref="child1" minOccurs="1" maxOccurs="1"/>
<xs:element ref="child2" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="child1" type="xs:string"/>
<xs:element name="child2" type="xs:string"/>
</xs:schema>
For building a new W3C XML Schema the user must activate the "New..."
item from the "File" menu and choose the W3C XML Schema
line. An editor for XML document will be opened. The content assistant
will help you to choose your tags or attributes.
Rather than building yourself a W3C XML Schema it is also possible to
let editiX generating a new one from an XML document instance.
For using this feature you must open an XML document and use the
"Generate a W3C XML schema from this document" item of the
"DTD/Schema" menu.
After building a schema, you must assign it to your XML document. For
acting, you have the "Assign W3C XML Schema to document..." item
from the "DTD/Schema" menu.
Here a sample for the result choosing an external test.xsd schema :
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///home/japisoft/test.xsd">
</application>
Meaning 'check if the document
starting by the application element validates the schema located in the
test.xsd file'.
Note that editiX will update your document root maintaining your
previous attributes.
<application att1="value1" att2="value2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test.xsd">
</application>
Meaning 'check if the document starting by
the application element validates the schema located in the test.xsd
file in the same path of the document'.
It is also possible to assign a schema from an URL location like this :
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mysite.com/test.xsd">
</application>
Meaning 'check if the document
starting by the application element validates the schema located in the
www.mysite.com web site inside the
test.xsd file'.
For checking that a document matches a W3C XML Schema the action
is available from the toolbar or from the
"XML" menu.
c. XML RelaxNG
An XML RelaxNG is a recent schema that is more simple that a W3C XML
Schema and more precise than a DTD. The wrong side is
that this is not a part of the XML spec and so there's no official way
to assign an XML RelaxNG to an XML document. However, editiX
provides a way to do that. For learning more about XML RelaxNG look at
this link.
Here a sample of an XML RelaxNG Schema for a document starting by a
"root"
and containing a sequence of two children "child1" and "child2".
?xml version="1.0"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<ref name="root"/>
</start>
<define name="root">
<element>
<name ns="">root</name>
<group>
<ref name="child1"/>
<ref name="child2"/>
</group>
</element>
</define>
<define name="child1">
<element>
<name ns="">child1</name>
<empty/>
</element>
</define>
<define name="child2">
<element>
<name ns="">child2</name>
<empty/>
</element>
</define>
</grammar>
For building a new XML RelaxNG use the "New..." item from the
"File" menu and select the XML RelaxNG element.
For assigning an XML RelaxNG document to an XML document, you must use
the "Use XML RelaxNG..." item from the "XML" menu, a dialog
box will wait the user to choose a location for the RelaxNG document.
Such document path terminating by a "rng" extension. Once assigning,
the content assistant will operate with this schema and the document
validating will work too by cliking on the
action from the toolbar
or the "XML" menu. Each time you choose RelaxNG, you will have to
assign
it. However a shortcut is available by saving your document
inside a project calling the "Save project..." from the "File" menu.
Then the next time you will load the project, editiX will assign
automatically
the RelaxNG document to you document and you won't need to assign it.
The user can convert an XML RelaxNG schema to a W3C XML Schema or a DTD
using the "DTD/Schema" menu.
7. XSLT document
An XSLT document (v1.0 or v2.0) is a set of rules for converting an XML
document to
another document. EditiX works with XSLT in two ways :
Here a link for learning
more about XSLT.
The multi-view XSLT Editor
has three main parts :
- An XSLT Editor in the center which is a standard XML editor with
an adapted content assistant
- A DATA Source view which is not editable but where the user can
evaluate XPath expressions
- A Result view which contains the transformation result
document. This view has two modes : The Source mode which is a text
result view and an HTML 3.2 preview.
User can drag'n drop a node from the Data source to the XSLT editor for building template, for-each or value-of instructions.
The XSLT Debugger has five
main parts :
- An XSLT Editor in the center which is a standard XML editor with
an adapted content assistant
- A set of breakpoints located beside the XSLT Editor
- A DATA Source view which is not editable but where user can
evaluate XPath expressions
- A Result view which contains the transformation result
document. This view has two modes : The Source mode which is a text
result view and an HTML 3.2 preview.
- A Debugging data view at the same location than the result view.
a. Basic Transforming
For running an XSLT transformation, the user has to click on the
transformation icon
. If the current document
has no location path, a dialog box will invite the user to save it. A dialog box is displayed for
inserting the transformation
properties. This dialog box contains the following properties :
- XSLT file (required) : This is the current document path. This
field must be specified only when transforming from an XML document.
- Data file (required) : This is the data document used by the XSLT
document for producing a final document
- Result file (required) : This is the result document from the
transforming of the Data file by the XSLT file
- Check box for opening the result file (optional) : When this
element is pressed and the transformation is terminated, the result
document is automatically opened as a new editix document. Most of the
time it should be non-pressed.
- Set of parameters (optional) : This is a set of XSLT parameters
we describe below
For using XSLT parameters, the user must declare the needed parameters
inside the XSLT document under the root node : As sample :
<xsl:param name="test1"></xsl:param>
...
A parameter value is used with this expression sample :
<xsl:value-of select="$test1"/>
Once the XSLT properties fixed, the XSLT transformation can operate in
background. "In background" means that the user can continue
working while the transformation is operating. An icon
located inside the status bar showes that something is working in
background. When
terminating a message is displayed to the user. If an error is
detected inside the XSLT document like a wrong XPath expression or an
invalid XSLT usage the line that contains a problem is highlighted and
a message is shown inside the status bar. At the final step, the
Result file is updated and the user can visualize the result in a text
format or in HTML 3.2 format.
b. Assign an XSLT
document
Assigning an XSLT document is a way to bind an XML document to an XSLT
document. This is managed mainly by a web browser like IE. This
action will not affect the way the XSLT transformation will work. User
can assign it for a current XML document using the "XSLT" menu by
activating the "Assign XSLT to this document..." item. A file dialog
will ask the user to select an XSLT document. At the final step a
similar
declaration will be added to the current document :
<?xml-stylesheet type="text/xsl" href="file:///home/test/test.xsl"?>
As this is an absolute path, it may be better to replace it by an http
access or a relative path.
c. XSLT Debug
The XSLT debugger is a
powerful way to control what's happened while a transformation is
operating using the version 1.0 or 2.0 of
XSLT.
Before starting an XSLT debugging session the user must place at least
one breakpoint. This breakpoint is located
in the left column of the editor. It must be placed beside a line
containing an XSLT element. When clicking this icon
is shown and the line is selected with
the same color.
If your XSLT parameters is not fixed a dialog box will invite you to
specify the data source file and the result document path. You can
also test once your XSL transformation by clicking on this icon
.
Here the available XSLT actions from the toolbar :
![DEBUG_RUN](images/breakpoint_run.png) |
Start the XSLT Debugging. It
will run until the first breakpoint
|
![DEBUG_NEXT](images/breakpoint_into.png) |
Run until the next breakpoint
|
![DEBUG_ELEMENT](images/breakpoint_down.png) |
Run step by step
|
![DEBUG_STOP](images/stop.png) |
Conclude the XSLT Debugging
|
When stopping to a breakpoint or when running step by step the debugger
showes the current line in a green color. In this case, the
user can analysis the current XSLT state from the bottom right view
which has a "Debug" container. Here the available values :
- "Call stack" : This is the previous XSLT elements processed. The
user
can click on a line for displaying the similar line inside the XSLT
editor. Two icons
and
are respectively for output elements
and XSLT elements (with an XSLT prefix).
- "XPath NodeSet" : This is the current XPath expression evaluated
with the found nodes. By clicking one a line, EditiX will display the
similar line inside the data source view. Two icons
and
are respectivly for available nodes
and for the current node.
- "Variables" : This is a set of accessible variables with their
name, type and value. By clicking on a line, EditiX will show you the
bound line inside your XSLT document.
For each breakpoint found by the debugger, the user can visualize the
current result state and see step by step how the final document is
built.
8. DocBook document
A DocBook document is an XML document for producing a pretty output
like in a PDF format applying XSL Transformation. For building
a new DocBook document the user has to select the "New..." item from
the "File" menu and select the DocBook template. When activating,
a new XML editor is shown and the user has accessed to the DocBook
menu.
Here a sample of DocBook document :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
<book>
<bookinfo>
<title>Your title</title>
<author>
<firstname>Your first name</firstname>
<surname>Your surname</surname>
<affiliation>
<address>
<email>Your e-mail address</email>
</address>
</affiliation>
</author>
<copyright>
<year>2004</year>
<holder role="mailto:your e-mail address">Your name</holder>
</copyright>
<abstract>
<para>Include an abstract of the book's contents</para>
</abstract>
</bookinfo>
<part>
<title>Part1</title>
<chapter>
<title>Part 1, Chapter 1</title>
<sect1>
<title>Part1, Chapter 1, Section1</title>
<para> Your Text </para>
</sect1>
</chapter>
</part>
</book>
Note that when loading a docbook document the user must specify a
docbook filter otherwise editix will believe this is a standard XML
document
and will not activate the docbook menu.
For learning more about DocBook look at this link.
a. Basic Transforming
Go to the "DocBook" menu and activate the "DocBook Transformation..."
item. A dialog box is
shown with the output type and the result
document path. The output types are available below :
- HTML
- HTML Help
- XHTML
- Java Help
- FO
- PDF
- XML
- PRINT
- PCL
- PS
- TXT
- SVG
When activating the transformation, as this operation can take a long
time this is working in background and the following icon
is available
inside the status bar for notifying the user something is built. Once
the transformation is terminated a dialog box is shown to the user.
b. Repeating the last
transformation
For repeating the last docBook transformation, the user must select the
"Repeat last transformation" item from the DocBook menu or by using the
ctrl-shift-J shortkey. If there's no previous parameters a dialob box
will appear for inserting the good ones.
By saving a project, the user parameters are saved too, thus the next
time the project is opened no more parameters are required.
9. XSL-FO
document
XSL-FO is an XML format for producing pretty print document using XSLT.
Here a link
for learning more.
Here a sample of FO document :
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my-page">
<fo:flow flow-name="xsl-region-body">
<fo:block>My text</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
For building a new FO document, the user must activate the "New..."
item from the "File" menu and select the XSL-FO item. The "FO" menu
content is accessible.
All the XSL-FO documents have a ".fo" file extension. If you
want to load a document that doesn't have this extension you can always
select
it once with a right filter and change at the last step the filter to
match the XSL-FO document.
a. Basic Transforming
For transforming by XSL your FO document the user must select the "FO
Transformation..." item from the "FO" menu. A dialog is shown and the
user must select the output document type and the result document path.
Below the available document types :
- PDF
- GUI Windows : It will open a dialog box with the transformation
result
- MIF
- XML
- PRINT
- PCL
- PS
- TXT
- SVG
Note that the operation will work in background and the following icon
from the status bar is here for reminding you that the transformation
is operating. When the transformation has been completed, a dialog box
is shown with a result message.
b. Repeating the last
transformation
For repeating the last transformation the user must activate the
"Repeat last transformation" from the "FO" menu. For saving the
parameters
it is required to save the document inside a project from the "File"
menu.
10. Document preview
EditiX contains several previews from the "View" menu.
a. HTML Preview
This is a simple HTML 3.2 preview. For activating this item from the
"View" menu, the user must edit an XHTML document. Note that
this preview doesn't manage all the XHTML standard and this is rather a
way for detecting wrong presentation that's why it is advised
to check your document with a full XHTML compatible tool like somes
browsers.
This HTML Preview is also embedded inside the XSLT Editor on the right
bottom part. The user has to select the HTML 3.2 output type for
visualizing its final document.
b. SVG Preview
This SVG preview is available from the "SVG Preview" item from the
"View" menu. This item is activated each time the
user is editing an SVG document. Such document is available from the
"Open..." item of the "File" menu and selecting the
"SVG" filter and by building a new one from the "New..." item.
Note that this SVG preview has some limitations and we list below the
supported elements :
<a> |
<altGlyph> |
<altGlyphDef> |
<altGlyphItem> |
<circle> |
<clipPath> |
<color-profile> |
<cursor> |
<defs> |
<desc> |
<ellipse> |
<feBlend> |
<feColorMatrix> |
<feComponentTransfer> |
<feComposite> |
<feConvolveMatrix> |
<feDiffuseLighting> |
<feDisplacementMap> |
<feDistantLight> |
<feFlood> |
<feFuncA> |
<feFuncB> |
<feFuncG> |
<feFuncR> |
<feGaussianBlur> |
<feImage> |
<feMerge> |
<feMergeNode> |
<feMorphology> |
<feOffset> |
<fePointLight> |
<feSpecularLighting> |
<feSpotLight> |
<feTile> |
<feTurbulence> |
<filter> |
<font> |
<font-face> |
<font-face-src> |
<font-face-uri> |
<foreignObject> |
<g> |
<glyph> |
<glyphRef> |
<hkern> |
<image> |
<line> |
<linearGradient> |
<marker> |
<mask> |
<metadata> |
<missing-glyph> |
<path> |
<pattern> |
<polygon> |
<polyline> |
<radialGradient> |
<rect> |
<stop> |
<style> |
<svg> |
<switch> |
<symbol> |
<text> |
<textPath> |
<title> |
<tref> |
<tspan> |
<use> |
<view> |
<vkern> |
11. User preferences
The user can adapt EditiX to its wishes by using the Preferences from
the "Options" menu.
Here the bound dialog box.
The preferences has two parts :
- A list of groups
- A list of preferences for the selected group
A preference is a pair of name and value. A value can be modified by
selecting it and pressing the
"enter" key. Once the preferences is modified, the user has to validate
its choice by pressing "Ok" and
restart EditiX.
Note that the user preferences are stored in a pref.prop document inside the
.editix directory from the
user home.
a. List of user
preferences
We describe below each user preferences by group :
- editor
Name
|
Usage
|
tagDelimiter
|
This is the color of the <
and > characters
|
selection
|
This is the background color for
the text selection
|
dividerLocation
|
This is the space in % the tree
used. 20 means the tree takes 20% of the global editing space
|
comment
|
This is the color of the XML
comment.
|
dtdentity
|
This is the color of the
<!ENTITY dtd declaration
|
dtdattribute
|
This is the color of the
<!ATTLIST dtd declaration
|
declaration
|
This is the color for
<?...?> XML declaration
|
litteral
|
This is the color of the "text"
inside XML documents
|
tag
|
This is the color of the tag
inside XML documents
|
attribute
|
This is the color of the
attribute name
|
docType
|
This is the color of the
<!DOCTYPE declaration
|
font
|
This is the editor's font
|
line
|
This is the left column color
|
lineWrapped
|
This is a mode for displaying
your document with wrapped line. Note that this preference will remove
the tag background color.
|
fullTextView
|
This is a mode for displaying
your document with all the XML parts, it will remove the tag background
color.
|
xsltbackgrond
|
Background color for each XSLT
tag.
|
namespace
|
This is the color of the tag
prefix <prefix:tag>
|
text
|
This is the color of the text
outside a tag
|
background
|
This is the editor's background
|
dtdnotation
|
This is the color of the
<!NOTATION dtd declaration
|
dtdelement
|
This is the color of the
<!ELEMENT dtd declaration
|
- file
Name
|
Usage
|
rw-encoding
|
This is the file encoding format
for
reading or writting in a file. This is required for the usage of a non
local document charset. The user can also modify it from the "File"
menu and
the "encoding" sub-menu.
|
defaultXSLTResultPath
|
This is the default path for the
resulting document.
|
tab-size
|
This is the size in characters
of the tab key.
|
defaultPath
|
This is the default path when
opening a document by the "Open..." menu item.
|
defaultXSLTPath
|
This is the default path when
assigning an XSLT document to an XML document.
|
- interface
Name
|
Usage
|
tipOfTheDay
|
This is for showing a
tip-of-the-day dialog when starting editiX
|
lookAndFeel
|
This is the general interface
look-and-feel.
|
beepForActionEnd
|
By default activated, it will
alert the user with a "beep" for the end of a background task.
|
initialDocument
|
The user can have an initial
empty document when starting editiX.
|
- proxy
Name
|
Usage
|
host
|
This is the IP address for the
proxy. Such proxy will be used for remote accesses by HTTP or FTP.
Insert
nothing for ignoring the proxy.
|
port
|
This is the TCP port for the
proxy. Such proxy will be used for remote accesses by HTTP or
FTP.
Insert 0 for ignoring the proxy.
|
- shortcut
Name |
Usage |
lastTransform
|
For repeating the XSL
Transformation
|
selectTag
|
Select inside the editor the
current tag
|
selectAll
|
Select the whole document
|
find
|
Search a text inside the editor
|
format
|
Pretty format the XML document
|
save
|
Save the current document
|
new
|
Create a new document
|
commentTag
|
Comment the current tag
|
open
|
Open a document from the file
system
|
nextTag
|
Move to the next tag from the
current location
|
surroundTag
|
Surround the current selection
by a tag
|
paste
|
Paste the last copy inside the
editor
|
cut
|
Cut the selection inside the
editor
|
previousTag
|
Move to the previous tag from
the current location
|
xpath
|
Build an XPath expression
|
print
|
Print the current document
|
surroundComment
|
Surround the selection by a
comment in the editor
|
redo
|
Redo the previous operation
|
parse
|
Check or validate the current
XML document
|
copy
|
Copy the current selection in
the editor
|
undo
|
Cancel the last operation
|
- template
Name
|
Usage
|
phone
|
This is used when creating a new
document from a template
|
firstname
|
This is used when creating a new
document from a template |
company
|
This is used when creating a new
document from a template |
email
|
This is used when creating a new
document from a template |
lastname
|
This is used when creating a new
document from a template |
default-encoding
|
This is used when creating a new
document from a template |
website
|
This is used when creating a new
document from a template |
address
|
This is used when creating a new
document from a template |
- tree
Name
|
Usage
|
font
|
This is the font for the tree
text
|
selection
|
This is the color of the tree
selection
|
text
|
This is the color of the tree
text
|
background
|
This is the color of the tree
background
|
- xmlconfig
Name
|
Usage
|
xinclude
|
Add xinclude support when
parsing a document. By default activated.
|
parser
|
This is the default JAXP parser.
The default value is XERCES, else it must be a valid class name.
|
namespaceAware
|
By default activated, it will
check for namespace validity when parsing.
|
format-space
|
This is the number of tabulation
used when formatting a document. By default 1.
|
format-replaceAmp
|
If true, an entity & is
generated for each & character in text or attribute value
|
format-replaceGt
|
if true, an entity > is
generated for each < character in text or attribute value
|
format-replaceLt
|
if true, an entity < is
generated for each > character in text or attribute value |
format-replaceApos
|
if true, an entity ' is
generated for each ' character in text or attribute value |
format-replaceQuote
|
if true, an entity " is
generated for each " character in text or attribute value |
transformer
|
This is the default JAXP
transformer for XSLT. The default value is XALAN else it must be a
valid class name.
|
default-encoding
|
This is the encoding inside the
<?xml version="1.0" encoding="..."?> XML declaration. This is
useful when creating a new XML document.
|
W3C XML Schema prefix
|
This is the default prefix when
generating a new W3C XML Schema from the current document.
|
- xpath
Name
|
Usage
|
maxVariables
|
This is the maximum number of
XPath variables the user can manage inside its expression.
|
maxNamespaces
|
This is the maximum number of
XPath namespaces the user can manage inside its expression. |
- xslt
Name
|
Usage
|
parameter
|
This is the maximum number of
XSLT parameters
|
- docbook
Each preference will be available after at least one docbook usage for
the specified output type.
Here a sample for HTML and PDF.
Name
|
Usage
|
htmlstylesheet
|
Path for the XSL documents for
the HTML output
|
pdfstylesheet
|
Path for the XSL documents for
the PDF output
|
Note that the path is relative to the editix installation directory and
is located inside the res
directory.
b. Installing a new
XML Parser
Click on the item 'install a custom parser' inside the Options menu.
Add your java Jar(s), click on the button Search a JAXP class. If a
class name appears under the class name field your JAXP parser is
found. You may also enter manually the JAXP class name and check with
the bound button. Press OK and the parser is enabled the next time you
restart EditiX.
Another option :
You can install another JAXP compatible parser inside EditiX replacing
the default one (Xerces 2.6.2). You must :
- Copy inside the EDITIX_INSTALL_DIRECTORY/ext/parser directory
your jar file(s)
- Modify the xmlconfig / parser preference with your JAXP SAXParser
factory class
- Restart EditiX
For information the default SAXParser factory has the value "XERCES"
which is equal to "org.apache.xerces.jaxp.SAXParserFactoryImpl".
c. Installing a new
XSLT Transformer
Click on the item 'install a custom transformer' inside the Options
menu. Add your java Jar(s), click on the button Search a JAXP class. If
a class name appears under the class name field your JAXP transformer
is
found. You may also enter manually the JAXP class name and check with
the bound button. Press OK and the transformer is enabled the next time
you
restart EditiX.
Another option :
You can install another JAXP compatible XSLT Transformer inside EditiX
replacing the default one (Xalan 2.6.0). You must :
- Copy inside the EDITIX_INSTALL_DIRECTORY/ext/xslt directory your
jar file(s)
- Modify the xmlconfig / xslt preference with your JAXP Tranformer
factory class
- Restart EditiX
Here a sample for installing the SAXON XSLT Engine :
- Download SAXON (http://saxon.sourceforge.net)
- Copy saxon.jar to the EDITIX_INSTALL_DIRECTORY/ext/xslt directory
- Modify inside the EditiX the preference xmlconfig /
transformer with the value com.icl.saxon.TransformerFactoryImpl
- Restart EditiX
12. EditiX Components
This product uses :