Lines Matching refs:topgrammar
180 xmlRelaxNGGrammarPtr topgrammar; member
811 if (schema->topgrammar != NULL) in xmlRelaxNGFree()
812 xmlRelaxNGFreeGrammar(schema->topgrammar); in xmlRelaxNGFree()
4786 (docu->schema->topgrammar != NULL)) { in xmlRelaxNGProcessExternalRef()
4787 docu->content = docu->schema->topgrammar->start; in xmlRelaxNGProcessExternalRef()
4788 if (docu->schema->topgrammar->refs) in xmlRelaxNGProcessExternalRef()
4789 xmlRelaxNGParseImportRefs(ctxt, docu->schema->topgrammar); in xmlRelaxNGProcessExternalRef()
6658 schema->topgrammar = xmlRelaxNGParseGrammar(ctxt, node->children); in xmlRelaxNGParseDocument()
6659 if (schema->topgrammar == NULL) { in xmlRelaxNGParseDocument()
6666 schema->topgrammar = ret = xmlRelaxNGNewGrammar(ctxt); in xmlRelaxNGParseDocument()
6667 if (schema->topgrammar == NULL) { in xmlRelaxNGParseDocument()
6692 if (schema->topgrammar->start != NULL) { in xmlRelaxNGParseDocument()
6693 xmlRelaxNGCheckCycles(ctxt, schema->topgrammar->start, 0); in xmlRelaxNGParseDocument()
6695 xmlRelaxNGSimplify(ctxt, schema->topgrammar->start, NULL); in xmlRelaxNGParseDocument()
6696 while ((schema->topgrammar->start != NULL) && in xmlRelaxNGParseDocument()
6697 (schema->topgrammar->start->type == XML_RELAXNG_NOOP) && in xmlRelaxNGParseDocument()
6698 (schema->topgrammar->start->next != NULL)) in xmlRelaxNGParseDocument()
6699 schema->topgrammar->start = in xmlRelaxNGParseDocument()
6700 schema->topgrammar->start->content; in xmlRelaxNGParseDocument()
6701 xmlRelaxNGCheckRules(ctxt, schema->topgrammar->start, in xmlRelaxNGParseDocument()
7568 if ((ret->topgrammar != NULL) && (ret->topgrammar->start != NULL)) { in xmlRelaxNGParse()
7569 if (ret->topgrammar->start->type != XML_RELAXNG_START) { in xmlRelaxNGParse()
7575 def->content = ret->topgrammar->start; in xmlRelaxNGParse()
7576 ret->topgrammar->start = def; in xmlRelaxNGParse()
7579 xmlRelaxNGTryCompile(ctxt, ret->topgrammar->start); in xmlRelaxNGParse()
7878 if (schema->topgrammar == NULL) { in xmlRelaxNGDump()
7882 xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1); in xmlRelaxNGDump()
8308 grammar = schema->topgrammar; in xmlRelaxNGValidatePushElement()
10744 grammar = schema->topgrammar; in xmlRelaxNGValidateDocument()