On Wed, 2004-06-02 at 18:19, Bartosz Zgodzinski wrote: > It's realy difiicult for me to describe my problem so please be patient. > In my sitemap I've got this: > <map:match pattern="*.html"> > <map:aggregate element="site"> > <map:part src="documents/menu.xml"/> > <map:part src="cocoon:/{1}.do"/> > </map:aggregate> > <map:transform src="stylesheets/stylesheet.xsl"/> > <map:serialize type="html"/> > </map:match> > > <map:match pattern="*.do"> > <map:call function="{1}"> > </map:call> > </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"/> > </map:match> > > I call page form1.html so it go st thefirst <map:match> and the form1.do is > called. > The function form1 looks like that: > function form1() > { > var form = new Form("forms/d_form1.xml"); > form.showForm("forms/t_form1.xml"); > } > > And now the problem. When the fields in this form are not validated, > everything is ok. But when they are and there is a validation error the form > is printed on the screen as xml. It looks like it is not aggregated with > menu.xml and not transformed with stylesheet.xsl. Can you tell me why? I > hope it's clear what I write.
The argument to your showForm function points to the wrong matcher, try: form.showForm("form1.html"); -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]