[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Dynamic XSLT based on User Input (SAME xsl file)

Subject: RE: Dynamic XSLT based on User Input (SAME xsl file)
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 8 Oct 2003 22:04:35 +0100
dynamic xslt
> 
> 1) How can I pass URL parameters to an XSL-T file?  Is Cocoon 
> the only way?

You just need a very simple Java servlet or ASP page that accepts the
parameters and passes them to the stylesheet. There are example servlets
that do this distributed with several of the XSLT processors.
> 
> 2) How can I register event handlers for HTML widgets/controls (like 
> buttons, dropdown lists etc) with msxsl:script function 
> (instead of the 
> typical javascript functions?)

msxsl:script is evaluated at transformation time, not at
display/interaction time. Event handlers like this should be part of the
HTML page that you generate, not part of the stylesheet used to generate
it.
> 
> 3) How can I access javascript functions from within 
> msxsl:script function?

See the Microsoft documentation.
> 
> 4) How can I assign a value to an xsl:variable by invoking a 
> javascript 
> function (NOT an msxsl:script function)
> 
If you are using the Microsoft product, then msxsl:script is the way
that you define Javascript functions to be invoked from your
transformation code.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.