Jaxe, your XML editor
Jaxe, your XML editor

The XPAGES language
• Introduction
• Documents structure
• Informations
• Block elements
• Elements mixed with text
• Exercises

# Documents structure

Author: Damien Guillaume

XPAGES documents have a root element, `XPAGES set`, that is used in all the documents as a first level element. Under this element, the following elements can be found : `Informations`, `Page`, `Ref. XPAGES document` and `XPAGES set`.

- `Informations` is a metadata block, i.e. informations about the document. It is described later on.
- `Page` represents a web page, and has a title and a label used to create links to the page.
- `Ref. XPAGES document` is a reference (via the label) to another XPAGES document, that will be included in place of the `Ref. XPAGES document` element. This is used to create a website with several levels : for instance, one can create a website with a home page, and several sets of pages. To do that, an XPAGES document is created for the website, containing the home page and `Ref. XPAGES document` references to the different sets of pages in the website.
- `XPAGES set` under `XPAGES set` can be used to add another level to the tree, as with `REFXPAGES`, but without creating a new document.

Inside a page, sections can be created with the `Section` element. This element has a title, a role that specifies the meaning of the section and can result in a different display for each function, and an importance that can be used to highlight the section if it is important.

The text is added inside paragraphs, with the `Paragraph` element. It is easy to insert a new paragraph with the command-P or control-P shortcut in Jaxe.

It is possible to create several contributions, each one containing an XPAGES XML file and the associated files (images, Java applets, ...). Each contribution corresponds to a folder whose name is the same as the label given in the `Informations` block in the XML file. This folder contains the XML file and the associated files.