This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Docbook and DSSSL questions...
- From: "N. Raghavendra" <raghu at mri dot ernet dot in>
- To: Arnaud Fontaine <arnaud at tarentux dot org>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 28 Jun 2004 11:36:01 +0530
- Subject: Re: [docbook-apps] Docbook and DSSSL questions...
- References: <20040628010014.GA31010@tarentux.org>
- Reply-to: "N. Raghavendra" <raghu at mri dot ernet dot in>
At 2004-06-28T03:00:14+02:00, Arnaud Fontaine wrote:
> we would like to have two versions, one is the book i have mentioned
> before, and the second should be in multiple html files (one XML
> file for one HTML page, then no navigation between these pages
> because they should be completely independant).
Hi Arnaud,
Here is one possible method. Modify the document type declaration of
your DSSSL stylesheet like this:
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"
[
<!ENTITY dbstyle
SYSTEM
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl"
CDATA DSSSL>
<!ENTITY % output.independent "IGNORE">
]>
Then, in the style specification body, include a marked section like
so:
<![ %output.independent; [
;; Suppress the default navigation bars.
(define %header-navigation% #f)
(define %footer-navigation% #f)
;; Produce separate HTML pages.
(define nochunks #f)
]]>
Now, to produce the `independent' output, run `openjade', or `jade',
using the `-i' option:
openjade -i output.independent -d stylesheet-html.dsl document.xml
To produce usual output, just don't use the `-i' option.
HTH.
Cheers,
Raghavendra.
--
N. Raghavendra <raghu@mri.ernet.in> | See mail headers for contact
Harish-Chandra Research Institute | and OpenPGP details.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.