annotate DOCS/xml/README @ 10868:74fde9d0cab6

XML tools download and installation instructions
author gabucino
date Sun, 14 Sep 2003 19:10:55 +0000
parents 970a95a4d856
children a2b9b13af73f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 Tools required for building the documentation
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
3
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 * DocBook 4.1.2 or later
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
5 * The DocBook XML DTD (also known as DocBk XML)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 * DocBook XSL stylesheets -- version 1.50.0 or later is recommended.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
7
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 I am not quite sure which tools work, but I used the following
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 ones successfully, so they are required:
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
10
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 * xmllint (part of libxml2) is used for validation.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 * xsltproc (part of libxslt1) is used for transforming XML files into HTML
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 files. Version 1.0.18 or later is recommended.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
14
10025
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
15 Also it's possible to use the Saxon XSLT Processor. Russian translator
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
16 used it (version 6.4.4) for a while. To enable it change USE_SAXON to 1 in
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
17 the Makefile.
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
18
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
19
10868
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
20 Installing the required tools from source
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
21 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
22
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
23 1) Download libxslt AND libxml2 packages from
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
24 http://xmlsoft.org/XSLT/downloads.html
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
25
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
26 Installing them should be straightforward, executing the usual "./configure"
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
27 and "make" then "make install" commands.
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
28
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
29
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
30 2) Download the docbook-xml package from http://www.oasis-open.org/docbook/xml/
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
31 Use the newest version. The URL will be something like this:
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
32
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
33 http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
34
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
35 Extract this package into a directory, enter it, and execute the following
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
36 commands:
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
37
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
38 mkdir -p /usr/share/sgml/docbook/dtd/xml/4.2/
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
39 cp -r * /usr/share/sgml/docbook/dtd/xml/4.2/
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
40
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
41
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
42 3) Download the docbook-xsl package from
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
43 http://prdownloads.sourceforge.net/docbook/
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
44
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
45 Use the newest version. The URL will be something like this:
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
46
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
47 http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.62.0.tar.gz
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
48
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
49 Extract this package into a directory, enter it, and execute the following
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
50 commands:
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
51
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
52 mkdir -p /usr/share/sgml/docbook/stylesheet/xsl/nwalsh
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
53 cp -r VERSION common html lib \
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
54 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
55
74fde9d0cab6 XML tools download and installation instructions
gabucino
parents: 10025
diff changeset
56
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 Building the documentation
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 ~~~~~~~~~~~~~~~~~~~~~~~~~~
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
59
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 1) Before trying to build the documentation, run
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
61
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 make test
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
63
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 to see if everything is set up properly. If something goes wrong,
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 check the Configuration section of the toplevel Makefile and adjust
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 the variables.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
67
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
68
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
69 2) Now simply run
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
70
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 make all
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
72
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 to build the documentation.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
74
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
75
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 A few words about SGML catalog files
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
77 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
78
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 As far as I know, the document type declaration in XML files requires
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 both a public and a system identifier. For example:
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
81
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd">
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
84
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
85 where
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
86
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 "-//OASIS//DTD DocBook XML V4.1.2//EN"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
88
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
89 is the public, and
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
90
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
92
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
93 is the system identifier.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
94
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 The problem is that the system identifier is most probably system-dependent.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
96 To avoid the need to manually fix the system identifiers before building the
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
97 documentation, I've decided to use SGML catalogs. If you have your catalogs
9953
diego
parents: 9674
diff changeset
98 set up correctly, xmllint and xsltproc will use them to find the DTDs
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
99 based on the public identifiers.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
100
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
101 Note that this works only if public identifiers override system identifiers
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 (i.e. the catalog file must contain 'OVERRIDE YES'). (I had no problem with
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
103 these on my system, since the Debian people took care of everything. ;-))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
104
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
105
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 --
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
107 Andras Mohari