Browse Source

2003-12-15 Atsushi Enomoto <[email protected]>

	* BuiltInDatatype.cs : anySimpleType should allow facets.

svn path=/trunk/mcs/; revision=21193
Atsushi Eno 22 years ago
parent
commit
3b66b15cff

+ 2 - 1
mcs/class/System.XML/System.Xml.Schema/BuiltInDatatype.cs

@@ -84,7 +84,8 @@ namespace Mono.Xml.Schema
 		internal virtual bool AllowsFacet(XmlSchemaFacet xsf)
 		{
 			// Can you even use XsdAnySimpleType in a schema?
-			return false;
+			// -> Yes. See E1-22 of http://www.w3.org/2001/05/xmlschema-errata#Errata1 (somewhat paranoid ;-)
+			return true;
 		}
 
 

+ 4 - 0
mcs/class/System.XML/System.Xml.Schema/ChangeLog

@@ -1,3 +1,7 @@
+2003-12-15  Atsushi Enomoto  <[email protected]>
+
+	* BuiltInDatatype.cs : anySimpleType should allow facets.
+
 2003-12-14  David Sheldon <[email protected]>
   
   * BuiltInDatatype.cs : Added code to tell which facets were valid on