Lines Matching refs:instance
1594 * @instance: the document instace tree
1595 * @cur: the current node in the instance
1597 * Validate a rule against a tree instance at a given position
1603 xmlSchematronTestPtr test, xmlDocPtr instance, xmlNodePtr cur, xmlSchematronPatternPtr pattern)
1609 ctxt->xctxt->doc = instance;
1658 * @instance: the document instace tree
1660 * Validate a tree instance against the schematron
1666 xmlSchematronValidateDoc(xmlSchematronValidCtxtPtr ctxt, xmlDocPtr instance)
1674 (ctxt->schema->rules == NULL) || (instance == NULL))
1677 root = xmlDocGetRootElement(instance);
1696 xmlSchematronRunTest(ctxt, test, instance, cur, (xmlSchematronPatternPtr)rule->pattern);
1727 xmlSchematronRunTest(ctxt, test, instance, cur, pattern);
1747 xmlDocPtr instance;
1762 instance = xmlReadFile("tst.sct", NULL,
1764 if (instance == NULL) {
1765 fprintf(stderr, "failed to parse instance\n");
1767 if ((schema != NULL) && (instance != NULL)) {
1772 ret = xmlSchematronValidateDoc(vctxt, instance);
1777 xmlFreeDoc(instance);