Name
The model Element
Synopsis
This element is the local root of the definition of the XForms Model. It is typically found in a non-rendered area of the containing document.
In the following example, the head
section in
XHTML can contain an XForms Model.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/ 2002/xforms"> <head> <title>A sample XHTML+XForms document</title> <xforms:model> ...more XForms elements... </xforms:model> </head> <body> ...
The attribute functions
declares any extension functions, as covered in Chapter 11, that are absolutely necessary for the form to
function.
The attribute schema
includes a space-separated list of external XML Schema documents to
be retrieved and included in the definition of the XForms Model.
Additionally, XML Schema definitions may occur inline, with one or
more xs:schema
elements appearing as children of
the model
element. As Chapter 6
will describe, the datatype associated with a node can have an effect
on the user interface presented to the user for populating the node
with data.
Since the model
element is a target of several
kinds of events (see Chapter 7), XML Events
attributes are also permitted in this element.
Get XForms Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.