On 14 March 2010 18:31, Andrew Welch <andrew.j.welch@...> wrote:
>> Remember my starting point?
>> I wanted to use use-when=""
>> so $param was out of the question.
> Ok, you were after conditional includes and using use-when was a
> suggested option. To go that route, you could set the java system
> property with environment variable on the command line, eg on windows:
> (haven't tried that but I don't see why it wouldn't work)
Sneaky! Thanks Andrew, I'll play with that one.
> The usual approach is to have multiple primary stylesheets each with
> one variation of the import and move your conditional logic into the
> calling code, but that is only feasible when you have a fixed number
> of choices - is that the case here?
I had multiple copies of the fxsl library on my disk.
I was fed up changing the location of them.
which the WG seem not to favour, according to Mike.
> The other way is to use a meta-stylesheet to create the primary
> stylesheet, but that incurs extra effort in the construction of the
> transformation pipeline.
> Or of course just use a catalog... but if you are going to edit the
> location in the catalog each time you may as well just edit the
At least its only one line there!
id = "fxsl"
uriStartString = "http://fxsl/sourceforge.net/"
rewritePrefix = "f/" />
One change to xml:base and its done.
XSLT XSL-FO FAQ.