orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
514 stars 220 forks source link

"Required" validation not working on one field #2407

Closed ajw625 closed 8 years ago

ajw625 commented 8 years ago

I have a form created in Form Builder with many controls that have "Required" set to "Yes". For most of them, they are validated correctly. The last field in the form is Required. It shows a star next to the question text, but the star is grey instead of red. There's no indication of why. There isn't a formula for Required. It's just set to Yes. It's greyed out in the Form Builder and when I "test" the form and click validate, it doesn't show an error message for that field.

Apologies for pasting this entire form into the issue, but I tried to attach it and GitHub said that "something went really wrong, and we can't process that file."

The problem control is named oltc.riparian.rrz_marked_flag. The form was created using Orbeon 4.9. I tested it with a 4.10 install and got the same result.

I was able to resolve the issue by removing the control and adding it again. But this seems like a bug so I thought it was worth reporting.

<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>Occupant Licence to Cut Application</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>
                    <section-1>
                        <oltc.applicant.district/>
                    </section-1>
                    <tenure>
                        <oltc.tenure.location/>
                        <control-5/>
                        <oltc.tenure.start_dt/>
                        <oltc.tenure.end_dt/>
                        <oltc.tenure.filenum/>
                        <control-9/>
                        <control-10 filename="" mediatype="" size=""/>
                    </tenure>
                    <oltc.oltc_form>
                        <oltc.oltc_form.purpose/>
                        <control-30/>
                        <oltc.oltc_form.start_dt/>
                        <oltc.oltc_form.end_dt/>
                        <oltc.oltc_form.merchantable>1</oltc.oltc_form.merchantable>
                        <control-16/>
                        <oltc.oltc_form.non_dispose/>
                        <oltc.oltc_form.non_support filename="" mediatype="" size=""/>
                        <oltc.oltc_form.timber_disposition>3</oltc.oltc_form.timber_disposition>
                        <oltc.oltc_form.merch_dispose/>
                    </oltc.oltc_form>
                    <section-33>
                        <oltc.price.deciduous_vol/>
                        <oltc.price.conifer_vol/>
                        <oltc.price.derived/>
                        <control-36/>
                        <control-35/>
                        <oltc.price.coast_gt2500>1</oltc.price.coast_gt2500>
                        <control-38/>
                        <oltc.price.ecas_id/>
                        <oltc.price.coast_lt2500/>
                        <oltc.price.misc_ads filename="" mediatype="" size=""/>
                        <oltc.price.stump_form filename="" mediatype="" size=""/>
                    </section-33>
                    <oltc.road>
                        <oltc.road.description/>
                        <oltc.road.fsr/>
                        <control-22>Y</control-22>
                        <oltc.road.exempt_flag/>
                        <oltc.road.exempt_attach filename="" mediatype="" size=""/>
                        <oltc.road.permit_plan/>
                        <oltc.road.permit_agreement>1</oltc.road.permit_agreement>
                    </oltc.road>
                    <section-42>
                        <control-44/>
                        <oltc.fn.referral_flag>Y</oltc.fn.referral_flag>
                    </section-42>
                    <section-45>
                        <control-46/>
                        <oltc.other_resources.frpa_exempt_flag/>
                        <control-48/>
                        <control-49/>
                        <control-50/>
                    </section-45>
                    <section-51>
                        <oltc.riparian.streams_mapped_flag/>
                        <oltc.riparian.skid_trail_removal_flag/>
                        <oltc.riparian.rmz_harvest_flag/>
                        <oltc.riparian.rrz_marked_flag>1</oltc.riparian.rrz_marked_flag>
                    </section-51>
                </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="oltc.applicant.district-bind" ref="oltc.applicant.district"
                             name="oltc.applicant.district"/>
                </xf:bind>
                <xf:bind id="tenure-bind" ref="tenure" name="tenure">
                    <xf:bind id="oltc.tenure.location-bind" ref="oltc.tenure.location"
                             name="oltc.tenure.location"
                             required="true()"/>
                    <xf:bind id="control-5-bind" ref="control-5" name="control-5"/>
                    <xf:bind id="oltc.tenure.start_dt-bind" ref="oltc.tenure.start_dt"
                             name="oltc.tenure.start_dt"
                             type="xs:date"
                             required="true()"/>
                    <xf:bind id="oltc.tenure.end_dt-bind" ref="oltc.tenure.end_dt" name="oltc.tenure.end_dt"
                             type="xs:date"
                             required="true()"/>
                    <xf:bind id="oltc.tenure.filenum-bind" ref="oltc.tenure.filenum"
                             name="oltc.tenure.filenum"/>
                    <xf:bind id="control-9-bind" ref="control-9" name="control-9"/>
                    <xf:bind id="control-10-bind" ref="control-10" name="control-10" type="xf:anyURI"/>
                </xf:bind>
                <xf:bind id="oltc.oltc_form-bind" ref="oltc.oltc_form" name="oltc.oltc_form">
                    <xf:bind id="oltc.oltc_form.purpose-bind" ref="oltc.oltc_form.purpose"
                             name="oltc.oltc_form.purpose"/>
                    <xf:bind id="oltc.oltc_form.merchantable-bind" ref="oltc.oltc_form.merchantable"
                             name="oltc.oltc_form.merchantable"/>
                    <xf:bind id="control-16-bind" ref="control-16" name="control-16"
                             relevant="$oltc.oltc_form.merchantable='N'"/>
                    <xf:bind id="oltc.oltc_form.non_dispose-bind" ref="oltc.oltc_form.non_dispose"
                             name="oltc.oltc_form.non_dispose"
                             relevant="$oltc.oltc_form.merchantable='N'"/>
                    <xf:bind id="oltc.oltc_form.non_support-bind" ref="oltc.oltc_form.non_support"
                             name="oltc.oltc_form.non_support"
                             type="xf:anyURI"
                             relevant="$oltc.oltc_form.merchantable='N'"/>
                    <xf:bind id="oltc.oltc_form.timber_disposition-bind"
                             ref="oltc.oltc_form.timber_disposition"
                             name="oltc.oltc_form.timber_disposition"
                             relevant="$oltc.oltc_form.merchantable='M'"/>
                    <xf:bind id="oltc.oltc_form.merch_dispose-bind" ref="oltc.oltc_form.merch_dispose"
                             name="oltc.oltc_form.merch_dispose"
                             relevant="$oltc.oltc_form.timber_disposition = '1' and $oltc.oltc_form.merchantable='M'"/>
                    <xf:bind id="oltc.oltc_form.start_dt-bind" ref="oltc.oltc_form.start_dt"
                             name="oltc.oltc_form.start_dt"
                             type="xf:date"/>
                    <xf:bind id="control-30-bind" ref="control-30" name="control-30"/>
                    <xf:bind id="oltc.oltc_form.end_dt-bind" ref="oltc.oltc_form.end_dt"
                             name="oltc.oltc_form.end_dt"
                             type="xf:date"/>
                </xf:bind>
                <xf:bind id="oltc.road-bind" ref="oltc.road" name="oltc.road">
                    <xf:bind id="oltc.road.description-bind" ref="oltc.road.description"
                             name="oltc.road.description"/>
                    <xf:bind id="control-22-bind" ref="control-22" name="control-22"
                             relevant="$oltc.road.fsr = 'Y'"/>
                    <xf:bind id="oltc.road.fsr-bind" ref="oltc.road.fsr" name="oltc.road.fsr"/>
                    <xf:bind id="oltc.road.exempt_flag-bind" ref="oltc.road.exempt_flag"
                             name="oltc.road.exempt_flag"/>
                    <xf:bind id="oltc.road.exempt_attach-bind" ref="oltc.road.exempt_attach"
                             name="oltc.road.exempt_attach"
                             type="xf:anyURI"
                             relevant="$oltc.road.exempt_flag = 'Y'"/>
                    <xf:bind id="oltc.road.permit_plan-bind" ref="oltc.road.permit_plan"
                             name="oltc.road.permit_plan"/>
                    <xf:bind id="oltc.road.permit_agreement-bind" ref="oltc.road.permit_agreement"
                             name="oltc.road.permit_agreement"
                             relevant="$oltc.road.permit_plan='Y'"/>
                </xf:bind>
                <xf:bind id="section-33-bind" ref="section-33" name="section-33"
                         relevant="$oltc.oltc_form.merchantable='M'">
                    <xf:bind id="oltc.price.deciduous_vol-bind" ref="oltc.price.deciduous_vol"
                             name="oltc.price.deciduous_vol"/>
                    <xf:bind id="oltc.price.conifer_vol-bind" ref="oltc.price.conifer_vol"
                             name="oltc.price.conifer_vol"/>
                    <xf:bind id="oltc.price.derived-bind" ref="oltc.price.derived" name="oltc.price.derived"/>
                    <xf:bind id="control-36-bind" ref="control-36" name="control-36"/>
                    <xf:bind id="control-35-bind" ref="control-35" name="control-35"/>
                    <xf:bind id="oltc.price.coast_gt2500-bind" ref="oltc.price.coast_gt2500"
                             name="oltc.price.coast_gt2500"/>
                    <xf:bind id="control-38-bind" ref="control-38" name="control-38"/>
                    <xf:bind id="oltc.price.ecas_id-bind" ref="oltc.price.ecas_id" name="oltc.price.ecas_id"/>
                    <xf:bind id="oltc.price.coast_lt2500-bind" ref="oltc.price.coast_lt2500"
                             name="oltc.price.coast_lt2500"/>
                    <xf:bind id="oltc.price.misc_ads-bind" ref="oltc.price.misc_ads"
                             name="oltc.price.misc_ads"
                             type="xf:anyURI"/>
                    <xf:bind id="oltc.price.stump_form-bind" ref="oltc.price.stump_form"
                             name="oltc.price.stump_form"
                             type="xf:anyURI"/>
                </xf:bind>
                <xf:bind id="section-42-bind" ref="section-42" name="section-42">
                    <xf:bind id="oltc.fn.referral_flag-bind" ref="oltc.fn.referral_flag"
                             name="oltc.fn.referral_flag"
                             xxf:default="'N'"/>
                    <xf:bind id="control-44-bind" ref="control-44" name="control-44"/>
                </xf:bind>
                <xf:bind id="section-45-bind" ref="section-45" name="section-45">
                    <xf:bind id="control-46-bind" ref="control-46" name="control-46"/>
                    <xf:bind id="oltc.other_resources.frpa_exempt_flag-bind"
                             ref="oltc.other_resources.frpa_exempt_flag"
                             name="oltc.other_resources.frpa_exempt_flag"/>
                    <xf:bind id="control-48-bind" ref="control-48" name="control-48"
                             relevant="$oltc.other_resources.frpa_exempt_flag='Y'"
                             required="$oltc.other_resources.frpa_exempt_flag='Y'"/>
                    <xf:bind id="control-49-bind" ref="control-49" name="control-49"/>
                    <xf:bind id="control-50-bind" ref="control-50" name="control-50"/>
                </xf:bind>
                <xf:bind id="section-51-bind" ref="section-51" name="section-51">
                    <xf:bind id="oltc.riparian.streams_mapped_flag-bind"
                             ref="oltc.riparian.streams_mapped_flag"
                             name="oltc.riparian.streams_mapped_flag"
                             required="true()"/>
                    <xf:bind id="oltc.riparian.skid_trail_removal_flag-bind"
                             ref="oltc.riparian.skid_trail_removal_flag"
                             name="oltc.riparian.skid_trail_removal_flag"
                             required="true()"/>
                    <xf:bind id="oltc.riparian.rmz_harvest_flag-bind" ref="oltc.riparian.rmz_harvest_flag"
                             name="oltc.riparian.rmz_harvest_flag"
                             required="true()"/>
                    <xf:bind id="oltc.riparian.rrz_marked_flag-bind" ref="oltc.riparian.rrz_marked_flag"
                             name="oltc.riparian.rrz_marked_flag"
                             required="true()"/>
                </xf:bind>
            </xf:bind>

            <!-- Metadata -->
            <xf:instance xxf:readonly="true" id="fr-form-metadata" xxf:exclude-result-prefixes="#all">
                <metadata>
                    <application-name>NRPP_OLTC</application-name>
                    <form-name>oltc_app</form-name>
                    <title xml:lang="en">Occupant Licence to Cut Application</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">
                        <oltc.riparian.streams_mapped_flag>
                            <label>All streams are correctly classified and mapped.</label>
                            <hint/>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </oltc.riparian.streams_mapped_flag>
                        <oltc.riparian.skid_trail_removal_flag>
                            <label>Appropriate timing for removal of any skid trail crossings of streams and non-classified drainages is identified.</label>
                            <hint/>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </oltc.riparian.skid_trail_removal_flag>
                        <oltc.riparian.rmz_harvest_flag>
                            <label>Proposed harvest in Riparian Management Zone (RMZ) is consistent with Forest Planning and Practices Regulation.</label>
                            <hint/>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </oltc.riparian.rmz_harvest_flag>
                        <oltc.riparian.rrz_marked_flag>
                            <label>Riparian Reserve Zones (RRZ’s) have been marked in the field to prevent harvest.</label>
                            <hint/>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </oltc.riparian.rrz_marked_flag>
                        <control-46>
                            <text>&lt;div&gt;A field review has been completed and unless exempted, this application is in compliance with all applicable practice requirements specified in Part 4 of the Forest Planning and Practices Regulation.&lt;/div&gt;</text>
                        </control-46>
                        <oltc.other_resources.frpa_exempt_flag>
                            <label>An OLTC issued under the authority of the Forest Act have practice requirements under the Forest and Range Practices Act.  Are you seeking a Forest and Range Practices Act (FRPA) exemption?</label>
                            <hint/>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                        </oltc.other_resources.frpa_exempt_flag>
                        <control-48>
                            <label>Provide a description of what section(s) you require an exemption for.</label>
                            <hint/>
                        </control-48>
                        <control-49>
                            <label>Additional details about other resource values (wildlife; creeks; terrain; etc.).  </label>
                            <hint/>
                        </control-49>
                        <control-50>
                            <text>&lt;div&gt;Be advised that a conflict with a land use objective may require changes to the application.&lt;/div&gt;</text>
                        </control-50>
                        <control-44>
                            <text>&lt;div&gt;
