Chapter 0 – Setting up the starting point

Previous chapter | Next chapter

Before we can get into XForms code, we need to set up the environment. I assume you will have a tool to edit code (preferably with syntax highlighting and autocompletion), as well as a tool to preview or publish XForms documents. The Smartsite XForms Workbench is a great tool because it combines the two while offering great inspection and debugging aids. Another excellent tool is the Orbeon Forms Designer.

As an XForms definition is generally embedded in an HTML (be it HTML4, HTML5 or XHTML) context, we will start with creating the surrounding environment: an XML document containing a number of important namespaces and some HTML code in it.

Previous chapter | Next chapter

Snippet 1

<?xml version="1.0" encoding="UTF-8"?>
		<h1>Events Application Form</h1>