From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/xforms/autres_ressources/index.html | 15 ++ files/fr/archive/web/xforms/index.html | 96 +++++++++++++ .../index.html" | 27 ++++ .../r\303\251f\303\251rence_api_xforms/index.html" | 47 ++++++ .../index.html" | 25 ++++ .../index.html" | 159 +++++++++++++++++++++ 6 files changed, 369 insertions(+) create mode 100644 files/fr/archive/web/xforms/autres_ressources/index.html create mode 100644 files/fr/archive/web/xforms/index.html create mode 100644 "files/fr/archive/web/xforms/pr\303\251f\303\251rences_utilisateur/index.html" create mode 100644 "files/fr/archive/web/xforms/r\303\251f\303\251rence_api_xforms/index.html" create mode 100644 "files/fr/archive/web/xforms/r\303\251solution_des_probl\303\250mes_avec_xforms/index.html" create mode 100644 "files/fr/archive/web/xforms/\303\251l\303\251ment_interface_utilisateur_xforms/index.html" (limited to 'files/fr/archive/web/xforms') diff --git a/files/fr/archive/web/xforms/autres_ressources/index.html b/files/fr/archive/web/xforms/autres_ressources/index.html new file mode 100644 index 0000000000..d3af7709d3 --- /dev/null +++ b/files/fr/archive/web/xforms/autres_ressources/index.html @@ -0,0 +1,15 @@ +--- +title: Autres ressources +slug: Archive/Web/XForms/Autres_ressources +tags: + - XForms +translation_of: Archive/Web/XForms/Other_Resources +--- +

 

+

Toutes les autres ressources

+ diff --git a/files/fr/archive/web/xforms/index.html b/files/fr/archive/web/xforms/index.html new file mode 100644 index 0000000000..e7e805c1a5 --- /dev/null +++ b/files/fr/archive/web/xforms/index.html @@ -0,0 +1,96 @@ +--- +title: XForms +slug: Archive/Web/XForms +tags: + - XForms +translation_of: Archive/Web/XForms +--- +
XForms Essentials (en) +

Un livre en ligne qui vous offre une visite guidée des XForms.
+ XForms Tutorial and Cookbook (en)
+ XForms au format wikibook - testé avec Firefox.

+(en cours de traduction en français)
+ +
+
XForms est le futur des formulaires en ligne tel qu'imaginé par le W3C. S'appuyant sur d'autres standards du W3C comme XML Schema, XPath, et XML Events, XForms s'efforce de dépasser les limitations du modèle actuel des formulaires HTML. Les autres forces de XForms sont la séparation entre les données et leur présentation, un typage fort des données, la possibilité de soumettre des données XML vers les serveurs plutôt que les traditionnels couples nom/valeur, et par une manière descriptive de de concevoir des formulaires pouvant être affichés sur une large variété de périphériques. XForms est une spécification du W3C.
+ +


+ Le support XForms peut être ajouté à Firefox et SeaMonkey en installant l'Extension XForms de Mozilla.

+
+ + + + + + + + +
+

Documentation

+ +
+
Résolution des problèmes avec XForms
+
Une petite collection d'astuces permettant de régler les problèmes courants que l'on peut rencontrer avec les formulaires XForms (à traduire de en:XForms:Form Troubleshooting).
+
+ +
+
Particularités de XForms dans Mozilla
+
Explique où et comment XForms dans Mozilla diffère ou va plus loin que la spécification XForms 1.0 specification (à traduire de en:XForms:Mozilla XForms Specials).
+
+ +
+
Contrôles personnalisés avec XForms
+
Le {{ Bug(289434) }} a été la première étape pour le support de la personnalisation des contrôles pour XForms. Vous pouvez maintenant styler chaque contrôle XForms grâce aux XBL et créer des effets spéciaux en SVG sur un contrôle input (à traduire de en:XForms:Custom Controls).
+
+ +
+
Préférences utilisateur pour XForms
+
Une courte description des variables about:config utilisées par XForms.
+
+ +
+
Référence de l'API XForms
+
Documentation des interfaces XForms.
+
+ +
+
Référence des éléments d'interface utilisateur XForms
+
La documentation sur les éléments d'interface utilisateur XForms.
+
+ +

Tous les articles…

+
+

Communauté

+ +
    +
  • Voir les forums de Mozilla…
  • +
