static RelaxngMergedProvider ()
		{
			RelaxngMergedProvider p = new RelaxngMergedProvider ();
#if !PNET
			p ["http://www.w3.org/2001/XMLSchema-datatypes"] = XsdDatatypeProvider.Instance;
			p [XSchema.Namespace] = XsdDatatypeProvider.Instance;
#endif
			p [String.Empty] = RelaxngNamespaceDatatypeProvider.Instance;
			defaultProvider = p;
		}
		RelaxngDatatypeProvider SetupMyDataProvider ()
		{
			var datatypeLibrary = new RelaxngMergedProvider ();

			datatypeLibrary [MyRngTypeProvider.Namespace] = new MyRngTypeProvider();
			datatypeLibrary ["http://www.w3.org/2001/XMLSchema-datatypes"] = XsdDatatypeProvider.Instance;
			datatypeLibrary [System.Xml.Schema.XmlSchema.Namespace] = XsdDatatypeProvider.Instance;
			datatypeLibrary [String.Empty] = RelaxngMergedProvider.DefaultProvider [string.Empty];
			return datatypeLibrary;
		}
Beispiel #3
0
        static RelaxngMergedProvider()
        {
            RelaxngMergedProvider p = new RelaxngMergedProvider();

#if !PORTABLE
            p ["http://www.w3.org/2001/XMLSchema-datatypes"] = XsdDatatypeProvider.Instance;
            p [XSchema.Namespace] = XsdDatatypeProvider.Instance;
#endif
            p [String.Empty] = RelaxngNamespaceDatatypeProvider.Instance;
            defaultProvider  = p;
        }