XSLTForms/XForms 2.0/"dialog" element

= Presentation = "dialog" element allows to show and hide controls in a popup approach.

A dialog is a container control with a mandatory @id attribute. It can be placed anywhere in the (X)HTML body element, considering that it will be transformed as a disabled (or hidden) DIV element by the XSLT step of XSLTForms.

A dialog is rendered using z-index property in a modal popup, with another DIV element covering all the main elements, with a lower z-index value, to disable interaction with controls. When changing controls values in a dialog, all other controls can be refreshed whether they are in this dialog or anywhere else. Label is not yet supported by XSLTForms and there is no X trigger.

Dialogs can be nested. Ancestor dialogs are masked automatically, changing the z-index property of the covering DIV.

Two actions are defined for dialogs management:
 * "show": this action will enable the dialog identified by the @dialog attribute value
 * "hide": this action will disable the dialog identified by the @dialog attribute value

Usually, for each dialog, there should be, at least, one trigger for showing (opening) it and another, in itself, for hiding (closing) it.

= Sample Program = = References =
 * 1) W3C XForms WG Wiki - Dialog candidate specifications for XForms 1.2
 * 2) AJAXForms Addons - Specific dialog addon
 * 3) Orbeon Dialog Extension