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

Re: misc. confusion on "footnote" handling

Subject: Re: misc. confusion on "footnote" handling
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Wed, 25 Aug 2004 20:27:34 -0400
footnote xsl
On Aug 25, 2004, at 6:19 PM, Wendell Piez wrote:

I think you can probably extrapolate from this description to see how it could apply in your case. I should think it would reduce the complexity of your templates considerably, as well as making reuse and local customization that much easier.

Thanks for the explanation Wendell!


In my current main stylesheet, I include four other stylesheets:

	biblio-driver.xsl
	document-driver.xsl
	biblio-output.xsl
	citation-output.xsl

I understand that I want to think about breaking the last two into stuff like:

	biblio-output-author-year.xsl
	citation-output-author-year.xsl
	biblio-output-footnote.xsl
	citation-output-footnote.xsl

.... and so forth, and using import instead.

However, I don't want the user to choose which stylesheet to run (main-author-year.xsl vs main-footnote.xsl). I want that to be defined in a separate non-XSL style file, and for the user always to run the same stylesheet.

Is there some smart way I can have one main stylesheet that imports different stylesheets depending on that main "class" parameter?

Maybe have a variable that defines the path to the included stylesheets based on the parameter? Alas, import seems to insist it exist at the top-level.

Bruce

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.