summaryrefslogtreecommitdiff
path: root/doc/DOCDOC
blob: 465f1f371be6f4405a68c87c160da45474377566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Metadocumentation: documentation for generating SBCL's Documentation

Overview
========

SBCL's documentation is written in XML DocBook which is a semantically
marked document not meant for humans to read directly. Rather, a
DocBook file is meant to be transformed into presentation formats such
as HTML, PDF, and plain text. To perform such translation, you'll need
tools beyond what is included in the SBCL distribution:

1) To verify the correctness of the XML documentation, you'll need the
DocBook DTD files and an XML verification tool.

2) To transform the main XML DocBook file (user-manual.xml), you need
an XSL Transformer and the Docbook XSL Stylesheets. The stylesheets
provide output in HTML, XHTML, and FO (formatted objects) formats.

3) If you want to create PDF or Postscript output, you'll need an FO
processor.

Catalog Files
=============

Catalog files are used to map URLs used in the SBCL Docbook and
stylesheet files into local file names. By using a catalog, processing
is faster and a network connection is not necessary. Catalog files are
specific to an operating system since they embed file locations. The
SBCL Makefile attempts to determine the correct catalog for your
system. If SBCL does not supply a catalog for your system, processing
the DocBook files will require a network connection.

Default Processing
==================

A shell script (make-doc.sh) is provided which creates the default
HTML documentation. This shell scripts invokes the GNU make tool to
create the HTML target. The Makefile assumes the existance of a
standard set of tools: the xsltproc XSL transformer and, ideally, the
DocBook XML DTDs and XSL stylesheets.

Tools for Debian
----------------
  You will the below binary packages, and their dependencies, installed.
    xsltproc (XSLT engine)
    docbook-xml (XML DTDs)
    docbook-xsl (stylesheets)
    libxml2-utils (provides the xmllint verifier) [optional]
    libfop-java (provides a FO processor for generating PDF output) [optiona]

  The easiest way to do this is with the command:
    apt-get install xsltproc docbook-xsl docbook-xml libxml2-utils libfop-java

Tools for SuSE
--------------
  You will the below binary packages, and their dependencies, installed.
    libxslt (xsltproc)
    docbook_4 (XML DTDs)
    docbook-xsl-stylesheets (stylesheets)
    libxml2 (xmllint) [optional]  

Tools for Fink
--------------
   libxslt (xsltproc)
   docbook-dtd (XML DTDs)
   docbook-xsl (stylesheets)
   libxml2-bin (xmllint) [optional]
       
  The easiest way to do this is with the command:
    fink install libxslt docbook-dtd docbook-xsl libxml2-bin

Tools Web Home
--------------
xsltproc     http://xmlsoft.org/XSLT/
DocBook DTD  http://www.docbook.org/xml/
DocBook XSL  http://sourceforge.net/projects/docbook
xmllint      http://xmlsoft.org/
FOP          http://xml.apache.org/fop/