Lines Matching defs:doc
132 xmlDocPtr doc; /* pointer to the parsed document */
182 xmlDocPtr doc;
183 int preserve; /* Whether the doc should be freed */
566 if ((schema->doc != NULL) && (!(schema->preserve)))
567 xmlFreeDoc(schema->doc);
661 * @doc: a preparsed document tree
669 xmlSchematronNewDocParserCtxt(xmlDocPtr doc)
673 if (doc == NULL)
685 ret->doc = doc;
689 ret->xctxt = xmlXPathNewContext(doc);
711 if (ctxt->doc != NULL && !ctxt->preserve)
712 xmlFreeDoc(ctxt->doc);
726 * @doc: the included document
733 xmlDocPtr doc, xmlNodePtr cur)
760 ctxt->includes[2 * ctxt->nbIncludes + 1] = (xmlNodePtr) doc;
776 xmlDocPtr doc;
782 doc = (xmlDocPtr) ctxt->includes[2 * ctxt->nbIncludes + 1];
784 xmlFreeDoc(doc);
1011 xmlDocPtr doc = NULL;
1028 base = xmlNodeGetBase(cur->doc, cur);
1030 doc = xmlReadFile((const char *) URI, NULL, SCHEMATRON_PARSE_OPTIONS);
1031 if (doc == NULL) {
1038 ret = xmlDocGetRootElement(doc);
1048 xmlSchematronPushInclude(ctxt, doc, cur);
1052 if (doc != NULL)
1053 xmlFreeDoc(doc);
1078 xmlDocPtr doc;
1091 doc = xmlReadFile((const char *) ctxt->URL, NULL,
1093 if (doc == NULL) {
1102 doc = xmlReadMemory(ctxt->buffer, ctxt->size, NULL, NULL,
1104 if (doc == NULL) {
1111 doc->URL = xmlStrdup(BAD_CAST "in_memory_buffer");
1114 } else if (ctxt->doc != NULL) {
1115 doc = ctxt->doc;
1129 root = xmlDocGetRootElement(doc);
1131 xmlSchematronPErr(ctxt, (xmlNodePtr) doc,
1135 xmlFreeDoc(doc);
1211 ret->doc = doc;
1219 xmlFreeDoc(doc);
1249 ctxt->xctxt->doc = cur->doc;
1607 ctxt->xctxt->doc = instance;