Subject: RE: [xsl] Importing stylesheets (overriding) From: "Michael Kay" <mhk@xxxxxxxxx> Date: Tue, 6 May 2003 22:45:28 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Importing stylesheets (overri, Karl J. Stubsjoen | Thread | Re: [xsl] Importing stylesheets (ov, Karl J. Stubsjoen |
RE: [xsl] Ignoring sibling parents, Michael Kay | Date | RE: [xsl] Newline problems, Lars Huttar |
Month |