Creating contents with WebJaxe


Introduction

The WebJaxe CMS is included in PAELLOS, and is used for collaborative creation of XML documents in the XPAGES language. An automatic transform can transform these documents into websites. It can be done directly in WebJaxe to get a preview for authors, or with the PAELLOS platform administration to generate the training website for students and tutors.


Administrator guide

Authors: Damien Guillaume, Soufiane Ayadi

The administrator account

The administrator account is created at initialization time. It is possible to change the fields for this account in the user management section.

It will be assumed for now on that you are connected to the site as the administrator, which enables the administrative functions.


Parameters and uninstall

ecrans_webjaxe/parametres.png
Site parameters

The parameters page lets you edit the following parameters :

remarqueHint

It is possible to use "../.." instead of "sites" for the name of the websites folder, so that websites are generated directly at the web server root (assuming the webjaxe folder is located at the root). If you use this trick, be careful with possible folder names conflicts.

Uninstall

To remove the database and the contributions, just click on "Uninstall WebJaxe". Warning, the result is immediate !

Once this is done, you just need to remove WebJaxe's folder on the server to get rid of it completely.


Validation of registrations and user management

ecrans_webjaxe/utilisateurs.png
User management

Each registration request is recorded in the database, but the corresponding users cannot connect until their registration is validated by the administrator. If the administrator rejects a registration, it is deleted.

The list of registration queries on the "User management" page gives the list of the users who registered, and lets you accept or not each registration.

From the user management page, it is also possible to :


Project management

ecrans_webjaxe/projects.png
Project management

The project management page is used to create new projects, and change the list of contributions and participants for each project. There is no direct link between contributions and users: the links are established through the projects.

The administrator can organize projects as a tree, which is handful when there are a lot of contributions. To change the tree structure, click on the "Sub-projects" button for the parent project on the project management page. The list of sub-projects can then be changed for this project. A user associated with a project is implicitely associated with all the descendant projects. An export of the parent project will contain all the contributions of the parent project and its descendants.


Contribution management

ecrans_webjaxe/contributions.png
Contribution management

Each contribution is associated with a single project.

The contribution management page gives the list of the contributions, and can be used for each contribution to change the associated project, to edit it or remove it.

A form at the bottom can be used to create a new contribution.

This page can also be used to edit a contribution (by redirecting to the "user side" of WebJaxe), and to remove a contribution.


Adding a new configuration

WebJaxe is distributed with a configuration for the "XPAGES" XML language (in French and in English), and another one for the "XHTML strict 1.0" XML language. It is possible to add new configurations to edit documents in other XML languages, and generate corresponding websites.

To add a new configuration, that we will call "MYCONFIG" :


User guide

Authors: Damien Guillaume, Soufiane Ayadi

Registration

ecrans_webjaxe/inscription.png
Registration on a WebJaxe website

To participate to the creation of a website with WebJaxe, it is first necessary to register. To do that, just go to the registration page (there is a link from the first page), and fill in the different fields.

The login is a unique identifier. A new user is choosing the login, but (as opposed to the fields for the firstname and the lastname), the only letters accepted are the letters from a to z, with no space or special character.

Choose an original password, but don't lose it ! You can ask for help to the administrator if you lose it, but changing a password is not automatic.

Once the registration form submitted, the administrator will be able to validate (or not) your registration. It is only after the registration is validated by the administrator that it becomes possible to log in, with the chosen login and password.


Login

connexion.png
Login for a WebJaxe website

To log in, just enter the login and password chosen at registration time.


Contributions

ecrans_webjaxe/liste_contribs.png
List of contributions

Creating a website is done with a number of contributions. A contribution corresponds to a set of pages on a given subject (usually less than 10 pages). A contribution is a folder containing an XML file with the text of the pages, and the files of the images used in the pages.

Certain contributions are only used to link contributions with each other. For instance, it is possible to create a contribution for the whole website to create, and this contribution will only contain links to the other contributions.

Contributions are organized into projects. A project gathers contributions and authors on a given subject. All the authors in a project can edit all the project's contributions.

As a user, you can create a new project, a new contribution, and edit the contributions created by other users if these contributions are in a project of which you are author. The administrator can add authors or contributions to a project.

A project can be exported. This operation starts the download of a ZIP file containing a copy of all the contributions in the project.


New contribution

ecrans_webjaxe/nouvelle-contribution.png
Nouvelle contribution

There are two methods to create a new contribution in WebJaxe: the creation of an empty contribution, and the import of an existing contribution. In both cases, it is necessary to specify the associated project and the Jaxe configuration (which corresponds to the XML language).

In the case of an import, the imported file must be a ZIP file with the name of the contribution. This ZIP file must contain a folder with the name of the contribution, containing an XML file with the name of the contribution. For instance, the imported file could be "my-contribution.zip", containing a "my-contribution" folder, with a "my-contribution.xml" file inside.

Since contribution export uses the same organization, it is easy to export a contribution from a WebJaxe site and to import it into another one.


Operations on a contribution

ecrans_webjaxe/operations_contrib.png
Possible operations on a contribution

There are 10 possible operations on a contribution :


Edition of a contribution

ecrans_webjaxe/jaxe.png
Edition with Jaxe

WebJaxe's editor requires Java 1.6. It opens in a new window. Be careful not to close the initial window in the web browser, because that would make the edition window disappear without letting you save the document.

remarqueRemark

There is a bug in Firefox and some other web browsers which prevents reading XML files if the option "Allow third-party cookies" is disabled. With these web browsers, this option must be enabled in the preferences. Another solution is to add an "exception" in the cookie settings so that cookies from WebJaxe's server are always authorized.

