cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
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 [mailto:proyal@managingpartners.com]
>>
>> If you're lucky, and do you do get an error
>> once the pipeline has started, as long as the response has not been
>commited,
>
>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.

this:

			<!--
				Pre

				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"/>
			</map:match>

calls:

			<!--

				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:generate>
					<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:transform>
					<map:serialize type="massively-buffered-xml"/>
				</map:act>
			</map:match>


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

Thanks

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:sharkbait@mac.com>     		 <http://www.media.demon.co.uk>
   <phone:+44.[0].20.7737.6831>             <pager:jermq@vizzavi.net>

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


Mime
View raw message