source: README@ 97e4364

10.0 10.1 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 gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 97e4364 was 97e4364, checked in by Bruce Dubbs <bdubbs@…>, 16 years ago

Making README and INSTALL current

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3817 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 1.8 KB
Line 
1How do I convert these XML files to other formats like HTML, PDF,
2and TXT? You need to have some software installed that deal with these
3conversions. Please read the INSTALL file to determine what programs
4you need to install and where to get instructions to install that software.
5Then come back to this file for examples how to convert these files
6into various other formats.
7
8These instructions are also incorporated in the Makefile.
9
10XML to HTML:
11------------
12Create a directory in which you want to store the HTML files: ~/blfs-html
13Change to the top of the directory where the xml code is located.
14Now run:
15 BASEDIR="~/blfs-html"
16 xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
17 stylesheets/blfs-chunked.xsl index.xml
18 mkdir -p $(BASEDIR)stylesheets $(BASEDIR)images
19 cp stylesheets/*.css $(BASEDIR)stylesheets
20 cp images/*.png $(BASEDIR)/images
21 sed -i -e "s@../stylesheets@stylesheets@g" $(BASEDIR)/*.html
22 sed -i -e "s@../images@images@g" $(BASEDIR)/*.html
23 sh goTidy $(BASEDIR)/
24
25
26XML to NOCHUNKS-HTML:
27--------------------
28The NOCHUNKS HTML version is one big HTML file:
29 xsltproc --xinclude --nonet -stringparam profile.condition html \
30 --output $(BASEDIR)/BLFS-BOOK.html stylesheets/blfs-nochunks.xsl index.xml
31 tidy -config tidy.conf $(BASEDIR)/BLFS-BOOK.html
32 sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/BLFS-BOOK.html
33
34XML to TXT:
35-----------
36First create the NOCHUNKS HTML file, then convert by running:
37 /usr/bin/lynx -dump nochunks.html > output.txt
38
39XML to PDF:
40------------------
41xsltproc --xinclude --nonet --output blfs.fo stylesheets/blfs-pdf.xsl index.xml
42sed -i -e "s/inherit/all/" blfs.fo
43fop.sh blfs.fo blfs.pdf
44mkdir -p $(BASEDIR)/pdf
45rm blfs.fo
46mv blfs.pdf $(BASEDIR)/pdf
47
48
Note: See TracBrowser for help on using the repository browser.