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: "Matt G." <matt_g_ at hotmail dot com>
- To: bobs at caldera dot com
- Cc: docbook at lists dot oasis-open dot org
- Date: Fri, 03 May 2002 21:48:24 +0000
- Subject: Re: DOCBOOK: Re: custom xsl stylesheet and import path
- Bcc:
>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?
Sorry, I guess I might have had that confused with defining a global
variable, which is a command-line option supported by both openjade and
Xalan. IMO, XML-processing tools should provide that feature (i.e. entity
definition via the command-line). You could always write a wrapper script
that adds the entity definition to the internal subset of a copy of the
document, before transforming it. It's ugly, because you couldn't use a
real XML parser to do that, since, by definition, the document will contain
irresolvable entity references. In usage, this ugliness would be entirely
hidden, though.
Anyhow, treating it as an external entity does work, and you can put the
generation of that in your makefile(s) or document build script(s).
Matt
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.