The editor works with the XML meta-language, and entered texts are thus organized with begin and end tags. Each piece of text is surrounded by tags that give it meaning. New elements can be inserted with the menus, or with the insertion panel on the left of the window. The insertion panel only displays elements that are allowed at the cursor position, in order to prevent the creation of an invalid document (a document that does not respect the rules of the chosen XML language).

The available elements, as well as the tree rules for the elements, are defined by the XML language chosen by the administrator. It is important to learn the chosen language to use the editor in the best way. A specific documentation exists for the XPAGES language, whose WebJaxe configuration is provided with WebJaxe.

There exists a user guide for the Jaxe application, that mostly applies to WebJaxe's editor. However, there are some features that don't exist in WebJaxe. Some other features are disabled because of security restrictions imposed to Java applets by web browsers, such as copy/paste (see below).

Copy / Paste

By default, Java applets are not authorized to read the system clipboard. In general, this means it is not possible to do a copy-paste from another application. There are two methods to work around this problem:


Associated files

ecrans_webjaxe/fichiers_associes.png
Management of associated files

This page is used to manage the files associated to a contribution. They are usually files of images used when editing the XML document. It is possible to organize these files with directories. To add a new file, just click on the corresponding button, choose the file on the local hard disk, and click on the "Add" button. It is then displayed in the list of files for the current directory.

Once an image file is added, it is possible to use it during edition. For instance, with the XPAGES language, an image is added by first creating an "Image environment", and then adding a "File" inside. The path to the image file in the contribution is used as the "file name", for instance "logo.png". The image is displayed in the editor when the dialog is validated.


Changes history

ecrans_webjaxe/historique1.png
Operations on a contribution: Changes history

The Changes history button displays when the XML document is changed.

ecrans_webjaxe/historique2.png
Changes history

Each history is followed by the login of the author who has changed.

ecrans_webjaxe/historique3.png
Comparison with the latest version

You can compare versions of the XML document, and check the differences between each version of the document and the latest version.

ecrans_webjaxe/historique4.png
Differences between each version of the document and the latest version

Preferences

ecrans_webjaxe/preferences.png
User preferences: Change the language, the user password or email

Change the user interface language. The default language is one that was chosen during the registration on WebJaxe.

The new password must use at least 4 characters, and must contain only letters without accent, numbers, dashes or underscores.

The email adress must be valid.

Starting with WebJaxe 2.0, it is possible to choose the editor. Jaxe, the default editor, works as a Java applet and requires an enabled Java plugin in the web browser. Daxe works with Javascript and requires its activation. Daxe only works on modern web browsers (for instance, it does not work with Internet Explorer before version 9).


Search

ecrans_webjaxe/recherche.png
Do search

This page allows the user to search for a keyword in all the contributions of a project.


The XPAGES language

Author: Damien Guillaume

Introduction

introductionIntroduction

XPAGES provides a way to create websites quickly and easily. XPAGES is based on the principle of separation between content and presentation : with XPAGES, the content (text, images, animations) is entered, and is structured with a meaning associated to each part. An author does not worry about the way content will be displayed later on, which saves time and avoids mixing meaning with presentation. The way content will be displayed is specified separately, with stylesheets. Thus, it is possible to change the display independently from the edition.

XPAGES is an XML language, i.e. a set of elements and rules designed to structure a text. Associated stylesheets can automatically transform XPAGES documents into HTML files so that they can be viewed on the web. XPAGES documents can be edited with Jaxe and WebJaxe thanks to a configuration file describing the edition user interface.

XPAGES is a very simple language, easy to learn : it features only 59 elements (46 without the exercises), to compare for instance to the 91 elements in HTML, 390 elements in DocBook, or 526 elements in OpenDocument.


Documents structure

Organisation
organisation_xpages_en.png

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.

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.


Informations

The information block provides information about the document, and is also used to choose a skin for the generated website. It is required, and is located at the beginning of the document. It has the following children :


Block elements

Block elements are XML elements that can be directly inserted inside a Page element. They are used to structure the document, but are not mixed with text : it is not possible to insert text directly under Page, because text must necessarily be inside a block element.

XPAGES has the following block elements :


Elements mixed with text

Some XPAGES elements can be mixed with text, for instance inside a paragraph. They are the following elements :


Exercises

XPAGES can be used for many applications, but it is especially handy to create online courses, and was created in this context. For these reasons, the language contains elements specific to the definition of exercises, even though these elements might not be useful outside of the context of online courses.

There are two types of exercises : the question-answer type (Exercise element), and the quiz type (Quiz element). In both cases, an exercise can have a title (title attribute), an indication of the difficulty (Difficulty element), an indication of the time necessary to complete the exercise (Time element), and questions (Question and Quiz question elements).

Each question can have terms (Terms element) and one or more helps (Help element). Questions of type question-answer have a solution (Solution element) and a number of points that can be granted if the answer is correct (Points element). Questions of the quiz type have possible answers (Quiz answer element), each answer being either right or wrong (correct attribute), with the text of the answer (Answer text element) and a comment which will be displayed to the user should he choose this answer, for instance to explain why the answer is wrong (Answer comment element).

In Jaxe, solutions for evaluation exercises are not added to HTML when the "public website" is generated. They are added when the "production website" is created. WebJaxe always creates the production website. To create a public website from a contribution in WebJaxe, the contribution has to be exported and opened with Jaxe. In this way, it is possible to create, from the same XML files, a website for students, and another one for tutors for an elearning program.