-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OK Mike,
There's now a new Exceptions taglib in CVS which *should* fix this problem. It's entirely untested, but I'd love you to take a look at it and see if it works for me. It will probably only work *without* your changes to XSP.pm (i.e. what we're going to release for AxKit 1.6). Thanks! On Tuesday 14 May 2002 1:32 pm, Mike Chamberlain wrote: > Hi > > This is a patch to XSP.pm, it changes the way XML is built up. At the > moment XML is added to the document when a start_element is encountered, > this changes it > to adding it when the end_element happens. > > The advantage being that if an exception happens, the xml generated only > contains xml tags which have been fully closed. > > Before.... if you had the following xsp. > <xml> > <err:try> > <wibble/> > <tag> > <die:throw/> > </tag> > <err:catch> > <exception/> > </err:catch> > </err:try> > </xml> > > you ended up with... > > <xml> > <wibble/> > <tag> > <exception/> > </tag> > </xml> > > Now you get. > > <xml> > <wibble/> > <exception/> > </xml> > > So this means you don't have to write xsp code which throws all it's > exceptions at the start, > but can now throw whenever it wants to, and it should do the right thing. > > > Mike. - -- <:->get a SMart net</:-> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9A9VlVBc71ct6OywRAr78AKC4LRnICB4o8uWslkwvYtRdvv+FPACdFWW4 RHL7nM2jbAnCG218Owp9BRQ= =3Ck7 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
