Section: jForms file format
^ jForms: automatic forms | Creating a jforms file » |
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 forms
folder of modules and must follow this
name scheme foo.form.xml
. 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 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.