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

Re: multiple stylesheet for an XML file

Subject: Re: multiple stylesheet for an XML file
From: Marcus Groeber <mgroeber@xxxxxxxxxxxxxx>
Date: Sat, 04 Dec 1999 11:18:07 -0500
pulldown stylesheet
Richard Lander wrote:

> I've got an idea. Why not make your default stylesheet a really short one
> that displays a HTML forms pulldown-menu or scroll-box that displays the
> available stylesheets. I'm not sure off-hand if IE5-XSL can pick out

I see one problem with this otherwise very neat idea: can it be done in a browser-independant way? After all, your HTML pulldown menu will eventually have to resort to some kind of event handler as a reaction to the user's choice that tells the browser to
reformat the current XML document from which this HTML was generated with a new XSL stylesheet.

As far as I can see, this can be done in IE5 using DOM scripting, but will this be something that is supported by all interactive applications of XSL in a compatible manner (e.g. Netscape 5)? In other words, the menu you propose would eventually have to hold
some kind of "onclick" handler on the menu item for a certain stylesheet - what is the code to be put into that attribute that makes things work equally well in all XSL implementations?

A similar use case would be the reapplication of the *same* stylesheet in response to user input, just with different top-level parameters passed to the stylesheet. A typical application could be an XSL-generated list from an XML document that can be re-sorted
at the user's request, similar to Microsoft's Stock Quotes example, which still uses some IE5-specific scripting as "glue" code.

Is this an indication that an intrinsic XSL event handling mechanism would be a good thing to design, either in conjunction with XSL-generated HTML, or as a feature in Formatting Objects that allows for true interactivity? (This somehow reminds me of the
DOM-scripting vs. XSL debate we had a while ago...)

ciao marcus


 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.