I didn't realise you were debugging the result of a form. To select a view, you have to pass the view name in the URL, e.g.
http://localhost/login?cocoon-view=debug-view This is not straightforward with a form. You could add a field called "cocoon-view" to your form, and put "debug-view" in there (assuming your view is called "debug-view". Or perhaps you could just comment out the later steps in the pipeline and serialize the results of the login form as XML? e.g. <map:match pattern="login"> <map:generate type="serverpages" src="xsp/login.xsp" label="debug1"/> <!-- <map:transform type="xslt" src="style/dialog.xsl" label="debug2"> <map:parameter name="css-stylesheet" value="global.css"/> </map:transform> <map:serialize type="html"/> --> <map:serialize type="xml"/> </map:match> Hope that helps Con > -----Original Message----- > From: Tim Bachta [mailto:[EMAIL PROTECTED] > Sent: Thursday, 12 June 2003 2:55 p.m. > To: [EMAIL PROTECTED] > Subject: RE: XML file > > > <map:match pattern="login"> > <map:generate type="serverpages" src="xsp/login.xsp" > label="debug1"/> > <map:transform type="xslt" src="style/dialog.xsl" label="debug2"> > <map:parameter name="css-stylesheet" value="global.css"/> > </map:transform> > <map:serialize type="html"/> > </map:match> > > the view element looks just like the site. I am getting an xml page > back but it is not the same as what I would see. What is happening is > that I have a login form that submits to this page. In this > page I run > a query to validate login. In the xml that I get back I am seeing > invalid login but in the actual html that is produced the login is > validated. That is why I am saying the xml does not match up. > > Tim Bachta --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]