&lt;p&gt;The applicant should contact the District office to find who are the First Nations clients whose traditional territory overlaps the area of the OLTC so that they can initiate First Nation Consultation or use the Consultative Area Database.&lt;/p&gt;
&lt;p&gt;NOTE: Be advised that Government must consult with potentially-affected First Nations prior to issuing any authorization. This may affect the period of time for processing the application.&lt;/p&gt;
&lt;p&gt;The Ministry of Forests, Lands &amp;amp; Natural Resource Operations (FLNRO) may require your participation in consulting with the appropriate First Nations regarding your application. This consultation review period can be 15-60 days or more. Please ensure that your application is submitted in advance of the required date to accommodate consultation.&lt;/p&gt;
&lt;/div&gt;</text>
                        </control-44>
                        <oltc.fn.referral_flag>
                            <label>Has any referral been made to First Nations whose traditional territory overlaps the area of the OLTC?</label>
                            <hint/>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </oltc.fn.referral_flag>
                        <oltc.price.deciduous_vol>
                            <label>Deciduous volume estimate m3</label>
                            <hint/>
                        </oltc.price.deciduous_vol>
                        <oltc.price.conifer_vol>
                            <label>Conifer volume estimate m3</label>
                            <hint/>
                        </oltc.price.conifer_vol>
                        <oltc.price.derived>
                            <label>Describe how the volume estimate was derived, i.e., VRI, Cruise, Comparative Cruise, Professional estimate, etc. Note that the district may request additional information.</label>
                            <hint/>
                        </oltc.price.derived>
                        <control-36>
                            <text>&lt;div&gt;Coast Forest region - Select one applicable option below.&lt;/div&gt;
