This is the mail archive of the
docbook-tools-discuss@sourceware.cygnus.com
mailing list for the docbook-tools project.
Defining your own customized stylesheets
- To: "'DocBook Discussion List'" <docbook-tools-discuss at sourceware dot cygnus dot com>
- Subject: Defining your own customized stylesheets
- From: Eric Bischoff <ebisch at cybercable dot tm dot fr>
- Date: Mon, 15 Nov 1999 23:49:14 -0500
- Cc: kde-docbook at kde dot org
Hello everyone,
I have detected two problems when you try to define your own stylesheets on top
of the docbook tools :
1) The db2ps script does not accept the -d option to specify alternate
stylesheets (I already sent a patch to Mark Galassi about that)
2) Some lines in stylesheets/cygnus-both.dsl are used to change Norman Walsh's
directory hierarchy. Here are these lines :
-------------------------------------------------------------
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % html "IGNORE">
<![%html;[
<!ENTITY % print "IGNORE">
<!ENTITY docbook.dsl SYSTEM "/usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl" CDATA dsssl>
]]>
<!ENTITY % print "INCLUDE">
<![%print;[
<!ENTITY docbook.dsl SYSTEM "/usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl" CDATA dsssl>
]]>
]>
-------------------------------------------------------------
There are two problems with this lines :
a) They use hardcoded paths, instead of the CATALOG mechanism
b) You have to use the same lines in you own stylesheets (which breaks
compatibility with non-cygnus docbook tools) OR to use workaround like symbolic
links or a patched catalog file (which breaks packages independancy)
Any hint ?
Eric
--
__________________________________________________
\^o~_.
.~. ______ /( __ )
/V\ Toys story \__ \/ ( V
// \\ \__| (__=v
/( )\ |\___/ )
^^-^^ \_____( )
Tux Konqui \__=v
__________________________________________________
Eric Bischoff - mailto:ebisch@cybercable.tm.fr