Re: XFORM -> QuickForm?
| From: | Aidan Lister | Date: | Fri, 13 Feb 2004 14:51:24 +0000 |
| Subject: | Re: XFORM -> QuickForm? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10679@lists.php.net to get a copy of this message | ||
I've been tempted to post something about xml->quickform for a while now,
but I wasn't sure how it would be recieved!
I'll definitly start thinking about it, when I have some more time I'd love
to contribute some ideas.
Thanks for your reply!
"Bertrand Mansion" <bmansion@mamasam.com> wrote in message
news:BC528CE8.12B4E%bmansion@mamasam.com...
<aidan@virtualexplorer.com.au> wrote :
> I'm not sure if anyone is familiar with XFORMS (w3 spec), but it'd be
pretty
> awesome to design a form in XFORM and implement it with QuickForm - what
do
> people think?
Indeed, it would be awesome :)
But the amount of work required to convert an XForm document to an HTML form
is not worth the price. During the conversion, you will loose most of what
makes Xforms interesting: events, repeat elements, xml schema validation.
More interesting would be to create our own XML schema, based on Xforms why
not, that would get rid of everything that makes Xforms too complex and not
really usable in my eyes. There are already been some reflexion work done on
this topic but no code so far, only ideas and XML examples. We gathered them
in a wiki which I can give you the url if you are interested to work on it.
So far, the main directions have been to make two documents, an XML model
document, used for the datasource definition, and an XML view document, used
for form building/rendering. Those document would be parsed by
XML_Transformer into QuickForm pages and elements.
At the moment, Alexey and I are working on a repeat element, that would
allow to repeat a group of elements in a form. It is still vaporware, just
like the builder, because it is quite complex and we don't have much time.
Feel free to share your ideas if you already thought about the topic.
Bertrand Mansion
Mamasam