Thanks Niels
 
That works now - only issue is that the continuation no. has
a "}" at the end - is this a problem:
 
action="3d815e...b28.continue}"
 
Thanks
Derek

>>> Niels van Kampenhout <[EMAIL PROTECTED]> 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
your 
original error was a TransformerException), try

<ft:form-template method="POST">
   <xsl:attribute 
name="action"><![CDATA[#{$continuation/id}.continue}]]></xsl:attribute>
</ft:form-template>

This works for me.

Niels


>>>> Niels van Kampenhout <[EMAIL PROTECTED]> 2007/05/30
12:23:38
> 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
dynamic
>> 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
creation
> 
> 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: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> 




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



-- 
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
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
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
[EMAIL PROTECTED]


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


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

Reply via email to