/
xml.gtw
25 lines (18 loc) · 1.16 KB
/
xml.gtw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
~~LANG:FR@frman:composants/jforms/xml~~
jForms automatically generates forms described in an XML dialect. Every form is
described in an XML file, using a simple grammar between say HTML and XForms.
Those XML files reside in @@F@forms@@ folder of modules and must follow this
name scheme @@F@foo.form.xml@@. @@L@foo@@ is the identifier of the form. You
choose it of course. This identifier is later used in selectors and through
jForms API.
Example: "myModule~product" refers to @@F@myModule/forms/product.form.xml@@.
The XML grammar of jForms evolves at each new version of Jelix, so there are
several versions of this grammar. However, jelix always supports old grammar
version, since each version has its own namespace. So it is very easy to migrate
an application from an old version of Jelix to a newer one: you don't have
nothing to do for jForms file.
Since each version of the format has its own namespace, be careful to indicate
the right namespace in the file. Here are the documentation for each version of
the format.
This manual talks about the 1.1 version of the format. If you want to use
the previous 1.0 format, which is deprecated, read the manual of Jelix 1.3.