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: John Levon <levon at movementarian dot org>
- To: Bob Stayton <bobs at caldera dot com>
- Cc: "Matt G." <matt_g_ at hotmail dot com>, johannes at zellner dot org,docbook at lists dot oasis-open dot org
- Date: Sun, 05 May 2002 02:34:33 +0100
- Subject: Re: DOCBOOK: Re: custom xsl stylesheet and import path
- References: <F21ecd92bXCH5n00zep00005c6a@hotmail.com><20020503110602.M6371@caldera.com>
On Fri, May 03, 2002 at 11:06:02AM -0700, Bob Stayton wrote:
> > >Can I have something like
> > >
> > > <xsl:import href = '$PATH_TO_DOKBOOK/chunk.xsl'/>
> >
> > (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?
As far as I can tell, xsltproc does not have such an option. You would
have to require the user to add such an entity to the XML catalog using
"xmlcatalog --noout --add ..."
xsltproc /does/ have a --stringparam, but I don't know if/how it's
possible to make xsl:import depend upon such a parameter somehow
Is there some convention for locating this information in a
make-friendly manner ?
regards
john
--
"Mathemeticians stand on each other's shoulders while computer scientists
stand on each other's toes."
- Richard Hamming