This is the mail archive of the
docbook-tools-discuss@sources.redhat.com
mailing list for the docbook-tools project.
Re: Local change of stylesheet
Norman Walsh wrote:
>
>
> At the moment, I always put that filename on the command line, but is
> it completely wrong to point to that stylesheet from the document?
> Hard to say. What we really need is better facilities for handling XML
> documents and stylesheets at the system level. What I really want is
> simply a (possibly local, possibly global) association between that
> document and that stylesheet.
>
> [1] http://www.w3.org/TR/xml-stylesheet/
>
Someone (I don't remember who) proposed once a system-specific solution
to address something I believe is a system-specific problem: "aliases".
SGML-tools has something very near.
An "alias" would be an association of:
- the style sheet you need
- the catalogs you need
- the command line options you need
so it would define some kind of processing as a whole, while the current
system is splitting everything apart for modularity's sake.
Currently, the docbook-utils take a different approach:
- they try to determine the centralized catalogs (in /etc/sgml) from the
document's prologue
- the centralized catalogs point to "real" catalogs (in
/usr/share/sgml), like the one for Jade, the ones from the DBMSS, the
one for the iso entities, etc...
- the "real" catalogues define a lot of things, including with respect
to style sheets
but at this point you still don't know which style sheet you want to use
- you have to specify it on the command line. If you don't specify any
style sheet on the command line, then a default one for this DTD is
taken. Per default it's your html/docbook.cat or print/docbook.cat if
you are processing some docbook file.
--
Éric Bischoff - mailto:ebisch@cybercable.tm.fr
__________________________________________________
\^o~_.
.~. ______ /( __ )
/V\ Toys story \__ \/ ( V
// \\ \__| (__=v
/( )\ |\___/ )
^^-^^ \_____( )
Tux Konqui \__=v
__________________________________________________