<schema xmlns=“www.ascc.net/xml/schematron” >

<pattern name="Attribute test">
     <rule context="CCC">
          <assert test="@name">attribute name is not present</assert>
          <report test="@name">attribute name is present</report>
     </rule>
</pattern>

</schema>