Last active
August 29, 2015 14:06
-
-
Save avernet/ff343c6a5e6c3be077d2 to your computer and use it in GitHub Desktop.
Test form for flat view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:xi="http://www.w3.org/2001/XInclude" | |
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:exf="http://www.exforms.org/exf/1-0" | |
xmlns:fr="http://orbeon.org/oxf/xml/form-runner" | |
xmlns:saxon="http://saxon.sf.net/" | |
xmlns:sql="http://orbeon.org/oxf/xml/sql" | |
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:fb="http://orbeon.org/oxf/xml/form-builder"> | |
<xh:head> | |
<xh:title>Untitled Form</xh:title> | |
<xf:model id="fr-form-model" xxf:expose-xpath-types="true"> | |
<!-- Main instance --> | |
<xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all"> | |
<form> | |
<personal-information> | |
<first-name/> | |
<last-name/> | |
<address/> | |
</personal-information> | |
<company> | |
<name/> | |
<industry/> | |
</company> | |
<section-with-long-name> | |
<my-control-with-a-pretty-long-name/> | |
<my-control-with-a-pretty-long-name-too/> | |
<my-control-with-a-pretty-long-name-really/> | |
</section-with-long-name> | |
</form> | |
</xf:instance> | |
<!-- Bindings --> | |
<xf:bind id="fr-form-binds" ref="instance('fr-form-instance')"> | |
<xf:bind id="personal-information-bind" name="personal-information" | |
ref="personal-information"> | |
<xf:bind id="first-name-bind" name="first-name" ref="first-name"/> | |
<xf:bind id="last-name-bind" ref="last-name" name="last-name"/> | |
<xf:bind id="address-bind" ref="address" name="address"/> | |
</xf:bind> | |
<xf:bind id="company-bind" ref="company" name="company"> | |
<xf:bind id="name-bind" ref="name" name="name"/> | |
<xf:bind id="industry-bind" ref="industry" name="industry"/> | |
</xf:bind> | |
<xf:bind id="section-with-long-name-bind" ref="section-with-long-name" | |
name="section-with-long-name"> | |
<xf:bind id="my-control-with-a-pretty-long-name-bind" | |
ref="my-control-with-a-pretty-long-name" | |
name="my-control-with-a-pretty-long-name"/> | |
<xf:bind id="my-control-with-a-pretty-long-name-too-bind" | |
ref="my-control-with-a-pretty-long-name-too" | |
name="my-control-with-a-pretty-long-name-too"/> | |
<xf:bind id="my-control-with-a-pretty-long-name-really-bind" | |
ref="my-control-with-a-pretty-long-name-really" | |
name="my-control-with-a-pretty-long-name-really"/> | |
</xf:bind> | |
</xf:bind> | |
<!-- Metadata --> | |
<xf:instance xxf:readonly="true" id="fr-form-metadata" xxf:exclude-result-prefixes="#all"> | |
<metadata> | |
<application-name>a</application-name> | |
<form-name>a</form-name> | |
<title xml:lang="en">Untitled Form</title> | |
<description xml:lang="en"/> | |
</metadata> | |
</xf:instance> | |
<!-- Attachments --> | |
<xf:instance id="fr-form-attachments" xxf:exclude-result-prefixes="#all"> | |
<attachments> | |
<css mediatype="text/css" filename="" size=""/> | |
<pdf mediatype="application/pdf" filename="" size=""/> | |
</attachments> | |
</xf:instance> | |
<!-- All form resources --> | |
<!-- Don't make readonly by default in case a service modifies the resources --> | |
<xf:instance id="fr-form-resources" xxf:readonly="false" xxf:exclude-result-prefixes="#all"> | |
<resources> | |
<resource xml:lang="en"> | |
<my-control-with-a-pretty-long-name> | |
<label>Pretty long name</label> | |
<hint/> | |
</my-control-with-a-pretty-long-name> | |
<my-control-with-a-pretty-long-name-too> | |
<label>Pretty long name too</label> | |
<hint/> | |
</my-control-with-a-pretty-long-name-too> | |
<my-control-with-a-pretty-long-name-really> | |
<label>Pretty long name really</label> | |
<hint/> | |
</my-control-with-a-pretty-long-name-really> | |
<name> | |
<label>Name</label> | |
<hint/> | |
</name> | |
<industry> | |
<label>Industry</label> | |
<hint/> | |
</industry> | |
<personal-information> | |
<label>Personal information</label> | |
</personal-information> | |
<company> | |
<label>Company</label> | |
<help/> | |
</company> | |
<section-with-long-name> | |
<label>Section with long name</label> | |
<help/> | |
</section-with-long-name> | |
<first-name> | |
<label>First name</label> | |
<hint/> | |
</first-name> | |
<last-name> | |
<label>Last name</label> | |
<hint/> | |
</last-name> | |
<address> | |
<label>Address</label> | |
<hint/> | |
</address> | |
</resource> | |
</resources> | |
</xf:instance> | |
<!-- Utility instances for services --> | |
<xf:instance id="fr-service-request-instance" xxf:exclude-result-prefixes="#all"> | |
<request/> | |
</xf:instance> | |
<xf:instance id="fr-service-response-instance" xxf:exclude-result-prefixes="#all"> | |
<response/> | |
</xf:instance> | |
</xf:model> | |
</xh:head> | |
<xh:body> | |
<fr:view> | |
<fr:body xmlns:xbl="http://www.w3.org/ns/xbl" | |
xmlns:oxf="http://www.orbeon.com/oxf/processors" | |
xmlns:p="http://www.orbeon.com/oxf/pipeline"> | |
<fr:section id="personal-information-control" bind="personal-information-bind"> | |
<xf:label ref="$form-resources/personal-information/label"/> | |
<fr:grid> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="first-name-control" bind="first-name-bind"> | |
<xf:label ref="$form-resources/first-name/label"/> | |
<xf:hint ref="$form-resources/first-name/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td> | |
<xf:input id="last-name-control" bind="last-name-bind"> | |
<xf:label ref="$form-resources/last-name/label"/> | |
<xf:hint ref="$form-resources/last-name/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
</xh:tr> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="address-control" bind="address-bind"> | |
<xf:label ref="$form-resources/address/label"/> | |
<xf:hint ref="$form-resources/address/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td/> | |
</xh:tr> | |
</fr:grid> | |
</fr:section> | |
<fr:section id="company-control" bind="company-bind"> | |
<xf:label ref="$form-resources/company/label"/> | |
<fr:grid> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="name-control" bind="name-bind"> | |
<xf:label ref="$form-resources/name/label"/> | |
<xf:hint ref="$form-resources/name/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td> | |
<xf:input id="industry-control" bind="industry-bind"> | |
<xf:label ref="$form-resources/industry/label"/> | |
<xf:hint ref="$form-resources/industry/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
</xh:tr> | |
</fr:grid> | |
</fr:section> | |
<fr:section id="section-with-long-name-control" bind="section-with-long-name-bind"> | |
<xf:label ref="$form-resources/section-with-long-name/label"/> | |
<fr:grid> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="my-control-with-a-pretty-long-name-control" | |
bind="my-control-with-a-pretty-long-name-bind"> | |
<xf:label ref="$form-resources/my-control-with-a-pretty-long-name/label"/> | |
<xf:hint ref="$form-resources/my-control-with-a-pretty-long-name/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td> | |
<xf:input id="my-control-with-a-pretty-long-name-too-control" | |
bind="my-control-with-a-pretty-long-name-too-bind"> | |
<xf:label ref="$form-resources/my-control-with-a-pretty-long-name-too/label"/> | |
<xf:hint ref="$form-resources/my-control-with-a-pretty-long-name-too/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
</xh:tr> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="my-control-with-a-pretty-long-name-really-control" | |
bind="my-control-with-a-pretty-long-name-really-bind"> | |
<xf:label ref="$form-resources/my-control-with-a-pretty-long-name-really/label"/> | |
<xf:hint ref="$form-resources/my-control-with-a-pretty-long-name-really/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td/> | |
</xh:tr> | |
</fr:grid> | |
</fr:section> | |
</fr:body> | |
</fr:view> | |
</xh:body> | |
</xh:html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment