On Thu, 10 Jun 2021 01:19:45 +0200, Javier Diazestebaranz(UST, ES) via
Xsltforms-support <[email protected]> wrote:
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=""/>
So this is the generated code, not your original XForms source, so I'm
guessing here, but to set a value to the empty string, you use either
<setvalue ref="foo" value="''"/>
or equally good
<setvalue ref="foo"/>
This is not good:
<setvalue ref="foo" value=""/>
because @value has to be an expression.
Steven
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support