Blame SOURCES/docbook-slides.README.redhat

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