<?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">
    <head>
        <title>11.1.s2 invalid instance attribute of submission element</title>
        <link rel="stylesheet" href="../../driverPages/html/TestSuite11.css" type="text/css"/>
        <xforms:model id="model_1">
            <xforms:submission id="submission_1" method="get" replace="instance" action="11.1.s_data.xml" instance="instance_0"/>
            <xforms:instance id="instance_1">
                <data1 xmlns="">This is data from the invalid instance.</data1>
            </xforms:instance>
            <xforms:action ev:event="xforms-binding-exception">
            	<xforms:message level="modal">xforms-binding-exception</xforms:message>
            </xforms:action>
        </xforms:model>
    </head>
    <body>
        <xforms:group>
            <xforms:label class="title">11.1.s2 invalid instance attribute of submission element</xforms:label>
        </xforms:group>
        <xforms:group>
            <xforms:label>
                <!-- The instance attribute of the submission element does not point to an instance in the same 
                model element.  -->  
                When you activate the Invalid Instance submit control You must see an xforms-binding-exception message 
                or a fatal error due to an xforms-binding-exception.
            </xforms:label>
        </xforms:group>
        <xforms:submit submission="submission_1">
            <xforms:label>Invalid Instance</xforms:label>
        </xforms:submit>
        <xforms:output ref="instance('instance_1')">
            <xforms:label/>
        </xforms:output>
    </body>
</html>
