source: INSTALL@ d1a50e0

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v3_3 v4_0 v4_1 v5_0 v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since d1a50e0 was d1a50e0, checked in by Gerard Beekmans <gerard@…>, 22 years ago

provided file name of newent

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1726 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.7 KB
Line 
1Ok, so you have downloaded the XML source. Now what? You are probably
2wanting to convert these XML files to easier to read HTML, PS, PDF, txt
3or other formatted files. All that can be read below.
4
5Let's start by downloading some software.
6
7If all you want to do is being able to convert XML to HTML download the
8following:
9
10OpenJade - http://openjade.sourceforge.net/
11DocBook-XML DTD - http://www.docbook.org/xml/4.1.2/
12Modified DocBook Entities -
13 http://ftp.linuxfromscratch.org/misc/docbook-4.1.2-newent.tar.bz2
14DSSSL DocBook Stylesheets - http://www.nwalsh.com/docbook/dsssl/
15
16As the DocBook DTD and Stylesheets are made available as a zip achives you
17may need to download the unzip package as well if your Linux system doesn't
18have one:
19
20Unzip - ftp://ftp.uu.net/pub/archiving/zip/src/
21
22If you want to be able to convert the book into PS and PDF as well I
23recommend using the Htmldoc program. This takes a html file (created
24with openjade which you already downloaded) and converts it to PS or
25PDF:
26
27HTMLDOC - http://www.easysw.com/htmldoc/
28FLTK (X front-end) - http://sourceforge.net/projects/fltk
29
30If you want to be able to convert the book into TXT as well I recommend
31using links to convert HTML to TXT using the -dump option to links.
32
33Lynx - http://lynx.browser.org
34
35You have everything you need now. Let's install this stuff.
36
37Create the /usr/share/docbook directory, cd into it and unpack the
38docbook-xml dtd archive there.
39
40Remove the ent directory and unpack the docbook-4.1.2-newent.tar.bz2 file.
41This will create a new ent directory with entity files that work better
42with XML.
43
44Create the /usr/share/dsssl directory, cd into it and unpack the dsssl
45stylesheet archive in there. Rename the directory that's created by tar
46into 'docbook'. Now copy the lfs.dsl file you will find in
47the LFS-BOOK XML archive into /usr/share/dsssl/docbook/html
48
49The last step is installing OpenJade.
50
51In order for openjade to be able to convert the DocBook based documents
52into other formats, it needs to know where the DocBook DTD related
53files are located. This is sort of the DocBook equivalent for the $PATH
54variable. You have two ways of doing this:
55
561) You can set the $SGML_CATALOG_FILES variable and include the full
57paths to the catalog files in it
58 or
592) You can hard-code the paths into the openjade binary.
60
61If you choose option 1, add the following to your bash configuration
62file, system wide profile or wherever you wish to include it:
63
64export SGML_CATALOG_FILES=/usr/share/docbook/docbook.cat:/usr/share/dsssl/docbook/catalog:/usr/share/dsssl/openjade/catalog
65
66Followed by installing openjade by running:
67 ./configure --prefix=/usr
68 make
69 make install
70 cp -av dsssl /usr/share/dsssl/openjade
71
72If you choose option 2, install OpenJade as follows:
73
74 ./configure --prefix=/usr \
75 > --enable-default-catalog=/usr/share/docbook/docbook.cat:/usr/share/dsssl/docbook/catalog:/usr/share/dsssl/openjade/catalog
76 make
77 make install
78 cp -av dsssl /usr/share/dsssl/openjade
79
80And you don't have to worry about the $SGML_CATALOG_FILES variable in
81this case.
82
83
84You're all set to convert XML to HTML (among a few other formats
85supported by openjade) now. If you want to convert to PS and PDF as
86well, install the following two packages.
87
88FLTK (you can skip this one if you don't want the X front-end):
89 ./configure --prefix=/usr
90 make
91 make install
92
93HTMLDOC:
94Install by running:
95
96 ./configure --prefix=/usr
97 make
98 make install
99
100
101
102The last package is Links which will be used for the HTML to TXT
103conversion. Install it by running:
104
105 ./configure --prefix=/usr
106 make
107 make install
108
109There, all set now. Go back to the README file for some examples how to
110convert this XML to the various other formats.
111
Note: See TracBrowser for help on using the repository browser.