<AAA>
     <BBB/>
     <CCC ccc="1"/>
     <DDD>
        <EEE/>
     </DDD>
  </AAA>
<sch:schema xmlns:sch="http://www.ascc.net/xml/schematron"> 
   <sch:title>Test 1</sch:title>
   <sch:pattern name="The first and only pattern" see="someDoc">
      <sch:rule context="/">
          <sch:assert test="AAA">Context: / ; assert: AAA</sch:assert>
          <sch:report test="AAA">Context: / ; report: AAA</sch:report>
          <sch:assert test="BBB">Context: / ; assert: BBB</sch:assert> 
          <sch:report test="BBB">Context: / ; report: BBB</sch:report> 
      </sch:rule>

      <sch:rule context="@ccc">
          <sch:assert test=".=1">Context: @ccc ; assert: .=1</sch:assert>
          <sch:report test=".=1">Context: @ccc ; report: .=1</sch:report>
          <sch:assert test=".=2">Context: @ccc ; assert: .=2</sch:assert> 
          <sch:report test=".=2">Context: @ccc ; report: .=2</sch:report> 
      </sch:rule>
  </sch:pattern>
</sch:schema>