&lt;div&gt;
&lt;p style="margin: 0in 0in 8pt;"&gt;&lt;span lang="EN-CA"&gt;&lt;span style="font-family: Calibri; font-size: medium;"&gt;Coast Appraise Manual – Table 2-1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 8pt;"&gt;&lt;span lang="EN-CA"&gt;&lt;a href="https://www.for.gov.bc.ca/hva/manuals/coast.htm"&gt;&lt;span style="color: #0563c1; font-family: Calibri; font-size: medium;"&gt;https://www.for.gov.bc.ca/hva/manuals/coast.htm&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</text>
                        </control-36>
                        <control-35>
                            <text>&lt;div&gt;Interior Area&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Interior Appraise Manual – Table 2-1&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.for.gov.bc.ca/hva/manuals/interior/index.htm"&gt;http://www.for.gov.bc.ca/hva/manuals/interior/index.htm&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</text>
                        </control-35>
                        <oltc.price.coast_gt2500>
                            <label>Type your label here</label>
                            <hint/>
                            <item>
                                <label>The Merchantable Timber volume within the application area is greater than 2,500 m3. An appraisal and a timber cruise has been completed and submitted electronically using the Electronic Commerce Appraisal System (ECAS) and a Registered Forest Professional has signed and sealed the application.</label>
                                <hint/>
                                <value>Y</value>
                            </item>

                        </oltc.price.coast_gt2500>
                        <control-38>
                            <text>&lt;div&gt;
