Official W3C XForms Getting Started Guide
Gerald Bauer <[email protected]>
| Newsgroups | gmane.comp.lang.xul.announce |
|---|---|
| Message-ID | <[email protected]> |
Hi,
To celebrate XForms new status as a fully endorsed
W3C standard (recommendation in W3C-speak) Steven
Pemberton wrote up an example-packed Getting Started
Guide for HTML junkies to help them see the light.
Steven writes:
Take this simple HTML form:
<html>
<head><title>Search</title></head>
<body>
<form action="http://example.com/search"
method="get">
Find <input type="text" name="q">
<input type="submit" value="Go">
</form>
</body>
</html>
and offers the squeaky clean W3C XForms alternative
that separates the model from the view:
<h:html xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/2002/xforms">
<h:head>
<h:title>Search</h:title>
<model>
<submission action="http://example.com/search"
method="get" id="s"/>
</model>
</h:head>
<h:body>
<h:p>
<input ref="q"><label>Find</label></input>
<submit
submission="s"><label>Go</label></submit>
</h:p>
</h:body>
</h:html>
Full story @
http://www.w3.org/MarkUp/Forms/2003/xforms-for-html-authors.html
- Gerald
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com