File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Using XSL to Render and Toggle Selected Radio Button or Selected Checkboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Using XSL to Render and Toggle Selected Radio Button or Selected Checkboxes" Watch "Using XSL to Render and Toggle Selected Radio Button or Selected Checkboxes" New topic
Author

Using XSL to Render and Toggle Selected Radio Button or Selected Checkboxes

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have simple input textfields rendered without problem. Could anybody help me with an example to render radio buttons as well as checkboxes using XSL?

My data are in an XML file:

When rendering to HTML using XSL, I would like to have the "everMarried" default to "NO" and all fruits default to "selected".

Users can toggle the radio buttons and checkboxes and submit the selections.

I have a XSL file like:

[ January 11, 2008: Message edited by: JiaPei Jen ]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You haven't shown the HTML you want to generate for one of those components. Designing the HTML would be the first step in the process.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using XSL to Render and Toggle Selected Radio Button or Selected Checkboxes
 
Similar Threads
XSLT merging help
XSLT : Grouping Child Nodes...
xsl:if and XPath
XSL to html conversion
xsl