> > Hi there, > I use Cocoon 2.1.9 and I'm having a problem with writing the > source file > (adapted from the portal-fw block) > > Here is my sitemap.xmap fragment > > <map:match pattern="do-register"> > <map:generate src="newuser.xml"/> > <map:transform src="stylesheets/generate-activate.xsl"/> > <map:transform type="session"/> > <map:transform type="cinclude"/> > <map:transform type="write-source"/> > <map:redirect-to uri="register-thank-you"/> > </map:match> > > The problem is the file does not get updated > > However, if I replace the redirect-to with > > <map:serialize type="xml"></map:serialize> > > Then I see the correct answers from the source write and I > also see the > results correctly in the file.
You are not allowed to do a map:redirect-to in this way. Probably, no single pipeline now matches do-register, because a serializer is needed. To me, the do-register typically looks something for flow. Call a flow function, do some logic, and redirect to a register-thank-you page. Regards Ard > > What am I doing wrong? > > K<o> > - -- > [EMAIL PROTECTED] > http://conficio.blogspot.com/ > ================================================ > | We teach software one screencast at a time | > ================================================ > http://www.conficio.com/ > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.5 (MingW32) > > iD8DBQFFPixxRDUvrJRNjTARAiS0AKCXtKTFcwAsdyrrHQ/HyR8mP7zljACfexN6 > V35pXKnCyxtMHWzFIYbogfo= > =0EiZ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > 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]
