[Xsltforms-support] Problem with form refresh
Brought to you by:
alain-couthures
From: Alessandro <ca...@tu...> - 2020-03-12 16:25:48
|
Dear all, in passing from betterforms to xsltforms, now I have a very nice xsltform obtained through an xquery file of the following structure: xquery version "3.0"; let $form := <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms"> ....... </html> let $xslt-pi := processing-instruction xml-stylesheet {'type="text/xsl" href="../xsltforms/xsltforms.xsl"'} return ($xslt-pi,$form) I use the form for displaying a list inside a table which new rows can be added to (or deleted from). Everything works the right way, except that after changes have been applied, there's no way of obtaining a working refresh of the form (not even by closing and re-starting the browser!). A problem that by contrast does not arise with .html files... As an alternative I have tryed to put the whole xq file code inside an Xquery function, in order to call the fanction from within an html file which could take advantage of exist-db templating system. But things do not work either (I guess it is not possible to create an xsltform inside an html file). It might be this is an issue that should be more properly reported to the exist-db mailing list, but for sure with betterforms the refresh was not a problem while using .xq files for creating forms.Best regardsAlex -- Inviato in modo sicuro con Tutanota. Ottieni la tua mailbox crittografata e senza pubblicità: https://tutanota.com |