1 | How do I convert these XML files to other formats like HTML, PF, PS
|
---|
2 | and TXT? You need to have some software installed that deal with these
|
---|
3 | conversions. Please read the INSTALL file how to install that software.
|
---|
4 | Then come back to this file for examples how to convert these files
|
---|
5 | into various other formats.
|
---|
6 |
|
---|
7 | XML to HTML:
|
---|
8 | ------------
|
---|
9 | Create a directory in which you want to store the HTML files and cd into
|
---|
10 | that directory. Now run:
|
---|
11 | mkdir introduction postlfs general connect basicnet server \
|
---|
12 | content x kde gnome xsoft multimedia pst preface \
|
---|
13 | appendices other
|
---|
14 | /usr/bin/openjade -t xml \
|
---|
15 | -d /usr/share/dsssl/docbook/html/blfs.dsl \
|
---|
16 | /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
|
---|
17 | /path/to/index.xml
|
---|
18 |
|
---|
19 |
|
---|
20 |
|
---|
21 | XML to NOCHUNKS-HTML:
|
---|
22 | --------------------
|
---|
23 | The NOCHUNKS HTML version is one big HTML file:
|
---|
24 | /usr/bin/openjade -t sgml \
|
---|
25 | -V nochunks \
|
---|
26 | -d /usr/share/dsssl/docbook/html/blfs.dsl \
|
---|
27 | /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
|
---|
28 | /path/to/index.xml > nochunks.html
|
---|
29 |
|
---|
30 | XML to TXT:
|
---|
31 | -----------
|
---|
32 | First create the NOCHUNKS HTML file, then convert by running:
|
---|
33 | /usr/bin/lynx -dump nochunks.html > output.txt
|
---|
34 |
|
---|
35 | XML to PS and PDF:
|
---|
36 | ------------------
|
---|
37 | First create the NOCHUNKS HTML file, then convert by starting
|
---|
38 | htmldoc. You can use the GUI and select the options. If you're
|
---|
39 | satisfied with the default options you can run this command:
|
---|
40 |
|
---|
41 | /usr/bin/htmldoc --book --firstpage p1 -v -t <type> \
|
---|
42 | -f <output> nochunks.html
|
---|
43 |
|
---|
44 | replace <type> by pdf13 to create a pdf file or replace <type> by ps3 to
|
---|
45 | create a ps file. There are other pdf and ps levels, see the man page for
|
---|
46 | possible other options. Replace <output> with the filename of the ps or
|
---|
47 | pdf file that is to be generated.
|
---|
48 |
|
---|