xsl-list
[Top] [All Lists]

RE: misc. confusion on "footnote" handling

2004-08-26 09:48:46

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


There's a new facility coming along in the next draft of 2.0 which allows a
kind of compile-time conditional, for example you will be able to say:

<xsl:import href="thing.xsl" 
   use-when="system-property('xsl:vendor-url') =
'http://www.saxonica.com/'"/>

Vendors are allowed to define their own system property names, so a possible
scenario is that implementations will allow access to operating system
environment variables or Java system properties, or even to options
specified in some way on the (compile-time) command line.

Michael Kay