<?xml-stylesheet type="text/xsl" href="/xforms-tests/xsltforms/xsltforms.xsl"?>
<html xmlns:my="http://commerce.example.com/payment" xmlns:txs="http://sourceforge.net/projects/txs" xmlns="http://www.w3.org/1999/xhtml" xmlns:req="http://www.agencexml.com/requests" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <head>
        <title>4.3.5.a xforms-reset event</title>
        <xforms:model id="car">
            <xforms:instance>
                <color xmlns=""/>
            </xforms:instance>
            <xforms:action ev:event="xforms-reset">
                <xforms:message level="modal">xforms-reset</xforms:message>
            </xforms:action>
            <!-- the following actions are supposed to occur after xforms-reset event -->
            <xforms:action ev:event="xforms-rebuild">
                <xforms:message level="modal">xforms-rebuild</xforms:message>
            </xforms:action>
            <xforms:action ev:event="xforms-recalculate">
                <xforms:message level="modal">xforms-recalculate</xforms:message>
            </xforms:action>
            <xforms:action ev:event="xforms-revalidate">
                <xforms:message level="modal">xforms-revalidate</xforms:message>
            </xforms:action>
            <xforms:action ev:event="xforms-refresh">
                <xforms:message level="modal">xforms-refresh</xforms:message>
            </xforms:action>
        </xforms:model>
        <link href="../../../driverPages/forms/TestSuite11.css" rel="stylesheet"/>
    </head>
    <body>
        <xforms:group>
            <xforms:label class="title">4.3.5.a xforms-reset event</xforms:label>
        </xforms:group>
        <xforms:group>
            <xforms:label>
              After you activate the Reset trigger you must see five different messages: xforms-reset, 
              xforms-rebuild, xforms-recalculate, xforms-revalidate, 
              and xforms-refresh. 
    		</xforms:label>
        </xforms:group>
        <xforms:trigger>
            <xforms:label>Reset</xforms:label>
            <xforms:action ev:event="DOMActivate">
                <xforms:reset model="car"/>
            </xforms:action>
        </xforms:trigger>
        
    </body>
</html>
