[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rendering DocBook



>>>>> "G" == Gregory Leblanc <GLeblanc@cu-portland.edu> writes:

    G> ...  Hmm, Gary probably has a clue, but I don't know if he's
    G> subscribed here.  As for myself, I'm just about clueless).

Well, put me down for half a clue.

The following is the dsl file I use to render my pages, and while
you may want things to turn out differently, it may give you enough
of a fractional clue to do what you want.

Basically, I call jade using the following command line:

        jade -t sgml -d tci.dsl\#html myfile.sgml

<!--  
   Docbook customizations by Gary Lawrence Murphy 
   with gracious assistance from more people than I can count.

      $Id: tci.dsl,v 1.1 2000/04/06 14:10:59 garym Exp $
      Copyright 2000 Teledynamics Communications Inc www.teledyn.com

      $Log: tci.dsl,v $
      Revision 1.1  2000/04/06 14:10:59  garym
      Added customized stylesheet


 USE: If you process this stylesheet with ROOTID as #f, the whole
 book will be formatted, if you set ROOTID to the ID of some chapter,
 just that chapter will be formatted. But the whole book is loaded, so
 xrefs and everything work correctly.

 LICENCE

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
  
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
  
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

-->

<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY html-ss PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
<!ENTITY print-ss PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
]>

<style-sheet>

<style-specification id="print" use="print-stylesheet">
<style-specification-body> 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; customize for print formats

(define %generate-part-toc% #t)
(define %graphic-default-extension% "eps")

</style-specification-body>
</style-specification>

<style-specification id="html" use="html-stylesheet">
<style-specification-body> 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; customize for html

(define %stylesheet% "docbook.css")
(define %link-mailto-url% "info@teledyn.com")

(define %graphic-default-extension% "gif")
(define %admon-graphics% #t)
(define %gentext-nav-tblwidth% "100%")

(define %generate-article-toc% #t)
(define %generate-legalnotice-link%  #t)
(define %generate-part-toc% #t)

(define %root-filename% "index")
(define %html-ext% ".html")

(define %html-pubid% "-//IETF//DTD HTML//EN")
(define %html-header-tags%
  (list
   '(("META" ("NAME" "Description") 
      ("CONTENT" "The Linux Consulting-HOWTO is a brief guide to the practice and responsibilities of open source consulting")))
   '(("META" ("HTTP-EQUIV" "Content-Type") 
      ("CONTENT" "text/html;charset=IS0-8859-1")))
   ))

(define %body-attr%
  (list
   (list "CLASS" "TCI")
   (list "CLASS" "ARTICLE")
   ))

(define %html-index% #t)
(define %html-index-filename% "SGML.index")
(define %use-id-as-filename% #t)

(define %titlepage-in-info-order% #f)
(define %author-othername-in-middle% #t)

(define %shade-verbatim%  #t)
(define %use-output-dir%  #t)

(define %generate-part-titlepage% #t)
(define %gentext-nav-use-tables% #t)

</style-specification-body>
</style-specification>
<external-specification id="html-stylesheet" document="html-ss">
<external-specification id="print-stylesheet" document="print-ss">
</style-sheet>

-- 
Gary Lawrence Murphy <garym@linux.ca>: office voice/fax: 01 519 4222723
TCI - Business Innovations through Open Source : http://www.teledyn.com
Canadian Co-ordinators for Bynari International : http://ca.bynari.net/
Free Internet for a Free O/S? - http://www.teledyn.com/products/FreeWWW/