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