Blame SOURCES/docbook-slides.README.redhat

56ebd8
docbook-slides - basic distribution howto
56ebd8
-----------------------------------------
56ebd8
56ebd8
DocBook Slides provides customization layers of the both the
56ebd8
Simplified and the full DocBook XML DTD, as well as the DocBook XSL
56ebd8
Stylesheets. This package contains the XML document type definition
56ebd8
and stylesheets for processing DocBook Slides XML. The slides doctype
56ebd8
and stylesheets are for generating presentations, primarily in HTML.
56ebd8
56ebd8
Information on generating HTML slides from the source XML document are
56ebd8
given below.
56ebd8
56ebd8
0. Using Processing Instructions in Your Source Document:
56ebd8
=========================================================
56ebd8
56ebd8
In lieu of setting parameters in the xsl stylesheets, you might wish
56ebd8
to set a few of them in the source document itself. You may do this
56ebd8
using what are known as XML Processing Instructions, or PIs, for
56ebd8
short. Parameters that you may set with this method include:
56ebd8
56ebd8
       - graphics-dir
56ebd8
       - css-stylesheet-dir
56ebd8
       - script-dir
56ebd8
56ebd8
  The 'graphics-dir' parameter refers to the 'graphics' directory
56ebd8
  included in the package.
56ebd8
56ebd8
  The 'css-stylesheet-dir' and the 'script-dir' both (by default)
56ebd8
  correspond to the 'browser' directory included in the package.
56ebd8
56ebd8
To set these parameters using PIs, you might start your document as
56ebd8
follows:
56ebd8
56ebd8
56ebd8
56ebd8
     PUBLIC "-//Norman Walsh//DTD Slides XML V3.4.0//EN"
56ebd8
     "http://docbook.sourceforge.net/release/slides/3.4.0/schema/dtd/slides.dtd">
56ebd8
56ebd8
56ebd8
56ebd8
The paths to the directories in the PIs should be specified relative
56ebd8
to the location of the HTML output files.
56ebd8
56ebd8
** Note that you should copy these directories from their installed
56ebd8
   locations in /usr/share/xml/docbook/slides/3.4.0/ to the location
56ebd8
   where you build your slide presentation.
56ebd8
56ebd8
56ebd8
I. To Compose Slides That Use The (Default) Simplified Docbook DTD:
56ebd8
===================================================================
56ebd8
56ebd8
Use the following prolog to create a source document based on a
56ebd8
customization of the Simplified DocBook DTD (~100 elements), rather
56ebd8
than the full DocBook XML DTD (~380 elements). This version should be
56ebd8
sufficient for most presentations.
56ebd8
56ebd8
56ebd8
56ebd8
56ebd8
     PUBLIC "-//Norman Walsh//DTD Slides XML V3.4.0//EN"
56ebd8
     "http://docbook.sourceforge.net/release/slides/3.4.0/schema/dtd/slides.dtd">
56ebd8
<slides>
56ebd8
  ...
56ebd8
</slides>
56ebd8
56ebd8
56ebd8
II. To Compose Slides Using The Full DocBook XML DTD:
56ebd8
=====================================================
56ebd8
56ebd8
Use the following prolog to create a source document based on the full
56ebd8
DocBook XML DTD. Using this DTD will give you full access to most of
56ebd8
the ~380 elements in the DocBook XML V4.2 DTD. This DTD/prolog would
56ebd8
be useful, e.g., if you plan to use a number of programming constructs
56ebd8
in your slide presentation.
56ebd8
56ebd8
56ebd8
56ebd8
56ebd8
     PUBLIC "-//Norman Walsh//DTD Slides Full XML V3.4.0//EN"
56ebd8
     "http://docbook.sourceforge.net/release/slides/3.4.0/schema/dtd/slides-full.dtd">
56ebd8
<slides>
56ebd8
  ...
56ebd8
</slides>
56ebd8
56ebd8
56ebd8
III. Generating HTML Slides From Your XML Source Document:
56ebd8
=========================================================
56ebd8
56ebd8
First, you must choose a style for your presentation, and hence a
56ebd8
stylesheet for processing your slides: 
56ebd8
56ebd8
* slides.xsl produces basic slides in HTML, one page per slide.
56ebd8
56ebd8
* frames.xsl produces slides in HTML using frames.
56ebd8
56ebd8
* tables.xsl produces slides in HTML using tables, one page per slide.
56ebd8
56ebd8
* w3c.xsl produces basic slides in HTML, one page per slide, using a
56ebd8
  navigation style similar to that of most W3C talks.
56ebd8
56ebd8
You will also wish to further customize your slides by setting some
56ebd8
parameters for the XSL stylesheets. See the package documentation for
56ebd8
the list of available parameters, or take a peek at
56ebd8
/usr/share/xml/docbook/slides/3.4.0/xsl/html/xsl/html/param.xsl.
56ebd8
56ebd8
56ebd8
To generate slides from xsltproc, with frames and setting the overlay
56ebd8
logo for the ToC frame, you would issue a command like:
56ebd8
56ebd8
56ebd8
xsltproc --stringparam overlay.logo http://docbook.sourceforge.net/release/buttons/slides-1.png \
56ebd8
	 /usr/share/xml/docbook/slides/3.4.0/xsl/html/frames.xsl sourcefile.xml
56ebd8
56ebd8
56ebd8
In addition to the documentation included with this package, you may
56ebd8
wish to download the slides-demo package, which provides examples of
56ebd8
each style of slide presentation. The slides-demo package can be
56ebd8
downloaded from http://sourceforge.net/projects/docbook. I may also
56ebd8
package the slides-demo as an rpm, if there is sufficient demand.
56ebd8
56ebd8
56ebd8
Feel free to offer comments, suggestions, or complaints.
56ebd8
56ebd8
     Mark
56ebd8
56ebd8
56ebd8
 -- Mark Johnson <mjohnson@redhat.com>, Wed Sep  8 16:15:00 EDT 2004
56ebd8
 --update: Ondrej Vasik 
56ebd8