cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Pope" <benpop...@gmail.com>
Subject Re: CForms - Binding to one of Multiple Records
Date Sat, 29 Apr 2006 17:49:43 GMT
On 28/04/06, Peter Sparkes <peter@didm.co.uk> wrote:
> Hi
>
> I have an xml file containing multiple records of identical structure -
> I want to use CForms  to allow uses to update individual records,
> selected by its ID.
>
> Please, is it possible to bind a CForm to one of many records in the
> file and if so how?

If you serve the binding file through a pipeline then you can
customise the path:

<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
path="/records/record[@id=$(recordId)]" >

recordId can be a parameter passed in from the sitemap.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Mime
View raw message