cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject RE: error handling !*#%!
Date Wed, 20 Mar 2002 11:15:33 GMT
At 11:49 am -0500 19/3/02, Vadim Gritsenko wrote:
>> From: Peter Royal []
>> If you're lucky, and do you do get an error
>> once the pipeline has started, as long as the response has not been
>You can increase your changes (and decrease perceived performance) by
>boosting serializer buffer size.
>> you can still get a redirect to the handle-errors pipeline safely.

Ah Ha, maybe the penny dropped!

Could this be done on a single intenal pipeline, ie.



				Create a Preview Document out of a Request
				validate it
			<map:match pattern="content-pre(*,**)">
				<map:generate src="cocoon:/request-pre({1})"/>
				<map:transform src="cocoon:/make-validator({1})"/>
				<map:transform src="editor/stylesheets/validationFilter.xsl"/>
				<map:serialize type="xml"/>



				Alpha Editor, using the StreamGenerator

			<map:match pattern="request-*(alpha)">
				<map:act type="request">
					<map:parameter name="parameters" value="true"/>
					<map:generate type="stream">
						<map:parameter name="form-name" value="{xml-field-name}"/>
					<map:transform src="editor/stylesheets/stream2editor.xsl">
						<map:parameter name="sub" value="alpha"/>
						<map:parameter name="target" value="{target}"/>
						<map:parameter name="behaviour" value="{../1}"/>
					<map:serialize type="massively-buffered-xml"/>

And the request-put(alpha) call could (if the buffer is big enough) return
only the <error/>?


regards Jeremy

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <>     		 <>
   <phone:+44.[0].20.7737.6831>             <>

To unsubscribe, e-mail:
For additional commands, email:

View raw message