Lines Matching refs:schema
163 xmlSchematronPtr schema; member
194 xmlSchematronPtr schema; member
391 xmlSchematronAddRule(xmlSchematronParserCtxtPtr ctxt, xmlSchematronPtr schema, in xmlSchematronAddRule() argument
398 if ((ctxt == NULL) || (schema == NULL) || (node == NULL) || in xmlSchematronAddRule()
425 if (schema->rules == NULL) { in xmlSchematronAddRule()
426 schema->rules = ret; in xmlSchematronAddRule()
428 xmlSchematronRulePtr prev = schema->rules; in xmlSchematronAddRule()
485 xmlSchematronPtr schema, xmlNodePtr node, xmlChar *name) in xmlSchematronAddPattern() argument
489 if ((ctxt == NULL) || (schema == NULL) || (node == NULL) || (name == NULL)) in xmlSchematronAddPattern()
500 if (schema->patterns == NULL) { in xmlSchematronAddPattern()
501 schema->patterns = ret; in xmlSchematronAddPattern()
503 xmlSchematronPatternPtr prev = schema->patterns; in xmlSchematronAddPattern()
563 xmlSchematronFree(xmlSchematronPtr schema) in xmlSchematronFree() argument
565 if (schema == NULL) in xmlSchematronFree()
568 if ((schema->doc != NULL) && (!(schema->preserve))) in xmlSchematronFree()
569 xmlFreeDoc(schema->doc); in xmlSchematronFree()
571 if (schema->namespaces != NULL) in xmlSchematronFree()
572 xmlFree((char **) schema->namespaces); in xmlSchematronFree()
574 xmlSchematronFreeRules(schema->rules); in xmlSchematronFree()
575 xmlSchematronFreePatterns(schema->patterns); in xmlSchematronFree()
576 xmlDictFree(schema->dict); in xmlSchematronFree()
577 xmlFree(schema); in xmlSchematronFree()
878 ruleptr = xmlSchematronAddRule(ctxt, ctxt->schema, pattern, in xmlSchematronParseRule()
972 pattern = xmlSchematronAddPattern(ctxt, ctxt->schema, pat, id); in xmlSchematronParsePattern()
1152 ctxt->schema = ret; in xmlSchematronParse()
1505 xmlSchematronNewValidCtxt(xmlSchematronPtr schema, int options) in xmlSchematronNewValidCtxt() argument
1518 ret->schema = schema; in xmlSchematronNewValidCtxt()
1527 for (i = 0;i < schema->nbNamespaces;i++) { in xmlSchematronNewValidCtxt()
1528 if ((schema->namespaces[2 * i] == NULL) || in xmlSchematronNewValidCtxt()
1529 (schema->namespaces[2 * i + 1] == NULL)) in xmlSchematronNewValidCtxt()
1531 xmlXPathRegisterNs(ret->xctxt, schema->namespaces[2 * i + 1], in xmlSchematronNewValidCtxt()
1532 schema->namespaces[2 * i]); in xmlSchematronNewValidCtxt()
1673 if ((ctxt == NULL) || (ctxt->schema == NULL) || in xmlSchematronValidateDoc()
1674 (ctxt->schema->rules == NULL) || (instance == NULL)) in xmlSchematronValidateDoc()
1691 rule = ctxt->schema->rules; in xmlSchematronValidateDoc()
1709 pattern = ctxt->schema->patterns; in xmlSchematronValidateDoc()
1750 xmlSchematronPtr schema = NULL; in main() local
1756 schema = xmlSchematronParse(pctxt); in main()
1757 if (schema == NULL) { in main()
1767 if ((schema != NULL) && (instance != NULL)) { in main()
1768 vctxt = xmlSchematronNewValidCtxt(schema); in main()
1776 xmlSchematronFree(schema); in main()