cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Reijn" <j.re...@hippo.nl>
Subject RE: SourceWriteTransformer help needed
Date Tue, 24 Oct 2006 16:06:27 GMT
Hi Kaj,

I'm not 100% sure, but I don't think you can do a redirect before the the sax stream is serialized.
So I guess you need to do the serialization first before you can do the redirect.

Regards,

Jeroen Reijn
Hippo

-----Original Message-----
From: Kaj Kandler [mailto:KajKandler@conficio.com]
Posted At: Tuesday, October 24, 2006 5:09 PM
Posted To: Cocoon User List
Conversation: SourceWriteTransformer help needed
Subject: SourceWriteTransformer help needed


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

What am I doing wrong?

K<o>
- --
KajKandler@Conficio.com
 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message