Mercurial > mplayer.hg
annotate DOCS/xml/README @ 11540:d480f7e36b74
<application> attack
author | wight |
---|---|
date | Sun, 30 Nov 2003 13:07:40 +0000 |
parents | 669e67c3d6b3 |
children | 6363be1eb800 |
rev | line source |
---|---|
9674 | 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 | |
11269 | 13 files. Version 1.0.18 or later is recommended. |
9674 | 14 |
11269 | 15 It's also possible to use the Saxon XSLT Processor. The Russian translator |
16 used it (version 6.4.4) for a while. If you have a suitable JavaVM and a | |
17 saxon.jar installed somewhere, configure will try to detect them. If | |
18 autodetection fails, try to tweak DOCS/xml/configure to get it working and | |
19 send us a patch :) | |
20 | |
21 On Red Hat systems you need the following packages: | |
22 libxml2, libxslt, docbook-dtds, docbook-style-xsl | |
10911 | 23 |
10025 | 24 |
9674 | 25 |
10868
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
26 Installing the required tools from source |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
27 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
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 1) Download libxslt AND libxml2 packages from |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
30 http://xmlsoft.org/XSLT/downloads.html |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
31 |
11269 | 32 Installing them should be straightforward, execute the usual "./configure" |
10868
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
33 and "make" then "make install" commands. |
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 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
36 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
|
37 Use the newest version. The URL will be something like this: |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
38 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
39 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
|
40 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
41 Extract this package into a directory, enter it, and execute the following |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
42 commands: |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
43 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
44 mkdir -p /usr/share/sgml/docbook/dtd/xml/4.2/ |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
45 cp -r * /usr/share/sgml/docbook/dtd/xml/4.2/ |
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 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
48 3) Download the docbook-xsl package from |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
49 http://prdownloads.sourceforge.net/docbook/ |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
50 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
51 Use the newest version. The URL will be something like this: |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
52 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
53 http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.62.0.tar.gz |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
54 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
55 Extract this package into a directory, enter it, and execute the following |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
56 commands: |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
57 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
58 mkdir -p /usr/share/sgml/docbook/stylesheet/xsl/nwalsh |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
59 cp -r VERSION common html lib \ |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
60 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
61 |
74fde9d0cab6
XML tools download and installation instructions
gabucino
parents:
10025
diff
changeset
|
62 |
9674 | 63 Building the documentation |
64 ~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
65 | |
11269 | 66 Before trying to build the documentation, run |
9674 | 67 |
11269 | 68 make help |
9674 | 69 |
11269 | 70 to see all available build targets and make your choice. If something goes |
71 wrong, check the Configuration section of the toplevel Makefile and adjust | |
72 the variables. | |
9674 | 73 |
74 | |
75 A few words about SGML catalog files | |
76 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
77 | |
78 As far as I know, the document type declaration in XML files requires | |
11269 | 79 both a public and a system identifier. For example: |
9674 | 80 |
81 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
82 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"> | |
83 | |
84 where | |
85 | |
86 "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
87 | |
88 is the public, and | |
89 | |
90 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd" | |
91 | |
92 is the system identifier. | |
93 | |
94 The problem is that the system identifier is most probably system-dependent. | |
95 To avoid the need to manually fix the system identifiers before building the | |
11269 | 96 documentation, I've decided to use SGML catalogs. If you have your catalogs |
9953 | 97 set up correctly, xmllint and xsltproc will use them to find the DTDs |
9674 | 98 based on the public identifiers. |
99 | |
100 Note that this works only if public identifiers override system identifiers | |
11269 | 101 (i.e. the catalog file must contain 'OVERRIDE YES'). (I had no problem with |
9674 | 102 these on my system, since the Debian people took care of everything. ;-)) |