This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Re: custom xsl stylesheet and import path
- From: Bob Stayton <bobs at caldera dot com>
- To: "Matt G." <matt_g_ at hotmail dot com>, johannes at zellner dot org
- Cc: docbook at lists dot oasis-open dot org
- Date: Fri, 03 May 2002 11:06:02 -0700
- Subject: Re: DOCBOOK: Re: custom xsl stylesheet and import path
- References: <F21ecd92bXCH5n00zep00005c6a@hotmail.com>
On Wed, May 01, 2002 at 03:47:23AM +0000, Matt G. wrote:
> >From: Johannes Zellner <johannes@zellner.org>
> >To: docbook@lists.oasis-open.org
> >Subject: DOCBOOK: custom xsl stylesheet and import path
> >Date: Mon, 29 Apr 2002 21:17:55 +0200
> >
> >Can I have something like
> >
> > <xsl:import href = '$PATH_TO_DOKBOOK/chunk.xsl'/>
>
> Yes, sort of. since XSLT is XML, you can actually use an entity reference.
> For example, when building your document on different systems, your script
> (e.g. Makefile) that invokes the XSLT processor defines the entity
> 'xdbk_xsl_root', via a command-line option. Then, your xsl:import element
> would look like this:
>
> <xsl:import href="&xdbk_xsl_root;/chunk.xsl"/>
That's neat trick.
But I don't see an option with Saxon or xsltproc to
define an entity on the command line. Which processor
can do that?
--
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