+ +

{{ DiscussionList("dev-tech-xforms", "mozilla.dev.tech.xforms") }}

+ + + +

Outils

+ + + +

Tous les outils…

+ +

Sujets liés

+ +
+
Extensions, HTML, XHTML, XML, XPath
+
+
+ +

Categories

+ +

Interwiki Language Links

diff --git "a/files/fr/archive/web/xforms/pr\303\251f\303\251rences_utilisateur/index.html" "b/files/fr/archive/web/xforms/pr\303\251f\303\251rences_utilisateur/index.html" new file mode 100644 index 0000000000..37446d057b --- /dev/null +++ "b/files/fr/archive/web/xforms/pr\303\251f\303\251rences_utilisateur/index.html" @@ -0,0 +1,27 @@ +--- +title: XForms Préférence utilisateur +slug: Archive/Web/XForms/Préférences_utilisateur +tags: + - XForms +translation_of: Archive/Web/XForms/User_preferences +--- +

Description des préférences about:config utilisées par XForms. +

+ + + + + +
Préférence +Défaut +Description +
xforms.disablePopup +false +Désactive les popups d'erreur XForms +
xforms.enableExperimentalFeatures +false +Active les options de test. Actuellement uniquement l'option XForms 1.1 SOAP Action, pour la version test (trunk) uniquement. +
+
+
+{{ languages( { "en": "en/XForms/User_preferences", "it": "it/Le_preferenze_utente_e_XForms", "ja": "ja/XForms/User_preferences" } ) }} diff --git "a/files/fr/archive/web/xforms/r\303\251f\303\251rence_api_xforms/index.html" "b/files/fr/archive/web/xforms/r\303\251f\303\251rence_api_xforms/index.html" new file mode 100644 index 0000000000..b70aae242f --- /dev/null +++ "b/files/fr/archive/web/xforms/r\303\251f\303\251rence_api_xforms/index.html" @@ -0,0 +1,47 @@ +--- +title: XForms API Reference +slug: Archive/Web/XForms/Référence_API_XForms +tags: + - XForms +translation_of: Archive/Web/XForms/API_Reference +--- +
+

Cette page n'est que le début du recensement de la référence de l'API de XForms. Notez le mot début :-)

+
+ +

 

+ +

Convention de nommage

+ +

L'interface XForms a les conventions de nommage suivantes :

+ +
+
nsIXForms...Element 
+
Interfaces implémentées par la partie C++ d'un contrôle.
+
nsIXFormsNS...Element 
+
Interfaces étendant la spécification des interfaces XForms.
+
nsIXForms...UIElement 
+
Interfaces implémentées par la partie JavaScript d'un contrôle.
+
nsIXForms...Accessors 
+
Interfaces exposant l'état d'un nœud d'instance liée d'un contrôle donné.
+
+ +

Interfaces gelées

+ +
+
nsIXFormsModelElement
+
L'interface modèle
+
+ +

Interfaces expérimentales

+ +
+
nsIXFormsDelegate
+
L'interfacedéléguée de XForms:Contrôles personnalisés.
+
nsIXFormsAccessors
+
L'interfaceaccessoires de {{ mediawiki.external('XForms:Contrôles personnalisés') }}].
+
nsIXFormsNSModelElement
+
Extensions personnalisées de l'interface nsIXFormsModelElement.
+
nsIXFormsNSInstanceElement
+
Extensions personnalisées de l'élément instance.
+
diff --git "a/files/fr/archive/web/xforms/r\303\251solution_des_probl\303\250mes_avec_xforms/index.html" "b/files/fr/archive/web/xforms/r\303\251solution_des_probl\303\250mes_avec_xforms/index.html" new file mode 100644 index 0000000000..7607702cdc --- /dev/null +++ "b/files/fr/archive/web/xforms/r\303\251solution_des_probl\303\250mes_avec_xforms/index.html" @@ -0,0 +1,25 @@ +--- +title: Résolution des problèmes +slug: Archive/Web/XForms/Résolution_des_problèmes_avec_XForms +translation_of: Archive/Web/XForms/Form_Troubleshooting +--- +

 

+
+ Cette page est en cours de traduction, son contenu peut donc être incomplet ou contenir des parties en anglais. N'hésitez pas à participer à sa traduction à partir de
+

 

+

Introduction

+

