Lines Matching refs:topgrammar
178 xmlRelaxNGGrammarPtr topgrammar;
808 if (schema->topgrammar != NULL)
809 xmlRelaxNGFreeGrammar(schema->topgrammar);
4684 (docu->schema->topgrammar != NULL)) {
4685 docu->content = docu->schema->topgrammar->start;
6532 schema->topgrammar = xmlRelaxNGParseGrammar(ctxt, node->children);
6536 schema->topgrammar = ret = xmlRelaxNGNewGrammar(ctxt);
6537 if (schema->topgrammar == NULL) {
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,
7436 if ((ret->topgrammar != NULL) && (ret->topgrammar->start != NULL)) {
7437 if (ret->topgrammar->start->type != XML_RELAXNG_START) {
7443 def->content = ret->topgrammar->start;
7444 ret->topgrammar->start = def;
7447 xmlRelaxNGTryCompile(ctxt, ret->topgrammar->start);
7746 if (schema->topgrammar == NULL) {
7750 xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1);
8176 grammar = schema->topgrammar;
10566 grammar = schema->topgrammar;