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]