Skip to content

Instantly share code, notes, and snippets.

@ebruchez
Created April 9, 2015 04:32
Show Gist options
  • Save ebruchez/939ef9269cd0f3bc2bc1 to your computer and use it in GitHub Desktop.
Save ebruchez/939ef9269cd0f3bc2bc1 to your computer and use it in GitHub Desktop.
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
xmlns:saxon="http://saxon.sf.net/"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sql="http://orbeon.org/oxf/xml/sql"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:exf="http://www.exforms.org/exf/1-0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<xh:head>
<xh:title>Mine Information</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>
<camps-and-buildings-section>
<camps-and-buildings_buildings-section>
<grid-34>
<grid-34-iteration>
<buildings-merchantable-timber/>
</grid-34-iteration>
</grid-34>
</camps-and-buildings_buildings-section>
</camps-and-buildings-section>
</form>
</xf:instance>
<!-- Bindings -->
<xf:bind id="fr-form-binds" ref="instance('fr-form-instance')">
<xf:bind id="camps-and-buildings-section-bind" ref="camps-and-buildings-section"
name="camps-and-buildings-section">
<xf:bind id="camps-and-buildings_buildings-section-bind"
ref="camps-and-buildings_buildings-section"
name="camps-and-buildings_buildings-section">
<xf:bind id="grid-34-bind" ref="grid-34" name="grid-34">
<xf:bind id="grid-34-iteration-bind" ref="grid-34-iteration" name="grid-34-iteration">
<xf:bind id="buildings-merchantable-timber-bind" ref="buildings-merchantable-timber"
name="buildings-merchantable-timber"/>
</xf:bind>
</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>now</application-name>
<form-name>mine-information</form-name>
<title xml:lang="en">Mine Information</title>
<description xml:lang="en"/>
<singleton>false</singleton>
</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">
<camps-and-buildings_buildings-section>
<label>Buildings</label>
<help/>
</camps-and-buildings_buildings-section>
<buildings-merchantable-timber>
<label>Total Merchantable Timber</label>
<hint/>
</buildings-merchantable-timber>
<camps-and-buildings-section>
<label>Camps &amp; Buildings</label>
</camps-and-buildings-section>
</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:instance xxf:readonly="true" id="grid-34-template">
<grid-34-iteration>
<buildings-merchantable-timber/>
</grid-34-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="camps-and-buildings-section-control"
bind="camps-and-buildings-section-bind">
<xf:label ref="$form-resources/camps-and-buildings-section/label"/>
<fr:section id="camps-and-buildings_buildings-section-control"
bind="camps-and-buildings_buildings-section-bind">
<xf:label ref="$form-resources/camps-and-buildings_buildings-section/label"/>
<fr:grid id="grid-34-grid" bind="grid-34-bind" repeat="content" min="1"
template="instance('grid-34-template')">
<xh:tr>
<xh:td>
<fr:number id="buildings-merchantable-timber-control"
bind="buildings-merchantable-timber-bind"
suffix="m3"
digits-after-decimal="2">
<xf:label ref="$form-resources/buildings-merchantable-timber/label"/>
<xf:hint ref="$form-resources/buildings-merchantable-timber/hint"/>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
</fr:number>
</xh:td>
</xh:tr>
</fr:grid>
</fr:section>
</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