This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Docbook and DSSSL questions...


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/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]