diff --git a/mdx/_rules/check_mdattr.xsl b/mdx/_rules/check_mdattr.xsl
new file mode 100644
index 00000000..f5782d52
--- /dev/null
+++ b/mdx/_rules/check_mdattr.xsl
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+ EntityAttributes must only appear within an Extensions element
+
+
+
+
+ EntityAttributes must only appear within Extensions of EntityDescriptor or EntitiesDescriptor
+
+
+
+
+
+
+ Assertion may not appear in the EntityAttributes for an EntitiesDescriptor
+
+
+
+
+
+
+ more than one EntityAttributes element in an Extensions element
+
+
+
+
diff --git a/mdx/validation-beans.xml b/mdx/validation-beans.xml
index 540b66eb..c5f5a995 100644
--- a/mdx/validation-beans.xml
+++ b/mdx/validation-beans.xml
@@ -303,6 +303,26 @@
+
+
+
+
+
+
+
+
+
+
+