<?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>11.2.b non-relevant nodes are not serialized</title>
        <xforms:model>
            <xforms:instance>
                <data xmlns="">
                    <test1 x=""/>
                    <test2 x="a"/>
                    <test3 x=""/>
                    <test4 x="a"/>
                </data>
            </xforms:instance>
            <xforms:submission action="http://www.xformstest.org/cgi-bin/echo.sh" id="show" method="post" includenamespaceprefixes=""/>
            <xforms:bind nodeset="/data/test1" relevant="true()"/>
            <xforms:bind nodeset="/data/test2" relevant="true()"/>
            <xforms:bind nodeset="/data/test3" relevant="false()"/>
            <xforms:bind nodeset="/data/test4" relevant="false()"/>
        </xforms:model>
        <link href="../../driverPages/forms/TestSuite11.css" rel="stylesheet"/>
    </head>
    <body>
        <xforms:group>
            <xforms:label class="title">11.2.b non-relevant nodes are not serialized</xforms:label>
        </xforms:group>
        <xforms:group>
            <xforms:label>
              When you activate the Show submit control the page must be replaced by the form data. 
              You must see the values &lt;data&gt;, &lt;test1 x=""/&gt;, &lt;test2 x="a"/&gt;, and &lt;/data&gt;. 
              You must not see the values &lt;test3 x=""/&gt; or &lt;test4 x="a"/&gt;. 
		    </xforms:label>
        </xforms:group>
        <xforms:submit submission="show">
            <xforms:label>Show</xforms:label>
        </xforms:submit>
    </body>
</html>
