Hello,

XSLTForms 1.6 can now be downloaded at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip.

The "file:" scheme is supported in submissions to read and write files locally, thanks to _javascript_ File System Access API https://wicg.github.io/file-system-access. Using this API, XSLTForms will always render File Pickers so providing a filename is useless with it. For browsers not supporting this API, file saving will be similar to file downloading (in Downloads folder by default) and the saved file can be named in the submission.

This feature has enabled a new one: a fully functional form can be stored in a single HTML file with minified versions of xsltforms.js an xsltforms.css files embedded. In this situation, config files are not accessed and a internal JSON object is used instead for language translations.The image files have been serialized for the data: scheme. Finally, a new XPath function, named form-source(), is serializing the current form with effective XML instances.

As a result, a standalone form can save itself, or in another file, with modified data embedded: it acts as a standalone local web app with just a browser to run it (hello-standalone.htm example).

Thank you for your feedback! 

--Alain
_______________________________________________
Xsltforms-support mailing list
Xsltforms-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to