Blame SOURCES/docbook-slides.README.redhat

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