Yep, this is very tricky. There is a contributed solution to this,
which you might be able to use. I've done a lot of searching, but as
far as I know there is no way to send parameters to the XSLT engine in
the browser. At least no cross-browser solution. Quite frustrating,
since it would be ideal to override default xsl:param values with
query parameters. You get used to limitations like that when you work
with XSLT.
One solution would be to do server-side transform using one of the
many mod_xslt implementations. I've tried this, but the mod_xslt
shipped with Debian had no straightforward xsl:param support either.
Strange, since it is easy to set programmatically in XSLT engines like
Xalan. It think it would be possible to figure out a server-side
solution, but I'm not sure if anyone wants to install extra modules in
Apache.
The contributed solution is a branch in the source:
https://labs.repos.se/data/style/branches/multi-repo/
It is branched from 1.2, but you'll get the idea from the logs. It is
based on a javascript that is able to figure out what repository
you're in. It's a good solution, but being javascript it has to be
tested properly before it is added to the official distributions.
What do you think?
/Staffan
/Staffan