Lines Matching refs:topgrammar
178 xmlRelaxNGGrammarPtr topgrammar; member
808 if (schema->topgrammar != NULL) in xmlRelaxNGFree()
809 xmlRelaxNGFreeGrammar(schema->topgrammar); in xmlRelaxNGFree()
4684 (docu->schema->topgrammar != NULL)) { in xmlRelaxNGProcessExternalRef()
4685 docu->content = docu->schema->topgrammar->start; in xmlRelaxNGProcessExternalRef()
6532 schema->topgrammar = xmlRelaxNGParseGrammar(ctxt, node->children); in xmlRelaxNGParseDocument()
6536 schema->topgrammar = ret = xmlRelaxNGNewGrammar(ctxt); in xmlRelaxNGParseDocument()
6537 if (schema->topgrammar == NULL) { in xmlRelaxNGParseDocument()
6561 if (schema->topgrammar->start != NULL) { in xmlRelaxNGParseDocument()
6562 xmlRelaxNGCheckCycles(ctxt, schema->topgrammar->start, 0); in xmlRelaxNGParseDocument()
6564 xmlRelaxNGSimplify(ctxt, schema->topgrammar->start, NULL); in xmlRelaxNGParseDocument()
6565 while ((schema->topgrammar->start != NULL) && in xmlRelaxNGParseDocument()
6566 (schema->topgrammar->start->type == XML_RELAXNG_NOOP) && in xmlRelaxNGParseDocument()
6567 (schema->topgrammar->start->next != NULL)) in xmlRelaxNGParseDocument()
6568 schema->topgrammar->start = in xmlRelaxNGParseDocument()
6569 schema->topgrammar->start->content; in xmlRelaxNGParseDocument()
6570 xmlRelaxNGCheckRules(ctxt, schema->topgrammar->start, in xmlRelaxNGParseDocument()
7436 if ((ret->topgrammar != NULL) && (ret->topgrammar->start != NULL)) { in xmlRelaxNGParse()
7437 if (ret->topgrammar->start->type != XML_RELAXNG_START) { in xmlRelaxNGParse()
7443 def->content = ret->topgrammar->start; in xmlRelaxNGParse()
7444 ret->topgrammar->start = def; in xmlRelaxNGParse()
7447 xmlRelaxNGTryCompile(ctxt, ret->topgrammar->start); in xmlRelaxNGParse()
7746 if (schema->topgrammar == NULL) { in xmlRelaxNGDump()
7750 xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1); in xmlRelaxNGDump()
8176 grammar = schema->topgrammar; in xmlRelaxNGValidatePushElement()
10566 grammar = schema->topgrammar; in xmlRelaxNGValidateDocument()