Le but de cette page est de collecter toute une sériée de solutions à des erreurs fréquemment rencontrées quand on utilise XForm.

+

Commencez toujours par ça

+
    +
  1. Assurez-vous d'utiliser la dernière version de l'extension.
  2. +
  3. Testez votre code avec le validateur XForms. Il vérifie votre formulaire pour y déceler les erreurs. Ce n'est pas parfait mais c'est mieux que rien et permet de mettre en lumière un certain nombre d'erreurs.
  4. +
  5. Ayez toujours un œil sur la Console d'erreurs (Outils, Console d'erreurs). Si des erreurs sont détectées, n'espérez pas que votre formulaire fonctionne.
  6. +
+

Problèmes et solutions

+

Vérifiez le type de fichier

+

La page est-elle interprétée en tant que document XHTML ? Cliquez droit dans un endroit vide de la page, et sélectionnez Informations sur la page. Le champ Type devrait afficher application/xhtml+xml comme valeur. Toute autre valeur est mauvaise.

+

Si vous ouvrez votre fichier directement depuis votre système (en local), l'extension du fichier doit être .xhtml ou .xml. Si vous chargez le fichier depuis un serveur, vérifiez que le serveur déserve bien le fichier en tant qu'application/xhtml+xml ou en tant que text/xml.

+

Vérifiez la déclaration de l'espace de nom XHTML 1.0

+

Mozilla XForms est construit sur base de la spécification d'XHTML 1.0, laquelle se trouve ici http://www.w3.org/1999/xhtml. Assurez-vous que l'élément <html> contienne la bonne déclaration de l'espace de nom :

+
xmlns="http://www.w3.org/1999/xhtml"
+

