Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
- xmlns:ev="http://www.w3.org/2001/xml-events"
- xmlns:exf="http://www.exforms.org/exf/1-0"
- xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
- xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
- xmlns:saxon="http://saxon.sf.net/"
- xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:sql="http://orbeon.org/oxf/xml/sql"
- xmlns:xf="http://www.w3.org/2002/xforms"
- xmlns:xi="http://www.w3.org/2001/XInclude"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
- xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
- fr:data-format-version="4.0.0">
- <xh:head>
- <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-header>
- <section-2>
- <it-sum/>
- <it-count/>
- <section-3/>
- </section-2>
- </section-header>
- </form>
- </xf:instance>
- <!-- Bindings -->
- <xf:bind id="fr-form-binds" ref="instance('fr-form-instance')">
- <xf:bind id="section-header-bind" name="section-header" ref="section-header">
- <xf:bind id="section-2-bind" ref="section-2" name="section-2">
- <xf:bind id="section-3-bind" ref="section-3" name="section-3">
- <xf:bind id="section-3-iteration-bind" ref="section-3-iteration"
- name="section-3-iteration">
- <xf:bind id="it-number-bind" ref="it-number" name="it-number" type="xf:decimal"/>
- </xf:bind>
- </xf:bind>
- <xf:bind id="it-sum-bind" ref="it-sum" name="it-sum" xxf:default="xs:decimal(0)"
- calculate="sum($it-number[string() castable as xs:decimal],xs:decimal(0))"/>
- <xf:bind id="it-count-bind" ref="it-count" name="it-count" calculate="count($it-number)"
- readonly="false()"/>
- </xf:bind>
- </xf:bind>
- </xf:bind>
- <!-- Metadata -->
- <xf:instance xxf:readonly="true" id="fr-form-metadata" xxf:exclude-result-prefixes="#all">
- <metadata>
- <application-name>yform</application-name>
- <updated-with-version>2018.2.3.201905172253 PE</updated-with-version>
- <form-name>htmllabel</form-name>
- <title xml:lang="en"/>
- <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">
- <it-sum>
- <label/>
- <hint/>
- </it-sum>
- <it-count>
- <label/>
- <hint/>
- </it-count>
- <it-number>
- <label>Number</label>
- <hint/>
- </it-number>
- <section-header>
- <label><div class="form-table--head"> <div class="content-left"> <p class="property--title"></p><span class="property--qty">{$itCount} counted</span> <div class="box-info box-link-popup hidden-xs"> <div class="box__popup" tabindex="-1"> <p>Options:</p> <ul> <li>Option 1.</li> <li>Option 2.</li> <li>Option 3.</li> </ul> </div> </div> <p class="property--amount property--amount-xs">{$itSum} &euro;</p> </div> <div class="content-right"> <p class="property--amount hidden-xs">{$itSum} &euro;</p> <div class="header-menu"> <ul> <li><a href="#">Do something</a></li> <li><a href="#">Do something</a></li> <li><a href="#">Do something</a></li> </ul> </div> </div> </div></label>
- </section-header>
- <section-2>
- <label>section-summary</label>
- <help/>
- </section-2>
- <section-3>
- <label>section-iteration</label>
- </section-3>
- </resource>
- </resources>
- </xf:instance>
- <xf:instance xxf:readonly="true" xxf:exclude-result-prefixes="#all" id="section-3-template">
- <section-3-iteration>
- <it-number/>
- </section-3-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-header-section" bind="section-header-bind">
- <xf:label ref="$form-resources/section-header/label" mediatype="text/html">
- <fr:param type="ControlValueParam">
- <fr:name>itSum</fr:name>
- <fr:controlName>it-sum</fr:controlName>
- </fr:param>
- <fr:param type="ControlValueParam">
- <fr:name>itCount</fr:name>
- <fr:controlName>it-count</fr:controlName>
- </fr:param>
- </xf:label>
- <fr:section id="section-2-section" bind="section-2-bind">
- <xf:label ref="$form-resources/section-2/label"/>
- <fr:grid id="grid-2-grid">
- <fr:c x="1" y="1" w="6">
- <xf:output id="it-sum-control" bind="it-sum-bind">
- <xf:label ref="$form-resources/it-sum/label"/>
- <xf:hint ref="$form-resources/it-sum/hint"/>
- <xf:alert ref="$fr-resources/detail/labels/alert"/>
- </xf:output>
- </fr:c>
- <fr:c x="7" y="1" w="6">
- <xf:output id="it-count-control" bind="it-count-bind">
- <xf:label ref="$form-resources/it-count/label"/>
- <xf:hint ref="$form-resources/it-count/hint"/>
- <xf:alert ref="$fr-resources/detail/labels/alert"/>
- </xf:output>
- </fr:c>
- </fr:grid>
- <fr:section id="section-3-section" bind="section-3-bind" repeat="content"
- template="instance('section-3-template')"
- apply-defaults="true"
- fb:initial-iterations="first">
- <xf:label ref="$form-resources/section-3/label"/>
- <fr:grid id="grid-1-grid">
- <fr:c x="1" y="1" w="6">
- <fr:number xmlns="http://orbeon.org/oxf/xml/form-builder"
- xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
- xmlns:NumberSupport="java:org.orbeon.xbl.NumberSupportJava"
- id="it-number-control"
- bind="it-number-bind">
- <xf:label ref="$form-resources/it-number/label"/>
- <xf:hint ref="$form-resources/it-number/hint"/>
- <xf:alert ref="$fr-resources/detail/labels/alert"/>
- </fr:number>
- </fr:c>
- <fr:c x="7" y="1" w="6"/>
- </fr:grid>
- </fr:section>
- </fr:section>
- </fr:section>
- </fr:body>
- </fr:view>
- </xh:body>
- </xh:html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement