Skip to content

Instantly share code, notes, and snippets.

@ebruchez
Created April 22, 2019 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebruchez/a081c4a448326b2b3d25c3b186b38d44 to your computer and use it in GitHub Desktop.
Save ebruchez/a081c4a448326b2b3d25c3b186b38d44 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:array="http://www.w3.org/2005/xpath-functions/array"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
xmlns:map="http://www.w3.org/2005/xpath-functions/map"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
fr:data-format-version="4.0.0">
<xh:head>
<xh:title>JavaScript error in Form Builder when opening section #4011</xh:title>
<xf:model id="fr-form-model" xxf:expose-xpath-types="true" xxf:analysis.calculate="true">
<xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all" xxf:index="id">
<form>
<section-4/>
<section-1>
<section-1-iteration>
<control-1/>
<section-2>
<control-2/>
<control-3/>
</section-2>
</section-1-iteration>
</section-1>
</form>
</xf:instance>
<xf:bind id="fr-form-binds" ref="instance('fr-form-instance')">
<xf:bind id="section-4-bind" ref="section-4" name="section-4"/>
<xf:bind id="section-1-bind" name="section-1" ref="section-1">
<xf:bind id="section-1-iteration-bind" ref="section-1-iteration"
name="section-1-iteration">
<xf:bind id="control-1-bind" name="control-1" ref="control-1" xxf:whitespace="trim"/>
<xf:bind id="section-2-bind" ref="section-2" name="section-2">
<xf:bind id="control-2-bind" ref="control-2" name="control-2" xxf:whitespace="trim"/>
<xf:bind id="control-3-bind" ref="control-3" name="control-3" xxf:whitespace="trim"/>
</xf:bind>
</xf:bind>
</xf:bind>
</xf:bind>
<xf:instance id="fr-form-metadata" xxf:readonly="true" xxf:exclude-result-prefixes="#all">
<metadata>
<application-name>issue</application-name>
<form-name>4011</form-name>
<title xml:lang="en">JavaScript error in Form Builder when opening section #4011</title>
<description xml:lang="en"/>
<created-with-version>2019.1-SNAPSHOT PE</created-with-version>
<updated-with-version>2019.1-SNAPSHOT PE</updated-with-version>
<library-versions>
<orbeon>1</orbeon>
</library-versions>
</metadata>
</xf:instance>
<xf:instance id="fr-form-attachments" xxf:exclude-result-prefixes="#all">
<attachments/>
</xf:instance>
<xf:instance xxf:readonly="true" id="fr-form-resources" xxf:exclude-result-prefixes="#all">
<resources>
<resource xml:lang="en">
<control-2>
<label>c2</label>
<hint/>
</control-2>
<control-3>
<label/>
<hint/>
</control-3>
<section-1>
<label>S2 top-level section </label>
</section-1>
<section-4>
<label>S1 top-level section </label>
<help/>
</section-4>
<control-1>
<label>c1</label>
<hint/>
<alert/>
</control-1>
<section-2>
<label>Nested section</label>
<help/>
</section-2>
</resource>
</resources>
</xf:instance>
<xf:instance xxf:readonly="true" xxf:exclude-result-prefixes="#all" id="section-1-template">
<section-1-iteration>
<control-1/>
<section-2>
<control-2/>
<control-3/>
</section-2>
</section-1-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-4-section" bind="section-4-bind">
<xf:label ref="$form-resources/section-4/label"/>
<fr:grid id="grid-4-grid">
<fr:c x="1" y="1" w="6"/>
<fr:c x="7" y="1" w="6"/>
</fr:grid>
</fr:section>
<fr:section id="section-1-section" bind="section-1-bind" repeat="content" min="1"
template="instance('section-1-template')"
apply-defaults="true"
fb:initial-iterations="first">
<xf:label ref="$form-resources/section-1/label"/>
<fr:grid id="grid-1-grid">
<fr:c y="1" x="1" w="6">
<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>
</fr:c>
<fr:c y="1" x="7" w="6"/>
</fr:grid>
<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:input 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:input>
</fr:c>
<fr:c x="7" y="1" w="6">
<xf:input id="control-3-control" 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:input>
</fr:c>
</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