⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doc_config_en.xhtml

📁 CANopen源代码
💻 XHTML
字号:
<?xml version="1.0" encoding="ISO-8859-1"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Jaxe config files</title><meta content="Damien Guillaume" name="Author"/><style type="text/css">p { text-indent: 1em; }dt { font-weight: bold; }dd { padding-bottom: 0.5em; }</style></head><body><p><a href="doc_config_fr.html">en fran鏰is</a></p><h1>Jaxe config files</h1><p>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 &quot;_Jaxe_cfg.xml&quot;.</p><p>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 <a href="http://www.thaiopensource.com/relaxng/trang.html">Trang</a></p><p>Here is the description of the elements used in the config files:</p><dl><dt><tt>JAXECFG</tt></dt><dd>Root element for the config files.</dd><dt><tt>CONFIG</tt></dt><dd>Link to another configuration file, for a language to use in combination with the one described (with different namespaces).</dd><dt><tt>FICHIERXSL</tt></dt><dd>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 <tt>nom</tt>. Parameters can be sent to the stylesheet with the element <tt>PARAMETRE</tt>. If several <tt>FICHIERXSL</tt> elements are used, the stylesheets are used one after the other, using intermediary XML files.</dd><dt><tt>PARAMETRE</tt></dt><dd>Parameter for the XSL stylesheet or for the elements, specified with the attributes <tt>nom</tt> and <tt>valeur</tt>. <tt>PARAMETRE</tt> must be under <tt>FICHIERXSL</tt> or <tt>BALISE</tt>.</dd><dt><tt>FICHIERSCHEMA</tt></dt><dd>XML schema to use, specified with the filename in the attribute <tt>nom</tt>. If no schema is specified, a simplified description of the language can be used instead, with the elements <tt>ENSEMBLE</tt>, <tt>SOUSBALISE</tt> and <tt>ATTRIBUT</tt>.</dd><dt><tt>RACINE</tt></dt><dd>A possible root element. <tt>RACINE</tt> must contain an element <tt>BALISE</tt>, with the description of the root element.</dd><dt><tt>ESPACE</tt></dt><dd>Namespace to use with all the elements. The two attributes are <tt>uri</tt> (the namespace URI) and <tt>prefixe</tt> (the associated prefix). The URI should be the same as the schema&apos;s targetNamespace if it is specified. If targetNamespace is not specified in the schema, <tt>ESPACE</tt> should not be used.</dd><dt><tt>ENCODAGE</tt></dt><dd>Character encoding for new documents. ISO-8859-1 is used by default.</dd><dt><tt>DOCTYPE</tt></dt><dd>Document type definition, used to save XML files.</dd><dt><tt>MENU</tt></dt><dd>Description of a menu to display in the XML language menubar. It contains as many items as there are <tt>BALISE</tt> and <tt>FONCTION</tt> elements under <tt>MENU</tt>. The menu title is specified with the attribute <tt>titre</tt>.</dd><dt><tt>FONCTION</tt></dt><dd>Menu calling a function. The attributes are:<ul><li><tt>titre</tt>: menu title</li><li><tt>classe</tt>: class of the function, implementing the interface <tt>jaxe.Fonction</tt></li><li><tt>commande</tt>: keyboard shortcut for the menu</li></ul>An example of a function is <tt>jaxe.FonctionNormal</tt>, which removes all style from a selected text.</dd><dt><tt>BALISE</tt></dt><dd><p>Informations about an element of the XML language. The attributes are:</p><ul><li><tt>nom</tt>: element name</li><li><tt>titre</tt>: title of the menu item used for inserting this element</li><li><tt>type</tt> the Jaxe element type. Possible values for <tt>type</tt> are: <tt>division, zone (=area), string, vide (=empty), tableau (=spreadsheet table), tabletexte (=table), style, fichier (=file), symbole (=symbol), liste (=list), item (of a list), listechamps (list with fields), plugin</tt>.</li><li><tt>cache</tt>: tells whether the menu item is hidden</li><li><tt>commande</tt>: keyboard shortcut</li></ul><p>Parameters can be specified for some element types, with the <tt>PARAMETRE</tt> element under <tt>BALISE</tt>.</p><p>The elements <tt>BALISE</tt> of type <tt>division</tt> and <tt>zone</tt> can have a parameter specifying the name of the attribute to use as a title for the element display.</p><p>The elements <tt>BALISE</tt> of type <tt>fichier</tt> <em>must</em> have a parameter specifying the attribute with the file name.</p><p>The elements <tt>BALISE</tt> of type <tt>tableau</tt> and<tt>tabletexte</tt> <em>must</em> have parameters specifying the elements for the rows and the cells.</p><p>The elements <tt>BALISE</tt> of type <tt>style</tt> <em>must</em> have a parameter specifying the style.</p><p>The elements <tt>BALISE</tt> of type <tt>zone</tt> and <tt>string</tt> can have a parameter specifying the style, a parameter with the font family, and a parameter with the font size.</p><p>The elements <tt>BALISE</tt> of type <tt>equation</tt> <em>must</em> have parameters specifying the attributes to use for the equation text and the image filename. The equations text must use a specific <a href="equations/syntax.html">syntax</a>.</p><p>Here is a list of all the parameters:</p><table border="1"><tr><th>type</th><th>parameter name</th><th>description</th></tr><tr><td>division</td><td>titreAtt</td><td>attribute for the title</td></tr><tr><td>zone</td><td>titreAtt</td><td>attribute for the title</td></tr><tr><td>tableau</td><td>trTag</td><td>element for a line</td></tr><tr><td>tableau</td><td>tdTag</td><td>element for a cell</td></tr><tr><td>tableau</td><td>thTag</td><td>element for a header cell</td></tr><tr><td>liste</td><td>typeListe</td><td>type of list (POINTS|NUMEROS) (bulleted/ordered)</td></tr><tr><td>style</td><td>style</td><td>GRAS (bold) | ITALIQUE (italic) | EXPOSANT (superscript) | INDICE (subscript) | SOULIGNE (underlined)</td></tr><tr><td>string</td><td>police</td><td>font family</td></tr><tr><td>string</td><td>taille</td><td>font size</td></tr><tr><td>fichier</td><td>srcAtt</td><td>attribute with the file name</td></tr><tr><td>plugin</td><td>classe</td><td>Java class derived from JaxeElement</td></tr><tr><td>item</td><td>image1</td><td>first bullet image</td></tr><tr><td>item</td><td>image2</td><td>second bullet image</td></tr><tr><td>equation</td><td>srcAtt</td><td>attribute with the image filename</td></tr><tr><td>equation</td><td>texteAtt</td><td>attribute with the equation text</td></tr></table></dd></dl><p>The following elements can be used for a simplified schema (when <tt>FICHIERSCHEMA</tt> is not specified):</p><dl><dt><tt>SOUSBALISE</tt></dt><dd>Link to a <tt>BALISE</tt> element, meaning this element can be found under the parent of the <tt>SOUSBALISE</tt> element.</dd><dt><tt>ATTRIBUT</tt></dt><dd>Attribute (must be under <tt>BALISE</tt>). Possible attributes are <tt>nom</tt> (attribute name) and <tt>presence</tt> (<tt>obligatoire</tt> (required) or <tt>optionelle</tt> (optional)).</dd><dt><tt>VALEUR</tt></dt><dd>Possible value for an attribute (must be under <tt>ATTRIBUT</tt>)</dd><dt><tt>ENSEMBLE</tt></dt><dd>Element set, containing <tt>BALISE</tt> elements. The name of the set, which can be used in <tt>SOUSBALISE</tt>, is specified with the attribute <tt>nom</tt>.</dd><dt><tt>TEXTE</tt></dt><dd>Used at the same level as <tt>SOUSBALISE</tt>, means that text can be found under the current element.</dd></dl><hr/><p>This file was created with Jaxe !</p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -