This example uses 2 files to generate a HTML form complete
with client side validate code. Any number of complex forms can be created including
numerical, string or date restrictions.
The 4 main files are:
questions.xml - (the sample XML file)
questions.xsd - (the schema to validate the xml, download it to run it through your favourite XML tool)
questions.xsl - (the stylesheet that formats the xml into an HTML form)
formvalidate.js - (the javascript library that performs validation)
I provide them here for reference but you won't need to change them, just create your own XML file and upload it to
the site to get your own HTML form in seconds!
|