gluezilla/src:
[mono.git] / mcs / class / System.XML / Mono.Xml.Xsl / XslAttributeSet.cs
index 619d4aac291a8d6944fad26b69a07a73046694c4..121a4f7d66dedf1f0e07a4902900acdd44aacaea 100644 (file)
@@ -69,17 +69,8 @@ namespace Mono.Xml.Xsl {
                        if (!c.Input.MoveToFirstChild ()) return;
                                
                        do {
-                               switch (c.Input.NodeType) {
-                               case XPathNodeType.Element:
-                                       break;
-                               case XPathNodeType.Whitespace:
+                               if (c.Input.NodeType != XPathNodeType.Element)
                                        continue;
-                               default:
-                                       if (c.CurrentStylesheet.Version == "1.0")
-                                               throw new XsltCompileException ("Content " + c.Input.NodeType + " is not allowed in XSLT attribute-set element.", null, c.Input);
-                                       break;
-                               }
-                                       
                                if (c.Input.NamespaceURI != XsltNamespace || c.Input.LocalName != "attribute")
                                        throw new XsltCompileException ("Invalid attr set content", null, c.Input);
                                attributes.Add (new XslAttribute (c));