Need to use JavaScript with XSL stylesheets to perform a DHTML type of operation?

Need to use JavaScript with XSL stylesheets to perform a DHTML type of operation?

Is it necessary to use JavaScript with XSL stylesheets if you want to perform a DHTML type of operation on an input form comprising of radio buttons or checkboxes, which does not lose the users inputs, but marks certain radio buttons/checkboxes by highlighting or colouring? If not, how easy is it to do this kind of thing within XSL only?

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to keep you informed on recent service-oriented architecture (SOA) and SOA-related topics such as integration, governance, Web services, Cloud and more.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSOA.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSOA.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

It can be done with XSL only (i.e. server side) but requires setting default values for buttons/checkboxes in the generated HTML.

The advantage of doing it that way is that your app is less dependent on browser versions. The disadvantage is more complex server-side processing.

This was first published in June 2002