예제 #1
0
		public static RelaxngPattern Read (XmlReader xmlReader, RelaxngDatatypeProvider provider, XmlResolver xmlResolver)
		{
			RelaxngReader r = new RelaxngReader (xmlReader, null, xmlResolver);
			if (r.ReadState == ReadState.Initial)
				r.Read ();
			r.MoveToContent ();
			RelaxngPattern p = r.ReadPattern ();
			p.DataProvider = provider;
			p.XmlResolver = xmlResolver;
			return p;
		}
예제 #2
0
        public override RelaxngDatatype GetDatatype(string name, string ns, IList <RelaxngParam> parameters)
        {
            // TODO: parameter support (write schema and get type)

            RelaxngDatatypeProvider p = table [ns] as RelaxngDatatypeProvider;

            if (p == null)
            {
                return(null);
            }
            return(p.GetDatatype(name, ns, parameters));
        }
예제 #3
0
 public RelaxngValidatingReader(XmlReader reader, XmlReader grammarXml, RelaxngDatatypeProvider provider)
     : this(reader, RelaxngGrammar.Read(grammarXml, provider))
 {
 }
예제 #4
0
		public static RelaxngPattern Read (XmlReader xmlReader, RelaxngDatatypeProvider provider, XmlResolver xmlResolver)
		{
			RelaxngReader r = new RelaxngReader (xmlReader, null, xmlResolver);
			if (r.ReadState == ReadState.Initial)
				r.Read ();
			r.MoveToContent ();
			RelaxngPattern p = r.ReadPattern ();
			p.DataProvider = provider;
			p.XmlResolver = xmlResolver;
			return p;
		}
예제 #5
0
		public static RelaxngPattern Read (XmlReader xmlReader, RelaxngDatatypeProvider provider)
		{
			return Read (xmlReader, provider, new XmlUrlResolver ());
		}
예제 #6
0
 public static RelaxngPattern Read(XmlReader xmlReader, RelaxngDatatypeProvider provider)
 {
     return(Read(xmlReader, provider, new XmlUrlResolver()));
 }
예제 #7
0
		public RelaxngValidatingReader (XmlReader reader, XmlReader grammarXml, RelaxngDatatypeProvider provider)
			: this (reader, RelaxngGrammar.Read (grammarXml, provider))
		{
		}