Lines Matching defs:doc
132 xmlDocPtr doc; /* pointer to the parsed document */
176 xmlDocPtr doc;
177 int preserve; /* Whether the doc should be freed */
561 if ((schema->doc != NULL) && (!(schema->preserve)))
562 xmlFreeDoc(schema->doc);
656 * @doc: a preparsed document tree
664 xmlSchematronNewDocParserCtxt(xmlDocPtr doc)
668 if (doc == NULL)
680 ret->doc = doc;
684 ret->xctxt = xmlXPathNewContext(doc);
706 if (ctxt->doc != NULL && !ctxt->preserve)
707 xmlFreeDoc(ctxt->doc);
721 * @doc: the included document
728 xmlDocPtr doc, xmlNodePtr cur)
755 ctxt->includes[2 * ctxt->nbIncludes + 1] = (xmlNodePtr) doc;
771 xmlDocPtr doc;
777 doc = (xmlDocPtr) ctxt->includes[2 * ctxt->nbIncludes + 1];
779 xmlFreeDoc(doc);
1006 xmlDocPtr doc = NULL;
1023 base = xmlNodeGetBase(cur->doc, cur);
1025 doc = xmlReadFile((const char *) URI, NULL, SCHEMATRON_PARSE_OPTIONS);
1026 if (doc == NULL) {
1033 ret = xmlDocGetRootElement(doc);
1043 xmlSchematronPushInclude(ctxt, doc, cur);
1047 if (doc != NULL)
1048 xmlFreeDoc(doc);
1073 xmlDocPtr doc;
1086 doc = xmlReadFile((const char *) ctxt->URL, NULL,
1088 if (doc == NULL) {
1097 doc = xmlReadMemory(ctxt->buffer, ctxt->size, NULL, NULL,
1099 if (doc == NULL) {
1106 doc->URL = xmlStrdup(BAD_CAST "in_memory_buffer");
1109 } else if (ctxt->doc != NULL) {
1110 doc = ctxt->doc;
1124 root = xmlDocGetRootElement(doc);
1126 xmlSchematronPErr(ctxt, (xmlNodePtr) doc,
1130 xmlFreeDoc(doc);
1206 ret->doc = doc;
1214 xmlFreeDoc(doc);
1244 ctxt->xctxt->doc = cur->doc;
1559 ctxt->xctxt->doc = instance;