jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes XML to HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML to HTML" Watch "XML to HTML" New topic


Kanu Dialani

Joined: Apr 30, 2005
Posts: 23
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
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: XML to HTML
It's not a secret anymore!