<sch:schema defaultPhase="both" xmlns:sch="http://www.ascc.net/xml/schematron" >
     <sch:phase id="draft">
          <sch:active pattern="p1"/>
     </sch:phase>
     <sch:phase id="final">
          <sch:active pattern="p2"> This is the
               <sch:emph>final pattern</sch:emph>
          </sch:active>
     </sch:phase>
     <sch:phase id="both">
          <sch:active pattern="p1"/>
          <sch:active pattern="p2"/>
     </sch:phase>
     <sch:pattern name="Draft root element name" id="p1">
          <sch:rule context="/">
               <sch:report test="AAA">Root element is AAA.</sch:report>
          </sch:rule>
     </sch:pattern>
     <sch:pattern name="Final root element name" id="p2">
          <sch:p> This text is printed every time</sch:p>
          <sch:rule context="/">
               <sch:report test="AAA">ATTENTION! Root element is AAA.</sch:report>
          </sch:rule>
     </sch:pattern>
</sch:schema>