Lines Matching refs:instance
1537 * @instance: the document instace tree
1538 * @cur: the current node in the instance
1540 * Validate a rule against a tree instance at a given position
1546 xmlSchematronTestPtr test, xmlDocPtr instance, xmlNodePtr cur)
1552 ctxt->xctxt->doc = instance;
1601 * @instance: the document instace tree
1603 * Validate a tree instance against the schematron
1609 xmlSchematronValidateDoc(xmlSchematronValidCtxtPtr ctxt, xmlDocPtr instance)
1617 (ctxt->schema->rules == NULL) || (instance == NULL))
1620 root = xmlDocGetRootElement(instance);
1639 xmlSchematronRunTest(ctxt, test, instance, cur);
1670 xmlSchematronRunTest(ctxt, test, instance, cur);
1690 xmlDocPtr instance;
1705 instance = xmlReadFile("tst.sct", NULL,
1707 if (instance == NULL) {
1708 fprintf(stderr, "failed to parse instance\n");
1710 if ((schema != NULL) && (instance != NULL)) {
1715 ret = xmlSchematronValidateDoc(vctxt, instance);
1720 xmlFreeDoc(instance);