I am manually inserting repeat in form builder generated forms in 3.9.1.
It works correctly until the databound-select1 gets in. Then to my surprise it does not make error on second but on third row. Tried googling for "XBL resolution scope not found for id: ", but nothing similar shows up. I tried Nightly 3.9 build with databound-select1 GUI setup, which I like, and it works with no error, though it produced similar code. I would not like to move to nightly 3.9, not only because of stability, but because I customized a lot of Form builder code due to my customers requests. Here is the test form to run in fresh 3.9.1, that breaks on third row in databound-select1: <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:saxon="http://saxon.sf.net/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:dmv="http://orbeon.org/oxf/examples/dmv" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <xhtml:head> <xhtml:title>Form</xhtml:title> <xforms:model id="fr-form-model" xxforms:xhtml-layout="span" xxforms:xpath-analysis="true"> <xforms:instance id="fr-form-instance"> <form> <vehicles> <vehicle> <imeprezime/> <control-3/> </vehicle> </vehicles> </form> </xforms:instance> <xforms:bind id="fr-form-binds" nodeset="."> <xforms:bind id="vehicles-bind" nodeset="vehicles" name="vehicles"> <xforms:bind nodeset="vehicle"> <xforms:bind id="imeprezime-bind" nodeset="imeprezime" type="xforms:string" required="true()" readonly="false()" calculate="upper-case(.)" name="imeprezime"/> <xforms:bind xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id="control-3-bind" nodeset="control-3" name="control-3" type="xforms:string"/> </xforms:bind> </xforms:bind> </xforms:bind> <xforms:instance id="fr-form-metadata" xxforms:readonly="true"> <metadata> <application-name>app</application-name> <form-name>Repeat</form-name> <title xml:lang="en">Form</title> <description xml:lang="en"/> <author/> <logo mediatype="" filename="" size=""/> </metadata> </xforms:instance> <xforms:instance id="fr-form-attachments"> <attachments> <css mediatype="text/css" filename="" size=""/> <pdf mediatype="" filename="" size=""/> </attachments> </xforms:instance> <xforms:instance id="fr-form-resources" xxforms:readonly="true"> <resources> <resource xml:lang="en"> <imeprezime> <label>Name</label> <hint/> <help/> <alert/> </imeprezime> <control-3> <label xmlns:xsl="http://www.w3.org/1999/XSL/Transform">ddd</label> <hint xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> <help xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> <alert xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> </control-3> <vehicles> <label>Repeat section</label> <hint/> <help/> <alert/> </vehicles> </resource> </resources> </xforms:instance> <xforms:instance id="vehicle-template"> <vehicle> <imeprezime/> <control-3/> </vehicle> </xforms:instance> </xforms:model> </xhtml:head> <xhtml:body> <fr:view> <xforms:label ref="instance('fr-form-metadata')/title"/> <xhtml:img src="/apps/fr/style/orbeon-logo-trimmed-transparent-42.png"/> <fr:body> <fr:section id="vehicles-section" bind="vehicles-bind"> <xforms:label ref="$form-resources/vehicles/label"/> <fr:repeat ref="vehicle" columns="2" id="vehicles-repeat" minOccurs="1" maxOccurs="30" origin="instance('vehicle-template')"> <fr:body> <xhtml:tr> <xhtml:td> <xforms:input bind="imeprezime-bind" id="imeprezime-control"> <xforms:label ref="$form-resources/imeprezime/label"/> <xforms:hint ref="$form-resources/imeprezime/hint"/> <xforms:help ref="$form-resources/imeprezime/help"/> <xforms:alert ref="$form-resources/imeprezime/alert"/> </xforms:input> </xhtml:td> <xhtml:td> <fr:databound-select1 xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xxf="http://orbeon.org/oxf/xml/xforms" id="control-3-control" appearance="minimal" resource="/xforms-sandbox/service/zip-states" bind="control-3-bind"> <xforms:label ref="$form-resources/control-3/label"/> <xforms:hint ref="$form-resources/control-3/hint"/> <xforms:help ref="$form-resources/control-3/help"/> <xforms:alert ref="$fr-resources/detail/labels/alert"/> <xforms:itemset nodeset="/states/state"> <xforms:label ref="@name"/> <xforms:value ref="@abbreviation"/> </xforms:itemset> </fr:databound-select1> </xhtml:td> </xhtml:tr> </fr:body> </fr:repeat> </fr:section> </fr:body> </fr:view> </xhtml:body> </xhtml:html> Regards, Dusko |
Free forum by Nabble | Edit this page |