You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Phil Snowdon <Ph...@ird.govt.nz> on 2004/08/06 06:31:33 UTC

forms and xinclude

Hi,

Is there any way to apply an xinclude transform to a form
definition file BEFORE creating a form object (handleForm
function)?

The reason is that I have a number of forms with sections that
couuld be reused.  I'd like to keep the common definitions in
seperate files and merge them with the form definition xml files
when needed.  Obviously I'd need a similar mechanism for the form
template files too.

Cheers

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: forms and xinclude

Posted by "Timur Izhbulatov,,," <ti...@kca>.
On Fri, Aug 06, 2004 at 04:31:33PM +1200, Phil Snowdon wrote:
> The reason is that I have a number of forms with sections that
> couuld be reused.  I'd like to keep the common definitions in
> seperate files and merge them with the form definition xml files
> when needed.  Obviously I'd need a similar mechanism for the form
> template files too.

This problem was already discussed here. Please, see this[1] thread.

> Is there any way to apply an xinclude transform to a form
> definition file BEFORE creating a form object (handleForm
> function)?

Let's see. The form-definition parameter that you pass from the sitemap is
a URI pointing to an XML source. That means you theoreticaly could define a 
pipeline which generates form definition and use cocoon:/ scheme in 
form-definition. But I don't know if this actually works.

Alternatively could probably use processPipelineTo to get the output of your 
generating pipeline and use the generated definition to creata a form by hand
whithout using the handleForm() function.

Timur

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=108634557621639&w=2



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org