[Xsltforms-support] NanoXFServer: WebServer for XSLTForms
Brought to you by:
alain-couthures
From: William D. V. <wi...@bi...> - 2012-01-06 18:36:36
|
Hi XSLTForms list, As you may know, using XSLTForms in the local filesytem without a webserver is practically impossible due to javscript security restrictions and saving an XML Instance to a local file is totally impossible. A solution is to use a eXist-db or a localhost webserver with some script to handle post or put and save the file. There is a really small and easy to use web server called NanoHTTPD http://elonen.iki.fi/code/nanohttpd/ made of just one Java file. I made a small modification on it to allow handling PUT method, and wrote a subclass of NanoHTTPD that handles PUT or xml-urlencoded-post submissions and saves xml instances to local files. I hope you'll find it useful for testing XForms, teaching (I personally will use it for teaching XForms to my University students) or even creating standalone XForms applications. You can download NanoXFServer on http://bitlab.com.co/nanoxfserver/ All your comments are welcome! -- William David Velasquez Laboratorio de Software Bitlab http://bitlab.com.co Movil 310 412 0218 |