Home | History | Annotate | Download | only in libxml2

Lines Matching defs:schema

210     xmlRelaxNGPtr schema;       /* The schema in use */
355 xmlRelaxNGPtr schema; /* The schema in use */
403 xmlRelaxNGPtr schema; /* the schema */
416 xmlRelaxNGPtr schema; /* the schema */
662 static void xmlRelaxNGFreeInnerSchema(xmlRelaxNGPtr schema);
686 if (docu->schema != NULL)
687 xmlRelaxNGFreeInnerSchema(docu->schema);
725 if (incl->schema != NULL)
726 xmlRelaxNGFree(incl->schema);
773 * @schema: a schema structure
775 * Deallocate a RelaxNG schema structure.
778 xmlRelaxNGFreeInnerSchema(xmlRelaxNGPtr schema)
780 if (schema == NULL)
783 if (schema->doc != NULL)
784 xmlFreeDoc(schema->doc);
785 if (schema->defTab != NULL) {
788 for (i = 0; i < schema->defNr; i++)
789 xmlRelaxNGFreeDefine(schema->defTab[i]);
790 xmlFree(schema->defTab);
793 xmlFree(schema);
798 * @schema: a schema structure
803 xmlRelaxNGFree(xmlRelaxNGPtr schema)
805 if (schema == NULL)
808 if (schema->topgrammar != NULL)
809 xmlRelaxNGFreeGrammar(schema->topgrammar);
810 if (schema->doc != NULL)
811 xmlFreeDoc(schema->doc);
812 if (schema->documents != NULL)
813 xmlRelaxNGFreeDocumentList(schema->documents);
814 if (schema->includes != NULL)
815 xmlRelaxNGFreeIncludeList(schema->includes);
816 if (schema->defTab != NULL) {
819 for (i = 0; i < schema->defNr; i++)
820 xmlRelaxNGFreeDefine(schema->defTab[i]);
821 xmlFree(schema->defTab);
824 xmlFree(schema);
4681 docu->schema = xmlRelaxNGParseDocument(ctxt, root);
4683 if ((docu->schema != NULL) &&
4684 (docu->schema->topgrammar != NULL)) {
4685 docu->content = docu->schema->topgrammar->start;
6507 * @node: the root node of the RelaxNG schema
6518 xmlRelaxNGPtr schema = NULL;
6525 schema = xmlRelaxNGNewRelaxNG(ctxt);
6526 if (schema == NULL)
6532 schema->topgrammar = xmlRelaxNGParseGrammar(ctxt, node->children);
6536 schema->topgrammar = ret = xmlRelaxNGNewGrammar(ctxt);
6537 if (schema->topgrammar == NULL) {
6538 return (schema);
6561 if (schema->topgrammar->start != NULL) {
6562 xmlRelaxNGCheckCycles(ctxt, schema->topgrammar->start, 0);
6564 xmlRelaxNGSimplify(ctxt, schema->topgrammar->start, NULL);
6565 while ((schema->topgrammar->start != NULL) &&
6566 (schema->topgrammar->start->type == XML_RELAXNG_NOOP) &&
6567 (schema->topgrammar->start->next != NULL))
6568 schema->topgrammar->start =
6569 schema->topgrammar->start->content;
6570 xmlRelaxNGCheckRules(ctxt, schema->topgrammar->start,
6575 if (schema == NULL)
6580 return (schema);
6591 * @URL: the location of the schema
6688 * @ctxt: the schema parser context
6690 * Free the resources associated to the schema parser context
7334 * parse a schema definition resource and build an internal
7451 * Transfer the pointer for cleanup at the schema level.
7725 * @schema: a schema structure
7730 xmlRelaxNGDump(FILE * output, xmlRelaxNGPtr schema)
7734 if (schema == NULL) {
7739 if (schema->doc == NULL) {
7741 } else if (schema->doc->URL != NULL) {
7742 fprintf(output, "%s\n", schema->doc->URL);
7746 if (schema->topgrammar == NULL) {
7750 xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1);
7756 * @schema: a schema structure
7761 xmlRelaxNGDumpTree(FILE * output, xmlRelaxNGPtr schema)
7765 if (schema == NULL) {
7769 if (schema->doc == NULL) {
7772 xmlDocDump(output, schema->doc);
8166 xmlRelaxNGPtr schema;
8171 schema = ctxt->schema;
8172 if (schema == NULL) {
8176 grammar = schema->topgrammar;
8368 * @ctxt: a schema validation context
8398 * @ctxt: a schema validation context
10556 xmlRelaxNGPtr schema;
10561 if ((ctxt == NULL) || (ctxt->schema == NULL) || (doc == NULL))
10565 schema = ctxt->schema;
10566 grammar = schema->topgrammar;
10645 * @schema: a precompiled XML RelaxNGs
10647 * Create an XML RelaxNGs validation context based on the given schema
10652 xmlRelaxNGNewValidCtxt(xmlRelaxNGPtr schema)
10662 ret->schema = schema;
10669 if (schema != NULL)
10670 ret->idref = schema->idref;
10680 * @ctxt: the schema validation context
10682 * Free the resources associated to the schema validation context