This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
locating stylesheets with a param
- From: Eric Richardson <eric dot richardson at milagrosoft dot com>
- To: docbook <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 12 Apr 2002 10:21:03 -0700
- Subject: DOCBOOK-APPS: locating stylesheets with a param
- Organization: MilagroSoft Inc.
Hi,
I'm hope someone has dealt with this before. I would like to have the
flexibility to *not* have driver files in the file system near the
docbook-xsl but also I don't want to hard code the import of the
stylesheets. Currently I have the following directories.
docbook-xsl
drivers
In the driver file I have the following which I call from my make system
with the xslt processor.
<xsl:import href="../docbook-xsl/xhtml/docbook.xsl"/>
This works fine but if I have a special document, I would like to keep
the special driver with the doc rather than just using the generic
driver in the drivers directory.
With a previous post about params, I can get a param into the stylesheet
but import seems to have to be first in the stylesheet so I use a param
with import. xsl:include allows the param first but I can't get the
param into the href.
<xsl:param name="jdbk.home"/>
<xsl:include href="/$jdbk.home/docbook-xsl/xhtml/docbook.xsl"/>
Is something like the above possible?
You can't put an element like <xsl:value-of select="$jdbk.home"/> in the
attribute value so I'm not sure this is possible. Even if this is
possible will include work okay as I'm not sure exactly how template
overriding occurs and how it is different based on include versus import.
Thanks,
Eric