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

RE: importing/including a stylesheet with a dynamic na

Subject: RE: importing/including a stylesheet with a dynamic name (can't)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 30 Jan 2001 21:05:47 -0000
xsl import dynamically
> It seems that there is no way to dynamically import or include another
> stylesheet, unless one writes the calling stylesheet at runtime.

Correct, xsl:include and xsl:import are compile-time facilities.

> More concretely, I am trying to create a sheet that uses a default
> stylesheet for a portion of an HTML document, but I want that
> portion to be able to be replaced by a user simply specifying
> an alternate stylesheet source in the source XML of the translation.

The desire for run-time xsl:import is voiced quite often, and for once it's
nice to hear exactly why you want it, so that I can tell you why you don't!

Instead of A conditionally importing stylesheet B1, B2, or B3 each of which
replaces part of A, the user should select stylesheet B1, B2, or B3, each of
which imports the fixed stylesheet A and replaces or overrides parts of it.
The special-case stylesheet should import the general-case stylesheet, not
the other way around.

Mike 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.