The detailed form part is rather easy, all you have to do is to supply the right path to your subtree in the XML document in a context element in the binding.
See the docs at http://cocoon.apache.org/2.1/userdocs/forms/binding.html#fb%3Acontext
For the list view for add/delete/move I would use a JXTemplate displaying the list and appropriate add/delete/move links, which are handled by some flow functions... I think that's easier than putting all functionality in a big CForm...
HTH,
tom
> -----Ursprüngliche Nachricht-----
> Von: Mark Lundquist [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 19. Oktober 2005 16:04
> An: [EMAIL PROTECTED]
> Betreff: [cforms] XML binding, bind to DOM subtree?
>
> Hi,
>
> I have a problem that I'd like to solve with the binding framework
> binding to XML. It's a simple CRUD scenario operating on a small data
> set that could easily be maintained as an XML document in a file --
> don't really need a database for this. The data consists of a list of
> elements, and I would use a repeater to add/delete/move those.
> However, editing the contents of the elements themselves needs to be
> done in a separate "details" form, as the controls are rather too big
> to include in the repeater -- there'll be an htmlarea or something like
> that. Plus, the usability design calls for a "one-at-a-time" usage
> model for editing these things.
>
> So, it seems that what I need to do is to bind this "details" form to a
> subtree of the XML document. Is there any way to do that?
>
> Thanks,
> -ml-
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
