Lines Matching refs:topgrammar
180 xmlRelaxNGGrammarPtr topgrammar; member
811 if (schema->topgrammar != NULL) in xmlRelaxNGFree()
812 xmlRelaxNGFreeGrammar(schema->topgrammar); in xmlRelaxNGFree()
4782 (docu->schema->topgrammar != NULL)) { in xmlRelaxNGProcessExternalRef()
4783 docu->content = docu->schema->topgrammar->start; in xmlRelaxNGProcessExternalRef()
4784 if (docu->schema->topgrammar->refs) in xmlRelaxNGProcessExternalRef()
4785 xmlRelaxNGParseImportRefs(ctxt, docu->schema->topgrammar); in xmlRelaxNGProcessExternalRef()
6654 schema->topgrammar = xmlRelaxNGParseGrammar(ctxt, node->children); in xmlRelaxNGParseDocument()
6655 if (schema->topgrammar == NULL) { in xmlRelaxNGParseDocument()
6662 schema->topgrammar = ret = xmlRelaxNGNewGrammar(ctxt); in xmlRelaxNGParseDocument()
6663 if (schema->topgrammar == NULL) { in xmlRelaxNGParseDocument()
6688 if (schema->topgrammar->start != NULL) { in xmlRelaxNGParseDocument()
6689 xmlRelaxNGCheckCycles(ctxt, schema->topgrammar->start, 0); in xmlRelaxNGParseDocument()
6691 xmlRelaxNGSimplify(ctxt, schema->topgrammar->start, NULL); in xmlRelaxNGParseDocument()
6692 while ((schema->topgrammar->start != NULL) && in xmlRelaxNGParseDocument()
6693 (schema->topgrammar->start->type == XML_RELAXNG_NOOP) && in xmlRelaxNGParseDocument()
6694 (schema->topgrammar->start->next != NULL)) in xmlRelaxNGParseDocument()
6695 schema->topgrammar->start = in xmlRelaxNGParseDocument()
6696 schema->topgrammar->start->content; in xmlRelaxNGParseDocument()
6697 xmlRelaxNGCheckRules(ctxt, schema->topgrammar->start, in xmlRelaxNGParseDocument()
7564 if ((ret->topgrammar != NULL) && (ret->topgrammar->start != NULL)) { in xmlRelaxNGParse()
7565 if (ret->topgrammar->start->type != XML_RELAXNG_START) { in xmlRelaxNGParse()
7571 def->content = ret->topgrammar->start; in xmlRelaxNGParse()
7572 ret->topgrammar->start = def; in xmlRelaxNGParse()
7575 xmlRelaxNGTryCompile(ctxt, ret->topgrammar->start); in xmlRelaxNGParse()
7874 if (schema->topgrammar == NULL) { in xmlRelaxNGDump()
7878 xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1); in xmlRelaxNGDump()
8304 grammar = schema->topgrammar; in xmlRelaxNGValidatePushElement()
10740 grammar = schema->topgrammar; in xmlRelaxNGValidateDocument()