-
Notifications
You must be signed in to change notification settings - Fork 221
XForms ~ XBL
The Orbeon Forms XForms engine proposes out of the box a set of controls, including input fields, radio buttons, etc. Those are typically implemented natively within the XForms engine.
Beyond the basic set of controls, there is an obvious need for creating new reusable controls. It would be difficult to modify the XForms engine itself each time a new control is needed. Orbeon Forms therefore supports a complete framework inspired by the XBL 2 specification to address this need.
NOTE: The XBL 2 specification is no longer under development at W3C, but as of 2015 Web Components embody most of the ideas of XBL 2, including custom elements, the shadow DOM, and strong encapsulation.
There are several types of components:
- components that simply add a little bit of functionality over an existing XForms control (e.g. a simple currency field)
- components that group together multiple XForms controls. (e.g. a component to enter a date with multiple text fields)
- components that implement completely new controls (e.g. a map)
- components that take, and possibly transform, nested markup placed by the user (e.g. a data table with sorting and paging)
You can use components to implement:
- Controls for datatypes which have a native implementation, but where a custom appearance is required
- Example: a custom control for entering a date with dropdown menus rather than a date picker
- Controls for datatypes which do not have a native implementation
- Example: a control to capture the
xs:duration
type
- Example: a control to capture the
- Controls which do not have a standard XML type
- Example: a phone number control
- Higher-level components
- A form section component
- A form grid component
- Instance inspector component
- A Google Maps component
This is not an exhaustive list. Your imagination is the limit!
- Component or custom control: a piece of software which provides reusable behavior and presentation.
-
Component instance: a particular use of a component within an XForms document. A component might have multiple instances in a given page.
- NOTE: This should not be confused with XForms instances.
- Component implementation: the code which constitutes the inner workings of a particular component.
- Component author: the person who writes a component.
-
Component user: the person who uses a component.
- In general, writing a component will be harder than using one.
- Obviously the user can be the same as the author!
- XPath resolution
- events used for communication
- model resolution, including
xxf:instance()
- template copying elements and attributes
-
xxbl:scope
in more details