cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: [C2] xsp.xsl/devel code
Date Tue, 17 Oct 2000 22:21:46 GMT
Marcus Crafter wrote:
> On Tue, 17 Oct 2000, Stefano Mazzocchi wrote:
> > Marcus Crafter wrote:
> > >
> > >         Now, I can understand reasons not to do this, but I can also understand
> > >         reasons to do this, so maybe my patch is not appropriate ? Hence my
> > >         question above.
> >
> > Hmmm, it might increase your lazyness which is not good, but on the
> > other hand it could simplify some coding and adding visibility to the
> > code which is good.
>         I agree with both of your points :-)
>         I tend to see the benefits of quick prototyping, clean clear code with
>         well placed exception handlers out of good coding rather than need,
>         more than prevention of sloppy code (no sloppy coders use C2 :-) )
>         I could also see situations where fatal errors in XSP code mean that
>         an application is out of action - where the application wide error
>         handler is better suited to handle the error with it's own
>         stylesheets.
>         But perhaps more expercienced developers out there might like to
>         comment.
>         Maybe making it configurable might also be an option ? Kind of
>         like 'use strict;' in perl.

Well, I think that if not caught, XSP exceptions should trigger the
error page creation which is specified in the sitemap... this requires
try/catch encapsulation.... but that means you can't catch your own
stuff.... hmmmm, Ricardo, any thoughs on this?

Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<>                             Friedrich Nietzsche
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------

View raw message