comparison DOCS/xml/README @ 9674:461f71ba8af4

XML version of MPlayer's doc
author nicolas
date Sun, 23 Mar 2003 23:26:55 +0000
parents
children 9e6a41a7d6a8
comparison
equal deleted inserted replaced
9673:4204e4523e4f 9674:461f71ba8af4
1 Tools required for building the documentation
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
4 * DocBook 4.1.2 or later
5 * The DocBook XML DTD (also known as DocBk XML)
6 * DocBook XSL stylesheets -- version 1.50.0 or later is recommended.
7
8 I am not quite sure which tools work, but I used the following
9 ones successfully, so they are required:
10
11 * xmllint (part of libxml2) is used for validation.
12 * xsltproc (part of libxslt1) is used for transforming XML files into HTML
13 files. Version 1.0.18 or later is recommended.
14
15
16 Building the documentation
17 ~~~~~~~~~~~~~~~~~~~~~~~~~~
18
19 1) Before trying to build the documentation, run
20
21 make test
22
23 to see if everything is set up properly. If something goes wrong,
24 check the Configuration section of the toplevel Makefile and adjust
25 the variables.
26
27
28 2) Now simply run
29
30 make all
31
32 to build the documentation.
33
34
35 A few words about SGML catalog files
36 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37
38 As far as I know, the document type declaration in XML files requires
39 both a public and a system identifier. For example:
40
41 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
42 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd">
43
44 where
45
46 "-//OASIS//DTD DocBook XML V4.1.2//EN"
47
48 is the public, and
49
50 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
51
52 is the system identifier.
53
54 The problem is that the system identifier is most probably system-dependent.
55 To avoid the need to manually fix the system identifiers before building the
56 documentation, I've decided to use SGML catalogs. If you have your catalogs
57 set up correctly, xmllint and xsltproc will use the them to find the DTDs
58 based on the public identifiers.
59
60 Note that this works only if public identifiers override system identifiers
61 (i.e. the catalog file must contain 'OVERRIDE YES'). (I had no problem with
62 these on my system, since the Debian people took care of everything. ;-))
63
64
65 --
66 Andras Mohari