Created
September 8, 2010 01:40
-
-
Save ebruchez/569465 to your computer and use it in GitHub Desktop.
This file contains 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
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" | |
xmlns:xforms="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:xxforms="http://orbeon.org/oxf/xml/xforms" | |
xmlns:exforms="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/"> | |
<xhtml:head> | |
<xhtml:title>Untitled Form</xhtml:title> | |
<xforms:model id="fr-form-model"> | |
<!-- Main instance --> | |
<xforms:instance id="fr-form-instance"> | |
<form> | |
<section-1> | |
<toggle/> | |
<control-1/> | |
</section-1> | |
</form> | |
</xforms:instance> | |
<!-- Bindings --> | |
<xforms:bind id="fr-form-binds" nodeset="instance('fr-form-instance')"> | |
<xforms:bind id="section-1-bind" nodeset="section-1"> | |
<xforms:bind id="toggle-bind" nodeset="toggle" name="toggle"/> | |
<xforms:bind id="control-1-bind" nodeset="control-1" name="control-1" type="xforms:string" | |
relevant="$toggle = 'yes'"/> | |
</xforms:bind> | |
</xforms:bind> | |
<!-- Metadata --> | |
<xforms:instance id="fr-form-metadata" xxforms:readonly="true"> | |
<metadata> | |
<application-name>test</application-name> | |
<form-name>test</form-name> | |
<title xml:lang="en">Untitled Form</title> | |
<description xml:lang="en"/> | |
<author/> | |
<logo mediatype="" filename="" size=""/> | |
</metadata> | |
</xforms:instance> | |
<!-- Attachments --> | |
<xforms:instance id="fr-form-attachments"> | |
<attachments> | |
<css mediatype="text/css" filename="" size=""/> | |
<pdf mediatype="application/pdf" filename="" size=""/> | |
</attachments> | |
</xforms:instance> | |
<!-- All form resources --> | |
<!-- Don't make readonly by default in case a service modifies the resources --> | |
<xforms:instance id="fr-form-resources" xxforms:readonly="false"> | |
<resources> | |
<resource xml:lang="en"> | |
<toggle> | |
<label>Toggle</label> | |
<hint/> | |
<help/> | |
<alert/> | |
<item> | |
<label>Yes</label> | |
<value>yes</value> | |
</item> | |
<item> | |
<label>No</label> | |
<value>no</value> | |
</item> | |
</toggle> | |
<control-1> | |
<label>Name</label> | |
<hint/> | |
<help/> | |
<alert/> | |
</control-1> | |
<section-1> | |
<label>Untitled Section</label> | |
<help/> | |
</section-1> | |
</resource> | |
</resources> | |
</xforms:instance> | |
<!-- Utility instances for services --> | |
<xforms:instance id="fr-service-request-instance" xxforms:exclude-result-prefixes="#all"> | |
<request/> | |
</xforms:instance> | |
<xforms:instance id="fr-service-response-instance" xxforms:exclude-result-prefixes="#all"> | |
<response/> | |
</xforms:instance> | |
</xforms:model> | |
</xhtml:head> | |
<xhtml:body> | |
<fr:view> | |
<xforms:label ref="instance('fr-form-metadata')/title"/> | |
<fr:body> | |
<fr:section id="section-1-section" bind="section-1-bind"> | |
<xforms:label ref="$form-resources/section-1/label"/> | |
<xforms:help ref="$form-resources/section-1/help"/> | |
<fr:grid columns="2"> | |
<xhtml:tr> | |
<xhtml:td> | |
<xforms:select1 xmlns:xbl="http://www.w3.org/ns/xbl" | |
xmlns:fb="http://orbeon.org/oxf/xml/form-builder" | |
xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" | |
appearance="full" | |
bind="toggle-bind" | |
id="toggle-control" | |
class="fr-summary fr-search"> | |
<xforms:label ref="$form-resources/toggle/label"/> | |
<xforms:hint ref="$form-resources/toggle/hint"/> | |
<xforms:help ref="$form-resources/toggle/help"/> | |
<xforms:alert ref="$fr-resources/detail/labels/alert"/> | |
<xforms:itemset nodeset="$form-resources/toggle/item"> | |
<xforms:label ref="label"/> | |
<xforms:value ref="value"/> | |
</xforms:itemset> | |
</xforms:select1> | |
</xhtml:td> | |
<xhtml:td> | |
<xforms:input xmlns:xbl="http://www.w3.org/ns/xbl" | |
xmlns:fb="http://orbeon.org/oxf/xml/form-builder" | |
xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" | |
id="control-1-control" | |
bind="control-1-bind"> | |
<xforms:label ref="$form-resources/control-1/label"/> | |
<xforms:hint ref="$form-resources/control-1/hint"/> | |
<xforms:help ref="$form-resources/control-1/help"/> | |
<xforms:alert ref="$fr-resources/detail/labels/alert"/> | |
</xforms:input> | |
</xhtml:td> | |
</xhtml:tr> | |
</fr:grid> | |
</fr:section> | |
</fr:body> | |
</fr:view> | |
</xhtml:body> | |
</xhtml:html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment