<?xml version="1.0"?>
<sch:schema xmlns:sch="http://www.ascc.net/xml/schematron">

   <sch:pattern name="Aircraft Altitude">

       <sch:rule context="Flight">
           <sch:assert test="Aircraft/Altitude &gt; Obstacle/Height">
             The Aircraft Altitude must be greater than the Obstacle Height.
           </sch:assert>
       </sch:rule>

   </sch:pattern>

   <sch:pattern name="UOM">

      <sch:rule context="Flight">
         <sch:assert test="Aircraft/Altitude/@units = Obstacle/Height/@units">
             The units used for measuring the Aircraft Altitude must be the same 
             as that used for measuring the Obstacle Height.</sch:assert>
      </sch:rule>

   </sch:pattern>

</sch:schema>