10.0
10.1
11.0
11.1
11.2
11.3
12.0
12.1
12.2
6.0
6.1
6.2
6.2.0
6.2.0-rc1
6.2.0-rc2
6.3
6.3-rc1
6.3-rc2
6.3-rc3
7.10
7.4
7.5
7.6
7.6-blfs
7.6-systemd
7.7
7.8
7.9
8.0
8.1
8.2
8.3
8.4
9.0
9.1
basic
bdubbs/svn
elogind
gimp3
gnome
kde5-13430
kde5-14269
kde5-14686
kea
ken/TL2024
ken/inkscape-core-mods
ken/tuningfonts
krejzi/svn
lazarus
lxqt
nosym
perl-modules
plabs/newcss
plabs/python-mods
python3.11
qt5new
rahul/power-profiles-daemon
renodr/vulkan-addition
systemd-11177
systemd-13485
trunk
upgradedb
v1_0
v5_0
v5_0-pre1
v5_1
v5_1-pre1
xry111/for-12.3
xry111/intltool
xry111/llvm18
xry111/soup3
xry111/spidermonkey128
xry111/test-20220226
xry111/xf86-video-removal
Last change
on this file since f5b4f72 was f45b1953, checked in by Mark Hymers <markh@…>, 22 years ago |
Initial revision
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Rev | Line | |
---|
[f45b1953] | 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 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.