Lines Matching refs:ctxt

158 static void pcharacters(void *ctxt, const xmlChar *uchars, int length)
161 saxctxt *ctx = (saxctxt*) ctxt;
284 static void pinternalSubset(void* ctxt, const xmlChar *name,
287 saxctxt* ctx = (saxctxt*) ctxt;
288 if (!ctxt || !name) {
311 static void pcdata(void *ctxt, const xmlChar *uchars, int length)
314 saxctxt *ctx = (saxctxt*) ctxt;
325 static void pcomment(void *ctxt, const xmlChar *uchars)
328 saxctxt *ctx = (saxctxt*) ctxt;
344 static void pendElement(void *ctxt, const xmlChar *uname)
346 saxctxt *ctx = (saxctxt*) ctxt;
374 static void pstartElement(void *ctxt, const xmlChar *uname,
386 saxctxt *ctx = (saxctxt*) ctxt;
894 saxctxt *ctxt = check_filter_init(f);
895 if (!ctxt)
902 if (ctxt->parser != NULL) {
903 consume_buffer(ctxt, buf, 0, 1);
905 APR_BRIGADE_INSERT_TAIL(ctxt->bb,
906 apr_bucket_eos_create(ctxt->bb->bucket_alloc));
907 ap_pass_brigade(ctxt->f->next, ctxt->bb);
913 if (ctxt->parser != NULL) {
914 ap_fflush(ctxt->f->next, ctxt->bb);
920 if (ctxt->parser == NULL) {
944 if (ctxt->cfg->charset_out && xml2enc_filter) {
945 if (*ctxt->cfg->charset_out != '*')
946 cenc = ctxt->cfg->charset_out;
957 ap_fputs(f->next, ctxt->bb, ctxt->cfg->doctype);
958 ctxt->parser = htmlCreatePushParserCtxt(&sax, ctxt, buf,
962 if (ctxt->parser == NULL) {
967 apr_pool_cleanup_register(f->r->pool, ctxt->parser,
971 if (xmlopts = xmlCtxtUseOptions(ctxt->parser, xmlopts), xmlopts)
975 if (ctxt->cfg->metafix)
978 consume_buffer(ctxt, buf, m->start, 0);
979 consume_buffer(ctxt, buf+m->end, bytes-m->end, 0);
982 consume_buffer(ctxt, buf, bytes, 0);
986 consume_buffer(ctxt, buf, bytes, 0);
994 /*ap_fflush(ctxt->f->next, ctxt->bb); // uncomment for debug */