<schema xmlns="http://www.ascc.net/xml/schematron" >
     <pattern name="id is the only permited attribute name">
          <rule context="*">
               <report test="@*[not(name()='id')]">Attribute
                    <name path="@*[not(name()='id')]"/> is forbidden in element
                    <name/>
               </report>
          </rule>
     </pattern>
</schema>