Thanks for Bruno Dumon...
It's a little bit better but it still doesn't work.
I make many changes so I will write it again. Sitemap:
<map:match pattern="form1.html">
<map:aggregate element="site">
<map:part src="documents/menu.xml"/>
<map:part src="cocoon:/forms/t_form1.xml"/>
</map:aggregate>
<map:transform src="stylesheets/stylesheet.xsl"/>
<map:serialize type="html"/>
</map:match>
<map:match pattern="forms/*">
<map:generate src="forms/{1}" type="jx"/>
<map:transform type="form"/>
<map:transform type="i18n" label="debug">
<map:parameter name="locale" value="en_US"/>
</map:transform>
<map:transform src="resources/forms-samples-styling.xsl"/>
<map:serialize type="xml"/> <!-- XML !!!!!!!!!!!!!!!!! I don't know
but may be it's important that it's not html. I've hanged it because I
agregate it with another xml file and than transform as you can see
above -->
</map:match>
so I write URL: http://localhost:8080/test/start.do
function start()
{
var form = new Form("forms/d_form1.xml"); //d_form1.xml it's a
form data and t_form1 it's fotm templates
form.showForm("form1.html");
}
As you see lots of have been changed, but it works very similar. The page
looks the same but the validation doesynt work at all. When I press submit
buten I see white page (it's because I don't have anything after
form.showForm(...)).
Why the validation doesn't work?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]