[Xsltforms-support] V1.6: file: scheme and standalone forms
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2022-02-08 17:17:19
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div style="" class="default-style"> Hello, </div> <div style="" class="default-style"> <br> </div> <div style="" class="default-style"> XSLTForms 1.6 can now be downloaded at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip. </div> <div style="" class="default-style"> <br> </div> <div style="" class="default-style"> The "file:" scheme is supported in submissions to read and write files locally, thanks to Javascript File System Access API <a href="https://wicg.github.io/file-system-access">https://wicg.github.io/file-system-access</a>. 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. </div> <div style="" class="default-style"> <br> </div> <div style="" class="default-style"> 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. </div> <div style="" class="default-style"> <br> </div> <div style="" class="default-style"> 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). </div> <div style="" class="default-style"> <br> </div> <div style="" class="default-style"> Thank you for your feedback! </div> <div style="" class="default-style"> <br> </div> <div style="" class="default-style"> --Alain </div> </body> </html> |