Database Reference
In-Depth Information
This example will let you fill in a simple form. Notice that because we bound
the
/Data/Date
field to the data type
xs:date
, the form will automatically show a
date picker for the date input field! Have a look at the underlying HTML code. As
you can see, betterForm adds lots of functionality to make all this happen.
When you press the submit button (after filling in the values), the posted XML will
show through the
hello-xforms-submit.xq
page, as
Example 2-10
demonstrates.
Example 2-10. Getting the results of an XForm
xquery
version
"1.0"
encoding
"UTF-8"
;
<XFormsResult>
{
request:get-data
()}
</XFormsResult>
You can find more on XForms in
“XForms” on page 254
.
Search WWH ::
Custom Search