Created
April 1, 2014 08:03
-
-
Save anonymous/9909863 to your computer and use it in GitHub Desktop.
Clear data
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: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:soap="http://schemas.xmlsoap.org/soap/envelope/" | |
| xmlns:fb="http://orbeon.org/oxf/xml/form-builder" | |
| xmlns:f="http//www.orbeon.com/function" | |
| xmlns:oxf="http://www.orbeon.com/oxf/processors" | |
| xmlns:ev="http://www.w3.org/2001/xml-events" | |
| xmlns:xi="http://www.w3.org/2001/XInclude" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| xmlns:odt="http://orbeon.org/oxf/xml/datatypes" | |
| xmlns:xpl="java:org.orbeon.oxf.pipeline.api.FunctionLibrary" | |
| xmlns:sql="http://orbeon.org/oxf/xml/sql" | |
| xmlns:p="http://www.orbeon.com/oxf/pipeline" | |
| xmlns:form-runner="java:org.orbeon.oxf.fr.FormRunner" | |
| xmlns:xf="http://www.w3.org/2002/xforms" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <xh:head> | |
| <xh:title>Untitled Form</xh:title> | |
| <xf:model id="fr-form-model" xxf:expose-xpath-types="true"> | |
| <xf:setvalue ev:event="xforms-value-changed" observer="control-3-control" | |
| ref="instance('fr-form-instance')/section-7/control-1" | |
| value=""/> | |
| <xf:setvalue ev:event="xforms-value-changed" observer="control-1-control" | |
| ref="instance('fr-form-instance')/section-7/control-6" | |
| value=""/> | |
| <xf:setvalue ev:event="xforms-value-changed" observer="control-6-control" | |
| ref="instance('fr-form-instance')/section-7/control-7" | |
| value=""/> | |
| <xf:setvalue ev:event="DOMActivate" observer="control-2-control" | |
| ref="instance('fr-form-instance')/section-7/H1" | |
| value="1"/> | |
| <xf:instance id="fr-form-instance"> | |
| <form> | |
| <section-7> | |
| <control-3/> | |
| <control-1/> | |
| <control-2/> | |
| <H1/> | |
| <control-6/> | |
| <control-7>2014-04-09</control-7> | |
| </section-7> | |
| </form> | |
| </xf:instance> | |
| <xf:bind xmlns:dataModel="java:org.orbeon.oxf.fb.DataModel" id="fr-form-binds" | |
| ref="instance('fr-form-instance')"> | |
| <xf:bind id="section-7-bind" ref="section-7" name="section-7"> | |
| <xf:bind id="control-1-bind" ref="control-1" name="control-1" | |
| relevant="$control-3="1" or $control-3="3""/> | |
| <xf:bind id="control-2-bind" ref="control-2" name="control-2" relevant="$control-3="1""/> | |
| <xf:bind id="control-3-bind" ref="control-3" name="control-3"/> | |
| <xf:bind id="control-6-bind" ref="control-6" name="control-6" xxf:default=""546"" | |
| relevant="$H1!="" and $control-1!="""/> | |
| <xf:bind id="control-7-bind" ref="control-7" name="control-7" type="xf:date" | |
| relevant="$control-3="2""/> | |
| <xf:bind id="H1-bind" ref="H1" name="H1" relevant="false"/> | |
| </xf:bind> | |
| </xf:bind> | |
| <xf:instance xxf:readonly="true" id="fr-form-metadata"> | |
| <metadata> | |
| <application-name>test</application-name> | |
| <form-name>test</form-name> | |
| <title xml:lang="en">Untitled Form</title> | |
| <description xml:lang="en"/> | |
| </metadata> | |
| </xf:instance> | |
| <xf:instance id="fr-form-attachments"> | |
| <attachments> | |
| <css mediatype="text/css" filename="" size=""/> | |
| <pdf mediatype="application/pdf" filename="" size=""/> | |
| </attachments> | |
| </xf:instance> | |
| <xf:instance id="fr-form-resources" xxf:readonly="false"> | |
| <resources> | |
| <resource xml:lang="en"> | |
| <control-3> | |
| <label>control-3</label> | |
| <hint/> | |
| <item> | |
| <label>First choice</label> | |
| <value>1</value> | |
| </item> | |
| <item> | |
| <label>Second choice</label> | |
| <value>2</value> | |
| </item> | |
| <item> | |
| <label>Third choice</label> | |
| <value>3</value> | |
| </item> | |
| </control-3> | |
| <control-1> | |
| <label>control-1</label> | |
| <hint/> | |
| </control-1> | |
| <control-2> | |
| <label>Next</label> | |
| <hint/> | |
| </control-2> | |
| <H1> | |
| <label>H1</label> | |
| <hint/> | |
| </H1> | |
| <control-6> | |
| <label>control-6</label> | |
| <hint/> | |
| </control-6> | |
| <control-7> | |
| <label>control-7</label> | |
| <hint/> | |
| </control-7> | |
| <section-7> | |
| <label/> | |
| <help/> | |
| </section-7> | |
| </resource> | |
| </resources> | |
| </xf:instance> | |
| <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:dataModel="java:org.orbeon.oxf.fb.DataModel"> | |
| <fr:section id="section-7-control" bind="section-7-bind"> | |
| <xf:label ref="$form-resources/section-7/label"/> | |
| <xf:action ev:event="xforms-enabled"> | |
| <xxf:script> | |
| $(document).ready(function(){ | |
| $("control-2-control").click(function(){ | |
| $("control-1-control").remove(); | |
| }); | |
| }); | |
| </xxf:script> | |
| </xf:action> | |
| <fr:grid> | |
| <xh:tr> | |
| <xh:td> | |
| <xf:select1 id="control-3-control" appearance="minimal" bind="control-3-bind"> | |
| <xf:label ref="$form-resources/control-3/label"/> | |
| <xf:hint ref="$form-resources/control-3/hint"/> | |
| <xf:alert ref="$fr-resources/detail/labels/alert"/> | |
| <xf:item> | |
| <xf:label>[Select...]</xf:label> | |
| <xf:value/> | |
| </xf:item> | |
| <xf:itemset ref="$form-resources/control-3/item"> | |
| <xf:label ref="label"/> | |
| <xf:value ref="value"/> | |
| </xf:itemset> | |
| </xf:select1> | |
| </xh:td> | |
| </xh:tr> | |
| <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:alert ref="$fr-resources/detail/labels/alert"/> | |
| </xf:input> | |
| </xh:td> | |
| </xh:tr> | |
| <xh:tr> | |
| <xh:td> | |
| <xf:trigger id="control-2-control" bind="control-2-bind"> | |
| <xf:label ref="$form-resources/control-2/label"/> | |
| <xf:hint ref="$form-resources/control-2/hint"/> | |
| <xf:alert ref="$fr-resources/detail/labels/alert"/> | |
| </xf:trigger> | |
| </xh:td> | |
| </xh:tr> | |
| <xh:tr> | |
| <xh:td> | |
| <xf:output id="H1-control" bind="H1-bind"> | |
| <xf:label ref="$form-resources/H1/label"/> | |
| <xf:hint ref="$form-resources/H1/hint"/> | |
| <xf:alert ref="$fr-resources/detail/labels/alert"/> | |
| </xf:output> | |
| </xh:td> | |
| </xh:tr> | |
| <xh:tr> | |
| <xh:td> | |
| <xf:input id="control-6-control" bind="control-6-bind"> | |
| <xf:label ref="$form-resources/control-6/label"/> | |
| <xf:hint ref="$form-resources/control-6/hint"/> | |
| <xf:alert ref="$fr-resources/detail/labels/alert"/> | |
| </xf:input> | |
| </xh:td> | |
| </xh:tr> | |
| <xh:tr> | |
| <xh:td> | |
| <xf:input id="control-7-control" bind="control-7-bind"> | |
| <xf:label ref="$form-resources/control-7/label"/> | |
| <xf:hint ref="$form-resources/control-7/hint"/> | |
| <xf:alert ref="$fr-resources/detail/labels/alert"/> | |
| </xf:input> | |
| </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