<?xml version="1.0"?>
<rules startMode="recommendations"
       xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
   
    <mode name="recommendations">
        <namespace ns="http://www.recommendations.org">
            <validate schema="MyRecommendations.xsd"
                      useMode="list-of-recommendations" />
        </namespace>
    </mode>
   
    <mode name="list-of-recommendations">
        <namespace ns="http://www.book.org">
            <validate schema="Book.rng" 
                      useMode="blog" />
            <attach useMode="allow" /> 
        </namespace>
        <namespace ns="http://www.juicer.org">
            <validate schema="juicer.xsd" /> 
            <attach />
        </namespace>
    </mode>
   
    <mode name="blog">
        <namespace ns="http://www.blog.org">
            <validate schema="BLOG.rng" />
        </namespace>
    </mode>

    <mode name="allow">
        <anyNamespace>
            <allow />
        </anyNamespace>
    </mode>

</rules>
