Subject: re: Possible to use just table part of Docbook style sheets? From: Boris Goldowsky <boris@xxxxxxxxxxxx> Date: Mon, 18 May 1998 17:30:03 -0400 (EDT) |
I've done approximately that for CALS tables -> HTML using the Docbook table support. I assume that the corresponding thing would work for print. Here's an excerpt from my DSSSL style sheet. Note that (a) you have to call in more than just dbtable, but still a small number of files, and (b) I call them in from a secondary <style-specification> so that I can override things things that I want to do differently. Works like a charm! Bng <!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!-- from docbook style sheet --> <!ENTITY dblib.dsl SYSTEM "docbook/lib/dblib.dsl"> <!ENTITY dbcommon.dsl SYSTEM "docbook/common/dbcommon.dsl"> <!ENTITY dbctable.dsl SYSTEM "docbook/common/dbtable.dsl"> <!ENTITY dbtable.dsl SYSTEM "docbook/html/dbtable.dsl"> <!ENTITY dbfootn.dsl SYSTEM "docbook/html/dbfootn.dsl"> ]> <style-sheet> <style-specification id="almanac" use="docbook-tables"> [...] ; definitions for our DTD's non-table elements go here (element TABLE (process-children)) (element TNOTE ; we don't use these, and don't want to call in (process-children)) ; docbook footnote code. ;; Redefine to defeat docbook's colwidth calculation: let HTML browser do it (define (cell-colwidth entry colnum) "") </style-specification> <style-specification id="docbook-tables"> ;; JADE non-standard flow objects for SGML transformations (declare-flow-object-class element "UNREGISTERED::James Clark//Flow Object Class::element") (declare-flow-object-class empty-element "UNREGISTERED::James Clark//Flow Object Class::empty-element") (declare-flow-object-class document-type "UNREGISTERED::James Clark//Flow Object Class::document-type") (declare-flow-object-class processing-instruction "UNREGISTERED::James Clark//Flow Object Class::processing-instruction") (declare-flow-object-class entity "UNREGISTERED::James Clark//Flow Object Class::entity") (declare-flow-object-class entity-ref "UNREGISTERED::James Clark//Flow Object Class::entity-ref") (declare-flow-object-class formatting-instruction "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction") (declare-characteristic preserve-sdata? "UNREGISTERED::James Clark//Characteristic::preserve-sdata?" #f) &dblib.dsl; &dbcommon.dsl; &dbctable.dsl; &dbtable.dsl; <!-- &dbfootn.dsl; --> </style-specification> </style-sheet> that's it -- Bng DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Possible to use just table part of , Glenn R. Kronschnabl | Thread | Re: Possible to use just table part, Norman Walsh |
process-node-list, select-element, , Pursel, Frank | Date | RE: process-node-list, select-eleme, Reynolds, Gregg |
Month |