Lines Matching defs:schema

211     xmlRelaxNGPtr schema;       /* The schema in use */
356 xmlRelaxNGPtr schema; /* The schema in use */
404 xmlRelaxNGPtr schema; /* the schema */
417 xmlRelaxNGPtr schema; /* the schema */
664 static void xmlRelaxNGFreeInnerSchema(xmlRelaxNGPtr schema);
688 if (docu->schema != NULL)
689 xmlRelaxNGFreeInnerSchema(docu->schema);
727 if (incl->schema != NULL)
728 xmlRelaxNGFree(incl->schema);
775 * @schema: a schema structure
777 * Deallocate a RelaxNG schema structure.
780 xmlRelaxNGFreeInnerSchema(xmlRelaxNGPtr schema)
782 if (schema == NULL)
785 if (schema->doc != NULL)
786 xmlFreeDoc(schema->doc);
787 if (schema->defTab != NULL) {
790 for (i = 0; i < schema->defNr; i++)
791 xmlRelaxNGFreeDefine(schema->defTab[i]);
792 xmlFree(schema->defTab);
795 xmlFree(schema);
800 * @schema: a schema structure
805 xmlRelaxNGFree(xmlRelaxNGPtr schema)
807 if (schema == NULL)
810 if (schema->topgrammar != NULL)
811 xmlRelaxNGFreeGrammar(schema->topgrammar);
812 if (schema->doc != NULL)
813 xmlFreeDoc(schema->doc);
814 if (schema->documents != NULL)
815 xmlRelaxNGFreeDocumentList(schema->documents);
816 if (schema->includes != NULL)
817 xmlRelaxNGFreeIncludeList(schema->includes);
818 if (schema->defTab != NULL) {
821 for (i = 0; i < schema->defNr; i++)
822 xmlRelaxNGFreeDefine(schema->defTab[i]);
823 xmlFree(schema->defTab);
826 xmlFree(schema);
4781 docu->schema = xmlRelaxNGParseDocument(ctxt, root);
4783 if ((docu->schema != NULL) &&
4784 (docu->schema->topgrammar != NULL)) {
4785 docu->content = docu->schema->topgrammar->start;
4786 if (docu->schema->topgrammar->refs)
4787 xmlRelaxNGParseImportRefs(ctxt, docu->schema->topgrammar);
6631 * @node: the root node of the RelaxNG schema
6642 xmlRelaxNGPtr schema = NULL;
6649 schema = xmlRelaxNGNewRelaxNG(ctxt);
6650 if (schema == NULL)
6656 schema->topgrammar = xmlRelaxNGParseGrammar(ctxt, node->children);
6660 schema->topgrammar = ret = xmlRelaxNGNewGrammar(ctxt);
6661 if (schema->topgrammar == NULL) {
6662 return (schema);
6685 if (schema->topgrammar->start != NULL) {
6686 xmlRelaxNGCheckCycles(ctxt, schema->topgrammar->start, 0);
6688 xmlRelaxNGSimplify(ctxt, schema->topgrammar->start, NULL);
6689 while ((schema->topgrammar->start != NULL) &&
6690 (schema->topgrammar->start->type == XML_RELAXNG_NOOP) &&
6691 (schema->topgrammar->start->next != NULL))
6692 schema->topgrammar->start =
6693 schema->topgrammar->start->content;
6694 xmlRelaxNGCheckRules(ctxt, schema->topgrammar->start,
6699 if (schema == NULL)
6704 return (schema);
6715 * @URL: the location of the schema
6812 * @ctxt: the schema parser context
6814 * Free the resources associated to the schema parser context
7458 * parse a schema definition resource and build an internal
7575 * Transfer the pointer for cleanup at the schema level.
7849 * @schema: a schema structure
7854 xmlRelaxNGDump(FILE * output, xmlRelaxNGPtr schema)
7858 if (schema == NULL) {
7863 if (schema->doc == NULL) {
7865 } else if (schema->doc->URL != NULL) {
7866 fprintf(output, "%s\n", schema->doc->URL);
7870 if (schema->topgrammar == NULL) {
7874 xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1);
7880 * @schema: a schema structure
7885 xmlRelaxNGDumpTree(FILE * output, xmlRelaxNGPtr schema)
7889 if (schema == NULL) {
7893 if (schema->doc == NULL) {
7896 xmlDocDump(output, schema->doc);
8290 xmlRelaxNGPtr schema;
8295 schema = ctxt->schema;
8296 if (schema == NULL) {
8300 grammar = schema->topgrammar;
8492 * @ctxt: a schema validation context
8522 * @ctxt: a schema validation context
10709 xmlRelaxNGPtr schema;
10714 if ((ctxt == NULL) || (ctxt->schema == NULL) || (doc == NULL))
10718 schema = ctxt->schema;
10719 grammar = schema->topgrammar;
10852 * @schema: a precompiled XML RelaxNGs
10854 * Create an XML RelaxNGs validation context based on the given schema
10859 xmlRelaxNGNewValidCtxt(xmlRelaxNGPtr schema)
10869 ret->schema = schema;
10876 if (schema != NULL)
10877 ret->idref = schema->idref;
10887 * @ctxt: the schema validation context
10889 * Free the resources associated to the schema validation context