Beispiel #1
0
        private RelaxngZeroOrMore ReadZeroOrMorePattern()
        {
            RelaxngZeroOrMore o = new RelaxngZeroOrMore();

            FillLocation(o);
            expect("zeroOrMore");
            Read();
            ReadPatterns(o);
            expectEnd("zeroOrMore");
            return(o);
        }
Beispiel #2
0
		private RelaxngZeroOrMore ReadZeroOrMorePattern ()
		{
			RelaxngZeroOrMore o = new RelaxngZeroOrMore ();
			FillLocation (o);
			expect ("zeroOrMore");
			Read ();
			ReadPatterns (o);
			expectEnd ("zeroOrMore");
			return o;
		}
Beispiel #3
0
		RelaxngPattern CreatePatternFromParticle (XmlSchemaParticle xsdp)
		{
			RelaxngSingleContentPattern rngp = null;
			if (xsdp.MinOccurs == 0 && xsdp.MaxOccursString == "unbounded")
				rngp = new RelaxngZeroOrMore ();
			else if (xsdp.MinOccurs == 1 && xsdp.MaxOccursString == "unbounded")
				rngp = new RelaxngOneOrMore ();
			else if (xsdp.MinOccurs == 0)
				rngp = new RelaxngOptional ();

			RelaxngPattern child = CreatePatternFromParticleCore (xsdp);
			if (rngp == null)
				return child;
			rngp.Patterns.Add (child);
			return rngp;
		}
Beispiel #4
0
		public void WriteZeroOrMore (RelaxngZeroOrMore p)
		{
			WritePatterns (p.Patterns, true);
			w.Write ('*');
		}