From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bischoff To: Norman Walsh Cc: Peter Toft , docbook-tools-discuss@sourceware.cygnus.com Subject: Re: Local change of stylesheet Date: Wed, 27 Dec 2000 06:36:00 -0000 Message-id: <39D4A758.F37479CB@cybercable.tm.fr> References: <39D35FF9.DFDE6593@cybercable.tm.fr> <87snqk44rs.fsf@nwalsh.com> <39D49043.BA3A395B@cybercable.tm.fr> <8766nf2vnj.fsf@nwalsh.com> X-SW-Source: 2000/msg00358.html 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 __________________________________________________