<xh:html
        xmlns:xh="http://www.w3.org/1999/xhtml"
        xmlns:xf="http://www.w3.org/2002/xforms"
        xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
        xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
    <xh:head>
        <xh:title/>
        <xf:model id="fr-form-model">
            <xf:instance id="fr-form-instance">
                <form>
                    <section-1>
                        <control-1/>
                    </section-1>
                </form>
            </xf:instance>
            <xf:bind id="fr-form-binds" ref="instance('fr-form-instance')">
                <xf:bind id="section-1-bind" name="section-1" ref="section-1">
                    <xf:bind id="control-1-bind" name="control-1" ref="control-1" constraint="true()" xxf:default="42" type="xf:string">
                        <xxf:default value="43"/>
                        <xf:constraint value="string-length() le 100" id="validation-1-validation"/>
                        <xf:constraint value="string-length() ge 10" id="validation-2-validation"/>
                        <xf:type id="validation-3-validation">xf:string</xf:type>
                        <xf:required value="true()" id="validation-4-validation"/>

                        <xf:validation xxf:default="43"/>
                        <xf:validation constraint="string-length() le 100" id="validation-5-validation"/>
                        <xf:validation constraint="string-length() ge 10" id="validation-6-validation"/>
                        <xf:validation type="xf:string" id="validation-7-validation"/>
                        <xf:validation required="true()" id="validation-8-validation"/>
                    </xf:bind>
                </xf:bind>
            </xf:bind>
            <xf:instance id="fr-form-resources" xxf:readonly="false">
                <resources>
                    <resource xml:lang="">
                        <section-1>
                            <label/>
                        </section-1>
                        <control-1>
                            <label/>
                            <hint/>
                            <alert/>
                        </control-1>
                    </resource>
                </resources>
            </xf:instance>
        </xf:model>
    </xh:head>
    <xh:body>
        <fr:view width="800px" appearance="custom">
            <fr:body>
                <fr:section id="section-1-control" bind="section-1-bind">
                    <xf:label ref="$form-resources/section-1/label"/>
                    <xf:help ref="$form-resources/section-1/help"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="control-1-control" bind="control-1-bind">
                                    <xf:label ref="$form-resources/control-1/label"/>
                                    <xf:hint ref="$form-resources/control-1/hint"/>
                                    <xf:help ref="$form-resources/control-1/help"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                </xf:input>
                            </xh:td>
                            <xh:td/>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
            </fr:body>
            <fr:buttons>Custom buttons here</fr:buttons>
        </fr:view>
    </xh:body>
</xh:html>