I have a requirement where i need to capture XML from a user and generate HTML form based on that XML.The XML will be stored in the database. The XML will contain information about form fields and some light weight validations.On run time HTML form will be generated based on the XML. When the form is submitted the data will also be stored as XML.
Is XSLT the best way to do generate HTML form based on XML ? Thank You
My inclination is always to write Java code using the xml API, but thats because of my background. If you are more comfortable writing XSLT than thats the way you should start. Note that direct manipulation of XML with the Java API will always be faster than XSLT since XSLT takes extra steps and eventually uses the API anyway. XSLT will probably be more readable and easier to document. Bill