Last active
May 17, 2017 17:23
-
-
Save ebruchez/b74943eb16a3e5a4ee707e36057569b5 to your computer and use it in GitHub Desktop.
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>Test form for #2414</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" xxf:index="id"> | |
<form> | |
<section-1> | |
<show1>r1c1 r2c1 r2c2</show1> | |
<r1c1/> | |
<r2c1/> | |
<r2c2/> | |
</section-1> | |
<section-6> | |
<show2>r1c1 r2c1 r2c2 g2</show2> | |
<my-repeated-grid> | |
<my-repeated-grid-iteration> | |
<g2r1c1/> | |
<g2r2c1/> | |
<g2r2c2/> | |
</my-repeated-grid-iteration> | |
</my-repeated-grid> | |
</section-6> | |
</form> | |
</xf:instance> | |
<!-- Bindings --> | |
<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="show1-bind" ref="show1" name="show1"/> | |
<xf:bind id="r1c1-bind" ref="r1c1" name="r1c1" xxf:whitespace="trim" | |
relevant="xxf:split($show1) = 'r1c1'"/> | |
<xf:bind id="r2c1-bind" ref="r2c1" name="r2c1" xxf:whitespace="trim" | |
relevant="xxf:split($show1) = 'r2c1'"/> | |
<xf:bind id="r2c2-bind" ref="r2c2" name="r2c2" xxf:whitespace="trim" | |
relevant="xxf:split($show1) = 'r2c2'"/> | |
</xf:bind> | |
<xf:bind id="section-6-bind" ref="section-6" name="section-6"> | |
<xf:bind id="show2-bind" ref="show2" name="show2"/> | |
<xf:bind id="my-repeated-grid-bind" ref="my-repeated-grid" name="my-repeated-grid" | |
relevant="xxf:split($show2) = 'g2'"> | |
<xf:bind id="my-repeated-grid-iteration-bind" ref="my-repeated-grid-iteration" | |
name="my-repeated-grid-iteration"> | |
<xf:bind id="g2r1c1-bind" ref="g2r1c1" name="g2r1c1" xxf:whitespace="trim" | |
relevant="xxf:split($show2) = 'r1c1'"/> | |
<xf:bind id="g2r2c1-bind" ref="g2r2c1" name="g2r2c1" xxf:whitespace="trim" | |
relevant="xxf:split($show2) = 'r2c1'"/> | |
<xf:bind id="g2r2c2-bind" ref="g2r2c2" name="g2r2c2" xxf:whitespace="trim" | |
relevant="xxf:split($show2) = 'r2c2'"/> | |
</xf:bind> | |
</xf:bind> | |
</xf:bind> | |
</xf:bind> | |
<!-- Metadata --> | |
<xf:instance xxf:readonly="true" id="fr-form-metadata" xxf:exclude-result-prefixes="#all"> | |
<metadata> | |
<application-name>issue2414</application-name> | |
<form-name>test</form-name> | |
<title xml:lang="en">Test form for #2414</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 --> | |
<xf:instance xxf:readonly="true" id="fr-form-resources" xxf:exclude-result-prefixes="#all"> | |
<resources> | |
<resource xml:lang="en"> | |
<g2r1c1> | |
<label>r1c1</label> | |
<hint/> | |
</g2r1c1> | |
<g2r2c1> | |
<label>r2c1</label> | |
<hint/> | |
</g2r2c1> | |
<g2r2c2> | |
<label>r2c2</label> | |
<hint/> | |
</g2r2c2> | |
<show2> | |
<label>Show controls</label> | |
<hint/> | |
<item> | |
<label>r1c1</label> | |
<hint/> | |
<value>r1c1</value> | |
</item> | |
<item> | |
<label>r2c1</label> | |
<hint/> | |
<value>r2c1</value> | |
</item> | |
<item> | |
<label>r2c2</label> | |
<hint/> | |
<value>r2c2</value> | |
</item> | |
<item> | |
<label>g2</label> | |
<hint/> | |
<value>g2</value> | |
</item> | |
</show2> | |
<show1> | |
<label>Show controls</label> | |
<hint/> | |
<item> | |
<label>r1c1</label> | |
<hint/> | |
<value>r1c1</value> | |
</item> | |
<item> | |
<label>r2c1</label> | |
<hint/> | |
<value>r2c1</value> | |
</item> | |
<item> | |
<label>r2c2</label> | |
<hint/> | |
<value>r2c2</value> | |
</item> | |
</show1> | |
<r1c1> | |
<label>r1c1</label> | |
<hint/> | |
</r1c1> | |
<r2c1> | |
<label>r2c1</label> | |
<hint/> | |
</r2c1> | |
<r2c2> | |
<label>r2c2</label> | |
<hint/> | |
</r2c2> | |
<section-1> | |
<label>Non-repeated grid</label> | |
</section-1> | |
<section-6> | |
<label>Repeated grid</label> | |
<help/> | |
</section-6> | |
</resource> | |
</resources> | |
</xf:instance> | |
<xf:instance xxf:readonly="true" id="my-repeated-grid-template" | |
xxf:exclude-result-prefixes="#all"> | |
<my-repeated-grid-iteration> | |
<g2r1c1/> | |
<g2r2c1/> | |
<g2r2c2/> | |
</my-repeated-grid-iteration> | |
</xf:instance> | |
</xf:model> | |
</xh:head> | |
<xh:body> | |
<fr:view> | |
<fr:body xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:p="http://www.orbeon.com/oxf/pipeline" | |
xmlns:oxf="http://www.orbeon.com/oxf/processors"> | |
<fr:section id="section-1-control" bind="section-1-bind"> | |
<xf:label ref="$form-resources/section-1/label"/> | |
<fr:grid> | |
<xh:tr> | |
<xh:td> | |
<xf:select id="show1-control" appearance="full" bind="show1-bind"> | |
<xf:label ref="$form-resources/show1/label"/> | |
<xf:hint ref="$form-resources/show1/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
<xf:itemset ref="$form-resources/show1/item"> | |
<xf:label ref="label"/> | |
<xf:value ref="value"/> | |
<xf:hint ref="hint"/> | |
</xf:itemset> | |
</xf:select> | |
</xh:td> | |
<xh:td/> | |
</xh:tr> | |
</fr:grid> | |
<fr:grid> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="r1c1-control" bind="r1c1-bind"> | |
<xf:label ref="$form-resources/r1c1/label"/> | |
<xf:hint ref="$form-resources/r1c1/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td/> | |
</xh:tr> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="r2c1-control" bind="r2c1-bind"> | |
<xf:label ref="$form-resources/r2c1/label"/> | |
<xf:hint ref="$form-resources/r2c1/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td> | |
<xf:input id="r2c2-control" bind="r2c2-bind" appearance="character-counter"> | |
<xf:label ref="$form-resources/r2c2/label"/> | |
<xf:hint ref="$form-resources/r2c2/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
</xh:tr> | |
</fr:grid> | |
</fr:section> | |
<fr:section id="section-6-control" bind="section-6-bind"> | |
<xf:label ref="$form-resources/section-6/label"/> | |
<fr:grid> | |
<xh:tr> | |
<xh:td> | |
<xf:select id="show2-control" appearance="full" bind="show2-bind"> | |
<xf:label ref="$form-resources/show2/label"/> | |
<xf:hint ref="$form-resources/show2/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
<xf:itemset ref="$form-resources/show2/item"> | |
<xf:label ref="label"/> | |
<xf:value ref="value"/> | |
<xf:hint ref="hint"/> | |
</xf:itemset> | |
</xf:select> | |
</xh:td> | |
<xh:td/> | |
</xh:tr> | |
</fr:grid> | |
<fr:grid id="my-repeated-grid-control" bind="my-repeated-grid-bind" repeat="content" | |
min="1" | |
template="instance('my-repeated-grid-template')" | |
apply-defaults="true" | |
fb:initial-iterations="first"> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="g2r1c1-control" bind="g2r1c1-bind"> | |
<xf:label ref="$form-resources/g2r1c1/label"/> | |
<xf:hint ref="$form-resources/g2r1c1/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td/> | |
</xh:tr> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="g2r2c1-control" bind="g2r2c1-bind"> | |
<xf:label ref="$form-resources/g2r2c1/label"/> | |
<xf:hint ref="$form-resources/g2r2c1/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td> | |
<xf:input id="g2r2c2-control" bind="g2r2c2-bind" appearance="character-counter"> | |
<xf:label ref="$form-resources/g2r2c2/label"/> | |
<xf:hint ref="$form-resources/g2r2c2/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