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

RE: Importing stylesheets (overriding)

Subject: RE: Importing stylesheets (overriding)
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 6 May 2003 22:45:28 +0100
overriding all previous stylesheets
> In both cases of import and inclusion of stylesheets, these 
> must occur Top Level.  This doesn't seem to be the solution 
> I'm after, since I need to conditionaly choose my override template.

This used to be one of the top ten FAQs but I think it's been a few
weeks since it came up.

You can't do conditional includes or imports because they are done at
compile time, long before expressions can be evaluated.

The usual solution is to invert the import. Instead of having A
conditionally import B or C, have both B and C import A, and invoke
either B or C as the initial stylesheet to do the transformation.

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.