(à la place de la dernière spécification, non-ratifiée, XHTML 2.0, située ici http://www.w3.org/2002/06/xhtml2 )

diff --git "a/files/fr/archive/web/xforms/\303\251l\303\251ment_interface_utilisateur_xforms/index.html" "b/files/fr/archive/web/xforms/\303\251l\303\251ment_interface_utilisateur_xforms/index.html" new file mode 100644 index 0000000000..b6b6a12505 --- /dev/null +++ "b/files/fr/archive/web/xforms/\303\251l\303\251ment_interface_utilisateur_xforms/index.html" @@ -0,0 +1,159 @@ +--- +title: Mozilla XForms User Interface +slug: Archive/Web/XForms/Élément_interface_utilisateur_XForms +translation_of: Archive/Web/XForms/User_Interface_Elements +--- +

Introduction

+ +

Cette article est une référence rapide des éléments de l'interface utilisateur de XForms. Il a pour principal but de documenter la façon dont les éléments XForms seront présentés dans Mozilla car les spécifications de XForms ne donnent que des indices sur le comportement des divers contrôles.

+ +

Currently XForms can be hosted by XHTML and XUL in Seamonkey and Firefox. Later we have plans to support XForms hosted by SVG. The XForms specs define two kinds of XForms UI elements, called 'Form Controls' and 'XForms User Interface'. Elements from the "Form Controls" group allows users to interact with instance data. The set of "XForms User Interface" elements exist to aid form authors in combining host language markup and XForms markup together in order to build user interfaces. Some of the 'Form Controls' can have multiple appearances and thus may be rendered in multiple ways. We use the data type of the instance node that the form control is bound to as a clue when making a rendering decision. The form author can also use the 'appearance' attribute on the form control to give us another clue. For example, a XForms input control may appear as a text field or as a datepicker depending on whether it is bound to a xsd:string type or a xsd:date type. When a xf:output binds to a node that has a type of xsd:date, we output the date value as plain text. An output bound to a date and also having @appearance='full' will display as a calendar.

+ +

This article uses several notations. If you see Fx 3.0 only, that means that the control will only be available for Firefox 3.0 (Gecko 1.9). There are several possible reasons for this restriction. The first is that the changes required for such controls could not be safely made to Firefox 1.5 or Firefox 2.0. The second is that the control is introduced in XForms 1.1 and we don't feel adding the enhancement would be prudent until the 1.1 spec is more stable. For instance, when the spec reaches 'recommendation'-level status. If you see xhtml/xul then it means the control is available when XForms is hosted in either XHTML or XUL. Similarly, if you see xhtml only or xul only, then it means the control is available only in that host language.

+ +

Ensembles d'attributs

+ +

This section describes attributes that are often used on XForms elements. These attributes are combined into following logical groups.

+ +

UI Common

+ +

The UI Common attribute set (see the spec) contains the attributes that are available for the XForms elements that are used to build the user interface presentation in a form.

+ + + +

Attributs de liaison

+ +

Single-Node (see the spec) and Node-Set (see the spec) attributes are used to bind XForms elements to instance nodes. These attributes are: ref, nodeset, model and bind.

+ +

Éléments XForms

+ +

Almost every XForms element can be presented as one of serveral different kinds of widgets. This section contains a short description of each XForms element and its representation. The XForms specification offers suggestions for some of the representations, but some of the widgets we use are only available in the Mozilla XForms processor. The choice of widget that we use is often determined by the data type of the instance node that the xforms element is bound to. The form author can also influence the widget by using the appearance attribute on the element.

+ +

Module des contrôles de formulaire

+ +

This section contains a short description for each form control element.

+ +
input
+ +

A key xforms element to show and change the instance data to which it is bound. Usually bound to data that can be well-represented by a string (see the spec). It can have the following representations:

+ + + +
secret
+ +

Used for inputting passwords. Each character typed by the user is represented by an asterisk on the screen (see the spec).

+ +
textarea
+ +

Serves to show/change multiline text (see the spec).

+ +
output
+ +

Serves to show the instance data that the element is bound to in a read-only manner (see the spec). It can have the following presentations:

+ + + +
upload
+ +

Provides a means for the user to select a file (see the spec).

+ +
range
+ +

Allows the user to choose a value from within a specific range of values. It is represented by a slider widget (see the spec).

+ +
trigger
+ +

Allows the user to initiate actions (see the spec). It can have the following representations:

+ + + +
submit
+ +

Invokes the submission of the selected instance data to its target destination, which could be local or remote (see the spec). It can have the following representations:

+ + + +
select
+ +

List control. Allows the user to choose one or multiple values from a list of pre-defined values (see the spec). It can have the following representations:

+ + + +
select1
+ +

Combobox control. Allows the user to choose a single value from a list of pre-defined values (see the spec). It can have the following representations:

+ + + +

Éléments supplémentaires

+ +

These elements may be used as child elements to the form controls described above.

+ +
label
+ +

Specifies the label for the xforms control (see the spec). Every form control other than the output element must contain a label element. It is valid for a form control to have an empty label element.

+ +
help
+ +

Specifies contextual help for the containing form control (see the spec). The help will be displayed if the F1 key is pressed while the containing form control has focus.

+ +
hint
+ +

Similar to a tooltip (see the spec). The hint is displayed when the mouse moves and pauses over the containing form control.

+ +
alert
+ +

This message will be shown when the form control cannot properly bind to instance data or when the instance data value is invalid or out of the specified range of selectable values (see the spec).

+ +
message
+ +

Used in combination with event listeners to display a message to the user when the specified event occurs (see the spec).

+ +

Interface utilisateur de XForms

+ +

These elements are mainly used to organize and manage the form's markup.

+ +

They can be bound to instance nodes to define context for the xforms controls that they contain, should any of their child nodes happen to use relative xpath expressions. Binding these elements to instance data is also a way to apply Model Item Properties (for example, relevancy) to the elements.

+ +

Elements in this section do not have any behaviors that are dependent on the host language.

+ +
group
+ +

This element is used to logically group xforms elements together (see the spec).

+ +
switch
+ +

This element is used in conjunction with 'case' and 'toggle' elements (see the spec). The 'switch' element contains 'case' elements which in turn contain markup. Only the contents of a single case may be displayed at one time. The 'toggle' element is used (as an event handler) to make a 'case' visible and thereby hiding all other cases contained by the same 'switch'.

+ +
repeat
+ +

A repeat element contains markup and is itself bound to a nodeset in an instance document (see the spec). For each node in the nodeset, the contents of the repeat element will be displayed in the form. That node will serve as the context node for any relative xpath expressions in that set of repeated markup. For example, if a repeat is bound to a nodeset that contains 5 nodes and the repeat contains an 'output' element that echoes the current node, then the user will see 5 outputs in the form. Combined together, these outputs would echo the value of every node in the selected nodeset.

-- cgit v1.2.3-54-g00ecf