This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: custom xsl stylesheet and import path
- From: Bob Stayton <bobs at caldera dot com>
- To: docbook at lists dot oasis-open dot org
- Date: Mon, 29 Apr 2002 13:51:44 -0700
- Subject: Re: DOCBOOK: custom xsl stylesheet and import path
- References: <20020429191755.GA3223@zellner.org>
On Mon, Apr 29, 2002 at 09:17:55PM +0200, Johannes Zellner wrote:
> Hi,
>
> I'm using a custom xsl sheet which imports chunk.xsl:
>
> <xsl:import href = '/home/joze/docbook/xsl/docbook-xsl-1.49/html/chunk.xsl'/>
> But as I build the document on different systems with different paths to
> chunk.xsl I'd rather like to make this a configurable path, e.g. with
> an environment variable. I'm currently using saxon for the translation.
> Can I have something like
>
> <xsl:import href = '$PATH_TO_DOKBOOK/chunk.xsl'/>
No, that syntax is not allowed in XSL import or include.
But you can use XML catalogs to do the same thing.
See:
http://lists.oasis-open.org/archives/docbook-apps/200204/msg00158.html
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com