<?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:xf="http://www.w3.org/2002/xforms">
    <head>
        <title>2.1.a Introductory Example No. 1</title>
        <link rel="stylesheet" href="../driverPages/forms/TestSuite11.css" type="text/css"/>
        <xf:model>
            <xf:instance>
                <ecommerce xmlns="">
                    <method>cc</method>
                    <number/>
                    <expiry/>
                </ecommerce>
            </xf:instance>
            <xf:submission id="submit" method="post" action="http://www.agencexml.com/xforms-tests/xsltforms/echo.php"/>
        </xf:model>
    </head>
    <body>
        <xf:group>
            <xf:label class="title">2.1.a Introductory Example No. 1</xf:label>
        </xf:group>
        <xf:group>
            <xf:label>
                You must see a select1 control with the values "Cash" and "Credit" as well as two 
                input controls on the page. When you activate the Submit Now submit control this page must be 
                replaced by the form data. You must see the value "cc" if you had selected Credit or the 
                value "cash" if you had selected Cash. You must also see the values, if any, you entered 
                in the Credit Card Number and Expiration Date input controls. 
            </xf:label>
        </xf:group>
        <xf:select1 xmlns="" ref="method">
            <xf:label>Select Payment Method:</xf:label>
            <xf:item>
                <xf:label>Cash</xf:label>
                <xf:value>cash</xf:value>
            </xf:item>
            <xf:item>
                <xf:label>Credit</xf:label>
                <xf:value>cc</xf:value>
            </xf:item>
            <xf:hint>Please select method of payment: cash or credit</xf:hint>
        </xf:select1>
        <xf:input xmlns="" ref="number">
            <xf:label>Credit Card Number:</xf:label>
        </xf:input>
        <xf:input xmlns="" ref="expiry">
            <xf:label>Expiration Date:</xf:label>
        </xf:input>
        <xf:submit submission="submit">
            <xf:label>Submit Now</xf:label>
        </xf:submit>
    </body>
</html>