<?xml version="1.0"?>
<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"
       startMode="diary">
     <mode name="diary">
         <namespace ns="http://www.diary.org">
             <validate schema="Diary.xsd"
                       useMode="activity" />
         </namespace>
     </mode>
     <mode name="activity">
         <namespace ns="http://www.work.org">
             <validate schema="Work.rng"
                       useMode="distance"/>
             <attach useMode="allow"/>
         </namespace>
         <namespace ns="http://www.store.org">
             <validate schema="Store.rng"
                       useMode="distance"/>
             <attach useMode="allow"/>
         </namespace>
     </mode>
     <mode name="distance">
         <namespace ns="http://www.distance.org">
             <validate schema="Distance.xsd"/>
         </namespace>
     </mode>
     <mode name="allow">
         <anyNamespace>
             <allow />
         </anyNamespace>
     </mode>
</rules>
