Пример #1
0
 public RelaxngGrammar InferSchema(XmlReader xmlReader,
                                   RelaxngGrammar grammar)
 {
     return(RngInference.Process(xmlReader, grammar,
                                 occurrence == InferenceOption.Relaxed,
                                 typeInference == InferenceOption.Relaxed));
 }
Пример #2
0
        public static RelaxngGrammar Process(XmlReader xmlReader,
                                             RelaxngGrammar grammar,
                                             bool laxOccurence,
                                             bool laxTypeInference)
        {
            RngInference impl = new RngInference(xmlReader,
                                                 grammar, laxOccurence, laxTypeInference);

            impl.Run();
            return(impl.grammar);
        }
Пример #3
0
		public static RelaxngGrammar Process (XmlReader xmlReader, 
			RelaxngGrammar grammar,
			bool laxOccurence,
			bool laxTypeInference)
		{
			RngInference impl = new RngInference (xmlReader,
				grammar, laxOccurence, laxTypeInference);
			impl.Run ();
			return impl.grammar;
		}