File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes using xsl 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 "using xsl" Watch "using xsl" New topic

using xsl

vishwanath sastry

Joined: Oct 03, 2003
Posts: 1
Hi, im vishwanath.
I am developing an application in which i have an XML file containing a hierarchy of questions. The mode of input to be displayed to the user for answering a question is also described in the XML file(ex: combo box,check box, radio button etc.). Now , depending on the answer to the question, next question is displayed. the level of nesting can be anything. ex:
"Are you married?" yes/no
If yes "do you have childeren?" yes/no
if yes "how many children?" [input thro a text field]
and so on.
i need to write an xsl file which will read the xml file and generate the html file which does the above task.
Any suggestions would be appreciated.
can i use javascript variables in xsl and xsl param/variable in javascript?
thanks in advance.
wood burning stoves
subject: using xsl
jQuery in Action, 3rd edition