Go to file
Randy McMurchy fdf798a662 Updated to rsync-2.6.5
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4544 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-06-03 18:46:08 +00:00
appendices Removed excess spaces from the ends of lines in the source files 2005-05-30 21:20:19 +00:00
basicnet Updated to Whois-4.7.5 2005-06-01 15:48:17 +00:00
book Removed excess spaces from the ends of lines in the source files 2005-05-30 21:30:10 +00:00
connect Removed excess spaces from the ends of lines in the source files 2005-05-30 21:31:54 +00:00
general Updated to ImageMagick-6.2.3-0. 2005-06-03 06:38:23 +00:00
gnome Removed explicit path from GDM bootscript commands; added a note to the GDM instructions to modify the bootscript if /opt/gnome-2.10 is non-standard; updated bootscripts version entity 2005-05-31 18:10:31 +00:00
images updated stylesheets to 0.9 2004-05-08 02:42:12 +00:00
introduction Updated to rsync-2.6.5 2005-06-03 18:46:08 +00:00
kde Updated to GNOME Speech-0.3.7 2005-05-31 00:09:00 +00:00
multimedia Adjusted long lines in the XML sources to fit on the PDF book pages 2005-06-02 16:56:16 +00:00
postlfs Fixed minor typos in Tcsh instructions 2005-06-01 19:35:09 +00:00
pst Unified the optional Testing sections, Adjusted the CSS code. 2005-05-23 17:53:08 +00:00
server Updated to rsync-2.6.5 2005-06-03 18:46:08 +00:00
stylesheets Removed unneeded elements from TOC generation. 2005-06-02 16:49:14 +00:00
template Removed excess spaces from the ends of lines in the source files 2005-05-30 22:16:12 +00:00
x Adjusted long lines in the XML sources to fit on the PDF book pages 2005-06-02 16:56:16 +00:00
xsoft Updated to Galeon-1.3.21 2005-06-01 04:01:03 +00:00
general.ent Updated to rsync-2.6.5 2005-06-03 18:46:08 +00:00
goTidy Update to style sheets; added tidy to Makefile 2004-05-17 06:26:42 +00:00
index.xml Removed excess spaces from the ends of lines in the source files 2005-05-30 22:16:12 +00:00
INSTALL Removed excess spaces from the ends of lines in the source files 2005-05-30 22:16:12 +00:00
lib-config.xml Removed excess spaces from the ends of lines in the source files 2005-05-30 22:16:12 +00:00
Makefile Removed spaces from blank lines and excess spaces from the end of XML data 2005-05-30 17:49:09 +00:00
README Removed excess spaces from the ends of lines in the source files 2005-05-30 22:16:12 +00:00
tidy.conf Update to style sheets; added tidy to Makefile 2004-05-17 06:26:42 +00:00
use-unzip.xml Tagged the top-level XML files. 2005-05-07 11:25:41 +00:00

How do I convert these XML files to other formats like HTML, PDF,
and TXT? You need to have some software installed that deal with these
conversions. Please read the INSTALL file to determine what programs
you need to install and where to get instructions to install that software.
Then come back to this file for examples how to convert these files
into various other formats.

These instructions are also incorporated in the Makefile.

XML to HTML:
------------
Create a directory in which you want to store the HTML files: ~/blfs-html
Change to the top of the directory where the xml code is located.
Now run:
  BASEDIR="~/blfs-html"
  xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
     stylesheets/blfs-chunked.xsl index.xml
  mkdir -p $(BASEDIR)stylesheets $(BASEDIR)images
  cp stylesheets/*.css $(BASEDIR)stylesheets
  cp images/*.png $(BASEDIR)/images
  sed -i -e "s@../stylesheets@stylesheets@g" $(BASEDIR)/*.html
  sed -i -e "s@../images@images@g" $(BASEDIR)/*.html
  sh goTidy $(BASEDIR)/


XML to NOCHUNKS-HTML:
--------------------
The NOCHUNKS HTML version is one big HTML file:
  xsltproc --xinclude --nonet -stringparam profile.condition html \
     --output $(BASEDIR)/BLFS-BOOK.html stylesheets/blfs-nochunks.xsl index.xml
  tidy -config tidy.conf $(BASEDIR)/BLFS-BOOK.html
  sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/BLFS-BOOK.html

XML to TXT:
-----------
First create the NOCHUNKS HTML file, then convert by running:
	/usr/bin/lynx -dump nochunks.html > output.txt

XML to PDF:
------------------
xsltproc --xinclude --nonet --output blfs.fo stylesheets/blfs-pdf.xsl index.xml
sed -i -e "s/inherit/all/" blfs.fo
fop.sh blfs.fo blfs.pdf
mkdir -p  $(BASEDIR)/pdf
rm blfs.fo
mv blfs.pdf $(BASEDIR)/pdf