cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Continuations with dynamically created forms?
Date Wed, 30 May 2007 14:57:13 GMT
Thanks Niels
That works now - only issue is that the continuation no. has
a "}" at the end - is this a problem:

>>> Niels van Kampenhout <> 2007/05/30 04:42 PM

Hi Derek,

Derek Hohls wrote:
> Thanks Niels but I am not sure that is the fault..
> I now get the error:
> org.xml.sax.SAXParseException: The value of attribute "action"
> associated with an 
> element type "ft:form-template" must not contain the '<' character.
> when I try and use the CDATA wrapper in the stylesheet:
> <ft:form-template action="<![CDATA[#{$continuation/id}.continue}]]>"
> method="POST">
> I think there might be a deeper problem.

That's invalid XML. If this is in an XSLT (and I think it is, since
original error was a TransformerException), try

<ft:form-template method="POST">

This works for me.


>>>> Niels van Kampenhout <> 2007/05/30
> PM >>>
> Derek Hohls wrote:
>> Working with Cocoon 2.1.8
>> I am getting the following error when I try to reference the 
>> continuation variable, used for the form action.
>> javax.xml.transform.TransformerException: Could not find variable 
>>   with the name of continuation
>> Basically, I am calling the form creation match via flowscript,
>> followed by a call to the form display match.  (Very standard
> stuff).
>> Each of these matches then generates the form definition and 
>> template (respectively) using information sourced from a database. 

>> If I take the result from each of the two matches ie. one XML file
>> with the form definition and one with the form template, and then
>> call these static files in similar way from flowscript, the 
>> continuation
>> number is generated as expected.
>> How do I go about creating/referencing a continuation with a
>> form creation option?
> Not sure but the error you see might be caused by a # or $ in 
> "#{$cocoon/continuation/id}" getting lost in the dynamic form
> process, so if that is the case try putting it inside CDATA, e.g.
> <![CDATA[#{$cocoon/continuation/id}]]>
> Hope this helps,
> Niels
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 

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

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

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

View raw message