Go to file
Manuel Canales Esparcia 16e35d5cfe Tagged gnome-intro.xml
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4444 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-05-22 10:06:17 +00:00
appendices Indented glossary.xml 2005-04-28 19:27:22 +00:00
basicnet Changed 'None' by 'Not determined at this time' for installed directories in packages indexed by me. 2005-05-11 20:38:23 +00:00
book Fixed titles capitalization. Added -v to commands that support it. 2005-05-01 09:37:53 +00:00
connect Fixed dialup.xml title. 2005-05-04 21:45:15 +00:00
general Moved the LDFLAGS option from the configure command to the make command as libm wasn't being properly pulled into the environment. 2005-05-19 03:31:21 +00:00
gnome Tagged gnome-intro.xml 2005-05-22 10:06:17 +00:00
images updated stylesheets to 0.9 2004-05-08 02:42:12 +00:00
introduction Updated to GnomeMeeting-1.2.1 2005-05-19 22:46:55 +00:00
kde Typo fix 2005-05-20 04:15:15 +00:00
multimedia Added a test suite note to LAME. 2005-05-19 23:42:42 +00:00
postlfs Fix link in ash 2005-05-15 16:24:30 +00:00
pst Finished pst part. 2005-05-16 18:15:57 +00:00
server Finished server part. 2005-05-18 21:13:28 +00:00
stylesheets Typo 2005-05-14 12:32:35 +00:00
template Removed spaces from blank lines in the template file 2005-05-16 11:51:14 +00:00
x Finished X part 2005-05-20 19:40:00 +00:00
xsoft Finished xsoft part 2005-05-21 12:00:41 +00:00
general.ent Updated to GnomeMeeting-1.2.1 2005-05-19 22:46:55 +00:00
goTidy Update to style sheets; added tidy to Makefile 2004-05-17 06:26:42 +00:00
index.xml Tagged the top-level XML files. 2005-05-07 11:25:41 +00:00
INSTALL Making README and INSTALL current 2005-04-28 18:29:06 +00:00
lib-config.xml Tagged the top-level XML files. 2005-05-07 11:25:41 +00:00
Makefile Indexed configuration files and bootscripts in the 'After LFS Configuration Issues' section 2005-01-15 00:30:04 +00:00
README Making README and INSTALL current 2005-04-28 18:29:06 +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