Maxim Dounin
March 21, 2012 10:32AM
Hello!

On Wed, Mar 21, 2012 at 01:55:09PM +0000, Laurence Rowe wrote:

> Snipping for brevity:
>
> On 21 March 2012 12:55, Maxim Dounin <mdounin@mdounin.ru> wrote:
> >> > 2) The are no error handling for html code, and while it's
> >> > probably ok to ignore parsing problems - it's certainly not ok to
> >> > ignore fatal problems like memory allocation ones.
> >>
> >> I'll add back the fatal error handler and add an off switch to it.
> >
> > Not really understand.  Why do you think it should be possible to
> > switch off handling of memory allocation errors?
>
> I wasn't clear here. Currently errors are detected with the return
> value from xmlParseChunk. With htmlParseChunk we cannot use the return
> value as we want to ignore any recoverable parsing errors, so we need
> another way to detect when a fatal error has occurred. I'll add a flag
> (or 'off switch') to ngx_http_xslt_filter_ctx_t, set it in
> ngx_http_xslt_sax_error when an error and test that instead.

Ok, this looks fine. Thanks for clarification.

Maxim Dounin

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

HTML parsing support for xslt module Attachments

Laurence Rowe 1469 March 14, 2012 01:06PM

Re: HTML parsing support for xslt module

Maxim Dounin 558 March 19, 2012 01:04PM

Re: HTML parsing support for xslt module

Laurence Rowe 476 March 20, 2012 12:06PM

Re: HTML parsing support for xslt module

Maxim Dounin 494 March 21, 2012 08:56AM

Re: HTML parsing support for xslt module

Laurence Rowe 479 March 21, 2012 09:56AM

Re: HTML parsing support for xslt module

Maxim Dounin 511 March 21, 2012 10:32AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready