I recently wrote:
> For starters, you might take a look at Robin Cover's "XML and Forms"
> page, at:
> This is an excellent road map to the subject of "pure XML" forms.
Well, that's true. But on reflection I'm not sure if that's what the
questioner had in mind. If by "web forms" he meant "HTML forms that can
be used *now*," I don't think pure-XML forms will help. If you use
XForms to define a form, and open that document in a browser today, the
browser won't treat it as a form but just as any other XML (non-(X)HTML)
vocabulary. It won't recognize the "form-ness" of the document's
content, because there's no inherent behavior or styling associated with
any non-(X)HTML markup.
Here's the original question:
> Is it possible to make a DTD govern the generation of web forms?
You could create an (X)HTML form from an XML document easily enough (as
such things go). But this wouldn't be governed by a DTD exactly; it'd be
governed by an XSLT transformation to create an (X)HTML page, including
one or more forms. All the behaviors and display characteristics in the
form(s) on the generated page would have to conform to whatever browsers
John E. Simpson | "I accidentally installed the deer
http://www.flixml.org | whistles on my car backwards. Now
XML Q&A: www.xml.com | everywhere I go, I'm chased by deer."
| (Steven Wright)