&lt;p style="margin: 0in 0in 8pt;"&gt;&lt;span lang="EN-CA"&gt;&lt;span style="font-family: Calibri; font-size: medium;"&gt;Interior appraisal table rate applies.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 8pt;"&gt;&lt;span lang="EN-CA"&gt;&lt;span style="font-family: Calibri; font-size: medium;"&gt;The applicant can use the Interior Stumpage Rate Request Form to request a stumpage rate. If timber is to be removed from the site by OLTC holder, a properly completed Stumpage Rate Request Form must accompany this application signed by a Forest Professional.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</text>
                        </control-38>
                        <oltc.price.ecas_id>
                            <label>Provide ECAS ID#</label>
                            <hint/>
                        </oltc.price.ecas_id>
                        <oltc.price.coast_lt2500>
                            <label/>
                            <hint/>
                            <item>
                                <label>The merchantable timber volume within the application area is less than 2,500m3, A RPF or RFT has completed and signed a Miscellaneous Appraisal Data Submission (Misc. ADS) form</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                        </oltc.price.coast_lt2500>
                        <oltc.price.misc_ads>
                            <label>Attach Misc. ADS form</label>
                            <hint/>
                        </oltc.price.misc_ads>
                        <oltc.price.stump_form>
                            <label>Stumpage Rate Request Form</label>
                            <hint/>
                        </oltc.price.stump_form>
                        <oltc.road.description>
                            <label>Describe how the site will be accessed.  Contact District staff for road access concerns.</label>
                            <hint/>
                        </oltc.road.description>
                        <oltc.road.fsr>
                            <label/>
                            <hint/>
                            <item>
                                <label>The road is a Forest Service Road</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                        </oltc.road.fsr>
                        <control-22>
                            <label>Have you included a Road Use Permit Application? (form FS109)</label>
                            <hint/>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </control-22>
                        <oltc.road.exempt_flag>
                            <label/>
                            <hint/>
                            <item>
                                <label>A request for exemption from the requirement for a Road Use Permit is attached</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                        </oltc.road.exempt_flag>
                        <oltc.road.exempt_attach>
                            <label/>
                            <hint/>
                        </oltc.road.exempt_attach>
                        <oltc.road.permit_plan>
                            <label/>
                            <hint/>
                            <item>
                                <label>Planning to use a road under a road permit.</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                        </oltc.road.permit_plan>
                        <oltc.road.permit_agreement>
                            <label>Have you contacted the holder of the road permit to arrange an agreement to use the road?</label>
                            <hint/>
                            <item>
                                <label>Yes</label>
                                <hint/>
                                <value>Y</value>
                            </item>
                            <item>
                                <label>No</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </oltc.road.permit_agreement>
                        <oltc.oltc_form.purpose>
                            <label>OLTC Purpose</label>
                            <hint>Describe the reason or objective for timber harvesting</hint>
                        </oltc.oltc_form.purpose>
                        <control-30>
                            <text>&lt;div&gt;Proposed term of the Occupant Licence to Cut&lt;/div&gt;
