cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <>
Subject Re: XMLForm / instance data from XML / Popup sample
Date Thu, 09 Jan 2003 10:43:41 GMT
On 08.Jan.2003 -- 10:42 PM, Ivelin Ivanov wrote:
> Christian,
> It is great that you are looking at XML data models more seriously.

Don't expect too much. Although I'm almost done with an InputModule
accessing the Form. I think this came up a number of times and turned
out to be almost trivial. :-)

> > From: "Christian Haul" <>

> > If no validation is required, and only the XForms -> HTML conversion
> > is needed, a complete XMLForms instance is needed, still. Would it be
> > possible / OK to remove the dependencies of the XMLFormTransformer
> > from Form? As far as I could see, all it does is lookup the Form and
> > use the getVale() method.
> Can you give me an example where "only the XForms -> HTML conversion is
> needed".
> I am not sure I understand what that means.

This happens when you want to profit from the XForms features of
detatched instance data but have next to none result processing. Say,
you have an XML representation of your form data. This could be
generated by an XMLizable object, a <esql:get-columns/> tag, or
another processing pipeline.

Either this representation is available as an object or the
SimpleFormInstanceExtractionTransformer could be used to
create a DOM from it.

Now, this needs to be rendered to HTML since hardly any XForms capable
browsers are out there.

When (if at all - XForms can be used for display purposes as well!) the
form data is returned it is either just stored (probably as XML) or
displayed again.

Obviously, if validation enters this scenario, there would be no
reason not to create a Form object.

C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

To unsubscribe, e-mail:
For additional commands, email:

View raw message