[Xsltforms-support] Errors in last version of xsltforms
Brought to you by:
alain-couthures
From: Javier Diazestebaranz(UST,ES) <Jav...@us...> - 2021-06-09 23:35:42
|
Hello, we are using a very ,very old Xsltforms implementation (r574, more than 8 years ago) with some local changes, and we want to migrate to last stable version. Before starting the migration, I have been testing some of our xforms pages with last version (downloaded from here: https://github.com/AlainCouthures/declarative4all/blob/master/public/direct/xsltforms.zip , I m not sure if it is a stable one), and I came across some problems. I have made a small test case, to check if we have some error in our code, there have been some syntax changes in xforms and we have to modify our code, or there is some error in last xsltform version, I hope somebody can help us. I send attached the code (submission.html). We use the .xml version (we don't want to rewrite all our old code), but i think is easier to analyse the problem with .html version. * The first error that appears when the form load is: XSLTForms Exception -------------------------- Error parsing the following XPath expression : Unexpected char at '' It seems this line have some problem, because when I comment out it, the error dissapears: <xforms-setvalue xf-ref="instance('salida')/datosTarea/numeroOrden" xf-value=""/> * The second error that appears is: XSLTForms Exception -------------------------- Error dispatching event 'xforms-model-construct' : XsltForms_bind.prototype.recalculate@http://localhost/xsltforms1.5/xsltforms.js:10603:29<mailto:XsltForms_bind.prototype.recalculate@http://localhost/xsltforms1.5/xsltforms.js:10603:29> XsltForms_browser.forEach@http://localhost/xsltforms1.5/xsltforms.js:5115:11<mailto:XsltForms_browser.forEach@http://localhost/xsltforms1.5/xsltforms.js:5115:11> XsltForms_model.prototype.recalculate@http://localhost/xsltforms1.5/xsltforms.js:9477:20<mailto:XsltForms_model.prototype.recalculate@http://localhost/xsltforms1.5/xsltforms.js:9477:20> XsltForms_model.prototype.rebuild@http://localhost/xsltforms1.5/xsltforms.js:9473:8<mailto:XsltForms_model.prototype.rebuild@http://localhost/xsltforms1.5/xsltforms.js:9473:8> XsltForms_model.prototype.construct@http://localhost/xsltforms1.5/xsltforms.js:9453:8<mailto:XsltForms_model.prototype.construct@http://localhost/xsltforms1.5/xsltforms.js:9453:8> @http://localhost/xsltforms1.5/xsltforms.js:6101:85 XsltForms_xmlevents.dispatch@http://localhost/xsltforms1.5/xsltforms.js:6049:19<mailto:XsltForms_xmlevents.dispatch@http://localhost/xsltforms1.5/xsltforms.js:6049:19> XsltForms_xmlevents.dispatchList@http://localhost/xsltforms1.5/xsltforms.js:6018:23<mailto:XsltForms_xmlevents.dispatchList@http://localhost/xsltforms1.5/xsltforms.js:6018:23> init@http://localhost/xsltforms1.5/xsltforms.js:2381:23<mailto:init@http://localhost/xsltforms1.5/xsltforms.js:2381:23> func@http://localhost/xsltforms1.5/xsltforms.js:3040:5<mailto:func@http://localhost/xsltforms1.5/xsltforms.js:3040:5> TypeError el.children[j].xfElement.recalculate is not a function And in this case the problem I think is in line: <xforms-bind id="bind_numeroOrden" xf-ref="instance('salida')/datosTarea/numeroOrden" xf-required="true()" xf-type="xsd:string"/> Because it doesn't appear without it. Best Regards, Javier |