Example


<!- Expected Behavior: Tests topLayout open behavior. Show one topLayout. 
    At 0s show smile in the one open window. At 2s open another window 
    and show frown in it. At 4s smile ends, and window not close. 
    At 5s frown ends, window should close. -->
<smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language"> <head> <layout>
            <topLayout width="320" height="240" open="onStart" close="onRequest">
                <region id="r1" top="0%" left="0%" right="0%" bottom="0%"/>
            </topLayout>
            <topLayout width="320" height="240" open="whenActive" close="whenNotActive">
                <region id="r2" top="0%" left="0%" right="0%" bottom="0%"/>
            </topLayout>
        </layout> </head>
    <body> <par dur="6s">
            <img region="r1" src="../images/smile.jpg" begin="0s" end="4s"/>
            <img region="r2" src="../images/frown.jpg" begin="2s" end="5s"/>
        </par> </body>
</smil>