&lt;div&gt;Terms can be from 1 to 5 years.  Extensions may be granted prior to expiry of the permit.&lt;/div&gt;
&lt;div&gt;Occupant Licence to Cut term cannot exceed the term of the Occupancy Tenure.&lt;/div&gt;</text>
                        </control-30>
                        <oltc.oltc_form.start_dt>
                            <label>Start date</label>
                            <hint/>
                        </oltc.oltc_form.start_dt>
                        <oltc.oltc_form.end_dt>
                            <label>End date</label>
                            <hint/>
                        </oltc.oltc_form.end_dt>
                        <oltc.oltc_form.merchantable>
                            <label>Is the timber merchantable or non-merchantable.  </label>
                            <hint>Merchantable is defined in the appropriate appraisal manual (http://www2.gov.bc.ca/gov/content/industry/forestry/timber-pricing)</hint>
                            <item>
                                <label>Merchantable</label>
                                <hint/>
                                <value>M</value>
                            </item>
                            <item>
                                <label>Non-Merchantable</label>
                                <hint/>
                                <value>N</value>
                            </item>
                        </oltc.oltc_form.merchantable>
                        <control-16>
                            <text>&lt;div&gt;
&lt;p style="margin: 0in 0in 8pt;"&gt;&lt;span lang="EN-CA"&gt;&lt;span style="font-family: Calibri; font-size: medium;"&gt;No Merchantable timber is within the application area. Timber Pricing information is not required.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;span style="line-height: 107%; font-family: 'Calibri',sans-serif; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-CA; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;" lang="EN-CA"&gt;Please note that information such as photos should be included to show that the trees to be cut are not merchantable. If there is any question whether the trees are merchantable or not we may request that the applicants have an RPF sign and seal the application.&lt;/span&gt;&lt;/div&gt;</text>
                        </control-16>
                        <oltc.oltc_form.non_dispose>
                            <label>Specify the intended method of disposal (burn, slash, etc.)</label>
                            <hint/>
                        </oltc.oltc_form.non_dispose>
                        <oltc.oltc_form.non_support>
                            <label>Supporting documentation</label>
                            <hint/>
                        </oltc.oltc_form.non_support>
                        <oltc.oltc_form.timber_disposition>
                            <label>Indicate &lt;/bPROPOSED/b&gt; method of timber disposition.  District discretion applies.  Client is required to engage District staff.</label>
                            <hint/>
                            <item>
                                <label>Cut and Dispose - Stumpage charges may apply</label>
                                <hint/>
                                <value>1</value>
                            </item>
                            <item>
                                <label>Cut and Deck - Crown will retain ownership of the timber to dispose of at their choice. Stumpage rates will not.</label>
                                <hint/>
                                <value>2</value>
                            </item>
                            <item>
                                <label>Cut and Remove - OLTC holder will retain ownership of the timber to dispose of at their choice. Stumpage charges will apply.</label>
                                <hint/>
                                <value>3</value>
                            </item>
                        </oltc.oltc_form.timber_disposition>
                        <oltc.oltc_form.merch_dispose>
                            <label>Specify intended mthod of disposal (i.e., burn, slash, etc.)</label>
                            <hint/>
                        </oltc.oltc_form.merch_dispose>
                        <oltc.tenure.location>
                            <label>Nearest Geographical Location</label>
                            <hint/>
                            <alert>Missing or incorrect data</alert>
                        </oltc.tenure.location>
                        <control-5>
                            <text>&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Term of occupancy&lt;/div&gt;</text>
                        </control-5>
                        <oltc.tenure.start_dt>
                            <label>Start Date</label>
                            <hint/>
                        </oltc.tenure.start_dt>
                        <oltc.tenure.end_dt>
                            <label>End date</label>
                            <hint/>
                        </oltc.tenure.end_dt>
                        <oltc.tenure.filenum>
                            <label>Tenure File Number</label>
                            <hint/>
                        </oltc.tenure.filenum>
                        <control-9>
                            <text>&lt;div&gt; &lt;/div&gt;
&lt;div&gt;                               OR&lt;/div&gt;</text>
                        </control-9>
                        <control-10>
                            <label>Attach a copy of evidence that the applicant has the legal right to occupy</label>
                            <hint>Attach a copy of a valid tenure or evidence that the applicant has the legal right to occupy the area of the Occupant Licence to Cut</hint>
                        </control-10>
                        <section-1>
                            <label>Applicant Information</label>
                        </section-1>
                        <tenure>
                            <label>Crown Land Tenure (Proof of Occupancy)</label>
                            <help/>
                        </tenure>
                        <oltc.oltc_form>
                            <label>Form of Occupant Licence to Cut</label>
                            <help/>
                        </oltc.oltc_form>
                        <section-33>
                            <label>Timber Pricing</label>
                            <help/>
                        </section-33>
                        <oltc.road>
                            <label>Road Access Information</label>
                            <help/>
                        </oltc.road>
                        <section-42>
                            <label>First Nations</label>
                            <help/>
                        </section-42>
                        <section-45>
                            <label>Other Resource Values</label>
                            <help/>
                        </section-45>
                        <section-51>
                            <label>Riparian management</label>
                            <help/>
                        </section-51>
                        <oltc.applicant.district>
                            <label>District(s) request is being submitted to</label>
                            <hint/>
                        </oltc.applicant.district>
                    </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:model>
    </xh:head>
    <xh:body>
        <fr:view>
            <fr:body xmlns:oxf="http://www.orbeon.com/oxf/processors"
                     xmlns:p="http://www.orbeon.com/oxf/pipeline"
                     xmlns:xbl="http://www.w3.org/ns/xbl">
                <fr:section id="section-1-control" bind="section-1-bind">
                    <xf:label ref="$form-resources/section-1/label"/>
                    <fr:grid>
                        <xh:tr>

                            <xh:td>
                                <fr:databound-select1 xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" id="oltc.applicant.district-control"
                                                      appearance="minimal"
                                                      resource=""
                                                      bind="oltc.applicant.district-bind">
                                    <xf:label ref="$form-resources/oltc.applicant.district/label"/>
                                    <xf:hint ref="$form-resources/oltc.applicant.district/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                    </xf:itemset>
                                </fr:databound-select1>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
                <fr:section id="tenure-control" bind="tenure-bind">
                    <xf:label ref="$form-resources/tenure/label"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.tenure.location-control" bind="oltc.tenure.location-bind">
                                    <xf:label ref="$form-resources/oltc.tenure.location/label"/>
                                    <xf:hint ref="$form-resources/oltc.tenure.location/hint"/>
                                    <xf:alert ref="$form-resources/oltc.tenure.location/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-5-control"
                                                bind="control-5-bind">
                                    <fr:text ref="$form-resources/control-5/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                            <xh:td>
                                <xf:input id="oltc.tenure.start_dt-control" bind="oltc.tenure.start_dt-bind">
                                    <xf:label ref="$form-resources/oltc.tenure.start_dt/label"/>
                                    <xf:hint ref="$form-resources/oltc.tenure.start_dt/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                            <xh:td>
                                <xf:input id="oltc.tenure.end_dt-control" bind="oltc.tenure.end_dt-bind">
                                    <xf:label ref="$form-resources/oltc.tenure.end_dt/label"/>
                                    <xf:hint ref="$form-resources/oltc.tenure.end_dt/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.tenure.filenum-control" bind="oltc.tenure.filenum-bind">
                                    <xf:label ref="$form-resources/oltc.tenure.filenum/label"/>
                                    <xf:hint ref="$form-resources/oltc.tenure.filenum/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-9-control"
                                                bind="control-9-bind">
                                    <fr:text ref="$form-resources/control-9/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                            <xh:td>
                                <fr:attachment xmlns="http://orbeon.org/oxf/xml/form-builder"
                                               xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                               id="control-10-control"
                                               class="fr-attachment"
                                               bind="control-10-bind">
                                    <xf:label ref="$form-resources/control-10/label"/>
                                    <xf:hint ref="$form-resources/control-10/hint"/>

                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                    <xf:filename ref="@filename"/>
                                    <xf:mediatype ref="@mediatype"/>
                                    <xxf:size ref="@size"/>
                                </fr:attachment>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
                <fr:section id="oltc.oltc_form-control" bind="oltc.oltc_form-bind">
                    <xf:label ref="$form-resources/oltc.oltc_form/label"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:textarea id="oltc.oltc_form.purpose-control" bind="oltc.oltc_form.purpose-bind">
                                    <xf:label ref="$form-resources/oltc.oltc_form.purpose/label"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.purpose/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:textarea>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-30-control"
                                                bind="control-30-bind">
                                    <fr:text ref="$form-resources/control-30/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.oltc_form.start_dt-control" bind="oltc.oltc_form.start_dt-bind">
                                    <xf:label ref="$form-resources/oltc.oltc_form.start_dt/label"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.start_dt/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                            <xh:td>
                                <xf:input id="oltc.oltc_form.end_dt-control" bind="oltc.oltc_form.end_dt-bind">
                                    <xf:label ref="$form-resources/oltc.oltc_form.end_dt/label"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.end_dt/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.oltc_form.merchantable-control" appearance="full"
                                            bind="oltc.oltc_form.merchantable-bind">
                                    <xf:label ref="$form-resources/oltc.oltc_form.merchantable/label"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.merchantable/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.oltc_form.merchantable/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-16-control"
                                                bind="control-16-bind">
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                    <fr:text ref="$form-resources/control-16/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.oltc_form.non_dispose-control" bind="oltc.oltc_form.non_dispose-bind">
                                    <xf:label ref="$form-resources/oltc.oltc_form.non_dispose/label"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.non_dispose/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                            <xh:td>
                                <fr:attachment xmlns="http://orbeon.org/oxf/xml/form-builder"
                                               xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                               id="oltc.oltc_form.non_support-control"
                                               bind="oltc.oltc_form.non_support-bind"
                                               class="fr-attachment">
                                    <xf:label ref="$form-resources/oltc.oltc_form.non_support/label"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.non_support/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:filename ref="@filename"/>
                                    <xf:mediatype ref="@mediatype"/>
                                    <xxf:size ref="@size"/>
                                </fr:attachment>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.oltc_form.timber_disposition-control" appearance="full"
                                            bind="oltc.oltc_form.timber_disposition-bind">
                                    <xf:label ref="$form-resources/oltc.oltc_form.timber_disposition/label"
                                              mediatype="text/html"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.timber_disposition/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.oltc_form.timber_disposition/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.oltc_form.merch_dispose-control"
                                          bind="oltc.oltc_form.merch_dispose-bind">
                                    <xf:label ref="$form-resources/oltc.oltc_form.merch_dispose/label"/>
                                    <xf:hint ref="$form-resources/oltc.oltc_form.merch_dispose/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
                <fr:section id="section-33-control" bind="section-33-bind">
                    <xf:label ref="$form-resources/section-33/label"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.price.deciduous_vol-control" bind="oltc.price.deciduous_vol-bind">
                                    <xf:label ref="$form-resources/oltc.price.deciduous_vol/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.deciduous_vol/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                            <xh:td>
                                <xf:input id="oltc.price.conifer_vol-control" bind="oltc.price.conifer_vol-bind">
                                    <xf:label ref="$form-resources/oltc.price.conifer_vol/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.conifer_vol/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.price.derived-control" bind="oltc.price.derived-bind">
                                    <xf:label ref="$form-resources/oltc.price.derived/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.derived/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-36-control"
                                                bind="control-36-bind">
                                    <fr:text ref="$form-resources/control-36/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-35-control"
                                                bind="control-35-bind">
                                    <fr:text ref="$form-resources/control-35/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select id="oltc.price.coast_gt2500-control" appearance="full"
                                           bind="oltc.price.coast_gt2500-bind">
                                    <xf:label ref="$form-resources/oltc.price.coast_gt2500/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.coast_gt2500/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.price.coast_gt2500/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select>
                            </xh:td>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-38-control"
                                                bind="control-38-bind">
                                    <fr:text ref="$form-resources/control-38/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.price.ecas_id-control" bind="oltc.price.ecas_id-bind">
                                    <xf:label ref="$form-resources/oltc.price.ecas_id/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.ecas_id/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                            <xh:td/>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select id="oltc.price.coast_lt2500-control" appearance="full"
                                           bind="oltc.price.coast_lt2500-bind">
                                    <xf:label ref="$form-resources/oltc.price.coast_lt2500/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.coast_lt2500/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.price.coast_lt2500/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select>
                            </xh:td>
                            <xh:td/>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <fr:attachment xmlns="http://orbeon.org/oxf/xml/form-builder"
                                               xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                               id="oltc.price.misc_ads-control"
                                               bind="oltc.price.misc_ads-bind"
                                               class="fr-attachment">
                                    <xf:label ref="$form-resources/oltc.price.misc_ads/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.misc_ads/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:filename ref="@filename"/>
                                    <xf:mediatype ref="@mediatype"/>
                                    <xxf:size ref="@size"/>
                                </fr:attachment>
                            </xh:td>
                            <xh:td>
                                <fr:attachment xmlns="http://orbeon.org/oxf/xml/form-builder"
                                               xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                               id="oltc.price.stump_form-control"
                                               bind="oltc.price.stump_form-bind"
                                               class="fr-attachment">
                                    <xf:label ref="$form-resources/oltc.price.stump_form/label"/>
                                    <xf:hint ref="$form-resources/oltc.price.stump_form/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:filename ref="@filename"/>
                                    <xf:mediatype ref="@mediatype"/>
                                    <xxf:size ref="@size"/>
                                </fr:attachment>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
                <fr:section id="oltc.road-control" bind="oltc.road-bind">
                    <xf:label ref="$form-resources/oltc.road/label"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="oltc.road.description-control" bind="oltc.road.description-bind">
                                    <xf:label ref="$form-resources/oltc.road.description/label"/>
                                    <xf:hint ref="$form-resources/oltc.road.description/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:select id="oltc.road.fsr-control" appearance="full" bind="oltc.road.fsr-bind">
                                    <xf:label ref="$form-resources/oltc.road.fsr/label"/>
                                    <xf:hint ref="$form-resources/oltc.road.fsr/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.road.fsr/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select>
                            </xh:td>
                            <xh:td>
                                <xf:select1 id="control-22-control" appearance="full" bind="control-22-bind">
                                    <xf:label ref="$form-resources/control-22/label"/>
                                    <xf:hint ref="$form-resources/control-22/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/control-22/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select id="oltc.road.exempt_flag-control" appearance="full"
                                           bind="oltc.road.exempt_flag-bind">
                                    <xf:label ref="$form-resources/oltc.road.exempt_flag/label"/>
                                    <xf:hint ref="$form-resources/oltc.road.exempt_flag/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.road.exempt_flag/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select>
                            </xh:td>
                            <xh:td>
                                <fr:attachment xmlns="http://orbeon.org/oxf/xml/form-builder"
                                               xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                               id="oltc.road.exempt_attach-control"
                                               bind="oltc.road.exempt_attach-bind"
                                               class="fr-attachment">
                                    <xf:label ref="$form-resources/oltc.road.exempt_attach/label"/>
                                    <xf:hint ref="$form-resources/oltc.road.exempt_attach/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:filename ref="@filename"/>
                                    <xf:mediatype ref="@mediatype"/>
                                    <xxf:size ref="@size"/>
                                </fr:attachment>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select id="oltc.road.permit_plan-control" appearance="full"
                                           bind="oltc.road.permit_plan-bind">
                                    <xf:label ref="$form-resources/oltc.road.permit_plan/label"/>
                                    <xf:hint ref="$form-resources/oltc.road.permit_plan/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.road.permit_plan/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select>
                            </xh:td>
                            <xh:td>
                                <xf:select1 id="oltc.road.permit_agreement-control" appearance="full"
                                            bind="oltc.road.permit_agreement-bind">
                                    <xf:label ref="$form-resources/oltc.road.permit_agreement/label"/>
                                    <xf:hint ref="$form-resources/oltc.road.permit_agreement/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.road.permit_agreement/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                    <fr:grid>
                        <xh:tr>
                            <xh:td/>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
                <fr:section id="section-42-control" bind="section-42-bind">
                    <xf:label ref="$form-resources/section-42/label"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-44-control"
                                                bind="control-44-bind">
                                    <fr:text ref="$form-resources/control-44/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.fn.referral_flag-control" appearance="full"
                                            bind="oltc.fn.referral_flag-bind">
                                    <xf:label ref="$form-resources/oltc.fn.referral_flag/label"/>
                                    <xf:hint ref="$form-resources/oltc.fn.referral_flag/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.fn.referral_flag/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
                <fr:section id="section-45-control" bind="section-45-bind">
                    <xf:label ref="$form-resources/section-45/label"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-46-control"
                                                bind="control-46-bind">
                                    <fr:text ref="$form-resources/control-46/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.other_resources.frpa_exempt_flag-control" appearance="full"
                                            bind="oltc.other_resources.frpa_exempt_flag-bind">
                                    <xf:label ref="$form-resources/oltc.other_resources.frpa_exempt_flag/label"/>
                                    <xf:hint ref="$form-resources/oltc.other_resources.frpa_exempt_flag/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.other_resources.frpa_exempt_flag/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:input id="control-48-control" bind="control-48-bind">
                                    <xf:label ref="$form-resources/control-48/label"/>
                                    <xf:hint ref="$form-resources/control-48/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                </xf:input>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:textarea id="control-49-control" bind="control-49-bind">
                                    <xf:label ref="$form-resources/control-49/label"/>
                                    <xf:hint ref="$form-resources/control-49/hint"/>

                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                </xf:textarea>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <fr:explanation xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                                id="control-50-control"
                                                bind="control-50-bind">
                                    <fr:text ref="$form-resources/control-50/text" mediatype="text/html"/>
                                </fr:explanation>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
                <fr:section id="section-51-control" bind="section-51-bind">
                    <xf:label ref="$form-resources/section-51/label"/>
                    <fr:grid>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.riparian.streams_mapped_flag-control" appearance="full"
                                            bind="oltc.riparian.streams_mapped_flag-bind">
                                    <xf:label ref="$form-resources/oltc.riparian.streams_mapped_flag/label"/>
                                    <xf:hint ref="$form-resources/oltc.riparian.streams_mapped_flag/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.riparian.streams_mapped_flag/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.riparian.skid_trail_removal_flag-control" appearance="full"
                                            bind="oltc.riparian.skid_trail_removal_flag-bind">
                                    <xf:label ref="$form-resources/oltc.riparian.skid_trail_removal_flag/label"/>
                                    <xf:hint ref="$form-resources/oltc.riparian.skid_trail_removal_flag/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.riparian.skid_trail_removal_flag/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.riparian.rmz_harvest_flag-control" appearance="full"
                                            bind="oltc.riparian.rmz_harvest_flag-bind">
                                    <xf:label ref="$form-resources/oltc.riparian.rmz_harvest_flag/label"/>
                                    <xf:hint ref="$form-resources/oltc.riparian.rmz_harvest_flag/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.riparian.rmz_harvest_flag/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                        <xh:tr>
                            <xh:td>
                                <xf:select1 id="oltc.riparian.rrz_marked_flag-control" appearance="full"
                                            bind="oltc.riparian.rrz_marked_flag-bind">
                                    <xf:label ref="$form-resources/oltc.riparian.rrz_marked_flag/label"/>
                                    <xf:hint ref="$form-resources/oltc.riparian.rrz_marked_flag/hint"/>
                                    <xf:alert ref="$fr-resources/detail/labels/alert"/>

                                    <xf:itemset ref="$form-resources/oltc.riparian.rrz_marked_flag/item">
                                        <xf:label ref="label"/>
                                        <xf:value ref="value"/>
                                        <xf:hint ref="hint"/>
                                    </xf:itemset>
                                </xf:select1>
                            </xh:td>
                        </xh:tr>
                    </fr:grid>
                </fr:section>
            </fr:body>
        </fr:view>
    </xh:body>
</xh:html>
ebruchez commented 8 years ago

The star is gray which means that the field is required but contains a value. In fact, it contains the value 1, which is not an allowed value per your itemset (Y and N). You can fix it by opening the itemset editor and saying "Clear Value" then "Apply".

This might have happened if your itemset previously had a 1 as a value, and that value was selected, and then you changed the itemset. I realize that this might be confusing. Closing.