Thanks, it works:
      <map:match pattern="form_template.xml">
        <map:generate src="xml/application.xml"/>
        <map:transform src="xsl/xmlToFormTemplate.xsl" label="content">
        </map:transform>
        <map:serialize type="xml"/>
      </map:match>

      <map:match pattern="form_definition.xml">
        <map:generate src="xml/application.xml"/>
        <map:transform src="xsl/xmlToFormDefinition.xsl" label="content">
        </map:transform>
        <map:serialize type="xml"/>
      </map:match>






Jasha Joachimsthal-2 wrote:
> 
>  
> 
>> -----Original Message-----
>> From: jantje [mailto:[EMAIL PROTECTED] 
>> Sent: vrijdag 22 augustus 2008 14:18
>> To: [email protected]
>> Subject: generate form_definition
>> 
>> 
>> Hi there, I have variable data which I want to display in a form.
>> 
>> A form has a form_template and a form_definition. The 
>> form_template is generated in the sitemap: there I am able to 
>> generate the content like I need.
>> 
>> The form_definition is called from the flowscript:
>>      var form = new 
>> Form("cocoon://resources/internal/test_definition.xml");
>> 
>> Is it possible to not just call this file 
>> (test_definition.xml) but generate it? 
> 
> Yes you can, just handle the uri in a different way in your sitemap. Not
> by a reader but generate-(transform-)serialize.
> 
> Jasha Joachimsthal 
> 
> www.onehippo.com
> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
> San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
> 94952-3329 +1 (707) 773-4646
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/generate-form_definition-tp19106103p19107631.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to