en français

Jaxe config files

Jaxe config files specify the menus to display for a given XML language, as well as the XML schema to use for validation, and the XSL files to use for the HTML preview. They are located in the config directory, and their names end in "_Jaxe_cfg.xml".

The structure of the document must respect a certain order, defined by the XML schema. If you already have a Relax NG schema, you can transform it into a W3C XML schema with the help of Trang

Here is the description of the elements used in the config files:

JAXECFG
Root element for the config files.
DESCRIPTION
Short description for the configuration file, displayed in the new document dialog.
CONFIG
Link to another configuration file, for a language to use in combination with the one described (with different namespaces).
FICHIERXSL
XSL file to use for the HTML preview. This stylesheet must generate an HTML file. The name of the XSL file is specified in the attribute nom. Parameters can be sent to the stylesheet with the element PARAMETRE. If several FICHIERXSL elements are used, the stylesheets are used one after the other, using intermediary XML files.
PARAMETRE
Parameter for the XSL stylesheet or for the elements, specified with the attributes nom and valeur. PARAMETRE must be under FICHIERXSL or BALISE.
FICHIERSCHEMA
XML schema to use, specified with the filename in the attribute nom. If no schema is specified, a simplified description of the language can be used instead, with the elements ENSEMBLE, SOUSBALISE and ATTRIBUT.
RACINE
A possible root element. RACINE must contain an element BALISE, with the description of the root element.
ESPACE
Namespace to use with all the elements. The two attributes are uri (the namespace URI) and prefixe (the associated prefix). The URI should be the same as the schema's targetNamespace if it is specified. If targetNamespace is not specified in the schema, ESPACE should not be used.
ENCODAGE
Character encoding for new documents. ISO-8859-1 is used by default.
DOCTYPE
Document type definition, used to save XML files.
MENU
Description of a menu to display in the XML language menubar. It contains as many items as there are BALISE and FONCTION elements under MENU. The menu title is specified with the attribute titre.
FONCTION
Menu calling a function. The attributes are: An example of a function is jaxe.FonctionNormal, which removes all style from a selected text.
BALISE

Informations about an element of the XML language. The attributes are:

Types descriptions :

Parameters can be specified for some element types, with the PARAMETRE element under BALISE.

The elements BALISE of type division and zone can have a parameter specifying the name of the attribute to use as a title for the element display.

The elements BALISE of type fichier must have a parameter specifying the attribute with the file name.

The elements BALISE of type tableau andtabletexte must have parameters specifying the elements for the rows and the cells.

The elements BALISE of type style must have a parameter specifying the style.

The elements BALISE of type zone and string can have a parameter specifying the style, a parameter with the font family, and a parameter with the font size.

The elements BALISE of type equation must have parameters specifying the attributes to use for the equation text and the image filename. The equations text must use a specific syntax.

Here is a list of all the parameters:

typeparameter namedescription
divisiontitreAttattribute for the title
zonetitreAttattribute for the title
tableautrTagelement for a line
tableautdTagelement for a cell
tableauthTagelement for a header cell
listetypeListetype of list (POINTS|NUMEROS) (bulleted/ordered)
stylestyleGRAS (bold) | ITALIQUE (italic) | EXPOSANT (superscript) | INDICE (subscript) | SOULIGNE (underlined)
stringpolicefont family
stringtaillefont size
fichiersrcAttattribute with the file name
pluginclasseJava class derived from JaxeElement
itemimage1first bullet image
itemimage2second bullet image
equationsrcAttattribute with the image filename
equationtexteAttattribute with the equation text

The following elements can be used for a simplified schema (when FICHIERSCHEMA is not specified):

SOUSBALISE
Link to a BALISE element, meaning this element can be found under the parent of the SOUSBALISE element.
ATTRIBUT
Attribute (must be under BALISE). Possible attributes are nom (attribute name) and presence (obligatoire (required) or optionelle (optional)).
VALEUR
Possible value for an attribute (must be under ATTRIBUT)
ENSEMBLE
Element set, containing BALISE elements. The name of the set, which can be used in SOUSBALISE, is specified with the attribute nom.
TEXTE
Used at the same level as SOUSBALISE, means that text can be found under the current element.

This file was created with Jaxe !